text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>src/components/icons/Svgs.tsx
import React from 'react'
interface Props {
fill?: string
width?: string | number
height?: string | number
style?: React.CSSProperties
className?: string
}
export const EditIcon = ({
fill = 'currentColor',
width = 24,
height = 24,
style = {},
className
}: Props) => {
return (
<svg
fill={fill}
width={width}
height={height}
focusable='false'
viewBox='0 0 24 24'
aria-hidden='true'
style={style}
className={className}
>
<path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z' />
</svg>
)
}
export const RemoveIcon = ({
fill = 'currentColor',
width = 24,
height = 24,
style = {},
className
}: Props) => {
return (
<svg
fill={fill}
width={width}
height={height}
focusable='false'
viewBox='0 0 24 24'
aria-hidden='true'
style={style}
className={className}
>
<path d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z' />
</svg>
)
}
export const UserIcon = ({
fill = 'currentColor',
width = 24,
height = 24,
style = {},
className
}: Props) => {
return (
<svg
fill={fill}
width={width}
height={height}
focusable='false'
viewBox='0 0 24 24'
aria-hidden='true'
style={style}
className={className}
>
<path d='M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z' />
</svg>
)
}
| typescript |
An awareness cum distribution programme on ornamental species was held in Jammu and Kashmir's Pulwama.
An awareness cum distribution programme on ornamental species was held in Jammu and Kashmir's Pulwama.
The programme was organized by the Council Of Scientific And Industrial Research-Indian Institute Of Integrative Medicine (CSIR-IIIM) under the 'Floriculture Mission' at the CSIR-IIIM field station in Pulwama.
Officers and scientists, progressive farmers, students and faculty from various schools and colleges in the Kashmir division attended the awareness and distribution programme.
The CSIR launched the pan India Floriculture Mission for the promotion of commercial Floriculture and CSIR IIIM Jammu is implementing it in Jammu and Kashmir.
One of the verticals in the mission involves the development of floriculture gardens in schools and colleges.
In the programme, planting material of different ornamental species was distributed among the concerned schools and colleges under CSIR Floriculture Mission.
The participating farmers and students lauded this step taken by the concerned institution as it will help them to understand the importance of aromatic plants and in future, they can also venture into this form of business.
Speaking to ANI, Aijaz Ahmad, a budding farmer said the programme that was held under the CSIR to create awareness among farmers and students about the floriculture mission.
"With the help of awareness and technical guidance, we can use our skills in floriculture in future and programmes like this help us to enhance our business further," Ahmad said.
Dr Shahid Rasool, Senior Scientist and in charge of CSIR, Pulwama emphasized the importance of commercial cultivation and product development of high-value medicinal and aromatic crops in the region.
"This floriculture mission will help those growers and farmers who produce floriculture crops. under this programme, we are establishing floriculture gardens in schools and colleges so that they can be inclined toward this floriculture," he explained.
Anjum Lone, a student, appreciated the programme and said it is beneficial to students and they can enhance their entrepreneurship skills through this kind of awareness.
"The programme is to create awareness among students about the various plants because we think plantation is all about natural beauty but it is beyond that," Lone added.
( With inputs from ANI ) | english |
Amid the increasing cases of the coronavirus or COVID-19 in the state, Maharashtra Governor Bhagat Singh Koshyari and Chief Minister Uddhav Thackeray reviewed the preparedness for containing the spread of the deadly virus which has claimed 10 lives in the state while the death toll in India has hiked to 32, as of March 31.
In the high-level meeting, along with the Maharashtra Governor and the Chief Minister, state Tourism and Environment Minister Aaditya Thackeray was also present. Senior government and police officers were also part of the review meeting amid the coronavirus outbreak in the state.
Governor Bhagat Singh Koshyari said that the migrant workers and labourers who are stranded in Maharashtra due to the nationwide lockdown should be provided with food, shelter and medicine while stating that the government officials must ensure that no person goes to bed without food.
The Governor also advised that immediate financial assistance be given to the labourers, especially those who are construction workers. The migrant workers and labourers have been the worst-hit due to the 21-days nationwide lockdown announced by Narendra Modi as they can’t survive in cities if they don’t have work.
Governor Koshyari further that steps should be taken to ensure the safety of police personnel on the field along with the cleaning staff and health workers while calling for coordination with the non-government organisations helping out amid the coronavirus outbreak, the Deccan Herald reported.
Meanwhile, Chief Minister Uddhav Thackeray informed that the agreements for food and shelter for migrant workers and labourers have been made at the camps while adding that the state government was waiting for additional personal protection kits from the centre and the same will be distributed to the needy.
Earlier, Uddhav Thackeray had asked all District Collectors to search for those stranded including pilgrims, labours and others and make sure that they are taken care of amid the coronavirus outbreak. | english |
<gh_stars>0
{
"/js/app.js": "/js/app.js",
"/css/plantilla.css": "/css/plantilla.css",
"/js/plantilla1.js": "/js/plantilla1.js"
}
| json |
[{"nome":"Australia","escudo":"escudos/asia-afc/Australia-m.jpg","pais":"ASIA-AFC"},{"nome":"Bahrain","escudo":"escudos/asia-afc/Bahrain-m.jpg","pais":"ASIA-AFC"},{"nome":"Bangladesh","escudo":"escudos/asia-afc/Bangladesh-m.jpg","pais":"ASIA-AFC"},{"nome":"Brunei Darussalam","escudo":"escudos/asia-afc/BruneiDarussalam-m.jpg","pais":"ASIA-AFC"},{"nome":"Cambodia","escudo":"escudos/asia-afc/Cambodia-m.jpg","pais":"ASIA-AFC"},{"nome":"China PR","escudo":"escudos/asia-afc/ChinaPR-m.jpg","pais":"ASIA-AFC"},{"nome":"Chinese Taipei","escudo":"escudos/asia-afc/ChineseTaipei-m.jpg","pais":"ASIA-AFC"},{"nome":"Guam","escudo":"escudos/asia-afc/Guam-m.jpg","pais":"ASIA-AFC"},{"nome":"Hong Kong","escudo":"escudos/asia-afc/HongKong-m.jpg","pais":"ASIA-AFC"},{"nome":"India","escudo":"escudos/asia-afc/India-m.jpg","pais":"ASIA-AFC"},{"nome":"Indonesia","escudo":"escudos/asia-afc/Indonesia-m.jpg","pais":"ASIA-AFC"},{"nome":"Iran","escudo":"escudos/asia-afc/Iran-m.jpg","pais":"ASIA-AFC"},{"nome":"Iraq","escudo":"escudos/asia-afc/Iraq-m.jpg","pais":"ASIA-AFC"},{"nome":"Japan","escudo":"escudos/asia-afc/Japan-m.jpg","pais":"ASIA-AFC"},{"nome":"Jordan","escudo":"escudos/asia-afc/Jordan-m.jpg","pais":"ASIA-AFC"},{"nome":"Korea DPR","escudo":"escudos/asia-afc/KoreaDPR-m.jpg","pais":"ASIA-AFC"},{"nome":"Korea Republic","escudo":"escudos/asia-afc/KoreaRepublic-m.jpg","pais":"ASIA-AFC"},{"nome":"Kuwait","escudo":"escudos/asia-afc/Kuwait-m.jpg","pais":"ASIA-AFC"},{"nome":"Lebanon","escudo":"escudos/asia-afc/Lebanon-m.jpg","pais":"ASIA-AFC"},{"nome":"Malaysia","escudo":"escudos/asia-afc/Malaysia-m.jpg","pais":"ASIA-AFC"},{"nome":"Maldives","escudo":"escudos/asia-afc/Maldives-m.jpg","pais":"ASIA-AFC"},{"nome":"Mongolia","escudo":"escudos/asia-afc/Mongolia-m.jpg","pais":"ASIA-AFC"},{"nome":"Nepal","escudo":"escudos/asia-afc/Nepal-m.jpg","pais":"ASIA-AFC"},{"nome":"Oman","escudo":"escudos/asia-afc/Oman-m.jpg","pais":"ASIA-AFC"},{"nome":"Pakistan","escudo":"escudos/asia-afc/Pakistan-m.jpg","pais":"ASIA-AFC"},{"nome":"Palestine","escudo":"escudos/asia-afc/Palestine-m.jpg","pais":"ASIA-AFC"},{"nome":"Philippines","escudo":"escudos/asia-afc/Philippines-m.jpg","pais":"ASIA-AFC"},{"nome":"Qatar","escudo":"escudos/asia-afc/Qatar-m.jpg","pais":"ASIA-AFC"},{"nome":"Saudi Arabia","escudo":"escudos/asia-afc/SaudiArabia-m.jpg","pais":"ASIA-AFC"},{"nome":"Singapore","escudo":"escudos/asia-afc/Singapore-m.jpg","pais":"ASIA-AFC"},{"nome":"S<NAME>","escudo":"escudos/asia-afc/SriLanka-m.jpg","pais":"ASIA-AFC"},{"nome":"Syria","escudo":"escudos/asia-afc/Syria-m.jpg","pais":"ASIA-AFC"},{"nome":"Tajikistan","escudo":"escudos/asia-afc/Tajikistan-m.jpg","pais":"ASIA-AFC"},{"nome":"Thailand","escudo":"escudos/asia-afc/Thailand-m.jpg","pais":"ASIA-AFC"},{"nome":"Turkmenistan","escudo":"escudos/asia-afc/Turkmenistan-m.jpg","pais":"ASIA-AFC"},{"nome":"United Arab Emirates","escudo":"escudos/asia-afc/UnitedArabEmirates-m.jpg","pais":"ASIA-AFC"},{"nome":"Uzbekistan","escudo":"escudos/asia-afc/Uzbekistan-m.jpg","pais":"ASIA-AFC"},{"nome":"Vietnam","escudo":"escudos/asia-afc/Vietnam-m.jpg","pais":"ASIA-AFC"},{"nome":"Yemen","escudo":"escudos/asia-afc/Yemen-m.jpg","pais":"ASIA-AFC"},{"nome":"Asian Football Confederation","escudo":"escudos/asia-afc/AsianFootballConfederation-m.jpg","pais":"ASIA-AFC"},{"nome":"AFC Asian Cup","escudo":"escudos/asia-afc/AFCAsianCup-m.jpg","pais":"ASIA-AFC"},{"nome":"AFC Champions League","escudo":"escudos/asia-afc/AFCChampionsLeague-m.jpg","pais":"ASIA-AFC"}] | json |
import matplotlib
import matplotlib.pyplot as plt
import matplotlib as mpl
from mpl_toolkits.mplot3d import Axes3D
import pandas as pd
import os
import matplotlib.pyplot as plt
import sys
import itertools
mpl.rcParams['legend.fontsize'] = 12
DPI = 5000
input_dir = "/home/pablo/ws/log/trajectories"
print("Reading from", input_dir)
##########################################################
################### w/ PREDICTION ########################
##########################################################
## linear speed
if len(sys.argv) == 2:
linear_speed = sys.argv[1]
else:
print("Exiting...")
exit()
trajectories_pred = pd.read_csv(input_dir + "/trajectories_pred_lifelong_{}.csv".format(linear_speed))
# get only some lines from the data
zoom_in = True
if zoom_in:
initial_row = 2300 # corresponds to roughly a timestamp of 50 s
row_200_sec = 10000 # corresponds to roughly a timestamp of 100 s
trajectories_pred = trajectories_pred.iloc[initial_row:row_200_sec]
## -- save dir
save_dir = "/home/pablo/ws/log/trajectories/lifelong_{}".format(linear_speed)
if not os.path.exists(save_dir):
os.makedirs(save_dir)
# extract data from DataFrame
status = trajectories_pred['status'].tolist()
ardrone_x = trajectories_pred['aX'].tolist()
ardrone_y = trajectories_pred['aY'].tolist()
ardrone_z = trajectories_pred['aZ'].tolist()
summit_x = trajectories_pred['sX'].tolist()
summit_y = trajectories_pred['sY'].tolist()
summit_z = trajectories_pred['sZ'].tolist()
# 3D
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.plot(ardrone_x, ardrone_y, ardrone_z, 'r', label='UAV')
ax.plot(summit_x, summit_y, summit_z, 'g', label='UGV')
ax.set(xlabel='x (m)', ylabel='y (m)', zlabel='z (m)')
bottom, top = plt.ylim() # return the current ylim
ax.legend()
ax.view_init(elev=11, azim=125)
plt.show()
fig.savefig(os.path.join(save_dir, "traj3D_pred.pdf"), format='pdf', dpi=DPI)
# 2D
fig, ax = plt.subplots()
ax.plot(ardrone_x, ardrone_y, 'r', label='UAV')
ax.plot(summit_x, summit_y, 'g', label='UGV')
ax.set(xlabel='x (m)', ylabel='y (m)')
ax.legend()
ax.grid()
fig.savefig(os.path.join(save_dir, "traj2D_pred.pdf"), format='pdf', dpi=DPI)
| python |
A record which stood for more than 42 years has been broken by Asad Shafiq. The Pakistani batsman went past the legendary West Indies all-rounder Sir Garry Sobers’ tally of eight Test centuries from the number six position and consequently etched his name in the history books.
Shafiq scored his ninth Test hundred from the number six slot during the 1st Test against Australia at the Gabba. The 30-year old led Pakistan’s unexpected rearguard on day four with a brilliant knock.
Left chasing 490 in the day-night encounter in Brisbane, not many would have predicted the visitors to put up a fight especially when they had been bowled out for just 142 in the first innings. However, they ended the penultimate day at 382/8 to give themselves an outside chance at a shock victory.
Shafiq, who was dismissed for only 2 in the first innings, walked into bat with Pakistan reeling at 165/4. Their situation got worse after Younis Khan and Sarfraz Ahmed departed to the pavilion with still 270 runs to get.
The diminutive batsman entered the innings on the back of some wretched form – 58 runs from his previous seven innings including three ducks. However, he produced an exhilarating counter attack and motored to 100 off 140 balls with 10 fours as well as a six.
The Karachi-born cricketer did survive a few anxious moments with Usman Khawaja and Steven Smith dropping him on 58 and 72 respectively. But, he rode his luck to remain unbeaten on 100. With still 108 runs needed from the last two wickets, Pakistan require him to keep going on the final day to entertain thoughts of a record-breaking fourth-innings chase.
For now, the right-hander will revel in his remarkable achievement of dislodging Sobers from the top of the list. While his average may be significantly lower than the Caribbean icon, Shafiq has managed to carve a niche for himself at the lower middle-order. All but one of his Test hundreds have come from the number six position which often necessitates batting with the tail-enders.
It does not take more than a glance at some of the famous names in the list to acknowledge the magnitude of his feat. The under-rated Shivnarine Chanderpaul possesses the best batting average (64.82) at the number six slot among those with at least 1000 runs.
(*Note: All Statistics are accurate as of 18th December, 2016)
| english |
<reponame>RDKRACZ/AzureDoom-Doom-Mod
{
"name": "Argent Energy",
"icon": "doom:argent_energy",
"category": "doom:argent_category",
"pages": [
{
"type": "spotlight",
"item": "doom:argent_energy",
"link_recipe": true,
"text": "Argent Energy is one of the main crafting ingredient in crafting your Doom items. It's found by slaying the demons of the Nether. It is also a very powerful fuel source being 100x burn time as coal."
}
]
}
| json |
- 4 hrs ago International Malala Day 2023: Who Is Malala Yousafzai? Where Is She Celebrating Her 26th Birthday?
- News GST Council Meeting Highlights: What Will Be Cheaper, Costlier?
- Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time!
Deepika Padukone is among the rare actresses in the Bollywood industry, who can consistently inspire us with fashionable outfit ideas that we can sport on various ocassions. The actress has been promoting her film Chhapaak with a lot of enthusiam and her outfits for each promotional round is worth investing in. For a recent event, the diva opted for a shimmering yellow designer suit, which seemed perfect for Lohri 2020. So, let us take a close look at her ensemble and decode it.
So, for the event, Deepika Padukone was decked up in a sparkling bright-yellow suit, which was designed by the ace designer Sabyasachi Mukherjee and she looked extremely sophisticated. Her ensemble consisted of a full-sleeved cocktail kurta, which featured side-slits. Styled by Shaleena Nathani, she paired it with matching churidar bottoms and draped a complementing dupatta around her wrist. The diva completed her look with pointed golden-hued heels. She also carried a Christian Louboutin black classy bag. Deepika accessorised her look with a pair of stone drop earrings, which also came from Sabyasachi's eponymous brand. Her earrings were enhanced by crystal detailing.
On the makeup front, with the perfect proportion of foundation and concealer, the actress slightly contoured her T-zone, cheekbones, and jawline. Filled thick brows, kohled eyes, curled lashes, glittering eye shadow, soft blush, and pink lip shade elevated her look. The fashionista was a vision of elegance as she tied her mid-parted sleek tresses into a looped bun.
So, what are you looking for? Go and shop the same outfit for today's Lohri celebration. Meanwhile, do not forget to share your thoughts on Deepika Padukone's yellow ensemble.
Happy Lohri!
- diet fitnessDeepika Padukone’s Diet: It’s All About Healthy Well-balanced Eating!
- skin careDeepika Padukone Skincare Tips: The Simplest Routine For All The Busy Gurls!
- make up tipsDeepika Padukone’s Bold Brows And Winged Liner: Get The Look Here! | english |
Last week the entire media was abuzz about actress Amala PaulÂs wedding with director Vijay. While it was stated that the wedding has been fixed to happen on June 28, Amala Paul requested everyone to wait for an official confirmation about her wedding plans and she will do it after Vijay who was in foreign location relating to his upcoming film Saivam returns to Chennai. The Thalaiva heroine neither confirmed nor denied her alleged relationship with Vijay in that press statement.
Now Anees Paul the mother of Amala Paul has confirmed in a recent interview that Amala paul is indeed in love with Vijay. She has said that they noticed Amala Paul was speaking with Vijay over phone for long hours and they did not have any doubt since the actress and director were working together in films. They were shocked to see the phone bills which showed a number of log duration calls to Vijay. However Amala Paul had successfully convinced her parents about her love for Vijay.
Anees has added that initially they were hesitant considering Amala PaulÂs young age but gave their approval since their daughterÂs love was very strong.
Anees Pail has also confirmed that Vijay-Amala marriage will happen in Chennai and Engagement will be in Kochi. Dates have not yet been fixed.
Follow us on Google News and stay updated with the latest! | english |
<gh_stars>0
package dominio.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import dominio.FornecedorDaSenha;
import dominio.Jogada;
import dominio.Retorno;
import exceptions.CorInvalidaException;
import exceptions.PosicaoInvalidaException;
import jogo.Senha;
import jogo.Tentativa;
public class FornecedorDaSenhaTest {
private FornecedorDaSenha fornecedorTest;
private Senha senhaTest;
private Jogada jogadaTest;
@Mock
private Tentativa tentativaAdivinho;
@Before
public void setup() throws CorInvalidaException{
MockitoAnnotations.initMocks(this);
this.fornecedorTest = new FornecedorDaSenha();
this.jogadaTest = new Jogada();
this.senhaTest = new Senha();
senhaTest.adicionarPino("vermelho");
senhaTest.adicionarPino("azul");
senhaTest.adicionarPino("rosa");
senhaTest.adicionarPino("amarelo");
this.fornecedorTest.setSenha(senhaTest);
this.jogadaTest.setTentativa(tentativaAdivinho);
this.fornecedorTest.setJogada(jogadaTest);
}
@Test
public void criarSenhaTest() {
this.fornecedorTest.setSenha(new Senha());
this.fornecedorTest.criarSenha();
assertTrue(fornecedorTest.getSenha().ehSenhaValida());
}
@Test
public void jogarHappyTest() throws PosicaoInvalidaException {
when(this.fornecedorTest.getJogada().getTentativa().getPino(0)).thenReturn("vermelho");
when(this.fornecedorTest.getJogada().getTentativa().getPino(1)).thenReturn("azul");
when(this.fornecedorTest.getJogada().getTentativa().getPino(2)).thenReturn("rosa");
when(this.fornecedorTest.getJogada().getTentativa().getPino(3)).thenReturn("amarelo");
this.fornecedorTest.jogar();
Retorno retornoTest = this.fornecedorTest.getJogada().getRetorno();
assertEquals("preto", retornoTest.getPino(0));
assertEquals("preto", retornoTest.getPino(1));
assertEquals("preto", retornoTest.getPino(2));
assertEquals("preto", retornoTest.getPino(3));
}
@Test
public void jogarHappyTest2() throws PosicaoInvalidaException {
when(this.fornecedorTest.getJogada().getTentativa().getPino(0)).thenReturn("azul");
when(this.fornecedorTest.getJogada().getTentativa().getPino(1)).thenReturn("rosa");
when(this.fornecedorTest.getJogada().getTentativa().getPino(2)).thenReturn("amarelo");
when(this.fornecedorTest.getJogada().getTentativa().getPino(3)).thenReturn("vermelho");
this.fornecedorTest.jogar();
Retorno retornoTest = this.fornecedorTest.getJogada().getRetorno();
assertEquals("branco", retornoTest.getPino(0));
assertEquals("branco", retornoTest.getPino(1));
assertEquals("branco", retornoTest.getPino(2));
assertEquals("branco", retornoTest.getPino(3));
}
@Test
public void jogarHappyTest3() throws PosicaoInvalidaException {
when(this.fornecedorTest.getJogada().getTentativa().getPino(0)).thenReturn("roxo");
when(this.fornecedorTest.getJogada().getTentativa().getPino(1)).thenReturn("verde");
when(this.fornecedorTest.getJogada().getTentativa().getPino(2)).thenReturn("cinza");
when(this.fornecedorTest.getJogada().getTentativa().getPino(3)).thenReturn("laranja");
this.fornecedorTest.jogar();
Retorno retornoTest = this.fornecedorTest.getJogada().getRetorno();
assertEquals("nenhum", retornoTest.getPino(0));
assertEquals("nenhum", retornoTest.getPino(1));
assertEquals("nenhum", retornoTest.getPino(2));
assertEquals("nenhum", retornoTest.getPino(3));
}
@Test
public void jogarHappyTest4() throws PosicaoInvalidaException {
when(this.fornecedorTest.getJogada().getTentativa().getPino(0)).thenReturn("vermelho");
when(this.fornecedorTest.getJogada().getTentativa().getPino(1)).thenReturn("verde");
when(this.fornecedorTest.getJogada().getTentativa().getPino(2)).thenReturn("rosa");
when(this.fornecedorTest.getJogada().getTentativa().getPino(3)).thenReturn("azul");
this.fornecedorTest.jogar();
Retorno retornoTest = this.fornecedorTest.getJogada().getRetorno();
assertEquals("preto", retornoTest.getPino(0));
assertEquals("preto", retornoTest.getPino(1));
assertEquals("branco", retornoTest.getPino(2));
assertEquals("nenhum", retornoTest.getPino(3));
}
}
| java |
{
"name": "loaders.gl",
"description": "Framework-independent loaders for visualization, 3D graphics and geospatial formats",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/visgl/loaders.gl"
},
"keywords": [
"webgl",
"loader",
"3d",
"point cloud",
"GLB",
"OBJ",
"PLY",
"LAZ",
"PCD",
"KML"
],
"workspaces": [
"examples/website/textures",
"modules/*"
],
"scripts": {
"bootstrap": "yarn install-fast && ocular-bootstrap",
"install-fast": "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn",
"start": "echo 'Please see loaders.gl website for how to run examples' && open https://loaders.gl/docs",
"build": "ocular-clean && lerna run pre-build && ocular-build --dist esm && lerna run post-build",
"build-workers": "lerna run pre-build",
"clean": "ocular-clean",
"cover": "ocular-test cover",
"lint": "tsc && ocular-lint",
"bump": "ocular-bump",
"publish": "ocular-publish",
"test": "ocular-test",
"metrics": "./scripts/metrics.sh && ocular-metrics",
"version": "yarn build",
"pre-commit": "yarn lint",
"pre-push": "yarn lint"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.14.5",
"@deck.gl/core": "^8.5.0",
"@luma.gl/core": "^8.5.4",
"@luma.gl/debug": "^8.5.4",
"@luma.gl/test-utils": "^8.5.4",
"@probe.gl/bench": "^3.4.0",
"@probe.gl/test-utils": "^3.4.0",
"@types/tape-promise": "^4.0.1",
"base64-inline-loader": "^1.1.1",
"base64-loader": "^1.0.0",
"coveralls": "^3.0.3",
"esbuild": "^0.13.4",
"ocular-dev-tools": "1.0.0-alpha.7",
"pre-commit": "^1.2.2",
"pre-push": "^0.1.1"
},
"pre-commit": "pre-commit",
"pre-push": "pre-push",
"dependencies": {},
"resolutions_notes": [
"Note: tape 4.12 and higher no longer compares 0 and -0 equally...",
"Note: newer prettier breaks on typescript import type"
],
"resolutions": {
"tape": "4.11.0",
"prettier": "2.3.1",
"typescript": "^4.3.5"
}
}
| json |
Researchers have developed a new algorithm that predicts when a user will leave a mobile game.
This information can become handy for the game studios so that they can design strategies to maintain the player's interest.
A team headed by Africa Perianez, Head of Game Data Science at the Tokyo-based video game company Silicon Studio, developed this mathematical model and presented the results at the International Conference on Data Science and Advanced Analytics in Montreal (Canada).
"Every time we run the model, we are actually using 1,000 distinct submodels -- each of which focuses on different variables and has different initial conditions," Perianez said.
Applied to videogames, the model (called a survival ensemble) can predict what day and at what stage of the game a user will stop playing, and why they will do so.
"Already from their first days playing the game, we know with a good degree of certainty what level a user will reach and how many days it will take them," Perianez added.
"The main and most pressing priority is to try to extend the player's 'life' and get them to buy as much as possible. Also important is to understand users' needs and design a more entertaining and stimulating game," she noted.
According to the researcher, the system can predict who will leave the game very accurately.
"Focusing on the players that spend the most money, known as 'whales', we have managed to reduce churn by five per cent using personalised push notifications. This alone has led to an increase of about 15 percent in sales," she added.
Perianez said that her team's goal was to become leaders in the international market and to democratise data science in the field of video games, an area where they are pioneers. Also read: Humans, Smartphones Often Fail to Detect Morph Photos(This story has not been edited by News18 staff and is published from a syndicated news agency feed - IANS) | english |
Listen to this article:
New Delhi: Former Congress leader Ghulam Nabi Azad on Sunday said his new party will be revealed in ten days, adding that the outfit will have an independent ideology and fight for the restoration of statehood to Jammu and Kashmir (J&K)
The former leader of the opposition in the Rajya Sabha said his new party will focus on the restoration of statehood to J&K, giving exclusive rights over jobs and land to its people and bringing development. However, Azad said that he “will not mislead the people over the issue of Article 370” as only a government with a two-thirds majority in parliament can ensure the restoration of the provision.
The provision, diluted by parliament in August 2019, gave special status to Jammu and Kashmir.
“Azad knows what can and cannot be done. I or the Congress party or three regional parties cannot give you back Article 370, neither can (TMC chief) Mamata Banerjee, or DMK or (NCP chief) Sharad Pawar,” Azad said in his maiden rally in Kashmir Valley after quitting the Congress last month.
The former Union minister said he will not raise issues over which he has no control.
“Some people have been saying that I don’t talk about Article 370. I want to tell them that Azad does not befool people for electoral gains,” the former Jammu and Kashmir chief minister said.
“I swear before God that I will not mislead you. I will not raise such slogans or issues over which I have no control,” he said.
Azad said only a party with a two-thirds majority in parliament can restore the special status of the erstwhile state which was revoked by the Centre in August 2019.
“Congress party hasn’t been able to achieve more than 85 Lok Sabha seats in the last ten years. Its strength is decreasing in the Rajya Sabha with every state loss… I don’t think the Congress can get over 350 seats in the Lok Sabha elections,” he said.
“Where can I get it from? Why mislead people? ” he asked.
The former J&K chief minister said he would not promise the moon and stars to the people but only those things that can be achieved.
Azad ended his five-decade-long association with the Congress last month.
He rejected Apni Party president Altaf Bukhari’s allegation that he had voted in favour of the dilution of Article 370 in parliament.
(With PTI inputs) | english |
<filename>spec.js
const chai = require('chai');
chai.use(require('chai-string'));
Object.assign(
global,
chai,
{
sleep: (ttl = 80) => new Promise(resolve => setTimeout(resolve, ttl)),
freeze: (ms = 0) => {
const start = Date.now();
while(Date.now() - start < ms) {} // eslint-disable-line no-empty
},
}
);
require('dont-look-up')('./packages');
process.on('unhandledRejection', error => { throw error; });
| javascript |
Eros International and ESM's `Dishkiyaoon' marks the directorial debut of Sanamjit Singh Talwar and the film is Shipa Shetty Kundra's maiden production.
After being seen last in `What's Your Rashee? ' and `Gori Tere Pyaar Mein' (cameo), Harman Baweja is back stronger and bolder. In `Dishkiyaoon', the actor surprises everyone in a powerful character as that of a gangster; looking dashing in rough and tough avatar.
Also written by Sanamjit Singh Talwar, `Dishkiyaoon' is produced by Shilpa Shetty Kundra and Sunil Lulla. Presented by Eros Now, the film also stars Sunny Deol, Suraj Pancholi and Ayesha Khanna in lead.
The film boasts of having debutant Palash Muchhal, the youngest music composer of Bollywood at age of 18, composing four songs.
Shot across several locations in Mumbai by German cinematographer Axel Fisher, the action entertainer aims to shed new light on the Mumbai underworld through the eyes of contemporary real characters.
`Dishkiyaoon' is scheduled to release on March 28 2014. | english |
import { CardCoverWrapper } from '../styles/components/CardCoverStyles'
//assests
import coverImg from '../assets/newbie.svg'
type CoverCardProps = {
children?: React.ReactChild
}
const CoverCard: React.FC<CoverCardProps> = ({children}) => {
return(
<CardCoverWrapper>
<section>
<h2>Who does not Wants to Be a Millionaire? </h2>
</section>
<section>
<img className='CoverImage' src={ coverImg } alt="avatar" />
</section>
<section className='ButtonWrapper'>
{ children }
</section>
</CardCoverWrapper>
)
}
export default CoverCard
| typescript |
package com.vip.vjtools.vjkit.number;
import java.math.BigDecimal;
import java.util.Optional;
/**
* 运算基础工具类
*/
public class NumberArithmeticUtils {
private NumberArithmeticUtils() {
}
/**
* BigDecimal的加法运算封装
* @param b1
* @param bn
* @return
*/
public static BigDecimal safeAdd(BigDecimal b1, BigDecimal... bn) {
if (null == b1) {
b1 = BigDecimal.ZERO;
}
if (null != bn) {
for (BigDecimal b : bn) {
b1 = b1.add(null == b ? BigDecimal.ZERO : b);
}
}
return b1;
}
/**
* Integer加法运算的封装
* @param b1 第一个数
* @param bn 需要加的加法数组
* @return
*/
public static Integer safeAdd(Integer b1, Integer... bn) {
if (null == b1) {
b1 = 0;
}
Integer r = b1;
if (null != bn) {
for (Integer b : bn) {
r += Optional.ofNullable(b).orElseGet(()->0);
}
}
return r > 0 ? r : 0;
}
/**
* BigDecimal的安全减法运算
* @param b1 被减数
* @param bn 需要减的减数数组
* @return
*/
public static BigDecimal safeSubtract(BigDecimal b1, BigDecimal... bn) {
if (null == b1) {
b1 = BigDecimal.ZERO;
}
BigDecimal r = b1;
if (null != bn) {
for (BigDecimal b : bn) {
r = r.subtract((null == b ? BigDecimal.ZERO : b));
}
}
return r;
}
/**
* 整型的减法运算,小于0时返回0
* @param b1
* @param bn
* @return
*/
public static Integer safeSubtract(Integer b1, Integer... bn) {
if (null == b1) {
b1 = 0;
}
Integer r = b1;
if (null != bn) {
for (Integer b : bn) {
r -= Optional.ofNullable(b).orElseGet(()-> 0);
}
}
return r > 0 ? r : 0;
}
/**
* BigDecimal的除法运算封装
* 默认返回小数位后2位,用于金额计算
* @param b1
* @param b2
* @return
*/
public static BigDecimal safeDivide(BigDecimal b1, BigDecimal b2) {
if (BigDecimal.ZERO.compareTo(b2)==0) {
throw new IllegalArgumentException("divided by 0");
}
return b1.divide(b2, 2, BigDecimal.ROUND_HALF_UP);
}
/**
* 百分比
* @param b1
* @param b2
* @return
*/
public static BigDecimal safeDividePercentage(BigDecimal b1, BigDecimal b2) {
if (BigDecimal.ZERO.compareTo(b2)==0) {
throw new IllegalArgumentException("divided by 0");
}
b1 = b1.multiply(BigDecimal.valueOf(100));
return b1.divide(b2, 2, BigDecimal.ROUND_HALF_UP);
}
/**
* BigDecimal的乘法运算封装
* @param b1
* @param b2
* @return
*/
public static BigDecimal safeMultiply(BigDecimal b1, BigDecimal b2) {
if (null == b1 || null == b2) {
return BigDecimal.ZERO;
}
return b1.multiply(b2).setScale(2, BigDecimal.ROUND_HALF_UP);
}
} | java |
<reponame>yousry943/smartdeal5.6
/*
__Conect Me___________________________________
| |
|--- UX / Ui Devlope By : <NAME> |
|--- Mobile : +201113478716 |
|--- Email : <EMAIL> |
|_____________________________________________|
*/
// ----------Get Dom
const QSA = (tag, name, value) =>{
let Div = document.querySelectorAll(tag + `[${name} = '${value}']`);
return Div;
}
// ---------Create Dom
const CD = (tag) =>{
let DOM = document.createElement(tag);
return DOM;
}
// ---------Theme Style
const CS = (em,css = []) =>{
em.setAttribute("style", css.join("; "));
}
// const fT = (tag, hol = 0) =>{
// let GH = tag;
// for(let DT = 0; DT < GH.length; DT++){
// if(GH[DT] != undefined){
// hol
// }
// }
// }
// ------------------Section Main For Login & SignUp
const bgPage = () =>{
let WD = window.innerHeight,
BG = QSA("section", "bgpage", "bg-app"),
BG2 = QSA("div", "bgpage", "reviews-a");
for(let RG = 0; RG < BG.length; RG++){
CS(BG[RG],[
`min-height:${WD}px`,
]);
}
for(let CG = 0; CG < BG2.length; CG++){
CS(BG2[CG],[
`min-height:${WD}px`,
]);
}
}
// -------------ParaGraph For Login & SignUp
const loginAuthor = () =>{
let GH = QSA("div", "author", "loginA")[0];
if(GH != undefined){
let PH = QSA("p", "author", "p")[0];
let DH = GH.querySelectorAll(".line-gr");
for(let TG = 0; TG < DH.length; TG++){
CS(PH,[
`min-height:${DH[TG].clientHeight}px`,
"line-height : 1.4em",
]);
}
}
}
//------------------Link Reviews Header
const aLink = () =>{
let RN = QSA("header", "sm-header", "header"),
RV = QSA("a", "a-link", "reviewer"), VN = QSA("nav", "a-link", "nav");
if(RN[0].clientWidth < 992){
console.log(VN[0]);
let GF = document.createElement("a");
GF.setAttribute("class", "rev-header btn btn-secondary mr-auto");
for(let DT = 0; DT < RV.length; DT++){
if(RV[DT] != undefined){
GF.innerHTML = RV[DT].innerHTML;
GF.setAttribute("href", RV[DT].getAttribute("href"));
VN[0].insertBefore(GF, VN[0].firstElementChild)
RV[DT].remove();
}
}
}
}
// -----Menu icon
const menuBtn = document.querySelectorAll(".menu-btn");
const Menuicon = () =>{
for(let D = 0; D < menuBtn.length; D++){
if(menuBtn[D] != undefined){
menuBtn[D].addEventListener("click", () => {
menuBtn[D].classList.toggle("is--active");
menuBtn[D].classList.add("is--clicked");
setTimeout(() =>{
menuBtn[D].classList.remove("is--clicked");
}, 300);
});
}
}
}
// ---------Header Postion
const ScrollBody = () => {
let f = document.querySelectorAll("html"),
em = QSA("div", "sm-brand", "brand"),
w = QSA("nav", "a-link", "nav");
for(let u = 0; u < em.length; u++){
if(f[0].scrollTop > em[u].clientHeight){
console.log(em[0].clientHeight);
w[0].setAttribute("n-style", "nav");
em[u].setAttribute("style", `margin-bottom:${w[0].clientHeight}px`)
}else{
w[0].removeAttribute("n-style");
em[u].setAttribute("style", `margin-bottom:${0}px`)
}
}
}
window.addEventListener("scroll", () => {
ScrollBody();
});
//-------------------Tables
const gTable = () =>{
let MT = QSA("div", "main", "tables");
for(let R = 0; R < MT.length; R++){
if(MT[R] != undefined){
let
TB = QSA("table", "Dtable", "datatable")[R],
BD = TB.querySelectorAll("tbody")[R];
if(TB.clientWidth < BD.clientWidth){
let
main = CD("div");
main.setAttribute("class", "scroll-table");
main.setAttribute("main-t", "m-table");
MT[R].appendChild(main);
let mTable = QSA("div", "main-t", "m-table");
for(let DV = 0; DV < 3; DV++){
let go = {
DV : CD("div"),
}, iC = {
DV : CD("i"),
},
BX = [
"fas fa-chevron-circle-left",
"fas fa-cog fa-spin",
"fas fa-chevron-circle-right"
];
go.DV.setAttribute("n-tables", `tb-${DV}`);
go.DV.setAttribute("class", "sc-table");
mTable[R].appendChild(go.DV);
iC.DV.setAttribute("class", BX[DV]);
let CT = QSA("div", "class", `sc-table`);
CT[DV].appendChild(iC.DV);
console.log(CT[DV]);
}
MT[R].setAttribute("style", `padding-bottom:${mTable[R].clientHeight}px !important`)
}
}
}
}
const GT = () =>{
let t = document.getElementById("editor");
if(t != undefined){
let quill = new Quill('#editor', {
theme: 'snow',
modules: {
toolbar: [
[{ header: [1, 2, false] }],
['bold', 'italic', 'underline'],
['image', 'code-block']
]
},
placeholder: 'Compose an epic...',
});
}
}
const me = () =>{
let body = document.querySelectorAll("html");
let head = document.querySelectorAll("head");
let code = document.createComment(" |--- UX / Ui Develope By : <NAME>");
let mob = document.createComment(" |--- Mobile : +201113478716 ");
let em = document.createComment(" |--- Email : <EMAIL> ");
let am = [];
head[0].appendChild(code);
head[0].appendChild(mob);
head[0].appendChild(em);
}
// -----------Run All Function
window.onload = () => {
bgPage();
loginAuthor()
me();
aLink();
Menuicon();
// gTable();
GT();
ScrollBody();
// QSA("div", "page", "loadingPage")[0].remove();
}
| typescript |
package sockerball
import "time"
// chanContext allows a simple done channel to masquerade as a context.Context
type chanContext struct {
done chan struct{}
}
func (csc *chanContext) Deadline() (deadline time.Time, ok bool) {
return
}
func (csc *chanContext) Done() <-chan struct{} {
return csc.done
}
func (csc *chanContext) Err() error {
// FIXME: maybe should return an error when done is closed:
return nil
}
func (csc *chanContext) Value(key interface{}) interface{} {
return nil
}
| go |
The Indian Air Force airlifted the second tranche of the $1 million aid to flood hit Sri Lanka this morning. An Indian Air Force IL-76 carried 21 tonnes of sugar, pulses and milk powder besides around 20,000 ready to eat meals, 20,000 water purifier tablets and one thousand mattresses from New Delhi to Colombo.
This relief aid will be distributed to the displaced and affected people in Central, Eastern and Northern Sri Lanka. An IL-76 delivered the first consignment of aid material on January 14, 2011.
The Government of India has expressed its solidarity with the Government of Sri Lanka at this difficult moment and stands ready to assist the Government and the people of Sri Lanka to deal with this humanitarian challenge.
| english |
<reponame>miguelpragier/handy
package handy
import (
"testing"
)
func TestCheckStr(t *testing.T) {
testlist := []struct {
summary string
input string
minLen uint
maxLen uint
flags uint64
expectedOutput int8
}{
{"perfect string", "ЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏ АБВГДЕЖЗИЙКЛМНОП РСТУФХЦЧШЩЪЫ ЬЭЮЯ абвгдежзийкл мнопрстуфхцчшщ ъыьэюяѐёђѓєѕіїј љњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѬѭѮѯ", 0, 118, 0, CheckStrOk},
{"allowed empty string", "", 0, 1000, CheckStrAllowEmpty, CheckStrOk},
{"fails on empty string", "", 0, 100, 0, CheckStrEmptyDenied},
{"fails on min length", "four", 5, 100, 0, CheckStrTooShort},
{"fails on max length", "four", 4, 3, 0, CheckStrTooLong},
{"denies space", "two words", 0, 100, CheckStrDenySpaces, CheckStrSpaceDenied},
{"denies tab", "two words", 0, 100, CheckStrDenySpaces, CheckStrSpaceDenied},
{`denies \n`, "row\nrow", 0, 100, CheckStrDenySpaces, CheckStrSpaceDenied},
{`denies \r`, "row\rrow", 0, 100, CheckStrDenySpaces, CheckStrSpaceDenied},
{"denies numbers", "this is a number: 9", 0, 100, CheckStrDenyNumbers, CheckStrNubersDenied},
{"denies numbers UNICODE", " 九 に 三 Ⅷ'", 0, 100, CheckStrDenyNumbers, CheckStrNubersDenied},
{"denies letters", "o123456789", 0, 100, CheckStrDenyLetters, CheckStrLettersDenied},
{"denies symbols", "a symbol %", 0, 100, CheckStrDenySymbols, CheckStrSymbolsDenied},
{"denies more than one word", "two words", 0, 100, CheckStrDenyMoreThanOneWord, CheckStrMoreThanOneWordDenied},
{"denies words separated by new line", "one\ntwo", 0, 100, CheckStrDenyMoreThanOneWord, CheckStrMoreThanOneWordDenied},
{"denies uppercase", "upper Case", 0, 100, CheckStrDenyUpperCase, CheckStrUpperCaseDenied},
{"denies lowercase", "LOWER cASE", 0, 100, CheckStrDenyLowercase, CheckStrLowercaseDenied},
{"denies unicode", "TAB ÇÂÖÉд", 0, 100, CheckStrDenyUnicode, CheckStrUnicodeDenied},
{"missed numbers", "NO NUMBERS", 0, 100, CheckStrRequireNumbers, CheckStrNumbersNotFound},
{"missed letters", " 87 %323232 ", 0, 100, CheckStrRequireLetters, CheckStrLettersNotFound},
{"missed symbols", "NO SYMBOLS 123", 0, 100, CheckStrRequireSymbols, CheckStrSymbolsNotFound},
{"missed more than one word", "FHFJKDHFSDJKH012308312-0=-0=-00", 0, 100, CheckStrRequireMoreThanOneWord, CheckStrMoreThanOneWordNotFound},
{"missed uppercase", "all lowercase 456", 0, 100, CheckStrRequireUpperCase, CheckStrUpperCaseNotFound},
{"missed lowercase", "ALL UPPERCASE 789", 0, 100, CheckStrRequireLowercase, CheckStrLowercaseNotFound},
}
for _, tst := range testlist {
t.Run(tst.summary, func(t *testing.T) {
tr := CheckStr(tst.input, tst.minLen, tst.maxLen, tst.flags)
if tr != tst.expectedOutput {
t.Errorf("Failed with input %s, want %d and got %d instead", tst.input, tst.expectedOutput, tr)
}
})
}
}
func TestStrContainsEmail(t *testing.T) {
testList := []defaultTestStruct{
{"empty string", "", false},
{"no valid email", "email-gmail.com", false},
{"the string is an email address", "<EMAIL>", true},
{"valid email within", "dasdsdsdsda-*9email@gmail.comdsdsds.88", true},
}
for _, tst := range testList {
t.Run(tst.summary, func(t *testing.T) {
if StrContainsEmail(tst.input.(string)) != tst.expectedOutput {
t.Errorf("Test has failed!\n\tEmail: %s, \n\tExpected: %v", tst.input, tst.expectedOutput)
}
})
}
}
| go |
wider reach of the benefits to the target groups.
appropriate opportunities to every citizen to realize his/her potential.
Sub-Group are as under:
a) No.
of Schemes: The total number of schemes should not exceed 30.
of Schemes: Existing CSSs should be divided into Core and Optional Schemes.
States will work together in the spirit of Team India.
schemes would be allocated to States by the Ministry of Finance as a lump sum.
Sponsored Schemes (CSSs)
(Krishi Unnati Schemes and Rashtriya KrishiVikas Yojana)
(Animal Husbandry and Dairying)
(Integrated Development of Fisheries)
Sadak Yojana (PMGSY)
Yojana (PMAY)
Mission (NHM)
Suraksha Yojana (erstwhile RSBY)
Mission (NEM)
centre, women helpline, hostels, swadhar greh, gender budgeting etc.)
Mission (NLM)
and Wildlife (EFWL)
Mission (AMRUT and Smart Cities Mission)
Police Forces (including Security Related Expenditure)
be as follows:
Funding pattern of the Core of the Core Schemes would continue.
(b) For other States: Centre:
(c) For Union Territories (without Legislature):
Optional Schemes:
b) For other States: Centre: State:
c) For Union Territories: (i)
Flexi-funds to the States/UTs:
Vikaas Yojana (RKVY).
the implementation can be better attuned to the needs of individual State /UT.
| english |
<filename>pesp-was8.5-ext-srcs/services/src/main/java/gov/medicaid/entities/MedicaidCertifiedProviderSearchCriteria.java
/*
* Copyright (C) 2012 TopCoder Inc., All Rights Reserved.
*/
package gov.medicaid.entities;
/**
* This serves as search criteria for Medicaid Certified Providers.
*
* <b>Thread Safety</b> This class is mutable and not thread safe.
*
* @author argolite, j3_guile
* @version 1.0
*/
public class MedicaidCertifiedProviderSearchCriteria extends SearchCriteria {
/**
* The type.
*/
private String type;
/**
* The criteria.
*/
private String criteria;
/**
* The value.
*/
private String value;
/**
* Default empty constructor.
*/
public MedicaidCertifiedProviderSearchCriteria() {
}
/**
* Gets the value of the field <code>type</code>.
*
* @return the type
*/
public String getType() {
return type;
}
/**
* Sets the value of the field <code>type</code>.
*
* @param type the type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* Gets the value of the field <code>criteria</code>.
*
* @return the criteria
*/
public String getCriteria() {
return criteria;
}
/**
* Sets the value of the field <code>criteria</code>.
*
* @param criteria the criteria to set
*/
public void setCriteria(String criteria) {
this.criteria = criteria;
}
/**
* Gets the value of the field <code>value</code>.
*
* @return the value
*/
public String getValue() {
return value;
}
/**
* Sets the value of the field <code>value</code>.
*
* @param value the value to set
*/
public void setValue(String value) {
this.value = value;
}
}
| java |
made his Test debut when surprisingly called up in 1981 but played almost all of his matches for Australia in the late 1980s and early '90s, and overall could be considered unlucky not to have played more than 12 Tests over his long career. His greatest success at international level came in 1991-92, when he claimed his Test-best (4 for 68 and 7 for 27) in the fifth Test against India. That summer he was also Australia's highest wicket-taker and most economical bowler in the World Cup. Whitney became a much-celebrated No. 11 batsman in the 1987 Boxing Day Test, surviving 18 deliveries and defying Richard Hadlee to help secure a draw against New Zealand. He has enjoyed a successful media career since retiring from cricket.
|Perth (Lilac Hill)
| english |
Earlier this week, mobile game super-publisher Chillingo released Anomaly 2 for Macs, PCs and iOS. The game's creators are promising players "the next generation of tower offense."
It does the absolute best that it can to innovate. There are new vehicles, new abilities, new enemies. Now players can morph their units by double-tapping them, changing their form to better deal with various terrain and enemy types. The art is brilliant. The interface design is excellent.
It's so incredibly boring.
It's generally agreed upon that Atari's 1990 arcade game Rampart was the first tower defense game, but the genre didn't really catch on until about 2007, when Flash Element Tower Defense, Desktop Tower Defense and Bloons Tower Defense began dominating popular Flash game sites.
Bloons and its sequels were the first to catch my attention. My high school classmates and I clogged our computer lab, wasting hours watching "super monkeys" hurl thousands of darts at inexplicably sentient balloons. Kids would gather around monitors, offering advice about optimal tower placement and staring blankly as the game played itself.
We couldn't pull ourselves away. We eventually tired of Bloons and its ilk, but when later tower defense games added a fast-forward feature to speed up the action, the computer labs clogged up again with students relapsing into their addiction.
In the years since Bloons hooked me, I've played scores of games that evolve or riff on the tower defense genre, many of them in interesting, smart and totally worthwhile ways: Lock's Quest for the Nintendo DS did brilliant things by adding in elements from other genres, the Xbox Live Arcade game South Park Tower Defense is one of the most fun and intense cooperative strategy games for four players ever made, and who doesn't love Plants vs. Zombies?
When Anomaly: Warzone Earth was released in 2011, it blew everyone away. The concept was fresh, the touch controls were brilliant, and the game was fun. Apple gave the Mac version of the game its 2011 design award. The twist was that instead of playing defensively, you were the aggressor, strategically guiding and assisting a small convoy of units as they snaked through a maze, taking out entrenched enemy turrets. Reviewers everywhere gleefully latched onto the phrase "tower offense" to describe the game.
Now Anomaly 2 is here, and for all its forward-thinking additions to the genre, it is still primarily a game about watching slowly moving objects creep steadily down a track.
The game's developers included the fast-forward button from those beloved older tower defense games to help deal with some of the sluggishness, but it doesn't work here. This is a game that demands quick bursts of lightning fast decision-making and response time, and leaving the fast-forward button on is a sure way to flub a level – many of which take as long as 10 minutes to complete.
Don't get me wrong: Plenty of other game genres have also been done to death. But tower defense games have been so overdone that when a new one comes out, anything short of revolutionary design innovation causes it to fall flat.
If I were still a high school student who'd never encountered a tower defense game – if the last six years hadn't happened – I'd think Anomaly 2 was brilliant. I'd be hooked.
As I played Anomaly 2, I wondered if it's possible that anyone like that still exists. Is there anyone in the market for this game that hasn't yet seen a hundred other apps like it and gotten bored? Then I glanced at the top-10 sales charts on iTunes and spotted this. Some things never change.
| english |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = sortByKeyOrder;
function findIndex(arr, err) {
let idx = Infinity;
arr.some((key, ii) => {
var _err$path;
if (((_err$path = err.path) == null ? void 0 : _err$path.indexOf(key)) !== -1) {
idx = ii;
return true;
}
});
return idx;
}
function sortByKeyOrder(keys) {
return (a, b) => {
return findIndex(keys, a) - findIndex(keys, b);
};
} | javascript |
{"riot.js":"sha256-/KKLrDG76wFerTeQSa6FEiQ0ruplRrDBn9k+dHFbCDo=","riot.min.js":"sha256-Pp5/h3LgGnoFJySEpJW+jI1fO0SNSg69dJHX0JfSmG4=","riot+compiler.js":"sha256-+mqdi3hFUUpGITLBIZNzizecONOTvem76GqfIExrxgI=","riot+compiler.min.js":"sha256-smnfoIQUurN7rk+CnJ067Kly4BROW+Bk636ADNwZEQ0="} | json |
export function initFilterInlineStyle(filter) {
filter.classList.remove('form-inline')
filter.classList.add('form')
filter.classList.add('row')
filter.querySelectorAll('.form-group').forEach(fg => {
const times = Math.max(fg.getElementsByClassName('form-control').length, 1)
fg.classList.add('col-sm-' + (4 * times))
fg.classList.add('col-md-' + (3 * times))
fg.classList.add('col-lg-' + (2 * times))
})
}
| javascript |
Leukorrhea, or vaginal discharge, is common among women. It is a thin or thick discharge of fluid, white, clear or another color in nature that is sometimes odorless or has an odor. It happens between your menstrual cycles or during pregnancy. It can last from a couple of days to a couple of weeks.
There are different types of vaginal discharges and also difference causes. It can sometimes be caused by hormonal changes in your body, specifically an increase in estrogen.
Another thing that can cause it is a vaginal infection or an STD. A symptom of the STD is a foul odor and it will be yellow or green in color. That is also a bad vaginal discharge sign.
Other things that contribute to leukorrhea are tampons left in too long, anemia, and diabetes. Also if you get an injury you can get one too.
Apple cider vinegar will restore your natural pH balance. It will also reduce odor and protect your flora (the natural bacteria found in your vagina. ). You can either take it as a drink or use as a vaginal wash. To use it as a drink, mix two tablespoons of apple cider vinegar with a cup of water. If you do not like the taste, you can also add honey and/or lemon juice.
To use the apple cider vinegar in a bath, add two cups of the liquid to a warm bath. Soak in this bath for 20-30 minutes. Do this every day until you see a difference in your vaginal discharge.
Fenugreek seeds are also used to help vaginal discharge. It too will help restore your natural pH balance and restore your levels of estrogen. The seeds boost your immune system. All you need to do is drink fenugreek tea each day to see results.
# Indian Gooseberry (Amla)
Indian gooseberry is good for the health of your vagina. It also has vitamin C to boost your immunity. You can eat or drink it daily to see results.
Bananas are good for stomach problems as well as helping rid you of vaginal discharge as it maintains the health of your vagina. Eat a banana or two a day to restore your vaginal discharge back to normal.
The fig acts as a laxative or bowel movement medicine which helps relieve the body and remove toxins or bacteria. You can either drink it or use it as a vaginal wash. To use it as a vaginal wash, you can cut the fruit open and rub it on your vagina. It is best to do this while in the shower so you do not make a mess.
You remember how your mother tells you to drink cranberry juice because it will ward off yeast infections and urinary tract infections? It actually does remove the wrong bacteria from your vagina allowing it to not attach to your wall. You can drink cranberry juice daily to see results.
Okra is both a fruit and a vegetable. The good thing about okra is that it helps to reduce your vaginal discharge. You can drink it or eat it to see results.
Indian lilac is also known as neem or margosa. It is used for treating the itching, and other discomforts that appear during your vaginal discharge. Use as a vaginal wash for best results. To use this as a vaginal wash, boil some need leaves in water until the water changes color. Allow the water to cool before rinsing your vaginal area with. | english |
<reponame>Castlebin/cpms-cloud
package com.cpms.lowcode.modules.dynamic.dto;
import lombok.Builder;
import lombok.Data;
import java.util.List;
/**
* @author gulang
* @Description:
* @time: 2022/2/18 14:52
*/
@Data
@Builder
public class QueryTableFieldDTO {
private List<String> tableNames;
private String dbName;
private Long dbId;
}
| java |
<gh_stars>0
{
"parent": "dynamictrees:block/smartmodel/sapling",
"textures": {
"particle": "atmospheric:block/yucca_leaves",
"log": "atmospheric:block/yucca_log",
"leaves": "atmospheric:block/yucca_leaves"
}
} | json |
<reponame>nikolajlauridsen/PrawWallpaperDownloader
import configparser
import os
import qprompt
class Configurator:
def __init__(self):
self.config = configparser.ConfigParser()
if not os.path.isfile('config.ini'):
self.create_default_config()
else:
self.config.read('config.ini')
self.type_map = {int: ["minwidth", "minheight", "limit", "threads",
"maxage"],
float: ["ratiolock"],
str: ["sub", "section"],
bool: ["clean", "sort", "albums"]
}
def create_default_config(self):
"""Create a default config file in the current working directory"""
self.config['DEFAULT'] = {'MinWidth' : '1280',
'MinHeight' : '720',
'Sub' : 'wallpapers',
'Limit' : '25',
'Clean' : 'yes',
'Sort' : 'yes',
'MaxAge' : '0',
'Albums' : 'yes',
'Threads' : '10',
'Section' : 'hot',
'RatioLock' : '0.95'}
self.config['user'] = {}
self.save_config()
def get_config(self):
"""Return user instance of the config, items in default and not in user
will be carried into the user config object"""
return self.config['user']
@staticmethod
def clear_screen():
"""Clears the commandline window"""
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
def create_menu(self):
"""
Creates a qprompt menu and adds all items from config
:return: qprompt menu
"""
menu = qprompt.Menu()
for i, item in enumerate(self.config['user']):
menu.add(str(i+1), item)
menu.add("0", "Exit")
menu.add("-1", "List settings")
menu.add("-2", "Reset config")
return menu
def update_value(self, value):
"""
Prompt the user to input a new value, then save the updated config
and return to menu.
Determines how to prompt the user by finding the value name passed as
argument in one of the lists in the type map.
:param value: value name to be updated e.g. minwidth
"""
desc_str = "Enter new {} (currently {})".format(value, self.config['user'][value])
if value in self.type_map[int]:
self.config['user'][value] = str(qprompt.ask_int(desc_str))
elif value in self.type_map[float]:
self.config['user'][value] = str(qprompt.ask_float(desc_str))
elif value in self.type_map[str]:
self.config['user'][value] = qprompt.ask_str(desc_str)
elif value in self.type_map[bool]:
desc_str += " y/n"
if qprompt.ask_yesno(desc_str):
self.config['user'][value] = "yes"
else:
self.config['user'][value] = "no"
self.save_config()
self.clear_screen()
print('Config saved...')
def list_settings(self):
# Find the length of the longest key name
pad = 0
for key in self.config['user'].keys():
if len(key) > pad:
pad = len(key)
pad += 1 # Add one to the padding, a little air is pretty
# Clear screen and print all the settings as a pretty list.
self.clear_screen()
print('Current settings: ')
for key in self.config['user']:
print('{:{align}}: {}'.format(key, self.config['user'][key], align=pad))
# Pause for the user to be able to read the settings.
input('\nPress enter to return to menu.')
def menu(self):
"""Run the configurator menu allowing user to edit config"""
menu = self.create_menu()
selection = menu.show(returns="desc")
if selection == "Reset config":
answer = qprompt.ask_yesno("Are you sure you want to reset your config? y/n")
if answer:
self.create_default_config()
print("Config reset.")
else:
print('Reset canceled')
elif selection == "List settings":
self.list_settings()
self.clear_screen()
self.menu()
elif selection == "Exit":
pass
else:
self.update_value(selection)
self.menu()
def save_config(self):
with open('config.ini', 'w') as configfile:
self.config.write(configfile)
| python |
#include <sway/ois/keyboard.h>
#include <sway/ois/inputmanager.h>
#include <sway/ois/keymappinglist.h>
#include <iostream>
NAMESPACE_BEGIN(sway)
NAMESPACE_BEGIN(ois)
Keyboard::Keyboard(InputManager * manager) : core::foundation::Object(manager) {
_initialize();
}
Keyboard::~Keyboard() {
XUngrabKeyboard(_manager->getDisplay(), CurrentTime);
_manager->setKeyboardUsed(false);
}
void Keyboard::_initialize() {
_manager = static_cast<InputManager *>(getContext());
_manager->setKeyboardUsed(true);
int err = XGrabKeyboard(_manager->getDisplay(), _manager->getWindowHandle(), True, GrabModeAsync, GrabModeAsync, CurrentTime);
if (err != GrabSuccess) {
// TODO
}
}
void Keyboard::setListener(KeyboardListener * listener) {
_onKeyPressed = boost::bind(&KeyboardListener::onKeyPressed, listener, _1);
_onKeyReleased = boost::bind(&KeyboardListener::onKeyReleased, listener, _1);
}
void Keyboard::notifyKeyPressed(const XEvent & event) {
KeySym key = NoSymbol;
XLookupString((XKeyEvent *)&event.xkey, 0, 0, &key, 0);
for (const KeyMapping & mapping : XtoKeycode) {
if (mapping.keysym == key) {
KeyboardEventArgs args;
args.keycode = mapping.keycode;
if (_onKeyPressed)
_onKeyPressed(args);
}
}
}
void Keyboard::notifyKeyReleased(const XEvent & event) {
KeySym key = NoSymbol;
XLookupString((XKeyEvent *)&event.xkey, 0, 0, &key, 0);
for (const KeyMapping & mapping : XtoKeycode) {
if (mapping.keysym == key) {
KeyboardEventArgs args;
args.keycode = mapping.keycode;
if (_onKeyReleased)
_onKeyReleased(args);
}
}
}
NAMESPACE_END(ois)
NAMESPACE_END(sway)
| cpp |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFunction = void 0;
const isFunction = (a) => typeof a === "function";
exports.isFunction = isFunction;
//# sourceMappingURL=isFunction.js.map | javascript |
{
"author": "Ayfri",
"dependencies": {
"@pixi/app": "^5.3.6",
"@pixi/filter-outline": "^3.2.0",
"@pixi/loaders": "^5.3.6",
"@pixi/sprite": "^5.3.6",
"@pixi/text": "^5.3.6",
"@pixi/unsafe-eval": "^5.3.6"
},
"description": "This is a 2d-minecraft like game (more like Terraria).",
"devDependencies": {
"@types/pixi.js": "^5.0.0",
"esbuild": "^0.12.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"gulp-esbuild": "^0.8.0",
"prettier": "^2.2.1",
"reload": "^3.1.1",
"typescript": "^4.1.4"
},
"license": "ISC",
"main": "src/main.ts",
"name": "minecraft-2d",
"prettier": {
"arrowParens": "always",
"endOfLine": "lf",
"printWidth": 200,
"quoteProps": "consistent",
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": true
},
"repository": "https://github.com/Ayfri/2d-minecraft",
"scripts": {
"bundle": "npm run prettier && gulp bundle",
"prettier": "prettier **.json **.ts **.md gulpfile.js --write",
"start": "npm run bundle && gulp watch"
},
"version": "0.1.0"
}
| json |
import json
import numpy as np
from fairseq.criterions.data_utils.task_def import TaskType, DataFormat
def load_data(file_path, data_format, task_type, label_dict=None):
"""
:param file_path:
:param data_format:
:param task_type:
:param label_dict: map string label to numbers.
only valid for Classification task or ranking task.
For ranking task, better label should have large number
:return:
"""
if task_type == TaskType.Ranking:
assert data_format == DataFormat.PremiseAndMultiHypothesis
rows = []
for line in open(file_path, encoding="utf-8"):
fields = line.strip("\n").split("\t")
if data_format == DataFormat.PremiseOnly:
assert len(fields) == 3
row = {"uid": fields[0], "label": fields[1], "premise": fields[2]}
elif data_format == DataFormat.PremiseAndOneHypothesis:
assert len(fields) == 4
row = {"uid": fields[0], "label": fields[1], "premise": fields[2], "hypothesis": fields[3]}
elif data_format == DataFormat.PremiseAndMultiHypothesis:
assert len(fields) > 5
row = {"uid": fields[0], "ruid": fields[1].split(","), "label": fields[2], "premise": fields[3],
"hypothesis": fields[4:]}
else:
raise ValueError(data_format)
if task_type == TaskType.Classification:
if label_dict is not None:
row["label"] = label_dict[row["label"]]
else:
row["label"] = int(row["label"])
elif task_type == TaskType.Regression:
row["label"] = float(row["label"])
elif task_type == TaskType.Ranking:
labels = row["label"].split(",")
if label_dict is not None:
labels = [label_dict[label] for label in labels]
else:
labels = [float(label) for label in labels]
row["label"] = int(np.argmax(labels))
row["olabel"] = labels
rows.append(row)
return rows
def load_score_file(score_path, n_class):
sample_id_2_pred_score_seg_dic = {}
score_obj = json.loads(open(score_path, encoding="utf-8").read())
assert (len(score_obj["scores"]) % len(score_obj["uids"]) == 0) and \
(len(score_obj["scores"]) / len(score_obj["uids"]) == n_class), \
"scores column size should equal to sample count or multiple of sample count (for classification problem)"
scores = score_obj["scores"]
score_segs = [scores[i * n_class: (i+1) * n_class] for i in range(len(score_obj["uids"]))]
for sample_id, pred, score_seg in zip(score_obj["uids"], score_obj["predictions"], score_segs):
sample_id_2_pred_score_seg_dic[sample_id] = (pred, score_seg)
return sample_id_2_pred_score_seg_dic | python |
<reponame>rxngui/matarazzoProject<filename>frontend/src/context/DadosContext.js
import React, { createContext, useState } from 'react'
import api from '../services/api'
export const DadosContext = createContext();
export default function DadosProvider({ children }) {
const [categorias, setCategoria] = useState([]);
const [cursos, setCurso] = useState([]);
const [eventos, setEvento] = useState([]);
const [noticias, setNoticia] = useState([]);
const [usuarios, setUsuario] = useState([]);
const [salas, setSala] = useState([]);
const [sessoes, setSessao] = useState([]);
const [cursosAtivos, setCurAtivo] = useState([]);
const [eventosAtivos, setEveAtivo] = useState([]);
const [cat, setCat] = useState('');
const [eveIdCtx, setEveIdCtx] = useState('');
const [eveNomeCtx, setEveNomeCtx] = useState('');
const [notIdCtx, setNotIdCtx] = useState('');
const [venIdCtx, setVenIdCtx] = useState('');
const [sesIdCtx, setSesIdCtx] = useState('');
const [salaIdCtx, setSalaIdCtx] = useState('');
{/*
variavel\qtde
eve_id - 1x
eve_nome - 1x
not_id - 1x
ven_id -1x
ses_id - 1x
sala_id - 1x
*/}
const getCategoria = async id => {
let resposta = await api.get('/categorias/id/' + id);
let dataCat = JSON.parse(JSON.stringify(resposta.data[0]));
setCat(dataCat.cat_nome);
}
const carregarCategorias = async tipoCat => {
const response = await api.get('/categorias/tipo/' + tipoCat);
setCategoria(response.data);
}
async function carregarSessoes() {
const response = await api.get('/sessoes');
console.log(response);
setSessao(response.data);
}
async function carregarSalas() {
const response = await api.get('/salas');
setSala(response.data);
}
async function carregarCursosAtivos() {
const response = await api.get('/cursosAtivos');
console.log(response);
setCurAtivo(response.data);
}
async function carregarEventosAtivos() {
const response = await api.get('/eventosAtivos');
console.log(response);
setEveAtivo(response.data);
}
async function carregarCursos() {
const response = await api.get('/cursos');
setCurso(response.data);
}
async function carregarEventos() {
const response = await api.get('/eventos');
setEvento(response.data);
}
async function carregarNoticias() {
const response = await api.get('/noticias');
setNoticia(response.data);
}
async function carregarUsuarios() {
const response = await api.get('/usuarios');
setUsuario(response.data);
}
return (
<DadosContext.Provider
value={{
categorias, cursos, cursosAtivos, eventos, eventosAtivos,
noticias, usuarios, salas, sessoes,
carregarCategorias, carregarCursos, carregarEventos,
carregarNoticias, carregarUsuarios,
carregarCursosAtivos, carregarEventosAtivos,
carregarSalas, carregarSessoes,
getCategoria, cat, setCat
}}>
{children}
</DadosContext.Provider>
);
} | javascript |
The structure of a sentence can be seen as a spanning tree in a linguistically augmented graph of syntactic nodes. This paper presents an approach for unlabeled dependency parsing based on this view. The first step involves marking the chunks and the chunk heads of a given sentence and then identifying the intra-chunk dependency relations. The second step involves learning to identify the inter-chunk dependency relations. For this, we use an initialization technique based on a measure we call Normalized Conditional Mutual Information (NCMI), in addition to a few linguistic constraints. We present the results for Hindi. We have achieved a precision of 80.83% for sentences of size less than 10 words and 66.71% overall. This is significantly better than the baseline in which random initialization is used.
| english |
The University Grants Commission (UGC) has recently announced that it will do away with the mandatory PhD qualification to teach in Central Universities (CUs) spread across the country. It purportedly addresses a shortage of qualified faculty in CUs. According to the Ministry of Education data, there were 10,000 teaching positions lying vacant in CUs as of December 2021.
Industry experts and professional practitioners from different fields with domain expertise will be brought in to address the shortage by creating special positions of Professor and Associate Professor of Practice. Recently, UGC Chairman Mamidala Jagadesh Kumar stated that the New Education Policy (NEP) “emphasises better collaboration with industries. The experts need to have demonstrated experience in a given domain. ” On the face of it, this appears well-intentioned. However, it also raises an important question. What is the main problem that the UGC is trying to solve? Is it carte blanche to do away with PhDs to meet the shortfall? Are we going to treat PhDs and other professors as equals? If so, it should not be. It is a treacherous path laden with umpteen challenges.
What value do good PhDs bring to teaching? Besides imparting cutting-edge knowledge with a sound conceptual base that is relevant for a long time, they train and equip students with skills to face real-life challenges. PhD teachers are trained to answer “how” and “why” questions. Fundamentally they are researchers. Besides transferring existing knowledge to students, they are supposed to create new knowledge through long and deep investigations of relevant issues using academic rigour. They come out with concepts and theories tested and retested by others.
Such fundamental understanding is applicable across industries and over time, and forms the foundation of any application or solution in the real world. To use a marketing example, the theory that rational consumers choose based on perceived superior value will be eternal and unchanging. However, the way a business organisation can create value would change depending on contextual characteristics, consumer behaviour, and available technology. A good PhD teacher would focus on the relevant theories and show how they are applied in practice in various contexts to equip students to face current and future challenges. Apart from imparting knowledge, PhD teachers provide tools for analysis in practice and create critical thinkers prepared to face challenges across industries and time.
Practitioners bring knowledge and deep expertise relevant to specific contexts and applications. However, the fast-changing business and technological environment result in limited shelf-life experiences that may quickly become outdated. Since non-PhDs are not trained to conduct original research, they reproduce what others have created to keep their teaching current. Their limited experiences may colour their interpretation of knowledge. Such teachers are typically less aware of the concepts and theoretical frameworks related to their practice domain. Even if they are, they don’t have the same deep understanding of these as a PhD scholar. These limitations would result in students getting knowledge that may be of great value but in a limited context. In our fast-paced world facilitated by technology, change is the only constant. Therefore, only contractual teaching positions would make sense for practitioners.
Another critical issue is: How would an institution judge the quality of a practitioner it hires? Using the number of years’ of work experience in a field as a yardstick to gauge a practitioner’s potential as a teacher could be misleading.
Although practitioners who understand both academic rigour and theories can make excellent teachers, sometimes even better than a typical PhD teacher, evaluating them is a significant challenge. And such people are not easy to find. Also, a relevant and continuous monitoring system is needed to assess the teaching performance of practitioners; else, they become archaic. Since students cannot adequately evaluate the material taught to them, PhDs are better suited to assess a practitioner’s potential as a teacher and thinker.
A workable and sustainable solution to this situation is to have a mix of practitioners and traditional academicians, as many business schools in India and abroad have realised and implemented, resulting in significant positive outcomes. They first hire PhDs to meet their requirements. Then they hire a limited number of practitioners as clinical and adjunct faculty on contract for a limited time to fulfil specific teaching needs. The responsibilities and evaluation of both these categories of faculty are also different. PhDs still maintain strict quality control.
Where control rests with practitioners, quality is likely to suffer, and the institutions could be politicised with survival battles and one-upmanship. The final losers will be students for whose benefit the whole system is being designed in the first place. CUs can take a leaf out of the business school experience and devise a model that fits them. | english |
<gh_stars>10-100
{"template":{"small":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/1.0","medium":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/2.0","large":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/3.0"},"channels":{"gabeegaming":{"title":"gabeegaming","channel_id":127331253,"link":"http://twitch.tv/gabeegaming","desc":null,"plans":{"$4.99":"32779","$9.99":"54735","$24.99":"54736"},"id":"gabeegaming","first_seen":"2017-06-10 17:55:04","badge":"https://static-cdn.jtvnw.net/badges/v1/2a10a6cf-7b3b-450c-86d9-591fb62d5878/1","badge_starting":"https://static-cdn.jtvnw.net/badges/v1/2a10a6cf-7b3b-450c-86d9-591fb62d5878/3","badge_3m":"https://static-cdn.jtvnw.net/badges/v1/fff22b95-98d6-407e-b10d-d53000ef94db/3","badge_6m":"https://static-cdn.jtvnw.net/badges/v1/e167d988-8a8b-4db1-bf26-aa89a0df15cf/3","badge_12m":"https://static-cdn.jtvnw.net/badges/v1/6160d6e4-fe32-401b-9e8c-e24b38dd4030/3","badge_24m":"https://static-cdn.jtvnw.net/badges/v1/a32180d5-5340-4420-a3a6-743a85d0f0d9/3","badges":{"0":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/2a10a6cf-7b3b-450c-86d9-591fb62d5878/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/2a10a6cf-7b3b-450c-86d9-591fb62d5878/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/2a10a6cf-7b3b-450c-86d9-591fb62d5878/3","description":"Subscriber","title":"Subscriber","click_action":"subscribe_to_channel","click_url":""},"3":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/fff22b95-98d6-407e-b10d-d53000ef94db/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/fff22b95-98d6-407e-b10d-d53000ef94db/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/fff22b95-98d6-407e-b10d-d53000ef94db/3","description":"3-Month Subscriber","title":"3-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"6":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/e167d988-8a8b-4db1-bf26-aa89a0df15cf/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/e167d988-8a8b-4db1-bf26-aa89a0df15cf/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/e167d988-8a8b-4db1-bf26-aa89a0df15cf/3","description":"6-Month Subscriber","title":"6-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"12":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/6160d6e4-fe32-401b-9e8c-e24b38dd4030/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/6160d6e4-fe32-401b-9e8c-e24b38dd4030/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/6160d6e4-fe32-401b-9e8c-e24b38dd4030/3","description":"1-Year Subscriber","title":"1-Year Subscriber","click_action":"subscribe_to_channel","click_url":""},"24":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/a32180d5-5340-4420-a3a6-743a85d0f0d9/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/a32180d5-5340-4420-a3a6-743a85d0f0d9/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/a32180d5-5340-4420-a3a6-743a85d0f0d9/3","description":"2-Year Subscriber","title":"2-Year Subscriber","click_action":"subscribe_to_channel","click_url":""}},"bits_badges":null,"cheermote1":null,"cheermote100":null,"cheermote1000":null,"cheermote5000":null,"cheermote10000":null,"set":32779,"emotes":[{"code":"gab33Focus","image_id":204879,"set":32779},{"code":"gab33Flame","image_id":192498,"set":32779},{"code":"gab33Gasm","image_id":213416,"set":54736},{"code":"gab33Love","image_id":192497,"set":32779},{"code":"gab33Scared","image_id":207708,"set":32779}]}}}
| json |
<reponame>JefferyLukas/SRIs
{"piwik.js":"sha512-ViFypRa4n4aCpPnCBLnPuggUIZkqb5kcwm3MY/<KEY>} | json |
- 3 hrs ago International Malala Day 2023: Who Is Malala Yousafzai? Where Is She Celebrating Her 26th Birthday?
- News GST Council Meeting Highlights: What Will Be Cheaper, Costlier?
- Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time!
Do you have a kid who is unwilling to go to school? Have you ever tried to know the reason of his/her disinterest towards school?
Well, the reason might be the academic subjects that are being taught in his/her school. If that is the reason then you should really look into this matter very seriously.
No matter how obedient or well-behaved your kid is, if you do not help your kid to develop interest in academics, he/she can never find happiness in his/her school life.
The earlier your children start loving academics, the more they would be happier and successful in their lives.
You should explain your kids that learning is not just to please their teachers or parents. There should be a passion for learning. You should help your kid develop a passion for academics.
If you start helping your kids to love academics at an early age, they would continue this practice all through their lives, and it will ultimately help them achieve greater heights in their career.
This article highlights 7 ways to make your kid love academics. Read on the following tips to make your kid love his/her academics:
Make sure that your kid has his/her own study room where he/she can study attentively. Subjects like Mathematics need contemplation, regular practice and a focussed mind. Giving your kid a serene place or room to study is one of the 7 ways to make your kid love academics.
Just like how your kid has a fixed time for sleeping and waking up daily, similarly you must fix a time for his/her daily study.
Whenever it is the study time of your kid, make sure that you turn off all the distractions in your home such as TV, radio, music system, computer, etc. This will help your kid to focus on his/her academics better.
Textbooks and internet are just not enough to help your kids with their academics. You need to invest in various educational resources and references as well. These educational materials include yearbooks, CD-ROMs, encyclopedias, manuals, etc. Encourage your kids to read in their spare time. If your kids are in pre-school, make it a habit to read to them daily during bedtime. This is also one among the 7 ways to make your kid love academics.
A majority of the parents believe that watching too much television can have negative effects on their kids. However, studies say that many brilliant students have gained extra knowledge through some educational and knowledgeable TV channels. Allow your kids to watch TV for a couple of hours and encourage them to watch channels like National Geographic or Discovery, so that they can enhance their knowledge in the relevant subjects like Geography, History, etc.
It is extremely important to communicate with your kids on a daily basis. Make it a habit to have an open discussion with them daily. Ask them whether they are having any difficulty in any particular subject. Help your kids with that particular subject by either guiding them yourself or by hiring a reputable tutor for them. This is one of the 7 ways to make your kid love academics.
Never scold your kid if he/she couldn't score well in any particular subject. Sometimes, parents put too much pressure on their kids to score well in a particular subject. This can create a terror for that particular subject. Instead of scolding or pressurising your child, support your kid even if he/she scores less, this will help him/her perform better the next time.
- kidsAre Video Games An Effective Pedagogical Tool?
- pulseBlame Yourself For Your Boss' Grumpiness!
- kidsHow To Boost Low Achievers’ Grades?
- insyncThe Religious Books Through The Hands Of A Prisoner!
- kidsBe Confident To Win The Exams!
- kidsYour Kid's New Homework-Facebook!
- kidsLet Your Child Get Addicted To You!
- kidsHow Good Looks Improve Academic Grades? | english |
The bees paid an unwanted visit to M Chinnaswamy Stadium on Sunday to halt Day 2’s play of pink ball Test match between India and Sri Lanka. On Sunday, the Indian team players were out on their field alongside Sri Lanka’s Lasith Embuldeniya and Niroshan Dickwella to proceed with day’s play but suddenly a swarm of bees halted the start.
Pacer Jasprit Bumrah was about to bowl the first over of the day but was asked to wait for a few minutes. However, it didn’t take much time for the bees to make way for the match. On his eighth ball of the day, Bumrah picked the wicket of Embuldeniya to hurt Sri Lanka early.
Ahead of the day’s play, wicketkeeper batter Rishabh Pant talked about the Chinnaswamy pitch which caused contrasting troubles to both teams. The Indian batters found it difficult to tackle spin, while Sri Lanka batters lost 5 wickets to the pacers in the final session.
‘The wicket was going to spin, but it didn’t turn a lot under lights, it might do once again in the afternoon today. It was slightly on the slower side, but it became better and better as the day progressed. The pink ball was swinging a lot under lights, bringing our pacers into play. I don’t think about individually, the team plan was to get at least 200, then 250, it was all about building partnerships. The plan for today is to continue and stick to the basics,’ Pant told broadcasters.
Fast bowlers Bumrah (3/15), Mohammed Shami (2/18) along with batter Shreyas Iyer (92) put India in a commanding position against Sri Lanka on the fast-paced opening day of the second and final Test.
Sri Lanka were 86-6 in their first innings at stumps, trailing by 166 runs against India. Niroshan Dickwella (13 off 29) and Lasith Embuldeniya (0) were unbeaten at the crease at the end of the day’s play in Bengaluru. | english |
<reponame>cristianglezm/AntFarm
////////////////////////////////////////////////////////////////
// Copyright 2014 <NAME> <<EMAIL>>
//
// 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.
////////////////////////////////////////////////////////////////
#ifndef STATES_HPP
#define STATES_HPP
#include <bitset>
/**
* @brief Estados de las entidades
* @author <NAME> <<EMAIL>>
* @version 0.1
*/
namespace States{
using Mask = std::bitset<32>;
static constexpr Mask NONE = 0;
static constexpr Mask GROUND = 1 << 0;
static constexpr Mask FALLING = 1 << 1;
static constexpr Mask CLIMBING = 1 << 2;
static constexpr Mask BUILDING = 1 << 3;
static constexpr Mask ONFIRE = 1 << 4;
static constexpr Mask SAVED = 1 << 5;
static constexpr Mask UNSAVED = 1 << 6;
}
#endif // STATES_HPP
| cpp |
import React, { Component } from "react";
import Title from "../components/Title";
import Todo from "../components/Todo";
import TodoInput from "../components/TodoInput";
import { setStorage, getStorage } from "../uitls/storage";
const generateID = () => {
return (
"_" +
Math.random()
.toString(36)
.substr(2, 9)
);
};
class TodoListContainer extends Component {
constructor(props) {
super(props);
this.state = {
todos: JSON.parse(getStorage("todos")) || [],
};
}
componentDidUpdate() {
setStorage("todos", JSON.stringify(this.state.todos));
}
toggleCheckbox = todo => {
let updated = this.state.todos.map(element => {
if (element.id === todo.id) {
element.isDone = !element.isDone;
}
return element;
});
this.setState({ todos: updated });
};
addTodo = content => {
const { todos } = this.state;
const updated = todos.concat({
id: generateID(),
isDone: false,
content: content,
});
this.setState({
todos: updated,
});
};
deleteTodo = id => {
let updated = this.state.todos.filter(element => element.id !== id);
this.setState({ todos: updated });
};
render() {
const list = this.state.todos;
return (
<div className="app-container">
<section className="app-section">
<Title title={"todo list"} />
<TodoInput addTodo={this.addTodo} />
{list.map(todo => (
<Todo
key={todo.id}
todo={todo}
checkBoxChanged={this.toggleCheckbox}
deleteTodo={this.deleteTodo}
/>
))}
</section>
</div>
);
}
}
export default TodoListContainer;
| javascript |
<reponame>HuarenYu/hooks
nav {
display: flex;
padding: 2rem;
align-items: center;
}
.bold {
font-weight: bold;
}
a {
text-decoration: none;
color: #000;
display: inline-block;
}
.left a[data-active='true'] {
color: gray;
}
a + a {
margin-left: 1rem;
}
.right {
margin-left: auto;
}
.right a {
border: 1px solid black;
padding: 0.5rem 1rem;
border-radius: 3px;
}
| css |
New Delhi: A speech-impaired woman was beaten up in New Delhi's Mandoli area near Shahdara on Sunday on suspicions of being a child lifter. A case was registered under sections 323,341 and 34 of the Indian Penal Code at Harsh Vihar police station. Police said locals thrashed the disabled woman over rumours that she was a kidnapper.
An officer said a video of the woman being attacked has been circulated and police are trying to identify the accused from the clipping. A number of such attacks have been reported from several places, including the National Capital Region, over the past few days.
Six people, including a Delhi resident and a woman beggar, were thrashed over rumours of child-lifting in three fresh incidents in Uttar Pradesh, despite the police warning to invoke the National Security Act against those spreading such canard.
A 19-year-old man was arrested on Friday for reporting a false case of child lifting in a village in Noida. On Friday, the Delhi Commissioner of Police had urged people not to pay attention to such rumours. | english |
{
"name": "radio",
"title": "Radio",
"description": "Radio lets you get and set the current value of a group of radio buttons, filling a gap in jQuery's $.val. It is not a replacement for radio buttons. It just makes working with them more pleasant.",
"keywords": ["radio", "button", "apostrophe", "punkave"],
"version": "0.1.3",
"author": {
"name": "<NAME>",
"url": "http://punkave.com/"
},
"maintainers": [
{
"name": "<NAME>",
"email": "<EMAIL>",
"url": "http://punkave.com"
},
{
"name": "<NAME>",
"email": "<EMAIL>",
"url": "http://punkave.com"
}
],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/punkave/jquery-radio/LICENSE.md"
}
],
"bugs": "https://github.com/punkave/jquery-radio/issues",
"homepage": "https://github.com/punkave/jquery-radio",
"docs": "https://github.com/punkave/jquery-radio",
"download": "https://github.com/punkave/jquery-radio",
"dependencies": {
"jquery": ">=1.9"
}
}
| json |
{
"author": "<NAME> (https://www.jonathanpaulwood.com)",
"name": "pass-smash",
"version": "1.0.1",
"description": "Utilities for creating and comparing hashes, salts, and stretches for passwords",
"main": "index.js",
"scripts": {
"test": "echo \\\"Error: no test specified\\\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Jonathan-Paul-Wood/pass-smash.git"
},
"keywords": [
"password",
"hash",
"stretch",
"salt"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Jonathan-Paul-Wood/pass-smash/issues"
},
"homepage": "https://github.com/Jonathan-Paul-Wood/pass-smash#readme"
}
| json |
MS Dhoni travelled to the Kolkata Police Training School, where he had a shooting session with pistol.
“The great MS Dhoni takes some time off to practice his shooting skills at our state of the art shooting range this afternoon at Police Training School. His accuracy is breathtaking,” Kolkata Police posted on their official Facebook page. “It’s great to host Dhoni for the second time. He’s an extraordinary marksman and inspired us all. It’s a state of art shooting range at PTS and Dhoni shot both in the 10m and 25 ranges,” a top Kolkata Police official was quoted as saying to PTI. | english |
<filename>hw07-structuralPatterns/src/main/java/my/alkarps/department/model/AtmOperation.java
package my.alkarps.department.model;
import my.alkarps.atm.model.operation.CurrentAmount;
/**
* @author alkarps
* create date 30.07.2020 12:38
*/
public interface AtmOperation extends CurrentAmount {
void backup();
void restoreInitState();
boolean isValid();
}
| java |
{
"domain": "isoft",
"name": "<NAME>",
"documentation": "https://github.com/ToSa27/homeassistant-judoisoft",
"dependencies": [],
"codeowners": ["@ToSa27"],
"requirements": []
}
| json |
Mukesh Ambani has two sisters; Nina Kothari and Deepti Salgaocar.
Nina Kothari is the Chairperson of Kothari Sugars And Chemicals Limited.
Nina Kothari's company is a flagship company of HC Kothari Group.
Mukesh Ambani’s other sister, Deepti Salgaocar is married to Duttaraj Salgaocar who is a businessman.
Nina married B H Kothari.
Deepti Salgaocar's husband is the owner of the Salgaocar group of companies.
Deepti Salgaocar's husband is the owner of the Salgaocar group of companies.
Deepti and Nina do not like the limelight.
Both sisters are integral parts of their familial businesses.
The sisters have good relations with their sister-in-laws.
Reportedly Tina Ambani is very close to her sister-in-laws.
Mukesh is lucky to have Nina and Deepti.
Thanks For Reading!
| english |
import { org_model, profile_model } from "./model";
export class OrgsInstallChrome {
public static readonly type = "[Orgs] Install Chrome";
constructor(public name: string, public profiles: profile_model[]) { }
}
export class OrgsReorder {
public static readonly type = "[Orgs] Reorder";
constructor(public updatedList: org_model[]) { }
}
export class OrgLaunchChrome {
public static readonly type = "[Orgs] Launch Chrome";
constructor(public payload: any) { }
}
export class OrgSave {
public static readonly type = "[Orgs] Save Org in db";
constructor(public payload: org_model) { }
}
export class OrgsLoadAll {
public static readonly type = "[Orgs] Load all";
constructor() { }
}
export class OrgDelete {
public static readonly type = "[Orgs] Delete org";
constructor(public name: string) { }
}
export class OrgDeleteProfile {
public static readonly type = "[Orgs] Delete profile";
constructor(public name: string, public profile : any) { }
}
| typescript |
{
"startDate": "2020-04-01",
"endDate": "2020-06-30",
"year": "2020",
"quarter": "Q2",
"symbol": "VBFC",
"data": {
"bs": [
{
"label": "Cash, Cash Equivalents, and Federal Funds Sold",
"concept": "CashCashEquivalentsAndFederalFundsSold",
"unit": "usd",
"value": 34954000
},
{
"label": "Cash, Cash Equivalents, and Federal Funds Sold",
"concept": "CashCashEquivalentsAndFederalFundsSold",
"unit": "usd",
"value": 34954000
}
],
"cf": [],
"ic": [
{
"label": "Net Income (Loss) Attributable to Parent",
"concept": "NetIncomeLoss",
"unit": "usd",
"value": 2335000
},
{
"label": "Other Comprehensive Income (Loss), Unrealized Holding Gain (Loss) on Securities Arising During Period, before Tax",
"concept": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
"unit": "usd",
"value": 55000
},
{
"label": "Other Comprehensive Income (Loss), Unrealized Holding Gain (Loss) on Securities Arising During Period, Tax",
"concept": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
"unit": "usd",
"value": 12000
},
{
"label": "Other Comprehensive Income (Loss), Unrealized Holding Gain (Loss) on Securities Arising During Period, Net of Tax",
"concept": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
"unit": "usd",
"value": 43000
},
{
"label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, before Tax",
"concept": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax",
"unit": "usd",
"value": 0
},
{
"label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
"concept": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
"unit": "usd",
"value": 0
},
{
"label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
"concept": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
"unit": "usd",
"value": 0
},
{
"label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, before Tax",
"concept": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax",
"unit": "usd",
"value": -3000
},
{
"label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, Tax",
"concept": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansTax",
"unit": "usd",
"value": -1000
},
{
"label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Reclassification Adjustment, after Tax",
"concept": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax",
"unit": "usd",
"value": -2000
},
{
"label": "Other Comprehensive Income (Loss), Net of Tax",
"concept": "OtherComprehensiveIncomeLossNetOfTax",
"unit": "usd",
"value": 45000
},
{
"label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
"concept": "ComprehensiveIncomeNetOfTax",
"unit": "usd",
"value": 2380000
}
]
}
} | json |
//
// Created by cowspirit on 2019-06-20.
//
#include "BubbleSort.h"
void BubbleSort::Sort() {
for (int i = 0; i < data_.size() - 1; ++i) {
int exchange_count = 0;
for (int j = data_.size() - 1; j > i; --j) {
if (data_[j - 1] > data_[j]) {
std::swap(data_[j - 1], data_[j]);
++exchange_count;
}
}
if (!exchange_count) {
break;
}
}
Print();
}
void BubbleSort::Sort2() {
int passCount = 0;
int forward_index = 0;
int backword_index = data_.size() - 1;
while (forward_index != backword_index) {
if (passCount % 2 == 0) {
int last_swap_index = backword_index;
for (int j = backword_index; j > forward_index; --j) {
if (data_[j - 1] > data_[j]) {
std::swap(data_[j - 1], data_[j]);
last_swap_index = j;
}
}
forward_index = last_swap_index;
} else {
int last_swap_index = forward_index;
for (int j = forward_index; j < backword_index; ++j) {
if (data_[j] > data_[j + 1]) {
std::swap(data_[j], data_[j + 1]);
last_swap_index = j;
}
}
backword_index = last_swap_index;
}
++passCount;
}
Print();
}
void BubbleSort::Print() {
for (const auto elem : data_) {
std::cout << elem << " ";
}
std::cout << std::endl;
} | cpp |
import requests
from bs4 import BeautifulSoup
# WHY
# The SearchRequest module contains all the internal logic for the library.
#
# This encapsulates the logic,
# ensuring users can work at a higher level of abstraction.
# USAGE
# req = search_request.SearchRequest("[QUERY]", search_type="[title]")
class SearchRequest:
col_names = [
"ID",
"Author",
"Title",
"Publisher",
"Year",
"Pages",
"Language",
"Size",
"Extension",
"Mirror_1",
"Mirror_2",
"Mirror_3",
"Mirror_4",
"Mirror_5",
"Edit",
]
def __init__(self, query, search_type="title"):
self.query = query
self.search_type = search_type
def strip_i_tag_from_soup(self, soup):
subheadings = soup.find_all("i")
for subheading in subheadings:
subheading.decompose()
def get_search_page(self):
query_parsed = "%20".join(self.query.split(" "))
if self.search_type.lower() == "title":
search_url = (
f"http://gen.lib.rus.ec/search.php?req={query_parsed}&column=title"
)
elif self.search_type.lower() == "author":
search_url = (
f"http://gen.lib.rus.ec/search.php?req={query_parsed}&column=author"
)
search_page = requests.get(search_url)
return search_page
def aggregate_request_data(self):
search_page = self.get_search_page()
soup = BeautifulSoup(search_page.text, "lxml")
self.strip_i_tag_from_soup(soup)
# Libgen results contain 3 tables
# Table2: Table of data to scrape.
information_table = soup.find_all("table")[2]
# Determines whether the link url (for the mirror)
# or link text (for the title) should be preserved.
# Both the book title and mirror links have a "title" attribute,
# but only the mirror links have it filled.(title vs title="libgen.io")
raw_data = [
[
td.a["href"]
if td.find("a")
and td.find("a").has_attr("title")
and td.find("a")["title"] != ""
else "".join(td.stripped_strings)
for td in row.find_all("td")
]
for row in information_table.find_all("tr")[
1:
] # Skip row 0 as it is the headings row
]
output_data = [dict(zip(self.col_names, row)) for row in raw_data]
return output_data
| python |
{
"name": "CustomContractNetwork",
"symbol": "CCN",
"id": "0x17B26400621695c2D8C2D8869f6259E82D7544c4",
"decimals": 18,
"coingecko_url": "https://www.coingecko.com/en/coins/custom-contract-network",
"market_cap_usd": 61020,
"market_cap_rank": 3252,
"24_hr_volume_usd": 1.58,
"logoURI": "https://raw.githubusercontent.com/poolsharks-protocol/token-metadata/master/blockchains/ethereum/assets/0x17B26400621695c2D8C2D8869f6259E82D7544c4/logo.png"
} | json |
<gh_stars>0
package com.qyh.coderepository.menu.view.zonbi;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.animation.LinearInterpolator;
import com.qyh.coderepository.R;
/**
* @author 邱永恒
* @time 2018/1/10 14:05
* @desc ${TODD}
*/
public class ZonbiView extends View {
private Paint paint;
private Bitmap bitmap;
private int width;
private int height;
private int imgWidth;
private int imgheight;
private int x;
private int y;
private int value;
public ZonbiView(Context context) {
super(context);
init();
}
public ZonbiView(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
init();
}
public ZonbiView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
public void init() {
paint = new Paint(Paint.ANTI_ALIAS_FLAG);
bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.zonbi);
width = bitmap.getWidth();
height = bitmap.getHeight();
imgWidth = width / 11 + 1;
imgheight = height / 2;
width = imgWidth * 11;
height = imgheight * 2;
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.save();
canvas.translate(getWidth() / 2, getHeight() / 2);
Rect src = new Rect(x, y, x + imgWidth, y + imgheight);
Rect dst = new Rect(-imgWidth * 2, -imgheight * 2, imgWidth * 2, imgheight * 2);
Log.d("==", "x: " + x + ", y: " + y);
canvas.drawBitmap(bitmap, src, dst, paint);
if (x + imgWidth >= width) {
// 换行
x = 0;
if (y + imgheight >= height) {
y = 0;
} else {
y += imgheight;
}
} else {
x += imgWidth;
}
canvas.restore();
}
public void startAnim() {
final ValueAnimator valueAnimator = ValueAnimator.ofInt(0, 23);
valueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
int v = (int) animation.getAnimatedValue();
if (value != v) {
invalidate();
value = v;
}
}
});
valueAnimator.setDuration(2000);
valueAnimator.setInterpolator(new LinearInterpolator());
valueAnimator.setRepeatCount(ValueAnimator.INFINITE);
valueAnimator.start();
}
}
| java |
Back in what is in effect jihadi pre-history, Osama bin Laden, then simply a well-connected and wealthy young Saudi ideologue and veteran of the Soviet-Afghan war, sent an emissary to Algeria to offer assistance to the Groupe Islamique Arme (Armed Islamic Group of Algeria), a band of savage extremists engaged in a no-holds barred battle with the Algerian state. The response was an unequivocal rejection, accompanied by some choice expletives. Bin Laden’s emissary was lucky to escape alive.
That was in 1993. Fourteen years later, with 150,000 dead in Algeria in a civil war that ended with the defeat of the militants and bin Laden the best-known Islamic militant in the world, the remaining Algerian extremists announced they were finally becoming part of the network of groups the Saudis had drawn together.
Weakened by years of counter-terrorist activity and a loss of grassroots support, going global was their last option. Al-Qaeda in the Islamic Maghreb (AQIM) was born.
Yet that does not mean the raiders of the refinery this week were al-Qaeda operatives or even al-Qaeda-linked. Firstly, the ties binding AQIM to the leadership of al-Qaeda far away in south-west Asia have always been tenuous. The difficulties in communication, let alone travel, precluded any tight co-operation.
Nor was al-Qaeda central, which was short of cash, likely to help the relatively wealthy AQIM with funds either.
What it did supply was a tactic hitherto almost unheard of in Algeria — the mass-casualty suicide bombing. A spate of such attacks, in the aftermath of the 2007 alliance, rapidly stripped any residual support the new al-Qaeda affiliate might have had locally.
The grand-sounding AQIM hides a chaotic reality. The group has singularly failed to unite disparate local groups spread along the north African coast. Even in Algeria, militants are split between the north and south — and these two factions are split again, into rival bands.
Finally, Mokhtar BelMokhtar, the man suspected of orchestrating the refinery attack, leads his own breakaway group that does not even pay nominal allegiance to the southern AQIM faction, let alone the group as a whole, and certainly not to al-Qaeda. If they are ‘al-Qaeda-linked’ then the chain is a very long one.
But BelMokhtar has spoken of his admiration for bin Laden and his successor, Ayman al-Zawahiri. He has also expressed classic jihadi views that align him with ‘al-Qaedaism’. He is, therefore, part of the new, fragmented and fast-evolving landscape of Islamic militancy in the region, which, in some aspects, resembles the anarchic days of the early 1990s. This was a period before bin Laden achieved notoriety or succeeded in bringing some temporary, if partial, focus to the myriad strands of violent extremism. | english |
<reponame>rachel-mcallister/Loginpage-angular13<filename>.angular/cache/babel-webpack/be8794155e578de0b67d7b3f91fb460e.json
{"ast":null,"code":"import apply from './_apply.js';\nimport arrayMap from './_arrayMap.js';\nimport baseFlatten from './_baseFlatten.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseRest from './_baseRest.js';\nimport baseUnary from './_baseUnary.js';\nimport castRest from './_castRest.js';\nimport isArray from './isArray.js';\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeMin = Math.min;\n/**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n\nvar overArgs = castRest(function (func, transforms) {\n transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(baseIteratee)) : arrayMap(baseFlatten(transforms, 1), baseUnary(baseIteratee));\n var funcsLength = transforms.length;\n return baseRest(function (args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n\n return apply(func, this, args);\n });\n});\nexport default overArgs;","map":null,"metadata":{},"sourceType":"module"} | json |
<filename>tests/node/test_node.py
from collections import namedtuple
from pytest import raises
from graphql.core import graphql
from graphql.core.type import (
GraphQLSchema,
GraphQLObjectType,
GraphQLField,
GraphQLArgument,
GraphQLList,
GraphQLNonNull,
GraphQLInt,
GraphQLString,
GraphQLBoolean,
GraphQLID,
)
from graphql_relay.node.node import nodeDefinitions
User = namedtuple('User', ['id', 'name'])
Photo = namedtuple('Photo', ['id', 'width'])
userData = {
'1': User(id=1, name='<NAME>'),
'2': User(id=2, name='<NAME>'),
}
photoData = {
'3': Photo(id=3, width=300),
'4': Photo(id=4, width=400),
}
def getNode(id, info):
assert info.schema == schema
if id in userData:
return userData[id]
else:
return photoData[id]
def getNodeType(obj):
if obj.id in userData:
return userType
else:
return photoType
_nodeDefinitions = nodeDefinitions(getNode, getNodeType)
nodeField, nodeInterface = _nodeDefinitions.nodeField, _nodeDefinitions.nodeInterface
userType = GraphQLObjectType(
'User',
fields= lambda: {
'id': GraphQLField(GraphQLNonNull(GraphQLID)),
'name': GraphQLField(GraphQLString),
},
interfaces= [nodeInterface]
)
photoType = GraphQLObjectType(
'Photo',
fields= lambda: {
'id': GraphQLField(GraphQLNonNull(GraphQLID)),
'width': GraphQLField(GraphQLInt),
},
interfaces= [nodeInterface]
)
queryType = GraphQLObjectType(
'Query',
fields= lambda: {
'node': nodeField,
}
)
schema = GraphQLSchema(query=queryType)
def test_include_connections_and_edge_types():
query = '''
{
node(id: "1") {
id
}
}
'''
expected = {
'node': {
'id': '1',
}
}
result = graphql(schema, query)
assert result.errors == None
assert result.data == expected
| python |
import {createSelector} from "reselect"
import {ScrollPosition} from "src/js/types"
import {SearchStatus} from "src/js/types/searches"
import {TypeDefs, zed} from "@brimdata/zealot"
import {TabState} from "../Tab/types"
import Tabs from "../Tabs"
import {State} from "../types"
import {createSelection, ViewerSelection} from "./helpers/selection"
import {ViewerSelectionData, ViewerState} from "./types"
export const getViewer = createSelector<State, TabState, ViewerState>(
Tabs.getActiveTab,
(tab) => tab.viewer
)
export const getViewerRecords = createSelector<
State,
ViewerState,
zed.Record[]
>(getViewer, (viewer) => viewer.records)
export const getLogs = getViewerRecords
export const getRecords = getViewerRecords
export const getStatus = createSelector<State, ViewerState, SearchStatus>(
getViewer,
(viewer) => viewer.status
)
export const isFetching = createSelector<State, ViewerState, boolean>(
getViewer,
(viewer) => viewer.status === "FETCHING"
)
export const isComplete = createSelector<State, ViewerState, boolean>(
getViewer,
(viewer) => viewer.endStatus === "COMPLETE"
)
export const isLimited = createSelector<State, ViewerState, boolean>(
getViewer,
(viewer) => viewer.endStatus === "LIMIT"
)
export const getSearchKey = createSelector<State, ViewerState, string>(
getViewer,
(viewer) => viewer.searchKey
)
export const getEndStatus = createSelector<State, ViewerState, string>(
getViewer,
(viewer) => viewer.endStatus
)
export const getShapes = createSelector<State, ViewerState, TypeDefs>(
getViewer,
(viewer) => viewer.columns
)
export const getScrollPos = createSelector<State, ViewerState, ScrollPosition>(
getViewer,
(viewer) => viewer.scrollPos
)
export const getSelectionData = createSelector<
State,
ViewerState,
ViewerSelectionData
>(getViewer, (viewer) => viewer.selection)
export const getSelection = createSelector<
State,
ViewerSelectionData,
ViewerSelection
>(getSelectionData, (data) => createSelection(data))
export const getSelectedRecords = createSelector<
State,
ViewerSelection,
zed.Record[],
zed.Record[]
>(getSelection, getRecords, (selection, records) =>
selection.getIndices().map((index) => records[index])
)
| typescript |
//===--- caffeine_beverage.cpp - --------------------------------*- C++ -*-===//
//
// Head First Design Patterns
//
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief
///
//===----------------------------------------------------------------------===//
//https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
//dir2 / foo2.h.
#include "caffeine_beverage.hpp"
//C system files.
//C++ system files.
#include <iostream>
//Other libraries' .h files.
//Your project's .h files.
namespace headfirst {
void CaffeineBeverage::BoilWater() const
{
std::cout << "CaffeineBeverage::BoilWater" << std::endl;
std::cout << "Boiling water" << std::endl;
}
void CaffeineBeverage::PourInCup() const
{
std::cout << "CaffeineBeverage::PourInCup" << std::endl;
std::cout << "Pouring into cup" << std::endl;
}
CaffeineBeverage::~CaffeineBeverage()
{
std::cout << "CaffeineBeverage::~CaffeineBeverage" << std::endl;
}
void CaffeineBeverage::PrepareRecipe() {
std::cout << "CaffeineBeverage::PrepareRecipe" << std::endl;
BoilWater();
Brew();
PourInCup();
AddCondiments();
}
} //namespace headfirst
| cpp |
After the first match of the three-match T20I series at Sky Stadium in Wellington was called off due to rain without a ball being bowled, the second T20I began at the Bay Oval in Mount Maunganui on Sunday, November 20.
Many expected opener Shubman Gill to make his T20I debut after a great season for the Gujarat Titans in the Indian Premier League (IPL) 2022, but when Hardik Pandya revealed the India XI for the second match of the three-match series, Gill was not named and instead went with Rishabh Pant and Ishan Kishan as openers for this match.
Reacting to the team news, the presenter addressed former India cricketer Ashish Nehra about his absence and got a surprising response.
“To get a game, a proper 20-over game, is exciting. We still need to assess the conditions and see how the wicket is behaving. If the wicket doesn’t help you, and you try playing shots and lose wickets, and it doesn’t rain, you might be in a difficult position. We’ll assess the situation, and if the rain comes, we’ll reassess,” Hardik said at toss.
| english |
<filename>composer.json
{
"name" : "almeida/ui-kit-laravel",
"description" : "Laravel driver for almeida/ui-kit",
"homepage" : "https://github.com/arnold-almeida/UIKit-Laravel",
"keywords" : ["ui-kit", "frontend", "generators", "laravel"],
"license" : "MIT",
"authors": [{
"name" : "<NAME>",
"email" : "<EMAIL>",
"homepage" : "http://floatingpoints.com.au",
"role" : "Developer"
}],
"require": {
"php": ">=5.4.0",
"illuminate/support": "4.2.*",
"illuminate/html": "4.2.*",
"almeida/ui-kit": "dev-master"
},
"autoload": {
"psr-4": {
"Almeida\\UIKitLaravel\\": "src"
}
},
"minimum-stability": "dev"
}
| json |
The scion of TDP, Nara Lokesh has reached the final frontier of the combined Chittoor district as he reached Tamballapalle Mandal in the present Annamayya District. Conducting a huge public meeting in Mulakalacheruvu village, Lokesh fired bullets at his rival Jagan.
Addressing the huge crowds, Lokesh thanked the locals of the combined Chittoor district for supporting this first leg of Yuva Galam Padayatra as he completed as many as 577 kilometers in 45 days throughout the district. On this occasion, he stated that it was indeed an honor to have a meeting at a place where many fighters were born who revolted against the bad landlords. Lokesh asked the people to have an end card for the YSRCP Minister Peddi Reddy and his family leaders to have a pleasant Annamayya district.
On this note, Lokesh spoke about the happened Teachers and Graduates MLC elections where TDP showcased its power and gave a big setback to the ruling party YSRCP. Lokesh declared that the downfall of AP CM YS Jaganmohan Reddy and his bad ruling had begun and displayed confidence in gaining power in 2024’s general elections. He assured voters to give the best ruling once his father Chandrababu Naidu becomes the CM once again after a year thereby ending the anarchic ruling of Jagan, who destroyed the state’s future by all means. No tags for this post. | english |
By , ,
Fascinating postcards showing the Russian royal family visiting their British counterparts in 1909 will be auctioned in the U. K. on Saturday.
The cards showing Czar Nicholas II, his wife Alexandra and their children during a visit to King Edward VII and his family are part of a collection of more than 80 postcards that will go under the hammer at auction house Henry Aldridge & Son.
2017 marks the centenary of Nicholas II’s abdication, which brought an end to the Romanov dynasty that ruled Russia for over 300 years. The last Czar of Russia abdicated on March 15 1917 following the country’s February Revolution. He was murdered with his family on 17 July 1918.
"It’s certainly the best collection I have seen for sale for the last few years,” Henry Aldridge & Son auctioneer Andrew Aldridge told Fox News, via email.
Offering an incredible snapshot of the Russian royal family’s life in the years before the turmoil of World War I and the Russian revolution, the rare postcards show the Romanovs on a visit to the British royal family’s Osborne House on the Isle of Wight. The 1909 trip was their last visit to the U. K.
The two families were closely related – the czar was Edward VII’s nephew by marriage. One postcard from the collection shows the striking resemblance between Nicholas II and his cousin the Prince of Wales, the future King George V.
The collection of cards, which range from 1906 to 1916, have a pre-sale estimate of $1,249 to $1,874.
DNA tests conducted on the exhumed remains of the czar and his wife in 2015 proved they were authentic. The tests were performed at the request of the Russian Orthodox Church, which canonized the slain Romanov family in 2000. | english |
Dubai: Chennai Super Kings vs Mumbai Indians is truly the biggest clash of the IPL calendar. The two popular teams are set to meet again for the curtain-raiser of the second phase of the Indian Premier League on Sunday in Dubai. Due to Covis, the match will not be played in India and that is half the fun lost. But, there are many things to look forward to when the two heavyweights lock horns.
Does Dhoni Still Have it in Him? The former India captain is 40 and has recently been made the mentor of the Indian team for the T20 World Cup. He has not been in top form in the past couple of IPL seasons and that is understandable with age catching up? It would be interesting to see if he still has the Midas touch.
Will Hardik Pandya Bowl Four Overs? There have been concerns over his fitness and injuries in the past have ensured he is not the bowler he used to be. But again, if he can chip in with the ball – any team he plays for will benefit. He is there in the India T20 squad for the WC and fans would like to see him bowl his full quota of overs.
Faf du Plessis: The South African top-order batsman picked up an injury during the CPL. First, it would be interesting to see if he gets picked for the match or not. And then if he is picked – how he fares.
| english |
Ranbir Kapoor and Alia Bhatt’s wedding is one of the most awaited ones. Several reports regarding the same have already been making headlines. Amid all speculations, Alia Bhatt’s uncle Robin Bhatt has now confirmed that Alia and Ranbir will tie the knot on April 14.
As reported by IndiaToday. in, Robin Bhatt has confirmed that the much-awaited wedding will take place on April 14 whereas the actress’ Mehendi ceremony will happen a day before i. e on April 13. Alia’s uncle has also confirmed to the news portal that the couple will exchange vows at RK’s Bandra home, Vastu.
Earlier today, Ranbir’s mother and veteran actress Neetu Kapoor talked about the wedding rumours and told News18. com that the families are enjoying ‘all the noise going around’. “The rumours have been going on for almost two years now. We are having a lot of fun with all the noise going around Ranbir’s wedding. Some are saying that it is happening o April 15 and there are others who feel it is on April 17. Let the astrologers come out with a date. The date and the venue has constantly been changing. It was reported that they were earlier getting married in Ranthambore then it shifted somewhere else and now it is RK Studios in Chembur, let’s see where it ultimately happens," she said.
Meanwhile, several media reports suggest that grand preparations for Ranbir and Alia’s wedding are currently underway. Reportedly, Neetu Kapoor will be wearing ace designer Manish Malhotra’s outfit for the Punjabi wedding. Apart from this, IndiaTV reported earlier today that while Alia will be wearing a Sabyasachi lehenga for the big day, Ranbir’s outfit will be designed by Manish Malhotra as well.
On the work front, Ranbir and Alia will be seen together for the first time in Ayan Mukerji’s directorial Brahmāstra, the shooting of which wrapped up recently. The film also stars Amitabh Bachchan, Mouni Roy and Nagarjuna Akkineni in key roles. Apart from this, Ranbir also has Shamshera in his pipeline along with Vaani Kapoor. He will also be seen in Animal along with Pushpa star Rashmika Mandanna. On the other hand, Alia Bhatt is currently working on Rocky Aur Rani Ki Prem Kahani which also stars Ranveer Singh in the lead. | english |
<reponame>Lisviks/app-ideas-projects
* {
box-sizing: border-box;
margin: 0;
}
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #333;
color: #e98a0e;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
justify-content: center;
align-items: center;
}
.form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.date {
font-size: 1.5rem;
border: 2px solid #e98a0e;
border-radius: 7px;
padding: 5px;
}
.timer {
font-size: 3rem;
margin-top: 1rem;
}
.event-name {
margin-bottom: 10px;
padding: 10px;
border: 2px solid #e98a0e;
border-radius: 7px;
width: 250px;
font-size: 1.2rem;
}
.start-stop {
margin-top: 10px;
padding: 5px 10px;
font-size: 1.2rem;
border: none;
background-color: #e98a0e;
border-radius: 7px;
}
.event {
margin-top: 16px;
font-size: 3rem;
} | css |
<gh_stars>1-10
{
"auto-close-tag.activationOnLanguage": [
"xml",
"php",
"jinja",
"javascriptreact",
"typescriptreact",
"markdown",
"vue",
"HTML (Eex)"
],
"cSpell.language": "en,en-GB,en-US,ru",
"cSpell.showStatus": false,
"debug.allowBreakpointsEverywhere": true,
"editor.accessibilitySupport": "off",
"editor.codeLens": true,
"editor.colorDecorators": true,
"editor.dragAndDrop": false,
"editor.folding": false,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 17,
"editor.glyphMargin": true,
"editor.minimap.enabled": false,
"editor.rulers": [
80
],
"editor.scrollBeyondLastLine": false,
"editor.snippetSuggestions": "none",
"editor.tabCompletion": "on",
"editor.wordWrap": "on",
"editor.wordWrapColumn": 80,
"emmet.showExpandedAbbreviation": "never",
"emmet.triggerExpansionOnTab": false,
"explorer.confirmDelete": false,
"explorer.decorations.badges": false,
"extensions.ignoreRecommendations": true,
"files.associations": {
".babelrc": "jsonc",
".eslintrc": "jsonc",
"*.pyi": "python"
},
"files.autoSave": "onFocusChange",
"files.exclude": {
"**/.DS_Store": true,
"**/__pycache__": true,
"**/.cache": true,
"**/.idea": true,
"**/.pytest_cache": true,
"**/.mypy_cache": true,
"**/.venv": true,
"**/.coverage": true,
"**/*.py[co]": true
},
"git.autofetch": false,
"python.formatting.provider": "none",
"python.pythonPath": "${workspaceFolder}/.venv/bin/python3",
"python.terminal.activateEnvironment": true,
"python.workspaceSymbols.enabled": true,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"terminal.integrated.env.osx": {
"SOBOLE_THEME_MODE": "dark"
},
"terminal.integrated.enableBell": true,
"vetur.validation.script": false,
"vetur.validation.style": false,
"vetur.validation.template": false,
"window.clickThroughInactive": false,
"window.newWindowDimensions": "maximized",
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"gitDecoration.modifiedResourceForeground": "#d4cb68"
},
"workbench.colorTheme": "Ayu Dark",
"workbench.editor.labelFormat": "short",
"workbench.iconTheme": "ayu",
"workbench.startupEditor": "newUntitledFile",
"workbench.statusBar.feedback.visible": false,
"workbench.tips.enabled": false,
"python.linting.enabled": false,
"git.showInlineOpenFileAction": false
}
| json |
{
"name": "sst-start-demo",
"version": "0.1.0",
"author": {
"name": "<NAME>",
"url": "https://anoma.ly"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/serverless-stack/sst-start-demo.git"
},
"scripts": {
"start": "sst start",
"build": "sst build",
"deploy": "sst deploy",
"remove": "sst remove"
},
"dependencies": {
"@aws-cdk/aws-apigatewayv2": "1.79.0",
"@aws-cdk/aws-apigatewayv2-integrations": "1.79.0",
"@aws-cdk/aws-sns": "1.79.0",
"@aws-cdk/aws-sns-subscriptions": "1.79.0",
"@aws-cdk/core": "1.79.0",
"@serverless-stack/cli": "0.6.2",
"@serverless-stack/resources": "0.6.2"
}
}
| json |
{"name":"Regional Teacher Training Centre of Oaxaca","alt_name":"Centro Regional de Educación Normal de Oaxaca","country":"Mexico","state":null,"address":{"street":"Calzada San Felipe del Agua, 208","city":"Oaxaca","province":"Oaxaca","postal_code":"68020"},"contact":{"telephone":"+52(951) 513-40-14","website":null,"email":"<EMAIL>","fax":"+52(951) 515-94-66"},"funding":"Public","languages":null,"academic_year":null,"accrediting_agency":null}
| json |
<gh_stars>1-10
{
"editor.formatOnSave": true,
"editor.tabSize": 2,
"git.autofetch": true,
"git.confirmSync": false,
"git.ignoreLimitWarning": true,
"prettier.printWidth": 80,
"prettier.singleQuote": true,
"prettier.trailingComma": "all",
"tslint.configFile": "tslint.json"
}
| json |
{
"schemaVersion": 1,
"id": "notenoughcreativity",
"version": "${version}",
"name": "Not Enough Creativity",
"description": "Something like NEI's forgotten Creative+, but for newer versions, with some bonuses.",
"authors": [
"unascribed"
],
"contact": {
"homepage": "https://www.curseforge.com/minecraft/mc-mods/not-enough-creativity",
"source": "https://github.com/unascribed/NotEnoughCreativity",
"issues": "https://github.com/unascribed/NotEnoughCreativity/issues"
},
"license": "MIT",
"environment": "*",
"entrypoints": {
"main": ["com.unascribed.notenoughcreativity.NotEnoughCreativity"],
"rei_plugins": ["com.unascribed.notenoughcreativity.REIPlugin"]
},
"mixins": ["notenoughcreativity.mixins.json"],
"accessWidener" : "notenoughcreativity.accesswidener",
"depends": {
"fabricloader": ">=0.7.4",
"minecraft": ">=1.16"
}
}
| json |
package ru.siksmfp.spring.jms.publisher.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* @author <NAME> @date 4/17/2018.
* @email <EMAIL>
*/
@Entity
public class Data {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID")
private Long id;
@Column(name = "DATA_STRING")
private String dataString;
@Column(name = "DATA_DOUBLE")
private Double dataDouble;
@Column(name = "DATA_BOOLEAN")
private boolean dataBoolean;
public Data() {
}
public Data(String dataString, Double dataDouble, boolean dataBoolean) {
this.dataString = dataString;
this.dataDouble = dataDouble;
this.dataBoolean = dataBoolean;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDataString() {
return dataString;
}
public void setDataString(String dataString) {
this.dataString = dataString;
}
public Double getDataDouble() {
return dataDouble;
}
public void setDataDouble(Double dataDouble) {
this.dataDouble = dataDouble;
}
public boolean isDataBoolean() {
return dataBoolean;
}
public void setDataBoolean(boolean dataBoolean) {
this.dataBoolean = dataBoolean;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Data data = (Data) o;
if (dataBoolean != data.dataBoolean) return false;
if (id != null ? !id.equals(data.id) : data.id != null) return false;
if (dataString != null ? !dataString.equals(data.dataString) : data.dataString != null) return false;
return dataDouble != null ? dataDouble.equals(data.dataDouble) : data.dataDouble == null;
}
@Override
public int hashCode() {
int result = id != null ? id.hashCode() : 0;
result = 31 * result + (dataString != null ? dataString.hashCode() : 0);
result = 31 * result + (dataDouble != null ? dataDouble.hashCode() : 0);
result = 31 * result + (dataBoolean ? 1 : 0);
return result;
}
@Override
public String toString() {
return "Data{" +
"id=" + id +
", dataString='" + dataString + '\'' +
", dataDouble=" + dataDouble +
", dataBoolean=" + dataBoolean +
'}';
}
}
| java |
Social and mobile game company King Digital Entertainment Plc reduced its 2014 forecast after reporting lower-than-expected second-quarter revenue on Tuesday, as gamers continued to spend less money on its "Candy Crush Saga" game.
King also announced a $150 million special dividend, or 46.9 cents per share, payable to shareholders of record on Sept. 30. Its shares, however, slipped 22 percent in after-hours trading after closing at $18.20 on the New York Stock Exchange.
The company, which went public in March, said it has reduced its 2014 forecast and expects gross bookings in the range of $2.25 billion to $2.35 billion from its previous estimate of $2.55 billion to $2.65 billion.
"We have seen a step down in monetization in the latter part of Q2 and so we have adapted the view forward," Chief Executive Officer Riccardo Zacconi said in an interview.
Investors have worried that unless King delivers a set of consistent and long-lasting hits, apart from "Candy Crush Saga," it might suffer the same fate as "Farmville" maker Zynga Inc and "Angry Birds" developer Rovio Corp, which are struggling to retain players.
King's second quarter gross bookings, an indicator of future revenue, was $611 million, up 27 percent from the year-ago period, but less than the last quarter when it reported gross bookings of $641.1 million.
King has yet to see its other titles such as "Farm Heroes Saga" and "Bubble Witch 2 Saga" fully offset user losses of its "Candy Crush Saga" puzzler game that accounted for about 60 percent of second-quarter gross bookings.
"We expect 'Candy Crush' will decline, but have a very strong tail and a long tail," Chief Financial Officer Hope Cochran said in an interview. "We will be launching the 'Candy Crush' sister title in Q4, which will give more longevity to that title."
The company reported revenue of $594 million for the second quarter ended June 30 compared with $456 million in the year-ago period. This fell short of analysts' expectations of $608.3 million, according to Thomson Reuters I/B/E/S.
It reported second-quarter net income of 52 cents per share compared with 39 cents per share in the year-ago period, and surpassing analysts' estimate of 49 cents per share. Non-GAAP earnings were 59 cents per share, which was in line with analysts' expectations, according to Thomson Reuters I/B/E/S.
The company also said on Tuesday that it had acquired Singapore-based mobile game studio Nonstop Games for $6 million in cash upfront, and would pay $74 million over a four-year period if it reached certain revenue targets. Certain employees of Nonstop, which recently released strategy game "Heroes of Honor - War of Kings" for iOS devices, were given $10 million upfront, the company said.
| english |
This is the X100 Logitech, hockey puck size, Bluetooth speaker that retails for 49.99 and comes in 5 color options.
I am not sure why Logitech sent me the Aqua colored one.
I mean I am not really an Aqua guy but hey I'm not complaining.
Hi I'm David Carnoy, and welcome to another C|net video review of a portable bluetooth speaker.
As you can see this is a micro wireless speaker and it competes with such models as the JBL micro wireless, and the Wumbachs travel.
They're all similarly shaped, cost around 50 bucks.
And produce bigger sound than there tiny size would indicate.
I like the hard rubberized finish on the speaker.
And it seems fairly durable though it isn't water resistant.
It's got a little loop on top that allows you to hang the speaker.
From a backpack or doorknob.
Or wherever or you could just lay it flat and have the single driver fire upward.
Battery life is rated at five hours which seems about average for this type of speaker, and it has speaker phone capabilities and an ancillary input for nonBluetooth devices.
It charges via micro USB.
I can't tell you that this model sells any better than it's competitors.
The Divoom actually plays louder.
But it does sound decent for what it is.
And as I said, I like the design.
Some colors, the black version for instance, can be had for closer to $40, which seems more like what you'd wanna pay for this speaker.
For bigger sound, you can opt for the Logitech X300, which retails for $70.
It isn't as portable as this one, but it's still quite compact and has multiple drivers.
I'm David Carnoy and that's the Logitech X100, thanks for watching.
| english |
He is already a known fashion model and now also an entrepreneur who is looking forward to collaborating more within the modelling and media fields and taking multiple steps ahead in his ventures.
No matter how much ever we talk about a few professionals, especially those belonging to the younger brigade doing exceptionally well in their ventures and careers in life, it still feels much more discussions are needed around them for the world to know their brilliance. It takes immense courage, guts and the ability to make bold choices while staying resilient in one’s journey to get where they wish to be. Things become even more challenging when these youngsters get into overly competitive industries; however, the passion and the commitment they show to what they choose to do in their journeys help them keep moving forward. A similar journey was created by Daisuke Kamada, a man from Japan who today has been forging ahead in fields like modelling and business.
Daisuke Kamada is one who has made quite a buzz around his name as a one-of-a-kind fashion model, and also entrepreneur. Gaining incredible skills, knowledge and experiences in these fields has allowed him to thrust forward in these creative realms, becoming one of the most sought-after professionals from Japan.
Daisuke Kamada, born and raised in Japan, is looking forward to taking multiple steps ahead in his journey and grabbing many more modelling and business projects to make his name prominent beyond Japan. This he has already done as a fashion model, beginning his journey at the naïve age of 14, working with global brands. His runway shows, fashion events, etc. , in Portland, were a hit. In 2002, he had appeared in the New York Collection as a 21-year-old, which opened many new opportunities for him, which led him to work in Pasarela Cibeles in Spain, Portland Fashion Week, and Mercedes-Benz Fashion Week. He has even walked for global brands like Givenchy, Calvin Klein, Dior, Comme Des Garcons, ISAORA, Fendi, Kenzo and many others.
Today, he has turned into an entrepreneur as well, which he began building at the age of 18. He is now the President of Chiisana Suisei Co. Ltd. , his own management office. “After working with some of the most influential brands, companies and events in fashion, I am now looking forward to expanding my business and doing much more to gain greater exposure as a fashion and image model,” shares Daisuke Kamada.
Follow him on his socials like Instagram (@daisukekamada_official), Twitter and Facebook. | english |
Bobby Green put on a dominant performance at UFC 271's main card kickstarter as he went on to defeat Nasrat Haqparast.
According to MMA By The Numbers, Bobby Green has broken the record for most significant strikes landed in the lightweight division's history. As per the metrics for his most recent outing, Green landed a phenomenal 163 significant strikes on Haqparast.
Lightweight division stars Dustin Poirier and Tony Ferguson also feature on the list in No.4 and No.5 spots.
Green established his jab early and continued to land thudding, straight punches on the Afghan fighter, who struggled to defend the shots. 'King' punished Haqparast for three rounds, evading his opponents' attacks and landing effective counters.
Ultimately, the 35-year-old secured a comfortable unanimous decision victory and is now on a two-fight winning streak.
Green made his UFC debut in 2013 against Jacob Volkmann. He won the bout via a rear-naked choke submission.
Since then, 'King' has had an exciting journey in the UFC. The veteran has racked up wins against Clay Guida, Al Iaquinta, Lando Vannata and Josh Thomson. He has also fought against the likes of Dustin Poirier, Edson Barboza and Rafael Fiziev.
In his post-fight interview, Bobby Green delivered a fiery message to the crowd. The UFC veteran had something to say to the crowd that was reminiscent of his own journey in the promotion.
Speaking to Daniel Cormier, an emphatic Green made the following statement:
"First of all, I want to thank my family, thank my kids...hey! To anybody that has ever been put down, anybody who has ever been forgotten, they turned their back on you, you do this for me. Put your middle fingers in the air, and tell them 'f**k you!'"
Watch Green's full interview below:
With seven losses in the UFC, Green has managed to pull himself up to get back to the win column each time. However, with the recent win over Haqparast, the UFC veteran will now look to get a notable name for his next fight in the lightweight division.
| english |
<reponame>g0v/amis-moedict
{"t":"kacenon","h":[{"d":[{"f":"從某事吸取教訓的。"},{"f":"(表促使、命令)必須吸取教訓。","e":["`Mafana'~ `to~ `kiso~ `to~ `ka~`sipon~ `no~ `'orip~ `s~`aka ka~`cenon~ `ko~ `miso~.你知道自己的損失須切記教訓。"]}]}],"stem":"cenon"} | json |
Saudi Arabia says the kingdom’s air defense units have “intercepted and destroyed” an unspecified “hostile air target” aimed at the strategic Red Sea port city of Jeddah.
The kingdom’s Defense Ministry did not provide further information nor did it say who could have been behind the attack which took place early on Saturday.
The development comes as Yemeni army forces and fighters from allied Popular Committees have in the past launched missile and drone strikes against Saudi Arabia in retaliation for the Riyadh regime’s devastating war and crippling blockade against their crisis-stricken Arab country.
On Wednesday, Spokesman for the Yemeni Armed Forces Brigadier General Yahya Saree announced in a post published on his Twitter page that the Yemeni army forces and their allies had struck designated targets inside King Khalid Air Base near the Saudi city of Khamis Mushait, located some 884 kilometers south of the capital Riyadh, using a domestically-manufactured Qasef-2K (Striker-2K) combat drone.
The attack, he said, was a “legitimate response” to the kingdom’s bloody war as well as tight all-out blockade on Yemen.
Furthermore, forces of the Saudi-led military coalition and their mercenaries have violated 210 times during the past 24 hours a ceasefire agreement between warring sides for the western coastal province of Hudaydah.
The Saudi-led military aggression has left hundreds of thousands of Yemenis dead, and displaced millions of people. It has destroyed Yemen's infrastructure and spread famine and infectious diseases across the country. | english |
<reponame>AkashaRojee/bookstore
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Header from '../features/header/Header';
import Books from '../features/books/Books';
import Categories from '../features/categories/Categories';
import './scss/styles.scss';
function App() {
return (
<BrowserRouter basename="/bookstore">
<Header />
<Switch>
<Route path="/">
<Books />
</Route>
<Route exact path="/categories">
<Categories />
</Route>
</Switch>
</BrowserRouter>
);
}
export default App;
| javascript |
<filename>pkg/conf/config.go
package conf
import (
"bytes"
"errors"
"io/ioutil"
"path"
"path/filepath"
"strings"
"text/template"
"github.com/google/uuid"
"github.com/liangrog/cfctl/pkg/template/funcs"
"github.com/liangrog/cfctl/pkg/utils"
"gopkg.in/yaml.v2"
)
const (
// Default deployment package config file name
DEFAULT_DEPLOY_CONFIG_FILE_NAME = "stacks.yaml"
)
// Deploy configuration
type DeployConfig struct {
// Name of the s3 bucket for uploading template
S3Bucket string `yaml:"s3Bucket"`
// Template directory
TemplateDir string `yaml:"templateDir"`
// Environments directory
EnvDir string `yaml:"envDir"`
// Template directory
ParamDir string `yaml:"paramDir"`
// Stacks config
Stacks []*StackConfig `yaml:"stacks"`
// config file absolute path
absPath string
}
// Stack configuration
type StackConfig struct {
// Name of the stack
Name string `yaml:"name"`
// Template relative path
Tpl string `yaml:"tpl"`
// Parameter file relative path
Param string `yaml:"param,omitempty"`
Tags map[string]string `yaml:"tags,omitempty"`
}
// Load deploy config from file.
// If no file path given, default to lookup
// file "stacks.yaml" at current directory.
func NewDeployConfig(file string) (*DeployConfig, error) {
if len(file) == 0 {
file = DEFAULT_DEPLOY_CONFIG_FILE_NAME
}
data, err := ioutil.ReadFile(file)
if err != nil {
return nil, err
}
funcMap := template.FuncMap{
funcs.FUNC_NAME_ENV: funcs.GetEnv,
funcs.FUNC_NAME_AWS_ACCOUNT_ID: funcs.AwsAccountId,
funcs.FUNC_NAME_HASH: funcs.Md5,
}
tmpl, err := template.New(uuid.New().String()).Funcs(funcMap).Parse(string(data))
if err != nil {
return nil, err
}
var b bytes.Buffer
if err := tmpl.Execute(&b, nil); err != nil {
return nil, err
}
dc := new(DeployConfig)
if err := yaml.Unmarshal(b.Bytes(), dc); err != nil {
return nil, err
}
dc.absPath, err = filepath.Abs(filepath.Dir(file))
if err != nil {
return nil, err
}
if err := dc.Validate(); err != nil {
return nil, err
}
return dc, nil
}
// Validate path configuration
func (dc *DeployConfig) Validate() error {
var msg string
if ok, err := utils.IsDir(path.Join(dc.absPath, dc.TemplateDir)); !ok || err != nil {
msg = "There is a problem with templateDir in configuration."
}
if ok, err := utils.IsDir(path.Join(dc.absPath, dc.EnvDir)); !ok || err != nil {
msg = "There is a problem with envDir in configuration."
}
if ok, err := utils.IsDir(path.Join(dc.absPath, dc.ParamDir)); !ok || err != nil {
msg = "There is a problem with paramDir in configuration."
}
if len(msg) > 0 {
return errors.New(utils.MsgFormat(msg, utils.MessageTypeError))
}
return nil
}
func (dc *DeployConfig) GetTplPath(n string) string {
return path.Join(dc.absPath, dc.TemplateDir, n)
}
func (dc *DeployConfig) GetParamPath(n string) string {
return path.Join(dc.absPath, dc.ParamDir, n)
}
func (dc *DeployConfig) GetEnvDirPath(n string) string {
return path.Join(dc.absPath, dc.EnvDir, n)
}
// Return a stack config by its name
func (dc *DeployConfig) GetStackConfigByName(n string) *StackConfig {
for _, sc := range dc.Stacks {
if sc.Name == n {
return sc
}
}
return nil
}
// filter function type
type stackFilter func(sc *StackConfig, s string) bool
// Filter function and value to use for
type filterConfig struct {
// Needle for the filter
value string
// filter function
funct stackFilter
}
// Filter by name
func nameFilter(sc *StackConfig, names string) bool {
nameList := strings.Split(names, ",")
for _, name := range nameList {
if name == sc.Name {
return true
}
}
return false
}
// Tag filter
func tagFilter(sc *StackConfig, tags string) bool {
tagList := strings.Split(tags, ",")
c := len(tagList)
for _, tag := range tagList {
tagAttr := strings.Split(tag, "=")
for k, v := range sc.Tags {
if k == tagAttr[0] && v == tagAttr[1] {
c--
}
}
}
// If all tags are matched
if c == 0 {
return true
}
return false
}
// Return all stack configs
func allFilter(sc *StackConfig, all string) bool {
return true
}
// Get filter list
func getFilters(f map[string]string) []filterConfig {
var sf []filterConfig
// If no filter given, provide allfiler
if f == nil || len(f) == 0 {
sf = append(sf, filterConfig{funct: allFilter})
return sf
}
for k, v := range f {
switch k {
case "name":
sf = append(sf, filterConfig{value: v, funct: nameFilter})
case "tag":
sf = append(sf, filterConfig{value: v, funct: tagFilter})
}
}
return sf
}
// Find stack config for given list
func (dc *DeployConfig) GetStackList(f map[string]string) map[string]*StackConfig {
result := make(map[string]*StackConfig)
filters := getFilters(f)
// Get the full list in the right format
for _, sc := range dc.Stacks {
result[sc.Name] = sc
}
for k, sc := range result {
for _, f := range filters {
// If found not meet the given filter,
// remove from the result
if !f.funct(sc, f.value) {
delete(result, k)
}
}
}
return result
}
| go |
<reponame>webdev188/tytus
import sys
sys.path.append('../G26/Instrucciones')
sys.path.append('../G26/Utils')
sys.path.append('../G26/Librerias/storageManager')
from instruccion import *
from Lista import *
from TablaSimbolos import *
from jsonMode import *
class Use(Instruccion):
def __init__(self, dbid):
self.dbid = dbid
def execute(self, data):
databaseList = showDatabases()
for database in databaseList:
if self.dbid.column.upper() == database :
data.databaseSeleccionada = database
if database in data.tablaSimbolos:
''
else:
data.tablaSimbolos[database] = {'tablas' : {}, 'enum' : {}, 'owner' : 'CURRENT_USER', 'mode' : '1'}
return 'La database ' + database + ' ha sido seleccionada.'
return 'Error(???): La database ' + self.dbid.column.upper() + ' no existe.'
def __repr__(self):
return str(self.__dict__)
| python |
<filename>src/input/mouse/Mouse.js<gh_stars>1-10
//------------------------------------------------------------------------------
// Constructor scope
//------------------------------------------------------------------------------
/**
* Creates a new mouse object.
*
* @constructor
* @extends rune.geom.Point
*
* @param {Object} [options] Mouse settings.
*
* @class
* @classdesc
*
* Represents the computer mouse. Can be used to read the current position of
* the mouse pointer, or the state of available mouse buttons.
*/
rune.input.Mouse = function(options) {
//--------------------------------------------------------------------------
// Private properties
//--------------------------------------------------------------------------
/**
* Settings for the current mouse.
*
* @type {rune.input.MouseOptions}
* @private
*/
this.m_options = new rune.input.MouseOptions(options);
/**
* Whether the mouse is enabled or not.
*
* @type {boolean}
* @protected
* @ignore
*/
this.m_enable = this.m_options.enable;
/**
* Reference to event handler.
*
* @type {Function}
* @private
*/
this.m_onContextMenuHandler = null;
/**
* Reference to event handler.
*
* @type {Function}
* @private
*/
this.m_onButtonDownHandler = null;
/**
* Reference to event handler.
*
* @type {Function}
* @private
*/
this.m_onMouseMoveHandler = null;
/**
* Reference to event handler.
*
* @type {Function}
* @private
*/
this.m_onButtonUpHandler = null;
/**
* List of mouse buttons.
*
* @type {Array.<rune.input.MouseButton>}
* @private
*/
this.m_buttons = [];
//--------------------------------------------------------------------------
// Super call
//--------------------------------------------------------------------------
/**
* Extend Point
*/
rune.geom.Point.call(this, 0, 0);
//--------------------------------------------------------------------------
// Constructor call
//--------------------------------------------------------------------------
/**
* Call for dedicated constructor method.
*/
this.m_construct();
};
//------------------------------------------------------------------------------
// Inheritance
//------------------------------------------------------------------------------
rune.input.Mouse.prototype = Object.create(rune.geom.Point.prototype);
rune.input.Mouse.prototype.constructor = rune.input.Mouse;
//------------------------------------------------------------------------------
// Public prototype getter and setter methods
//------------------------------------------------------------------------------
/**
* ...
*
* @member {boolean} enable
* @memberof rune.input.Mouse
* @instance
*/
Object.defineProperty(rune.input.Mouse.prototype, "enable", {
/**
* ...
*
* @this rune.input.Mouse
* @ignore
*/
get : function() {
return this.m_enable;
},
/**
* ...
*
* @this rune.input.Mouse
* @ignore
*/
set : function(value) {
if (this.m_enable != value) {
this.m_enable = value;
if (this.m_enable == true) this.m_constructEvent();
else this.m_disposeEvent();
}
}
});
//------------------------------------------------------------------------------
// Public prototype methods (API)
//------------------------------------------------------------------------------
/**
* Check if a button was just pressed.
*
* @param {number} button Button ID.
*
* @returns {boolean}
*/
rune.input.Mouse.prototype.justPressed = function(button) {
button = button || 0;
return (this.m_buttons != null && this.m_buttons[button] != null) ? this.m_buttons[button].isJustPressed() : false;
};
/**
* Check if a button was just released.
*
* @param {number} button Button ID.
*
* @returns {boolean}
*/
rune.input.Mouse.prototype.justReleased = function(button) {
button = button || 0;
return (this.m_buttons != null && this.m_buttons[button] != null) ? this.m_buttons[button].isJustReleased() : false;
};
/**
* Check if a button is pressed.
*
* @param {number} button Button ID.
*
* @returns {boolean}
*/
rune.input.Mouse.prototype.pressed = function(button) {
button = button || 0;
return (this.m_buttons != null && this.m_buttons[button] != null) ? this.m_buttons[button].isPressed() : false;
};
/**
* Reset the state of all buttons.
*
* @returns {undefined}
*/
rune.input.Mouse.prototype.reset = function() {
this.x = 0;
this.y = 0;
if (this.m_buttons != null) {
for (var i = 0, l = this.m_buttons.length; i < l; i++) {
this.m_buttons[i].reset();
}
}
};
//------------------------------------------------------------------------------
// Public prototype methods (ENGINE)
//------------------------------------------------------------------------------
/**
* Updates the state of all buttons.
*
* @returns {undefined}
*/
rune.input.Mouse.prototype.update = function() {
if (this.m_enable == true) {
this.m_updateButtons();
}
};
/**
* Disables the mouse and frees up allocated memory.
*
* @returns {undefined}
*/
rune.input.Mouse.prototype.dispose = function() {
this.m_disposeEvent();
this.m_disposeButtons();
};
//------------------------------------------------------------------------------
// Protected prototype methods
//------------------------------------------------------------------------------
/**
* Method that represents the class constructor.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_construct = function() {
this.m_constructButtons();
if (this.m_options.enable == true) {
this.m_constructEvent();
}
};
/**
* Creates all buttons.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_constructButtons = function() {
this.m_buttons = [];
this.m_buttons[0] = new rune.input.MouseButton();
this.m_buttons[1] = new rune.input.MouseButton();
this.m_buttons[2] = new rune.input.MouseButton();
};
/**
* Creates necessary event listeners.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_constructEvent = function() {
this.m_constructEventMove();
this.m_constructEventDown();
this.m_constructEventUp();
this.m_constructEventContextMenu();
};
/**
* Listens for MOUSE_MOVE.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_constructEventMove = function() {
this.m_onMouseMoveHandler = rune.util.Event.addEventListener(
this.m_options.target,
rune.util.Event.MOUSE_MOVE,
this.m_onMouseMove,
{},
false,
this
);
};
/**
* Listens for MOUSE_DOWN.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_constructEventDown = function() {
this.m_onButtonDownHandler = rune.util.Event.addEventListener(
this.m_options.target,
rune.util.Event.MOUSE_DOWN,
this.m_onButtonDown,
{},
false,
this
);
};
/**
* Listens for MOUSE_UP.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_constructEventUp = function() {
this.m_onButtonUpHandler = rune.util.Event.addEventListener(
this.m_options.target,
rune.util.Event.MOUSE_UP,
this.m_onButtonUp,
{},
false,
this
);
};
/**
* Listens for CONTEXTMENU.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_constructEventContextMenu = function() {
if (this.m_options.useContextMenu === false) {
this.m_onContextMenuHandler = rune.util.Event.addEventListener(
this.m_options.target,
rune.util.Event.CONTEXTMENU,
function(event) {
event.preventDefault();
},
{},
false,
this
);
}
};
/**
* onMouseMove.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_onMouseMove = function(event) {
event = rune.util.Event.getEvent(event);
if (event != null) {
var rect = event.target.getBoundingClientRect();
var nw = rune.system.Main['instance']['screen']['width'];
var nh = rune.system.Main['instance']['screen']['height'];
var sw = rune.system.Main['instance']['screen']['canvas']['element'].offsetWidth;
var sh = rune.system.Main['instance']['screen']['canvas']['element'].offsetHeight;
var sx = sw / nw;
var sy = sh / nh;
this.x = (event.clientX - rect.left) / sx;
this.y = (event.clientY - rect.top) / sy;
}
};
/**
* onButtonDown.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_onButtonDown = function(event) {
event = rune.util.Event.getEvent(event);
var button = event.button || 0;
if (this.m_buttons != null && this.m_buttons[button] != null) {
this.m_buttons[button].onButtonDown();
}
};
/**
* onButtonUp.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_onButtonUp = function(event) {
event = rune.util.Event.getEvent(event);
var button = event.button || 0;
if (this.m_buttons != null && this.m_buttons[button] != null) {
this.m_buttons[button].onButtonUp();
}
};
/**
* Updates the state of all buttons.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_updateButtons = function() {
if (this.m_buttons != null && this.m_enable == true) {
for (var i = 0; i < this.m_buttons.length; i++) {
this.m_buttons[i].update();
}
}
};
/**
* Removes all event listeners.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_disposeEvent = function() {
this.reset();
this.m_disposeEventMove();
this.m_disposeEventDown();
this.m_disposeEventUp();
this.m_disposeEventContextMenu();
};
/**
* Removes MOUSE_MOVE.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_disposeEventMove = function() {
if (this.m_onMouseMoveHandler != null) {
rune.util.Event.removeEventListener(
this.m_options.target,
rune.util.Event.MOUSE_MOVE,
this.m_onMouseMoveHandler,
{},
false
);
this.m_onMouseMoveHandler = null;
}
};
/**
* Removes MOUSE_DOWN.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_disposeEventDown = function() {
if (this.m_onButtonDownHandler != null) {
rune.util.Event.removeEventListener(
this.m_options.target,
rune.util.Event.MOUSE_DOWN,
this.m_onButtonDownHandler,
{},
false
);
this.m_onButtonDownHandler = null;
}
};
/**
* Removes MOUSE_UP.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_disposeEventUp = function() {
if (this.m_onButtonUpHandler != null) {
rune.util.Event.removeEventListener(
this.m_options.target,
rune.util.Event.MOUSE_UP,
this.m_onButtonUpHandler,
{},
false
);
this.m_onButtonUpHandler = null;
}
};
/**
* Removes CONTEXTMENU.
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_disposeEventContextMenu = function() {
if (this.m_onContextMenuHandler != null) {
rune.util.Event.removeEventListener(
this.m_options.target,
rune.util.Event.CONTEXTMENU,
this.m_onContextMenuHandler,
{},
false
);
this.m_onContextMenuHandler = null;
}
};
/**
*
*
* @returns {undefined}
* @protected
* @ignore
*/
rune.input.Mouse.prototype.m_disposeButtons = function() {
if (this.m_buttons != null && this.m_buttons.length > 0) {
this.m_buttons.length = 0;
this.m_buttons = null;
}
}; | javascript |
<reponame>howardjones/video-game-versioning
const gamever = require('./index');
console.log(gamever.semver_to_game("Excel", "1.1.0"))
//=> "New Excel Plus"
| javascript |
/*
* org.riverock.portlet - Portlet Library
*
* Copyright (C) 2006, Riverock Software, All Rights Reserved.
*
* Riverock - The Open-source Java Development Community
* http://www.riverock.org
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.riverock.portlet.dao;
import java.util.Date;
import java.util.List;
import org.riverock.portlet.webclip.WebclipBean;
import org.riverock.portlet.webclip.manager.bean.WebclipStatisticBean;
/**
* User: SergeMaslyukov
* Date: 10.09.2006
* Time: 17:31:48
* <p/>
* $Id$
*/
public interface WebclipDao {
WebclipBean getWebclip(Long siteId, Long webclipId);
WebclipBean getWebclip(Long siteId, Long webclipId, boolean isInitWebclipData);
List<Long> getAllForSite(Long siteId);
Long createWebclip(Long siteId);
void updateWebclip(WebclipBean webclip, String resultContent);
void setOriginContent(WebclipBean webclip, byte[] bytes);
void deleteWebclip(Long siteId, Long weblipId);
void markAllForReload(Long siteId);
void markAllForProcess(Long siteId);
WebclipStatisticBean getStatistic(Long siteId);
long getTotalCount(Long siteId);
long getNotIndexedCount(Long siteId);
void markAsIndexed(Long siteId, Long webclipId);
void markAllForIndexing(Long siteId);
WebclipBean getFirstForIndexing(Long siteId);
}
| java |
declare namespace plus.io {
//应用运行资源目录常量
const PRIVATE_WWW: number;
//应用私有文档目录常量
const PRIVATE_DOC: number;
//程序公用文档目录常量
const PUBLIC_DOCUMENTS: number;
//程序公用下载目录常量
const PUBLIC_DOWNLOADS: number;
//----方法: function
/**通过URL参数获取目录对象或文件对象 */
function resolveLocalFileSystemURL(
url: string,
succesCB: FileResolveSuccessCallback,
errorCB?: FileErrorCallback
): void;
//----回调方法:back function
/**获取文件或目录状态信息成功的回调函数*/
interface MetadataSuccessCallback {
(metadata: Metadata): void;
}
/** EntrySuccessCallback 操作文件或目录对象成功的回调函数*/
interface EntrySuccessCallback {
(entry: DirectoryEntry): void;
}
interface FileResolveSuccessCallback {
(entry: DirectoryEntry | FileEntry): void;
}
interface FileErrorCallback {
(error: DOMException): void;
}
//-------对象:
/**
* 文件系统对象,用于管理特定本地文件目录
*/
interface FileSystem {
readonly name: String;
readonly root: DirectoryEntry;
}
/** JSON对象,保存文件或目录的状态信息对象 */
interface Metadata {
modificationTime: Date;
size: number;
directoryCount: number;
fileCount: number;
}
/** 文件系统中的目录对象,用于管理特定的本地目录 */
interface DirectoryEntry {
//属性
readonly isFile: boolean;
readonly isDirectory: boolean;
readonly name: String;
readonly fullPath: String;
readonly fileSystem: FileSystem;
//-------fangfa
/**
* 获取目录的属性
*/
getMetadata(
succesCB: MetadataSuccessCallback,
errorCB: FileErrorCallback,
recursive: boolean
): void;
/**move file */
moveTo(
parent: DirectoryEntry,
newName?: String,
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/** 拷贝目录*/
copyTo(
parent: DirectoryEntry,
neaName?: String,
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/** 获取目录路径转换为URL地址 */
toURL(): String;
/**获取目录路径转换为本地路径URL地址*/
toLocalURL(): String;
/**获取目录路径转换为网络路径URL地址 */
toRemoteURL(): String;
/**删除目录 */
remove(succesCB?: EntrySuccessCallback, errorCB?: FileErrorCallback): void;
/**获取目录所属的父目录 */
getParent(
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/**创建目录读取对象 */
createReader(): DirectoryReader;
/** 创建或打开子目录 */
getDirectory(
path: String,
flag?: Flags,
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/**创建或打开文件 */
getFile(
path: String,
flag?: Flags,
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/** 递归删除目录 */
removeRecursively(
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
}
/** 读取目录信息对象,用于获取目录中包含的文件及子目录 */
interface DirectoryReader {}
/** 文件系统中的文件数据对象,用于获取文件的数据 */
interface File {}
/** 文件系统中的文件对象,用于管理特定的本地文件 */
interface FileEntry {
//属性
readonly isFile: boolean;
readonly isDirectory: boolean;
readonly name: string;
readonly fullPath: string;
readonly fileSystem: string;
/**获取文件的属性信息 */
getMetadata(
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/**删除文件 */
remove(succesCB?: EntrySuccessCallback, errorCB?: FileErrorCallback): void;
/**移动文件 */
moveTo(
parent: DirectoryEntry,
newName: string,
succesCB?: EntrySuccessCallback,
errorCB?: FileErrorCallback
): void;
/**获取目录路径转换为本地路径URL地址*/
toLocalURL(): String;
}
/**JSON对象,获取文件操作的参数 */
interface Flags {
create: boolean;
exclusive: boolean;
}
}
| typescript |
<filename>public/lib/angular/angular-1.5.8/docs/partials/api/ngComponentRouter/directive.html
<h1>Directive components in <code>ngComponentRouter</code></h1>
<div class="component-breakdown">
<div>
<table class="definition-table">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><a href="api/ngComponentRouter/directive/ngOutlet">ngOutlet</a></td>
<td><p>The directive that identifies where the <a href="api/ngComponentRouter/type/Router"><code>Router</code></a> should render its <strong>Components</strong>.</p>
</td>
</tr>
</table>
</div>
</div>
| html |
<reponame>heidelpay/heidelpayJava
package com.heidelpay.payment.business.paymenttypes;
/*-
* #%L
* Heidelpay Java SDK
* %%
* Copyright (C) 2018 Heidelpay GmbH
* %%
* 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.
* #L%
*/
import com.heidelpay.payment.Charge;
import com.heidelpay.payment.business.AbstractPaymentTest;
import com.heidelpay.payment.communication.HttpCommunicationException;
import com.heidelpay.payment.paymenttypes.PostFinanceEFinance;
import org.junit.Test;
import java.math.BigDecimal;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Currency;
import static org.junit.Assert.assertNotNull;
public class PostFinanceEFinanceTest extends AbstractPaymentTest {
@Test
public void testCreatePostFinanceEFinanceMandatoryType() throws HttpCommunicationException {
PostFinanceEFinance pfEFinance = new PostFinanceEFinance();
pfEFinance = getHeidelpay().createPaymentType(pfEFinance);
assertNotNull(pfEFinance.getId());
}
@Test
public void testChargePostFinanceEFinanceType() throws HttpCommunicationException, MalformedURLException {
PostFinanceEFinance pfEFinance = getHeidelpay().createPaymentType(getPostFinanceEFinance());
Charge charge = pfEFinance.charge(BigDecimal.ONE, Currency.getInstance("CHF"), new URL("https://www.google.at"));
assertNotNull(charge);
assertNotNull(charge.getId());
assertNotNull(charge.getRedirectUrl());
}
@Test
public void testFetchPostFinanceEFinanceType() throws HttpCommunicationException {
PostFinanceEFinance pfEFinance = getHeidelpay().createPaymentType(getPostFinanceEFinance());
assertNotNull(pfEFinance.getId());
PostFinanceEFinance fetchedPostFinanceEFinance = (PostFinanceEFinance) getHeidelpay().fetchPaymentType(pfEFinance.getId());
assertNotNull(fetchedPostFinanceEFinance.getId());
}
private PostFinanceEFinance getPostFinanceEFinance() {
PostFinanceEFinance pfEFinance = new PostFinanceEFinance();
return pfEFinance;
}
}
| java |
{"type":"sap.web","builders":{"configs":{}},"runners":{"configs":{}},"attributes":{"sap.watt.common.setting":["{\"layout\":{\"snapshot\":{\"viewport\":{\"x\":-789,\"y\":-303.25,\"scale\":1},\"collapsedPorts\":[\"_myApp_webapp_view_App_view_xml_2\"],\"expandedShapes\":[],\"selection\":[\"data1\"],\"focus\":\"data1\"}}}"]},"mixinTypes":[]} | json |
<filename>.cache/caches/gatsby-transformer-sharp/diskstore-b87e8ebeccd368f858b19c86590d4b32.json<gh_stars>0
{"expireTime":9007200860463046000,"key":"<KEY>{\"background\":\"rgba(0,0,0,1)\",\"duotone\":false,\"grayscale\":false,\"rotate\":0,\"trim\":false,\"toFormat\":\"png\",\"toFormatBase64\":\"\",\"cropFocus\":17,\"fit\":\"cover\",\"width\":20,\"height\":20}","val":{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMA<KEY>HHb6hkAAAB80lEQVQ4y6WUy27aQBSG521bqYu+QtZtV91U3SVVhZQtqho1qy4SKTSlJE4cA7YbE3CAmDiGYGLsGf+1x5fOGFiEHGHhOcz55p9zgUC0OE4/FVdcPskK/ccQIz/k7/JvmRE/YqibLs6cxQqgCltQYOf4Bu9+D8FKAXEZx4HmLMKr7xo+KXcCENLJlPFwtBwbHy/6qJ0NMBqNuI8xGUqixPFnssSRqiNaBv+h+RUKmOreYt84BYtZSsGVqmIwGGTQZD/LBZAiaQ8TB1eaJskvYPr0Dl+7DR4kWrvdhmVZko+kwUWgYRiwbZu/h5Ty797jPb50TxAyWqoRi2DqOs7NG2jTiHNIXEmsoijw/Tlf38497HVO4EfLHMak6hf2uWXjzaGOjhdmQHHDbOpB0XT8nQeo6Q08BAsJVlZeiGk6T6h13GQvTXJYqWxquxdjvD3UoHk+X0dMhuUas/RX8kpWmxc46E3xoWnDDdjGBhZvJj6kOhWpLZKcfetdctiqMmyElgqrzvSKdeu8LMY62CYj62cWHOgG/vbAIpDm1fzRV3kPvggotsfx0MBlMm7rmvlZCovxak36aIyvy0O2AhZqUrNmDn4Ou9JMv0hhczzD+9NrDH0qHbQ1sG56eH3Qwa9xNnp02yuXMx2yZPTC5F8mflal/wES9hfsxjJq1QAAAABJRU5ErkJggg==","width":20,"height":20,"aspectRatio":1,"originalName":"325_Network_mapcolorttoedge2.png"}} | json |
<gh_stars>0
package org.isep.sociallog.similarity;
import com.google.common.collect.Sets;
import java.util.Map;
import java.util.Set;
/**
* Created by slefebvr on 20/03/17.
*/
public class JaccardSimilarity extends SimilarityFun {
public JaccardSimilarity(Map<String,Double> user) {
super(user);
}
@Override
public Double transformEntry(String s, Map<String, Double> otherUser) {
Set<String> inSet = this.node.keySet(),
compSet = otherUser.keySet();
int inter = Sets.intersection(inSet, compSet).size(),
union = Sets.union(inSet,compSet).size();
return 1.0*inter / union;
}
}
| java |
Bengaluru: The State Government has sanctioned ultra-modern Operation Theatres (OTs) at Mysuru, Mandya, Ballari and Hubballi Medical College Hospitals.
The OTs, which costs Rs. 15 crore each, will facilitate conduct of 15 to 20 surgies at a time. These OTs will be used by a dedicated team of specialist doctors.
Victoria Hospital at Bengaluru already has such a facility and this will be replicated at Mysuru, Mandya, Ballari and Hubballi Government Medical Colleges in the coming days. Taking health care much forward, the Government has prepared an action plan to set up Cardiology and Oncology units at all District Hospitals in the State, in order to ease pressure on the dedicated hospitals at Bengaluru and Mysuru.
In yet another mega plan on health care, the State Government has decided to construct a huge hospital at Kanakapura about 55 kms from Bengaluru, to be named as Kanakapura Institute of Medical Sciences, on the lines of the famous AIIMS Hospital of New Delhi. | english |
The voices of the Lebanese people protesting for about 10 months now haven’t been heard nor heeded by politicians who refuse to budge, a government who doesn’t comprehend the urgency of implementing reforms, a ruling body that is oblivious of their real responsibilities towards its citizens, and a state that is ruled by sectarian politics.
The apocalyptic explosion of this week the got the people to say “enough is enough,” considering that it was caused by neglect from the state and at least two of its institutions, and probably corruption.
Officials raised the alarm 10 times in the seven years the ammonium nitrate was there, documents show, but nothing has been done.
While the investigation into the cause of the explosion is still ongoing, the country’s interior minister Mohammed Fahmi suggested the blast was likely caused by more than 2,700 tonnes of ammonium nitrate that was confiscated in 2014 and had been stored in a warehouse at the port ever since.
There are only two reasons why such a quantity of highly explosive substance would be held for so long in the port. One is negligence, the other is corruption. In Lebanon, both are a part of daily life, a method by which the country’s ruling class have killed their citizens for decades.
They are the same reasons why garbage piles up in the streets sporadically in Lebanon during squabbles over the spoils of waste disposal contracts, why the country cannot provide stable electricity supply, and why thousands of young Lebanese are leaving the country every year.
A corrupt political elite that has ruled the country since the end of the civil war, made up of the warlords from that very conflict, has robbed generations of Lebanese citizens of their right to be treated as citizens and not dependents.
| english |
{
"id": 164681,
"info": {
"name": "09 Screen reader text",
"description": "Shows hidden things",
"additionalInfo": null,
"format": "uso",
"category": "global",
"createdAt": "2018-10-03T18:22:23.000Z",
"updatedAt": "2019-04-29T21:10:15.000Z",
"license": "NO-REDISTRIBUTION",
"author": {
"id": 622851,
"name": "<NAME>"
}
},
"stats": {
"installs": {
"total": 17,
"weekly": 0
}
},
"screenshots": {
"main": {
"name": "164681_additional_31926.jpeg",
"archived": true
},
"additional": [
{
"name": "164681_additional_31926.jpeg",
"archived": true
}
]
},
"discussions": {
"stats": {
"discussionsCount": 0,
"commentsCount": 0
},
"data": []
},
"style": {
"css": "@-moz-document regexp(\"^https?\\\\:\\\\/\\\\/.*\") {\r\n\r\n/* show NarratorSpan */\r\n/*\r\n[aria-hidden=\"true\"] {\r\n color: #000 !important;\r\n display:block;\r\n background-color: #fff !important;\r\n height: auto !important;\r\n width: auto !important;\r\n position: relative !important;\r\n overflow: inherit !important;\r\n top: 0 !important;\r\n clip: unset !important;\r\n white-space: normal !important;\r\n font-size: 12px !Important;\r\n outline: 1px solid #000 !Important;\r\n border: 1px solid #000 !Important;\r\n padding: 2px !Important;\r\n font-weight: bold;\r\n border-radius:0 !important;\r\n opacity:1 !Important;\r\n}\r\n[aria-hidden=\"true\"]::before {\r\n content: \"aria-hidden=\\\"\" attr(aria-hidden) \"\\\" \" !important;\r\n} \r\n[aria-hidden=\"true\"][id]::before {\r\n content: \"aria-hidden=\\\"\" attr(aria-hidden) \"\\\" id=\\\"\" attr(id) \"\\\" \" !important;\r\n}\r\n*/\r\n.clip,\r\n.offscreen,\r\n.visually-hidden,\r\n.visuallyhidden,\r\n.definition,\r\n.pmg-minimal-header,\r\n.NarratorSpan,\r\n.f-screen-reader,\r\n.u-textScreenReader,\r\n[class*=screen-reader],\r\n.sr-only{\r\n color: #000 !important;\r\n display:block;\r\n background-color: #fff !important;\r\n height: auto !important;\r\n width: auto !important;\r\n position: relative !important;\r\n overflow: inherit !important;\r\n top: 0 !important;\r\n clip: unset !important;\r\n white-space: normal !important;\r\n font-size: 12px !Important;\r\n line-height:1; \r\n outline: 1px solid #000 !Important;\r\n border: 1px solid blue !Important;\r\n padding: 2px !Important;\r\n font-weight: bold;\r\n border-radius:0 !important;\r\n opacity:1 !Important;\r\n}\r\n\r\n.clip::before,\r\n.offscreen::before,\r\n.visually-hidden::before,\r\n.definition:before,\r\n.pmg-minimal-header:before,\r\n.NarratorSpan:before,\r\n.f-screen-reader::before,\r\n.u-textScreenReader\r\n[class*=screen-reader],\r\n.sr-only::before{\r\n font-weight:normal;\r\n content: \"Screen reader text class: \\\"\" attr(class) \"\\\" \";\r\n}\r\n\r\n \r\n}"
}
} | json |
<filename>test/printer-pathological.spec.ts<gh_stars>1-10
import { betterer } from '@betterer/betterer';
import { createFixture } from './fixture';
describe('betterer', () => {
it('should handle printing for pathological cases', async () => {
const { paths, readFile, cleanup } = await createFixture('printer-pathological', {
'.betterer.js': `
const { BettererTest } = require('@betterer/betterer');
const { smaller } = require('@betterer/constraints');
const paths = [
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
'./some/long/path/to/some/file',
];
const map = {
a: './some/long/path/to/some/file',
b: './some/long/path/to/some/file',
c: './some/long/path/to/some/file',
d: './some/long/path/to/some/file',
e: './some/long/path/to/some/file',
f: './some/long/path/to/some/file',
g: './some/long/path/to/some/file',
h: './some/long/path/to/some/file',
i: './some/long/path/to/some/file',
j: './some/long/path/to/some/file',
k: './some/long/path/to/some/file',
l: './some/long/path/to/some/file',
m: './some/long/path/to/some/file',
n: './some/long/path/to/some/file',
o: './some/long/path/to/some/file',
p: './some/long/path/to/some/file',
q: './some/long/path/to/some/file',
r: './some/long/path/to/some/file',
s: './some/long/path/to/some/file',
};
module.exports = {
'big array': () => new BettererTest({
test: () => paths,
constraint: () => 'same',
goal: 0
}),
'big object': () => new BettererTest({
test: () => map,
constraint: () => 'same',
goal: 0
})
};
`
});
const configPaths = [paths.config];
const resultsPath = paths.results;
await betterer({ configPaths, resultsPath, workers: false });
const result = await readFile(resultsPath);
expect(result).toMatchSnapshot();
await cleanup();
});
});
| typescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.