text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
[{"id":"1001","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Betung"},{"id":"1002","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Pucung"},{"id":"1003","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Karya"},{"id":"1004","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Jaya"},{"id":"1005","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Aren"},{"id":"1006","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Kacang Barat"},{"id":"1007","provinceId":"36","regencyId":"74","districtId":"03","name":"Pondok Kacang Timur"},{"id":"1008","provinceId":"36","regencyId":"74","districtId":"03","name":"Parigi"},{"id":"1009","provinceId":"36","regencyId":"74","districtId":"03","name":"Parigi Baru"},{"id":"1010","provinceId":"36","regencyId":"74","districtId":"03","name":"Jurangmangu Barat"},{"id":"1011","provinceId":"36","regencyId":"74","districtId":"03","name":"Jurangmangu Timur"}]
|
json
|
Beijing, Policenama Online – Terming India’s moves on Kashmir as “geo-political trickery and unilateralism” riding on the back of “too much confidence” stemming from Prime Minister Narendra Modi’s electoral victory, an editorial in China’s state-run Global Times has warned that “a nationalist India has no future”.
India’s actions “challenge surrounding countries’ interests, but it wants these countries to swallow the provocation and accept the new facts made by India. “New Delhi is much too confident. India’s 2019 general elections consolidated the Modi administration’s power and status,” it said.
The editorial said that it was “highly sensitive” to change “an autonomous region, based on ethnicity or religion, into a centrally administered region”, referring to the creation of the Union Territories of Jammu and Kashmir and Ladakh.
“Kashmir is a disputed area in which three large India-Pakistan wars broke out in the 20th century. Pakistan is mostly impacted by India’s move,” it said, adding it would be “unimaginable if Pakistan does not take strong countermeasures”.
The Global Times is known to carry the views of the ruling Communist Party. The editorial also said that opposition to India’s moves by “Pakistan and Muslims in India-controlled Kashmir may have actual consequences”.
The editorial accused the US and the West of “conniving with India” and alleged that “India also thinks China is busy at the trade war and the Belt and Road Initiative, and so it is a good time to act on border issues”.
Backing China’s close friend Pakistan, it said that “Pakistan is a nuclear power and its state apparatus has loose control over local forces”, an oblique reference to the terrorists who thrive in Pakistan and sneak into India.
It “would be a wiser choice for India not to squeeze its neighbour” Pakistan, it said.
Voicing China’s and Pakistan’s stand on Kashmir, it said: “Territorial, ethnic and religious disputes are concentrated in Kashmir. It is not India’s internal territory. “The United Nations had passed resolution regarding Kashmir’s status. India’s forceful measure to change the region is unlikely to go smoothly. New and old hatred toward New Delhi’s unilateral decision will plant traps in the road ahead for the nation.
Referring to External Affairs Minister S. Jaishankar’s Beijing visit and his meeting with his Chinese counterpart Wang Yi, where the Kashmir issue was discussed, the editorial said though the visit was planned ahead, “many regard the visit as urgent and are connecting it with” that of Pakistan Foreign Minister Shah Mahmood Qureshi’s visit to China.
|
english
|
<reponame>decilio4g/delicias-do-tchelo
import { StyledIcon } from '@styled-icons/styled-icon';
export declare const ArrowAltCircleRight: StyledIcon;
export declare const ArrowAltCircleRightDimensions: {
height: undefined;
width: undefined;
};
|
typescript
|
<reponame>LeoTestard/rust<filename>src/test/run-pass/tempfile.rs
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-fast windows doesn't like 'extern mod extra'
// These tests are here to exercise the functionality of the `tempfile` module.
// One might expect these tests to be located in that module, but sadly they
// cannot. The tests need to invoke `os::change_dir` which cannot be done in the
// normal test infrastructure. If the tests change the current working
// directory, then *all* tests which require relative paths suddenly break b/c
// they're in a different location than before. Hence, these tests are all run
// serially here.
extern mod extra;
use extra::tempfile::TempDir;
use std::os;
use std::libc::consts::os::posix88::{S_IRUSR, S_IWUSR, S_IXUSR};
use std::task;
use std::cell::Cell;
fn test_tempdir() {
let path = {
let p = TempDir::new_in(&Path::new("."), "foobar").unwrap();
let p = p.path();
assert!(ends_with(p.as_vec(), bytes!("foobar")));
p.clone()
};
assert!(!os::path_exists(&path));
fn ends_with(v: &[u8], needle: &[u8]) -> bool {
v.len() >= needle.len() && v.slice_from(v.len()-needle.len()) == needle
}
}
fn test_rm_tempdir() {
let (rd, wr) = stream();
let f: ~fn() = || {
let tmp = TempDir::new("test_rm_tempdir").unwrap();
wr.send(tmp.path().clone());
fail2!("fail to unwind past `tmp`");
};
task::try(f);
let path = rd.recv();
assert!(!os::path_exists(&path));
let tmp = TempDir::new("test_rm_tempdir").unwrap();
let path = tmp.path().clone();
let cell = Cell::new(tmp);
let f: ~fn() = || {
let _tmp = cell.take();
fail2!("fail to unwind past `tmp`");
};
task::try(f);
assert!(!os::path_exists(&path));
let path;
{
let f: ~fn() -> TempDir = || {
TempDir::new("test_rm_tempdir").unwrap()
};
let tmp = task::try(f).expect("test_rm_tmdir");
path = tmp.path().clone();
assert!(os::path_exists(&path));
}
assert!(!os::path_exists(&path));
let path;
{
let tmp = TempDir::new("test_rm_tempdir").unwrap();
path = tmp.unwrap();
}
assert!(os::path_exists(&path));
os::remove_dir_recursive(&path);
assert!(!os::path_exists(&path));
}
// Ideally these would be in std::os but then core would need
// to depend on std
fn recursive_mkdir_rel() {
let path = Path::new("frob");
let cwd = os::getcwd();
debug2!("recursive_mkdir_rel: Making: {} in cwd {} [{:?}]", path.display(),
cwd.display(), os::path_exists(&path));
assert!(os::mkdir_recursive(&path, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
assert!(os::path_is_dir(&path));
assert!(os::mkdir_recursive(&path, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
assert!(os::path_is_dir(&path));
}
fn recursive_mkdir_dot() {
let dot = Path::new(".");
assert!(os::mkdir_recursive(&dot, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
let dotdot = Path::new("..");
assert!(os::mkdir_recursive(&dotdot, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
}
fn recursive_mkdir_rel_2() {
let path = Path::new("./frob/baz");
let cwd = os::getcwd();
debug2!("recursive_mkdir_rel_2: Making: {} in cwd {} [{:?}]", path.display(),
cwd.display(), os::path_exists(&path));
assert!(os::mkdir_recursive(&path, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
assert!(os::path_is_dir(&path));
assert!(os::path_is_dir(&path.dir_path()));
let path2 = Path::new("quux/blat");
debug2!("recursive_mkdir_rel_2: Making: {} in cwd {}", path2.display(),
cwd.display());
assert!(os::mkdir_recursive(&path2, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
assert!(os::path_is_dir(&path2));
assert!(os::path_is_dir(&path2.dir_path()));
}
// Ideally this would be in core, but needs TempFile
pub fn test_rmdir_recursive_ok() {
let rwx = (S_IRUSR | S_IWUSR | S_IXUSR) as i32;
let tmpdir = TempDir::new("test").expect("test_rmdir_recursive_ok: \
couldn't create temp dir");
let tmpdir = tmpdir.path();
let root = tmpdir.join("foo");
debug2!("making {}", root.display());
assert!(os::make_dir(&root, rwx));
assert!(os::make_dir(&root.join("foo"), rwx));
assert!(os::make_dir(&root.join("foo").join("bar"), rwx));
assert!(os::make_dir(&root.join("foo").join("bar").join("blat"), rwx));
assert!(os::remove_dir_recursive(&root));
assert!(!os::path_exists(&root));
assert!(!os::path_exists(&root.join("bar")));
assert!(!os::path_exists(&root.join("bar").join("blat")));
}
fn in_tmpdir(f: &fn()) {
let tmpdir = TempDir::new("test").expect("can't make tmpdir");
assert!(os::change_dir(tmpdir.path()));
f();
}
fn main() {
in_tmpdir(test_tempdir);
in_tmpdir(test_rm_tempdir);
in_tmpdir(recursive_mkdir_rel);
in_tmpdir(recursive_mkdir_dot);
in_tmpdir(recursive_mkdir_rel_2);
in_tmpdir(test_rmdir_recursive_ok);
}
|
rust
|
<filename>client/jspm_packages/npm/[email protected]/helpers/typeofReactElement.js
/* */
"use strict";
var _for = require('../core-js/symbol/for');
var _for2 = _interopRequireDefault(_for);
var _symbol = require('../core-js/symbol');
var _symbol2 = _interopRequireDefault(_symbol);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
exports.default = typeof _symbol2.default === "function" && _for2.default && (0, _for2.default)("react.element") || 0xeac7;
exports.__esModule = true;
|
javascript
|
<reponame>apache/chemistry-site
Title: Example code for OpenCMIS clients
# Example code for OpenCMIS clients
Example code and code fragments for the OpenCMIS client API.
## Basics
* [Creating a session](example-create-session.html)
* [Creating and updating a CMIS object](example-create-update.html)
* [Listing a folder](example-list-folder.html)
* [Processing a query](example-process-query-results.html)
* [Reading metadata and content](example-read-meta-content.html)
* [Reading the root folder](example-read-root.html)
* [Retrieving the ID from path](example-get-id-from-path.html)
* [Creating a type (CMIS 1.1)](example-create-type.html)
## Advanced
* [Connecting from .NET](example-connect-dotnet.html)
* [Getting extensions](example-get-extension.html)
* [Using OSGI bundles](example-osgi.html)
|
markdown
|
package com.gmail.nimadastmalchi.tag;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class ActivePlayer {
private final static Material ITEM1 = Material.WOODEN_HOE;
private final static Material ITEM2 = Material.STONE_HOE;
private final static Material ITEM3 = Material.IRON_HOE;
private final static Material ITEM4 = Material.GOLDEN_HOE;
private final static Material ITEM5 = Material.DIAMOND_HOE;
private final static Material ITEM6 = Material.NETHERITE_HOE;
private final static Material WEAPONS[] = {ITEM1, ITEM2, ITEM3, ITEM4, ITEM5, ITEM6};
String name;
private int weaponIndex;
private boolean aimbotStatus;
private long lastTime;
public ActivePlayer(String name) {
this.name = name;
weaponIndex = 0;
aimbotStatus = false;
lastTime = System.currentTimeMillis();
}
// Accessors:
public double getDmg() {
return 5 + 3 * weaponIndex;
}
public boolean hasAimbot() {
return aimbotStatus;
}
public boolean isWeapon(Material m) {
return WEAPONS[weaponIndex] == m;
}
public boolean hasWon() {
return weaponIndex == WEAPONS.length - 1;
}
public long getTime() {
return lastTime;
}
// Mutators:
public void upgradeWeapon() {
weaponIndex = (weaponIndex < WEAPONS.length - 1) ? weaponIndex + 1 : weaponIndex;
giveWeapon();
}
public void downgradeWeapon() {
weaponIndex = (weaponIndex >= 1) ? weaponIndex - 1: weaponIndex;
giveWeapon();
}
public void setAimbotStatus(boolean aimbotStatus) {
this.aimbotStatus = aimbotStatus;
}
public void setTime(long lastTime) {
this.lastTime = lastTime;
}
public void giveWeapon() {
Player p = Bukkit.getPlayer(name);
p.getInventory().setItem(0, new ItemStack(WEAPONS[weaponIndex]));
}
}
|
java
|
{
"replace": true,
"values": [
"minecraft:melon",
"minecraft:pumpkin",
"minecraft:bedrock",
"minecraft:obsidian"
]
}
|
json
|
export { Builder as FormBuilder } from './Builder';
export { default as Form } from './Form';
|
javascript
|
require('./bootstrap');
require('./sb-admin-2')
require('chart.js')
import swal from 'sweetalert';
require('datatables')
require('datatables.net-bs4')
require('jquery-mask-plugin')
require('jquery.easing')
require('chart.js')
//Datatables Initialisation
require('./datatables.init')
//Page specific code
require('./pages/common')
require('./pages/users')
require('./pages/profiles')
require('./pages/dashboards')
require('./pages/inbound-packages')
require('./pages/outbound-packages')
require('./pages/backups')
|
javascript
|
# <center>go</center>
|
markdown
|
#!/usr/bin/env python
from matplotlib import pyplot as P
import numpy as N
from load import ROOT as R
import gna.constructors as C
import pytest
@pytest.mark.parametrize('edges', [N.linspace(0.0, 10.0, 11), N.geomspace(0.1, 1000.0, 5)])
def test_histedges_v01(edges):
centers = 0.5*(edges[1:]+edges[:-1])
widths = edges[1:]-edges[:-1]
data = N.arange(edges.size-1)
hist = C.Histogram(edges, data)
h2e = R.HistEdges()
h2e.histedges.hist(hist.hist.hist)
out_edges = h2e.histedges.edges.data()
out_centers = h2e.histedges.centers.data()
out_widths = h2e.histedges.widths.data()
print( 'Input:' )
print( edges )
print( 'Output:' )
print( 'Edges', out_edges )
print( 'Centers', out_centers )
print( 'Widths', out_widths )
assert (edges==out_edges).all()
assert (centers==out_centers).all()
assert (widths==out_widths).all()
if __name__ == "__main__":
test_histedges()
|
python
|
Russian forces on Tuesday were preparing for an offensive in Ukraine’s southeast, the Ukrainian military said, as President Volodymyr Zelenskyy prepared to talk to the U.N. Security Council amid outrage over evidence Moscow’s soldiers deliberately killed civilians.
Russian President Vladimir Putin’s government is pouring soldiers into Ukraine’s east to gain control of the industrial heartland known as the Donbas. That follows a Russian withdrawal from towns around the capital, Kyiv, which led to the discovery of corpses, prompting accusations of war crimes and demands for tougher sanctions on Moscow.
Russian forces are focused on seizing the cities of Popasna and Rubizhne in the Donetsk and Luhansk regions and the Black Sea port of Mariupol, the General Staff said on its Facebook page. Donetsk and Luhansk are controlled by Russian-backed separatists and recognized by Moscow as independent states. The General Staff said access to Kharkiv in the east, Ukraine’s second-largest city, was blocked.
Zelenskyy, speaking from Ukraine, planned to address Security Council diplomats Tuesday amid demands for an investigation of possible war crimes.
Germany and France reacted by expelling dozens of Russian diplomats, suggesting they were spies. President Joe Biden said Putin should be tried for war crimes.
“This guy is brutal, and what’s happening in Bucha is outrageous,” Biden said, referring to the town northwest of the capital that was the scene of some of the horrors.
Before Zelenskyy speaks, the most powerful U.N. body is due to be briefed by Secretary-General Antonio Guterres; his political chief, Rosemary DiCarlo; and U.N. humanitarian chief Martin Griffiths, who is trying to arrange a cease-fire. Griffiths met with Russian officials in Moscow on Monday and is due to visit Ukraine.
Associated Press journalists in Bucha counted dozens of corpses in civilian clothes and apparently without weapons, many shot at close range, and some with their hands bound or their flesh burned.
After touring neighborhoods of Bucha and speaking to hungry survivors lining up for bread, Zelenskyy pledged in a video address that Ukraine would work with the European Union and the International Criminal Court to identify Russian fighters involved in any atrocities.
“The time will come when every Russian will learn the whole truth about who among their fellow citizens killed, who gave orders, who turned a blind eye to the murders,” he said.
Russia has rejected previous allegations of atrocities as fabrications by Ukraine.
Ukrainian officials said the bodies of at least 410 civilians have been found in towns around Kyiv that were recaptured from Russian forces.
The Ukrainian prosecutor-general’s office described one room discovered in Bucha as a “torture chamber.” In a statement, it said the bodies of five men with their hands bound were found in the basement of a children’s sanatorium where civilians were tortured and killed.
The bodies seen by AP journalists in Bucha included at least 13 in and around a building that local people said Russian troops used as a base. Three other bodies were found in a stairwell, and a group of six were burned together.
The dead witnessed by the news agency’s journalists also included bodies wrapped in black plastic, piled on one end of a mass grave in a Bucha churchyard. Many of those victims had been shot in cars or killed in explosions trying to flee the city. With the morgue full and the cemetery impossible to reach, the churchyard was the only place to keep the dead, Father Andrii Galavin said.
Tanya Nedashkivs’ka said she buried her husband in a garden outside their apartment building after he was detained by Russian troops. His body was one of those left heaped in a stairwell.
Another Bucha resident, Volodymyr Pilhutskyi, said his neighbor Pavlo Vlasenko was taken away by Russian soldiers because the military-style pants he was wearing and the uniforms that Vlasenko said belonged to his security guard son appeared suspicious. When Vlasenko’s body was later found, it had burn marks from a flamethrower, his neighbor said.
However, high-resolution satellite imagery by commercial provider Maxar Technologies showed that many of the bodies have been lying in the open for weeks, during the time that Russian forces were in Bucha. The New York Times first reported on the satellite images showing the dead.
Western and Ukrainian leaders have accused Russia of war crimes before. The International Criminal Court’s prosecutor has already opened an investigation. But the latest reports ratcheted up the condemnation.
French President Emmanuel Macron said there is “clear evidence of war crimes” in Bucha that demand new punitive measures.
“I’m in favor of a new round of sanctions and in particular on coal and gasoline. We need to act,” he said on France-Inter radio.
Though united in outrage, the European allies appeared split on how to respond. While Poland urged Europe to quickly wean itself off Russian energy, Germany said it would stick with a gradual approach of phasing out coal and oil imports over the next several months.
Russia withdrew many of its forces from the area around Kyiv after being thwarted in its bid to swiftly capture the capital. It has instead poured troops into southeastern Ukraine.
About two-thirds of the Russian troops around Kyiv have left and are either in Belarus or on their way there, probably getting more supplies and reinforcements, said a senior U.S. defense official who spoke on condition of anonymity to discuss an intelligence assessment.
More than 1,500 civilians were able to escape Mariupol on Monday, using the dwindling number of private vehicles available to leave, Ukrainian Deputy Prime Minister Iryna Vereshchuk said. The besieged southern port city has seen some of the heaviest fighting of the war.
But amid the fighting, a Red Cross-accompanied convoy of buses that has been thwarted for days on end in a bid to deliver supplies and evacuate residents was again unable to get inside the city, Vereshchuk said.
Elsewhere, Russian shelling killed 11 people in the southern city of Mykolaiv, regional governor Vitaliy Kim said in a video message on social media.
Zelenskyy appealed for more weaponry as Russia prepares new offensives.
“If we had already got what we needed — all these planes, tanks, artillery, anti-missile and anti-ship weapons — we could have saved thousands of people,” he said.
|
english
|
/*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import React, { useState } from "react";
import {
Title,
Flex,
FlexItem,
Card,
CardBody,
CardTitle
} from "@patternfly/react-core";
import { AngleDownIcon, AngleUpIcon } from "@patternfly/react-icons";
import { FormatDistance } from "use-patternfly";
import {
ConnectionDetailHeaderAttributes,
MessagesDetailHeaderAttributes
} from "modules/connection-detail/components";
import { StyleSheet, css } from "aphrodite";
import { ConnectionProtocolFormat } from "utils";
import { useWindowDimensions } from "components";
const styles = StyleSheet.create({
expandable: {
color: "rgb(0, 102, 204)"
},
flex_right_border: {
paddingRight: "1em",
borderRight: "0.05em solid",
borderRightColor: "lightgrey"
}
});
export interface IConnectionHeaderDetailProps {
hostname: string;
containerId: string;
protocol: string;
encrypted: boolean;
creationTimestamp: string;
product?: string;
version?: string;
platform?: string;
os?: string;
messageIn?: number | string;
messageOut?: number | string;
addressSpaceType?: string;
}
export const ConnectionDetailHeader: React.FunctionComponent<IConnectionHeaderDetailProps> = ({
hostname,
containerId,
protocol,
encrypted,
creationTimestamp,
product,
version,
platform,
os,
messageIn,
messageOut,
addressSpaceType
}) => {
const [isHidden, setIsHidden] = useState(true);
const { width } = useWindowDimensions();
return (
<Card>
<CardTitle>
<Title id="cd-header-title" headingLevel="h1" size="4xl">
{hostname}
</Title>
</CardTitle>
<CardBody>
<Flex>
<FlexItem
id="cd-header-container-id"
className={css(styles.flex_right_border)}
>
in container <b>{containerId}</b>
</FlexItem>
<FlexItem
id="cd-header-protocol"
className={css(styles.flex_right_border)}
>
<ConnectionProtocolFormat
protocol={protocol}
encrypted={encrypted}
/>
</FlexItem>
<FlexItem id="cd-header-protocol">
Created
<b>
{creationTimestamp && (
<>
<FormatDistance date={creationTimestamp} /> ago
</>
)}
</b>
</FlexItem>
{width > 992 && (
<FlexItem
id="cd-header-see-hide-more"
onClick={() => {
setIsHidden(!isHidden);
}}
className={css(styles.expandable)}
>
{isHidden ? (
<>
See more details <AngleDownIcon color="black" />
</>
) : (
<>
Hide details
<AngleUpIcon color="black" />
</>
)}
</FlexItem>
)}
</Flex>
<Flex
id="cd-header-connection-messages"
direction={{ sm: "column", lg: "row" }}
>
{(width < 992 || !isHidden) && (
<>
<ConnectionDetailHeaderAttributes
product={product}
version={version}
jvm={platform}
os={os}
isMobileView={width < 992 ? true : false}
/>
<MessagesDetailHeaderAttributes
messageIn={messageIn}
messageOut={messageOut}
isMobileView={width < 992 ? true : false}
addressSpaceType={addressSpaceType}
/>
</>
)}
</Flex>
</CardBody>
</Card>
);
};
|
typescript
|
package reducer.utils;
import java.util.HashMap;
/**
* Created by mczal on 07/03/17.
*/
public class ClassContainerRed {
private HashMap<String, ClassPriorRed> classPriorRedHashMap = new HashMap<String, ClassPriorRed>();
public HashMap<String, ClassPriorRed> getClassPriorRedHashMap() {
return classPriorRedHashMap;
}
public void setClassPriorRedHashMap(
HashMap<String, ClassPriorRed> classPriorRedHashMap) {
this.classPriorRedHashMap = classPriorRedHashMap;
}
}
|
java
|
Charlotte Flair delivered one of the biggest shocks of 2022 when she returned to SmackDown and won the SmackDown Women's Championship. However, fans think Liv Morgan could win the upcoming Royal Rumble match and dethrone The Queen at WrestleMania 39.
By the end of 2022, Charlotte Flair had made a stunning return to the blue brand and surprised the wrestling world as she once again claimed the top spot on the roster by winning the SmackDown Women's Championship.
During The Queen's absence, Liv Morgan rose to the occasion and defeated Ronda Rousey twice as she won the SmackDown Women's Championship and made a successful defense against The Baddest Woman on the Planet.
Last night, Liv Morgan announced that she would enter the Women's Royal Rumble match. WWE Universe is excited about the event and wants to see Morgan win and challenge The Queen for the title at WrestleMania 39:
In 2020, the two stars had their last encounter. It will be interesting to see if Liv Morgan can get a victory over The Queen and reclaim the SmackDown Women's Championship.
Last year, Charlotte Flair ruled the SmackDown Women's division before the arrival of Ronda Rousey. Later, the two stars began feuding with each other and the Rowdy one took the title away from The Queen.
On the final episode of SmackDown in 2022, Flair made her return to the company and quickly dethroned the Baddest Woman on the Planet to reclaim the SmackDown Women's Championship.
Last night, Flair addressed the audience after her victory over The Arm Collector. Unfortunately, she was interrupted by Sonya Deville, who challenged her for the title.
The Queen accepted Deville's challenge and the two settled their differences inside the squared circle for the title. In the end, Flair hit Deville with a Spear and made her tap out to Figure 8 to win the contest.
Do you want to see Liv Morgan vs Charlotte Flair at WrestleMania 39? Sound off in the comment section below.
|
english
|
<reponame>csmetrics/csmetrics.org
{"university of north carolina at chapel hill": {"Citation Count": 11.0, "Publication Count": 1.0}, "university of michigan": {"Citation Count": 46.75, "Publication Count": 1.25}, "university of texas at austin": {"Citation Count": 43.5, "Publication Count": 0.5}, "princeton university": {"Citation Count": 60.35, "Publication Count": 0.45}, "bar ilan university": {"Citation Count": 11.0, "Publication Count": 1.0}, "university of california berkeley": {"Citation Count": 266.0833333333333, "Publication Count": 3.833333333333333}, "google": {"Citation Count": 75.5, "Publication Count": 0.8333333333333333}, "stanford university": {"Citation Count": 88.6, "Publication Count": 2.2}, "cornell university": {"Citation Count": 38.6, "Publication Count": 0.2}, "new york university": {"Citation Count": 38.6, "Publication Count": 0.2}, "polytechnic university of milan": {"Citation Count": 8.0, "Publication Count": 0.25}, "university of california santa barbara": {"Citation Count": 16.0, "Publication Count": 0.5}, "foundation for research technology hellas": {"Citation Count": 16.0, "Publication Count": 1.0}, "microsoft": {"Citation Count": 51.0, "Publication Count": 1.0}, "university of california san diego": {"Citation Count": 123.0, "Publication Count": 1.75}, "ibm": {"Citation Count": 18.0, "Publication Count": 1.0}, "purdue university": {"Citation Count": 108.0, "Publication Count": 1.0}, "institut eurecom": {"Citation Count": 133.0, "Publication Count": 1.0}}
|
json
|
Check Dhemaji Constituency - No. of Household, Population, Winner/Runner-up in Last elections & Vote Percentage & more in Assam Assembly Elections.
Dhemaji Assembly Constituency is in the Lakhimpur district of Assam and falls under Lakhimpur Lok Sabha Constituency. The current MLA representing Dhemaji Assembly Constituency is RanojPegu of BJP.
Dhemaji Assembly Constituency: Name & Number:
Dhemaji Assembly Constituency is in the Dhemaji district of Assam and falls under LakhimpurLok Sabha Constituency. It bears constituency number 113.
Parliamentary Constituency:
LakhimpurLok Sabha constituency is spread over Dhemaji, Dibrugarh, Jorhat, Lakhimpur and Tinsukia districts of Assam. The current MP of the constituency is Pradan Baruah of BJP.
District:
Dhemaji district is in Upper Assam and has its administrative headquarters in Dhemaji town. The district's population is 6,86,133 which includes 3,51,249 males and 3,34,884 females.
Number of towns:
The only town under Dhemaji Assembly Constituency is Dhemaji (Town Committee).
Number of inhabited Villages:
About 268 villages are under Dhemaji Assembly Constituency. Major villages are BharaliChuk, ChengehPathar and Dhubabari.
Assembly Status:
The current MLA of Dhemaji Assembly Constituency is RanojPegu. The assembly seat is reserved for ST candidates only.
Total Population:
The constituency's population is 308103, of which 95. 84% is rural and 4. 16% is urban.
Rural Population(in %)
Urban Population(in %)
Number of Households:
Dhemaji town has about 3,090 households.
Water Connection:
Dhemaji assembly constituency has water facilities of Over Hand Tank (OHT) and tap water from a treated source. The residents of Dhemaji also enjoy the facilities of tube wells and boreholes. There is also an availability of fire-fighting services at Dhemaji.
Street light:
There is domestic electrification at Dhemaji. The availability of industrial and commercial electrification and road lighting is evident at few points at Dhemaji.
Municipality Reach:
The basic amenities like sewerage and water are provided by Dhemaji Town Committee.
95. 47% of Dhemaji's population are Hindus, while 1. 96% of its population are Muslims. The languages spoken in Dhemaji are Assamese, Mishing and Bengali.
Caste & Tribes in the Constituency:
The Scheduled Caste ratio is 6. 43 and the Scheduled Tribe is 37. 05.
Total(in Terms of Ratio)
The only town under the constituency is Dhemaji (Town Committee).
Male/female Electoral Distribution:
The overall count of electorates in the constituency is 210865, where 108293 is the number of male electorates and 102572 is the number of female electorates.
Sex Ratio:
Dhemaji's sex ratio is 989 females per thousand females.
Age Group Distribution:
In Dhemaji, 11. 20% of the population are under six years.
Polling Percentage for Last Two Elections:
The polling percentage in the Lok Sabha Election in 2019 was 70. 19% while it was 80. 8% in Assam Assembly Election of 2016.
Result of Previous Five Assam Election:
- In the 1996 Assam Assembly Election, Dilip Kumar Saikia of AGP won with 36315 votes.
- In 2001, Dilip Kumar Saikia of AGP won again with 31166 votes.
- In 2006, SumitraPatir of INC won with 44960 votes.
- In 2011, SumitraDoleyPatir of INC won with 59633 votes.
- In 2016, PradanBaruah won with 69592 votes.
- In the bye-election held in 2019, RanojPegu of BJP took over as the MLA after PradanBaruah became the MP in the Lok Sabha Election of 2019.
Percentage Vote Share of Political Parties in Last Election:
- 1. In the 2016 Assam Assembly election, PradanBaruah of AGP won with 40. 9% of votes.
- 2. The runner up was SumitraDoleyPatir of INC with 29. 66% of votes.
- 3. Gandheswar Borah of CPI(M) secured 2. 25% of votes,
- 4. KiranbanDeori of LDP secured 1. 44% of votes,
- 6. Hem KantaMiri of SUCI secured 0. 31% of votes.
- 7. Independent candidates, ParamanandaChayengia, SailenSonowal and RajkumarDoley secured 12. 85%, 9. 72%, and 1. 28% of votes, respectively.
- 8. 0. 83% of votes was given to "None of the Above (NOTA)"
CPI(M)
Participated Candidates in the 2016 Assam Election & Result:
The candidates contesting in 2016 Assam Assembly election are PradanBaruah of AGP, SumitraDoleyPatir of INC, Gandheswar Borah of CPI(M), KiranbanDeori of LDP, DurgeswarPatir of LJP secured 0. 75% of votes and Hem KantaMiri of SUCI and independent candidates, ParamanandaChayengia, SailenSonowal and RajkumarDoley. Finally, PradanBaruah of BJP won with 40. 9% of votes. In the bye-election held in 2019, RanojPegu of BJP took over as the MLA after PradanBaruah became the MP in the Lok Sabha Election of 2019.
|
english
|
Germany midfielder Toni Kroos has topped FIFA’s Castrol Player Index for the 2014 World Cup. He topped the list ahead of France’s Karim Benzema and Netherlands winger Arjen Robben who has three goals to his name in the World Cup.
The Player Index is calculated by using a technology which tracks each player’s every move on the football field. It is then termed positive and negative by the impact it has on the match.
The system calculates a player’s points by compiling his positive passes, tackles, interceptions and mistimed tackles, misplaced passes or any movement which has a negative impact on the team’s game.
It is interesting to note that four of Brazil’s players are in the list whereas the world champions Germany have only two. Golden Boot winner James Rodriguez who scored 6 goals in 5 matches finished 9th.
|
english
|
India Shelter Finance IPO: GMP, price, subscription status, review, other details. Should you apply?
India Shelter Finance IPO: The initial public offering (IPO) of India Shelter Finance Corporation Ltd has opened today and it will remain open for bidding till 15th December 2023. Promoters of the company, which was previously known as Satyaprakash Housing Finance India Limited, has fixed India Shelter Finance IPO price band at ₹469 to ₹493 per equity share. The book build issue is proposed for listing on BSE and NSE.
|
english
|
<filename>data/bills/hr/hr3259/data.json
{
"actions": [
{
"acted_at": "2015-07-28",
"committees": [
"HSFA"
],
"references": [],
"status": "REFERRED",
"text": "Referred to the House Committee on Foreign Affairs.",
"type": "referral"
}
],
"amendments": [],
"bill_id": "hr3259-114",
"bill_type": "hr",
"by_request": false,
"committees": [
{
"activity": [
"referral"
],
"committee": "House Foreign Affairs",
"committee_id": "HSFA"
}
],
"congress": "114",
"cosponsors": [],
"enacted_as": null,
"history": {
"active": false,
"awaiting_signature": false,
"enacted": false,
"vetoed": false
},
"introduced_at": "2015-07-28",
"number": "3259",
"official_title": "To grant authority to the President to detain non-diplomatic officials of the Government of Iran in the United States and non-diplomatic officials of the Government of Iran in certain other countries until all United States citizens held by the Government of Iran are released and returned to the United States, and for other purposes.",
"popular_title": null,
"related_bills": [],
"short_title": null,
"sponsor": {
"district": "48",
"name": "<NAME>",
"state": "CA",
"thomas_id": "00979",
"title": "Rep",
"type": "person"
},
"status": "REFERRED",
"status_at": "2015-07-28",
"subjects": [
"Detention of persons",
"Diplomacy, foreign officials, Americans abroad",
"International affairs",
"Iran",
"Middle East"
],
"subjects_top_term": "International affairs",
"summary": {
"as": "Introduced",
"date": "2015-07-28",
"text": "This bill states that Iran is unjustly holding at least three U.S. citizens, <NAME>, <NAME>, and <NAME>, and possibly <NAME>, as hostages.\n\nThe President is authorized to take necessary action to detain non-diplomatic officials of the government of Iran: (1) in the United States, and (2) in any other country whose government provides the United States with prior authorization to take such actions."
},
"titles": [
{
"as": "introduced",
"is_for_portion": false,
"title": "To grant authority to the President to detain non-diplomatic officials of the Government of Iran in the United States and non-diplomatic officials of the Government of Iran in certain other countries until all United States citizens held by the Government of Iran are released and returned to the United States, and for other purposes.",
"type": "official"
}
],
"updated_at": "2016-06-25T06:50:55-04:00",
"url": "http://thomas.loc.gov/cgi-bin/bdquery/z?d114:HR3259:@@@L&summ2=m&"
}
|
json
|
{
"法規性質": "命令",
"法規名稱": "危險性機械及設備檢查費收費標準",
"法規網址": "https://law.moj.gov.tw/LawClass/LawAll.aspx?pcode=N0070020",
"法規類別": "行政>勞動部>勞動檢查目",
"最新異動日期": "20161003",
"是否英譯註記": "N",
"附件": [
{
"name": "檔案名稱",
"children": [
"附表一 危險性機械竣工檢查、定期檢查、重新檢查、使用檢查及變更檢查之檢查費收費基準表.ODT"
]
},
{
"name": "檔案名稱",
"children": [
"附表二 危險性設備熔接檢查、構造檢查、竣工檢查、定期檢查、重新檢查及變更檢查之檢查費收費基準表.ODT"
]
}
],
"沿革內容": "1.中華民國九十六年六月十一日行政院勞工委員會勞檢 2 字第 0960150\r\n 561 號令訂定發布全文 10 條;並自發布日施行\r\n 中華民國一百零三年二月十四日行政院院臺規字第 1030124618 號公告\r\n 第 9 條所列屬「行政院勞工委員會」之權責事項,自一百零三年二月\r\n 十七日起改由「勞動部」管轄\r\n2.中華民國一百零三年六月二十七日勞動部勞職授字第 10302007022 號\r\n 令修正發布第 1、9、10 條條文;並自一百零三年七月三日施行\r\n3.中華民國一百零五年十月三日勞動部勞職授字第 10502030444 號令修\r\n 正發布全文 10 條;並自發布日施行",
"法規內容": [
{
"條號": "第 1 條",
"條文內容": "本標準依據職業安全衛生法(以下簡稱本法)第十六條第三項及規費法第十條訂定之。"
},
{
"條號": "第 2 條",
"條文內容": "依本法申請危險性機械或設備之檢查,檢查機構或代行檢查機構應依本標準收取檢查費。"
},
{
"條號": "第 3 條",
"條文內容": "危險性機械或設備型式檢查之檢查費,每一型式收取新臺幣八千元。但同時申請多種型式,且皆屬相同危險性機械或設備種類者,每增加一種型式,加收新臺幣四千元。\r\n申請前項危險性設備型式檢查之熔接程序規範及熔接程序資格檢定紀錄者,每件次合計收取檢查費新臺幣二千元。"
},
{
"條號": "第 4 條",
"條文內容": "危險性機械之竣工檢查、定期檢查、重新檢查、使用檢查及變更檢查之檢查費,如附表一。\r\n既有危險性機械之檢查費,依前項竣工檢查或使用檢查之檢查費,加收百分之二十。"
},
{
"條號": "第 5 條",
"條文內容": "危險性設備之熔接檢查、構造檢查、竣工檢查、定期檢查、重新檢查及變更檢查之檢查費,如附表二。\r\n既有危險性設備之檢查費,屬高壓氣體容器者,依前項構造檢查之檢查費,加收百分之二十,其餘既有危險性設備依前項構造檢查及竣工檢查二者之檢查費合計,加收百分之二十。\r\n危險性設備之定期檢查依規定僅實施外部檢查者,依第一項之檢查費之百分之六十收取。\r\n經核定延長內部檢查期限或以其他檢查方式替代之定期檢查,依第一項之檢查費,加收百分之二十。"
},
{
"條號": "第 6 條",
"條文內容": "前二條檢查不合格申請復查者,依各該條文所定檢查費百分之六十收費。"
},
{
"條號": "第 7 條",
"條文內容": "前三條之各項檢查,申請於休息日實施者,依各該條文所定檢查費加收百分之五十。"
},
{
"條號": "第 8 條",
"條文內容": "危險性機械或設備檢查合格證明之補發或換發,每張收費新臺幣八百元。"
},
{
"條號": "第 9 條",
"條文內容": "申請危險性機械或設備檢查資料之閱覽,每件次收取新臺幣五百元。複製檢查資料者,依勞動部及所屬機關提供政府資訊收費標準收取複製費。"
},
{
"條號": "第 10 條",
"條文內容": "本標準自發布日施行。"
}
]
}
|
json
|
{
"name": "@nodegui/svelte-nodegui",
"version": "0.1.2",
"description": "Svelte integration for NodeGUI",
"repository": {
"type": "git",
"url": "https://github.com/nodegui/svelte-nodegui.git"
},
"homepage": "https://github.com/nodegui/svelte-nodegui",
"keywords": [
"nodegui",
"svelte"
],
"scripts": {
"clean": "npx rimraf ./dist/*",
"build": "npm run clean && rollup -c && node ./scripts/create-pkg.js",
"prepare": "npm run build",
"watch": "rollup -cw",
"deploy": "npm run build && cd dist && npm publish --access=public"
},
"author": "<NAME> (https://twitter.com/LinguaBrowse)",
"contributors": [
"<NAME> (https://twitter.com/LinguaBrowse)",
"<NAME> <<EMAIL>> (https://mrsauravsahu.github.io)"
],
"license": "MIT",
"peerDependencies": {
"@nodegui/nodegui": "^0.30.2",
"phin": "^3.5.1",
"svelte": "^3.24.1"
},
"devDependencies": {
"@nodegui/nodegui": "^0.30.2",
"glob": "^7.1.6",
"phin": "^3.5.1",
"rimraf": "^2.7.1",
"rollup": "^2.43.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-svelte": "^6.1.1",
"rollup-plugin-typescript2": "^0.25.3",
"svelte": "^3.35.0",
"typescript": "^4.2.3"
}
}
|
json
|
Hello everyone,
accumulated during the 15-year history of MediaWiki.
strength as a software platform.
need of modernization. However, at its core is a large amount of highly functional,
This team will have a more focused purpose than the previous MediaWiki Core team.[2].
Committee and the MediaWiki user community.
Specific goals for this team are to:
a strong core.
* Undertake feature development work which is primarily architectural in nature.
coordination between internal and external users.
* Maintain and promote guidelines and standards for the MediaWiki core.
during the upcoming consultation for the Wikimedia Foundation 2017-2018 annual plan.
Baso, and Trevor Parscal - whose support was critical in bringing this plan together.
Join me in welcoming and celebrating our new team!
|
english
|
School violence and bullying have emerged as “major problems worldwide”, according to a 2019 UNESCO report, with about one in three students bullied by peers at school, including both male and female students.
Riddhi Oswal, 16, who resides with her family in Switzerland, experienced a similar trauma that eventually forced her to leave school. But the challenges continued in her next school, too. While her parents moved the court against constant bullying, Riddhi and her sister Vasundhara, 22, initiated an anti-bullying campaign, Stop The B, to not just support victims, but also encourage people to be active bystanders.
The sister-duo spoke with indianexpress. com.
Excerpts:
What is ‘Stop The B’? When did you begin and how has the progress been?
Vasundhara: It is an anti-bullying campaign for young people by young people founded in October 2019. We think by making the campaign interactive and fun, we can give voice to teenagers who are being bullied, and reassure them they are not alone. Through our platform, we want to encourage them to speak about their experiences. This will help them feel supported, and help bystanders develop empathy towards people being bullied. We have received numerous messages from our followers who told us how our page has helped them feel slightly less alone; many have even said they feel they can start anew after watching/being featured on our page and having their stories aired publicly.
How would you (Riddhi) say bullying affected your well-being?
Riddhi: Almost two years ago, while I was at my previous school, I started to experience mocking from some of the other students who would say nasty things about my ethnicity and personal beliefs, and also isolate me. My parents and I approached many teachers and the school management, but they did not do anything to help; things just got worse! The school lowered my evaluation grades and shockingly even cancelled my re-enrollment. This has also been recognised as a classic example of ‘double punishment’ of the victim by the school, by academics and experts in the field of school violence and bullying.
This (expelling me) made it worse, as the bullies then began to believe they were right and share mean posts about me on social media and online group chats. This was upsetting and the fact that it was all online meant it was hard for me to ignore or get away from. Eventually, I had to quit these chats. The harassers found out about the new school I was joining and even made it their agenda to find the kids who would be my classmates there, and started spreading rumours about me via digital platforms even before I joined. It was really bad — no one wanted to talk to me because of all the hate and rumours.
It was particularly sad as other kids, who noticed what was happening, did not step in, perhaps because they were scared of what would happen if they reported it. This was extremely tough and I felt a part of my life was torn from me and everything around me was just a bad downward spiral.
Only after speaking with my family did I realise this was not normal and that I shouldn’t be suffering in silence. It was this that made us realise something needed to be done. We (my older sister and I) realised a lot of kids don’t want to step in because they are worried they may become a target, or parents and teachers may not take them seriously and instead (double) punish them.
This is a real problem as academics have shown when an active-bystander steps in, the bullying stops in 10 seconds, 57 per cent of the time. That means more than half the bullying in the world could simply stop if kids speak out when they see something wrong being said or done. We want more people to intervene or report bullying.
What was the reaction from friends and family when you pitched the idea initially?
Vasundhara: Our parents were supportive. In fact, it was a unanimous decision to start the campaign as we truly believe only by helping others can we help ourselves, too. They understood that if Riddhi could go through something as dreadful in what is known as “the most expensive/exclusive school in the world” there would be millions, especially lesser-privileged children, who would be going through the same and would be forced into suffering in silence. We are thankful for their support, we could not have made it this far without their love.
Riddhi: It was another situation for some of my classmates in my school. I felt many of them did not want to notice the campaign as they were all partly bystanders to my own personal situation. Only a few close friends were supportive and eventually, some people who were previously bystanders, came forward and applauded the campaign. Of course, there still are people who do not acknowledge and continue to speak badly about it.
Take us through some of your anti-bullying initiatives.
Riddhi: Our campaign tries to challenge the social stigma of reporting bullying and encourages youngsters to recognise, speak out and become “active bystanders”. We have lots of giveaways such as the #activebystander giveaway and our more-recent #make-good challenge. In #activebystander giveaway competition, we encouraged people to share their stories by making artwork or videos about what being an ‘active bystander’ means to them, and we had creative entries from across the globe. We had a young girl who went around being an active bystander for all the people whom she came across that were receiving cyber hate comments, although they were strangers to her. In our more-recent challenge, we encouraged people to write a note, or post a video reel apologising for a time when they think they may have upset someone or not done enough to stop bullying. One of the winners created a real-time video of their apology in which he went to the house of the person in question and apologised for teasing/being offensive to them.
Vasundhara: Stop The B is lucky to have partnered with some of the top academics who are experts in the anti-bullying space in Switzerland and the US, to ensure that the data and infographics we share are backed by the latest and credible academic studies. Besides, former international footballer Ronaldinho recently shared a video and message in which he talks about the seriousness of bullying and demonstrated his support for ‘Stop the B’.
Do you find parents, school authorities sometimes being in denial that their children may be bullies or victims of bullying?
Riddhi: Sadly, yes. My old school went to the lengths of terminating my re-enrollment, basically expelling me because of how “in denial” they were. And because of that, even the perpetrators continued with their agonising behaviour.
My mother had even tried to reach out to one of my harasser’s parents when the bullying transferred to the new school, but received no response. It was painful to see even the other children I had known for seven years (basically my whole childhood, as I’m 16 years old now and the bullying started when I was 14) turned on me, in order to feel as though they are a part of “the group”. We were left with no choice but to take the case to court and only after the proceedings started did the harassment die down a little.
How has the response to ‘Stop The B’ been so far? Any instances you would like to share?
Vasundhara: Recently, we have had one person from the LGBTQ community share their experience of being bullied at school. Elsewhere, lots of our followers have told us they often experience mean insults and accusations online. We also had an Indian boy share a really fun rap song he made, about his feelings towards the body-shaming he personally experienced. We have had several other people that have used our platform to speak out about their own bullying experience and the harassment they have faced.
Has COVID-19 led to an increase in bullying?
Riddhi: Bullying has definitely increased due to the pandemic, as more children are now online and there are not enough rules and regulations concerning cyber-bullying.
Vasundhara: At the same time, we believe it also presents an opportunity to tackle it as families are now in the same household almost all day. It’s easy for children to go up to their parents when there is something wrong or when they feel like they are being bullied. So, we urge parents to encourage their children to speak to them about their feelings openly.
|
english
|
{"id": 2442, "name": "Super defence(4)", "qualified_name": "Super defence (4 dose)", "examine": "4 doses of super Defence potion.", "members": true, "release_date": "2004-03-29", "quest": false, "weight": 0.035, "value": 330, "alchemy": {"high": 198, "low": 132}, "tradeable": true, "stackable": false, "noteable": true, "equipable": false, "tradeable_ge": true, "buy_limit": 2000, "icon": "<KEY> "wiki_url": "https://oldschool.runescape.wiki/w/Super_defence#4_dose"}
|
json
|
The Uttar Pradesh Shia Central Waqf Board Wednesday said it would ask the government to give it the five-acre plot that the Supreme Court said should be allotted for building a mosque, if the the Sunni board rejects the offer.
But the Shia board will use the land for setting up a hospital and not a mosque, its chairman Waseem Rizvi said.
He added that the board will not approach the court but would request the government for the land.
The five-judge had dismissed the claim of the Shia board — one of the main parties in the Ayodhya case —to the disputed site.
The Supreme Court ruled in its November 9 judgment that muslims should be given an alternative five-acre site elsewhere in Ayodhya to build a mosque to replace the one demolished in 1992.
|
english
|
Why you can trust TechRadar We spend hours testing every product or service we review, so you can be sure you’re buying the best. Find out more about how we test.
Billed as the perfect compact camera for travel by Fujifilm, the F550 EXR offers very good image quality, even at moderately high sensitivities and a level of creative flexibility normally only found in higher priced cameras.
Advanced users will love the ability to take control of exposures, and the ability to shoot Raw files. However photographers who prefer to point and shoot may find the wayward exposures under certain conditions, plus the odd niggle with handling, start-up speed and the camera's ability to focus reliably over long distances at the telephoto end of the zoom range a little frustrating.
Despite its flaws, this camera offers a lot of useful features for the money and it may suit those after a well specified camera for travel at a reasonable price, just as Fujifilm intended.
A great range of features such as GPS, high sensitivity and a very useful zoom range, for a very reasonable price.
Slow start-up time, general handling niggles and unreliable autofocus at maximum zoom may cause frustration.
|
english
|
<filename>src/core/library/query/local/TrackMetadataQuery.cpp
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2019 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// * Neither the name of the author nor the names of other contributors may
// be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
//////////////////////////////////////////////////////////////////////////////
#include "pch.hpp"
#include "TrackMetadataQuery.h"
#include <core/library/LocalLibraryConstants.h>
using namespace musik::core::db;
using namespace musik::core::db::local;
using namespace musik::core;
using namespace musik::core::library;
static const std::string COLUMNS = "t.track, t.disc, t.bpm, t.duration, t.filesize, t.title, t.filename, t.thumbnail_id, al.name AS album, alar.name AS album_artist, gn.name AS genre, ar.name AS artist, t.filetime, t.visual_genre_id, t.visual_artist_id, t.album_artist_id, t.album_id, t.source_id, t.external_id";
static const std::string TABLES = "tracks t, albums al, artists alar, artists ar, genres gn";
static const std::string PREDICATE = "t.album_id=al.id AND t.album_artist_id=alar.id AND t.visual_genre_id=gn.id AND t.visual_artist_id=ar.id";
static const std::string ALL_METADATA_QUERY_BY_ID =
"SELECT DISTINCT " + COLUMNS + " " +
"FROM " + TABLES + " " +
"WHERE t.id=? AND " + PREDICATE;
static const std::string ALL_METADATA_QUERY_BY_EXTERNAL_ID =
"SELECT DISTINCT " + COLUMNS + " " +
"FROM " + TABLES + " " +
"WHERE t.external_id=? AND " + PREDICATE;
static const std::string IDS_ONLY_QUERY_BY_ID =
"SELECT DISTINCT external_id, source_id FROM tracks WHERE tracks.id=?";
static const std::string IDS_ONLY_QUERY_BY_EXTERNAL_ID =
"SELECT DISTINCT external_id, source_id FROM tracks WHERE tracks.external_id=?";
TrackMetadataQuery::TrackMetadataQuery(TrackPtr target, ILibraryPtr library, Type type) {
this->result = target;
this->library = library;
this->type = type;
}
bool TrackMetadataQuery::OnRun(Connection& db) {
bool queryById = this->result->GetId() != 0;
std::string query;
if (this->type == Full) {
query = queryById
? ALL_METADATA_QUERY_BY_ID
: ALL_METADATA_QUERY_BY_EXTERNAL_ID;
}
else {
query = queryById
? IDS_ONLY_QUERY_BY_ID
: IDS_ONLY_QUERY_BY_EXTERNAL_ID;
}
Statement trackQuery(query.c_str(), db);
if (queryById) {
trackQuery.BindInt64(0, (int64_t) this->result->GetId());
}
else {
const std::string& externalId = this->result->GetString("external_id");
if (!externalId.size()) {
return false;
}
trackQuery.BindText(0, externalId);
}
if (trackQuery.Step() == Row) {
if (this->type == Full) {
result->SetValue(constants::Track::TRACK_NUM, trackQuery.ColumnText(0));
result->SetValue(constants::Track::DISC_NUM, trackQuery.ColumnText(1));
result->SetValue(constants::Track::BPM, trackQuery.ColumnText(2));
result->SetValue(constants::Track::DURATION, trackQuery.ColumnText(3));
result->SetValue(constants::Track::FILESIZE, trackQuery.ColumnText(4));
result->SetValue(constants::Track::TITLE, trackQuery.ColumnText(5));
result->SetValue(constants::Track::FILENAME, trackQuery.ColumnText(6));
result->SetValue(constants::Track::THUMBNAIL_ID, trackQuery.ColumnText(7));
result->SetValue(constants::Track::ALBUM, trackQuery.ColumnText(8));
result->SetValue(constants::Track::ALBUM_ARTIST, trackQuery.ColumnText(9));
result->SetValue(constants::Track::GENRE, trackQuery.ColumnText(10));
result->SetValue(constants::Track::ARTIST, trackQuery.ColumnText(11));
result->SetValue(constants::Track::FILETIME, trackQuery.ColumnText(12));
result->SetValue(constants::Track::GENRE_ID, trackQuery.ColumnText(13));
result->SetValue(constants::Track::ARTIST_ID, trackQuery.ColumnText(14));
result->SetValue(constants::Track::ALBUM_ARTIST_ID, trackQuery.ColumnText(15));
result->SetValue(constants::Track::ALBUM_ID, trackQuery.ColumnText(16));
result->SetValue(constants::Track::SOURCE_ID, trackQuery.ColumnText(17));
result->SetValue(constants::Track::EXTERNAL_ID, trackQuery.ColumnText(18));
}
else {
result->SetValue(constants::Track::EXTERNAL_ID, trackQuery.ColumnText(0));
result->SetValue(constants::Track::SOURCE_ID, trackQuery.ColumnText(1));
}
return true;
}
return false;
}
|
cpp
|
The Income Tax department has raided Bollywood actor Sonu Sood’s premises in Mumbai, and a company in Lucknow linked to him today. The IT department has inspected six locations with relation to the actor and his companies.
According to reports, the IT department surveyed Sonu’s property due to alleged tampering in the book of accounts related to the actor.
The tax raids come days after Sonu Sood’s meeting with Delhi Chief Minister Arvind Kejriwal. The actor was declared as the brand ambassador for the Delhi government’s mentorship programme for school students in the capital.
Earlier, Sonu Sood was appointed as a brand ambassador for the Punjab government in an awareness program on the coronavirus. Both these governments are against the BJP. At a time like this, the news that IT officials had surveyed premises related to Sonu Sood became sensational.
On the work front, Sonu Sood will next feature in the period drama ‘Prithviraj’. He is also a part of Chiranjeevi’s action-drama ‘Acharya’.
|
english
|
/**
* @author <NAME>
* @file ttablewithmax.cc Implementation of TTableWithMax.
*
*
* COMMENTS:
*
* Technologies langagieres interactives / Interactive Language Technologies
* Inst. de technologie de l'information / Institute for Information Technology
* Conseil national de recherches Canada / National Research Council Canada
* Copyright 2005, Sa Majeste la Reine du Chef du Canada /
* Copyright 2005, Her Majesty in Right of Canada
*/
#include "ttablewithmax.h"
using namespace std;
using namespace Portage;
TTableWithMax::TTableWithMax(const string &filename): TTable(filename)
{
maxBySrc.insert(maxBySrc.begin(), numSourceWords(), 0);
maxByTgt.insert(maxByTgt.begin(), numTargetWords(), 0);
for (Uint i = 0; i < numSourceWords(); i++)
{
for (SrcDistn::const_iterator it = getSourceDistn(i).begin(); it <
getSourceDistn(i).end(); it++)
{
maxBySrc[i] = max(maxBySrc[i], it->second);
maxByTgt[it->first] = max(maxByTgt[it->first], it->second);
} // for
} // for
} // TTableWithMax
double TTableWithMax::maxSourceProb(const string &src_word)
{
assert(numSourceWords() == maxBySrc.size());
Uint index = sourceIndex(src_word);
if (index == numSourceWords())
{
return 0;
} else
{
return maxBySrc[index];
} // if
} // maxSourceProb
double TTableWithMax::maxTargetProb(const string &tgt_word)
{
assert(numTargetWords() == maxByTgt.size());
Uint index = targetIndex(tgt_word);
if (index == numTargetWords())
{
return 0;
} else
{
return maxByTgt[index];
} // if
} // maxTargetProb
|
cpp
|
Borussia Dortmund are reportedly looking to sign Liverpool midfielder Alex Oxlade-Chamberlain this season as he wants a new challenge elsewhere.
Oxlade-Chamberlain has struggled to make the Liverpool team this season despite being largely injury-free after a troublesome start.
Liverpool need a reshuffle this summer and are willing to sell Oxlade-Chamberlain if they receive a bid in the region of €20 million, according to Fichajes (via Sports Mole).
Oxlade-Chamberlain is attracting interest from Borussia Dortmund as the club want to add more midfield dynamism to their team.
The England international has always been someone with immense potential, but sadly hasn’t been able to fulfill that because of form and injuries.
Oxlade-Chamberlain’s debut season with the Reds was perhaps his best as he managed a good run of games after a slow start and was a regular in the team.
However, a season-ending injury that saw him miss the Champions League final against Real Madrid broke all the momentum he had built.
He played an important role last season, but a majority of his appearances came off the bench as he could not break into Jürgen Klopp’s preferred midfield trio of Fabinho, Gini Wijnaldum and Jordan Henderson.
Now 27, he still has a lot of football left in him, but doubts remain if he can ever be a regular under Klopp’s demanding style.
So far this season, Oxlade-Chamberlain has made just 10 appearances for Liverpool in the Premier League. The England international hasn’t been able to nail down a place in the starting XI even in the absence of some if the club’s regular starters.
A move to Borussia Dortmund might be the boost his career needs right now. Dortmund will head in a new direction under Marco Rose next season and will need players with his drive for the setup to work well.
The likes of Axel Witsel, Mahmoud Dahoud, Emre Can and Jude Bellingham are all good options. But Oxlade-Chamberlain would perhaps offer an X-factor from midfield to help them close the gap on the teams above.
|
english
|
package collector
import (
"strconv"
"github.com/prometheus/client_golang/prometheus"
)
type systemCollector struct {
current *prometheus.Desc
}
func init() {
Factories["system"] = NewSystemCollector
}
// NewSystemCollector returns a new systemCollector
func NewSystemCollector() (Collector, error) {
return &systemCollector{}, nil
}
// Update Prometheus metrics
func (c *systemCollector) Update(ch chan<- prometheus.Metric) error {
system, err := or.System()
if err != nil {
return err
}
for _, value := range system {
float, err := strconv.ParseFloat(value.Value, 64)
if err != nil {
return err
}
c.current = prometheus.NewDesc(
prometheus.BuildFQName(Namespace, "", value.Name),
"Overall status of system components.",
nil, value.Labels)
ch <- prometheus.MustNewConstMetric(
c.current, prometheus.GaugeValue, float)
}
return nil
}
|
go
|
<filename>docs/data/leg-t1/078/07806481.json
{"nom":"<NAME>","circ":"6ème circonscription","dpt":"Yvelines","inscrits":11056,"abs":5185,"votants":5871,"blancs":44,"nuls":9,"exp":5818,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":2744},{"nuance":"LR","nom":"<NAME>","voix":1521},{"nuance":"FI","nom":"Mme <NAME>","voix":513},{"nuance":"FN","nom":"<NAME>","voix":349},{"nuance":"COM","nom":"Mme <NAME>","voix":280},{"nuance":"DVD","nom":"M. <NAME>","voix":154},{"nuance":"DLF","nom":"Mme <NAME>","voix":58},{"nuance":"DVG","nom":"Mme <NAME>","voix":58},{"nuance":"DIV","nom":"Mme <NAME>","voix":45},{"nuance":"EXG","nom":"<NAME>","voix":32},{"nuance":"DIV","nom":"<NAME>","voix":24},{"nuance":"DIV","nom":"M. <NAME>","voix":15},{"nuance":"DIV","nom":"M. <NAME>","voix":15},{"nuance":"DVG","nom":"<NAME>","voix":10}]}
|
json
|
<reponame>JefferyLukas/SRIs<filename>brain/0.6.3.json
{"blackorwhite.css":"<KEY>,"blackorwhite.js":"<KEY>,"blackorwhite.min.css":"<KEY>,"blackorwhite.min.js":"sha512-jZ2nGuDDDhYfcSgqpvoo7/5xgB57Q8USjunBEP/a8z6PdppwlHFzIgDxXX3cX2p7+KZQAHN/C/frUoW6U9mlCw==","brain.js":"sha512-uGkjASu4NZDV8fqqU3S6qxK8/o5Z4UT7rmRiGgGWUqJRxymYARovzMI5m6YNd0SOeeIb2Qm72TO+rPMcniQohA==","brain.min.js":"<KEY>,"jquery.min.js":"<KEY>,"training-worker.js":"<KEY>,"training-worker.min.js":"<KEY>}
|
json
|
Argentina's sexy supermodel Fiorella Castillo does with high heels on. Lionel Messi and Co better take note of this sexy 24-year-old model who has already become a YouTube sensation as videos of her showing off her football skills in high heels has gone viral on the social sharing space. Uploaded recently, the video sees Castillo on the streets of Mar del Plata, showing off her impressive football freestyle skills as crowds gather to watch in awe. Wearing the Argentina team blue and white jersey, the model is seen spinning a football on her finger as she does various football tricks in the one-and-a-half minute video.
|
english
|
Kaisi Yeh Yaariaan Season 5 Episode 3 Release Date, Star Cast, Watch Online Details: Kaisi Yeh Yaariyan Season 5 has been released and this series is being liked a lot in India. This series has ruled the hearts of fans since its first series.
The story of this series is based on a beautiful Hindi romantic drama. Season 5 of the Kaisi Yeh Yaariyan series has been released to the audience on 2 September 2023. Fans have thoroughly enjoyed both the episodes of season 5, the reviews of which confirm this.
But after completing 2 episodes, fans are eagerly waiting for the third episode of Kaisi Yeh Yaariyan Season 5. Keeping this in mind, we are going to tell you about the third episode of Kaisi Yeh Yaariaan Season 5.
Stay with us till the end of the article and know when episode three of Kaisi Yeh Yaariyan Season 5 will come.
Kaisi Yeh Yaariaan season 5 is one of the most-liked series of 2023. Not only this, but the last 4 seasons of Kaisi Yeh Yaariyan have also been amazing in their place. Now and then the fans get to see something new and interesting in the Kaisi Yeh Yaariaan series.
The first season of Kaisi Yeh Yaariyan was officially released on 21 July 2014. From then till now this series has not let its fans down. It has been 9 years since this series but the makers add charm to this series with their maker i.e., the production team.
As we told you earlier season 5 of Kaisi Yeh Yaariyan has been officially released on 1 September 2023 and its 2 episodes have been highly appreciated by the people.
In season 5 of Kaisi Yeh Yaariyan, you will see Parth Samthaan and Neeti Taylor, who are the main characters of this series. The entire series has been revolving around them and in this series, both of them have enthralled the people by showing their brilliant performance.
Along with this, you will also get to see some other actors like Kishwar Merchant, Ayaz Khan, Mehul Nisar, Ritu Vashishtha, Krishan Barretto, Ayush Shaukeen, and Abushar Al Hasan, all have played their roles well.
Baat Aur Kaisi Yeh Yaariyan Season 5 Episode 3 is about to end now because the new episode will be released on 9 September 2023. You can enjoy this series for free on your JioCinema.
|
english
|
Sarileru Neekevvaru 5 Days Box Office Collections – Bumper collections on Sankranthi day!
Check out Anil Ravipudi’s F2 Sequel cast, storyline and many details!
Ala Vaikunthapurramuloo 3 days Box Office Collections – All Shows House Full!
Sarileru Neekevvaru 4 Days Box Office Collections Report – Huge growth on Bhogi!
Kalyan Ram, NTR to team up soon?
Team AVPL overjoys with the special gesture of PK!
Check out Nithiin’s wedding venue, date, and his ladylove details!
Exclusive: Lagadapati to launch his second son too!
Nepotism TalK: Is Bunny giving the green signal for trolls?
Is Anil Ravipudi cheated Vijayashanthi?
|
english
|
<reponame>MbidM-MNI/MbidM.github.io<filename>index_code.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MICA Lab</title>
<meta name="description" content="Multimodal Imaging and Connectome Analysis">
<meta name="author" content="<EMAIL>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script><![endif]-->
<link rel="stylesheet" href="assets/base.css">
<link rel="stylesheet" href="fixed-navigation-bar.css">
<link href='https://fonts.googleapis.com/css?family=Roboto:500,400,300,200,100' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="http://sixrevisions.com/favicon.ico">
</head>
<body>
<nav class="fixed-nav-bar">
<div id="menu" class="menu">
<a class="sitename" href="index_code.html">MICA-CODEBASE</a>
<!-- Example responsive navigation menu -->
<a class="show" href="#menu">Menu</a><a class="hide" href="#hidemenu">Menu</a>
<ul class="menu-items">
<li><a href="#mpc">MPC</a></li>
<li><a href="#gradients">GRADIENTS</a></li>
<li><a href="#surfstat">SURFSTAT</a></li>
<li><a href="#pipelines">PIPELINES</a></li>
<li><a href="index.html">>MICA</a></li>
</ul>
</div>
</nav>
<section class="content2">
<div class="description">
<h3></h3>
<p class="summary2"></p>
</div>
</section>
<section class="some-related-articles">
</br>
</br>
<h1 id="about">CODEBASE</h1>
<p>Thank you for using our tools!</br>
</section>
<section class="some-related-articles">
<h1 id="MPC">MPC </h1>
<center>
<table style="width:100%">
<tr>
<td style="width:350px; text-align:center">
<h2>MPC: Microstructural profile covariance</h2>
<p>
The microstructural profile covariance (MPC) framework models human brain networks based on similarity in microstructural profiles sampled in the direction of cortical columns (For details see Paquola et al. 2018 BioRxiv). It can be used on based on an ultra-high-resolution histological reconstruction of post-mortem brains (such as BigBrain) and via myelin-sensitive MRI data (such as the data provided by the HCP).
</p>
<p>
The detailed step by step procedure is provided on the github (click github symbol
below).</p>
<p>
Generate equivolumetric surfaces between the two cortical interfaces
(using 01_constructSurfaces.sh).
</p>
<p>
These surfaces are then used for systematic intracortical intensity sampling (using
02_myelinMaptoSurf.sh). </p>
<p>
Finally, surfToMPC.m generates MPC martrices that can be analyzed
appropriately.
</p>
</td>
</tr>
<tr>
<td style="width:350px; text-align:center">
<a href="http://github.com/MICA-MNI/micaopen/MPC" target="_blank">
<img src="assets/github.gif" width="40px"/>
</td>
</tr>
</table>
</center>
</section>
<section class="some-related-articles">
<div class="description">
<h3 id="gradients">GRADIENTS</h3>
<center>
<table style="width:100%">
<tr>
<td style="width:350px; text-align:center">
<h2>Here is the gradient tool documentation</a></p>
</td>
</tr>
<tr>
<td style="width:350px; text-align:center">
<a href="http://github.com/MICA-MNI/micaopen/diffusion_map_embedding" target="_blank">
<img src="assets/github.gif" width="40px"/>
</td>
</tr>
</table>
</center>
</section>
<section class="some-related-articles">
<div class="description">
<h3 id="surfstat">SURFSTAT</h3>
<center>
<table style="width:100%">
<tr>
<td style="width:350px; text-align:center">
<h2>Here is the surfstat documentation</a></p>
</td>
</tr>
<tr>
<td style="width:350px; text-align:center">
<a href="http://github.com/MICA-MNI/micaopen/surfstat_chicago" target="_blank">
<img src="assets/github.gif" width="40px"/>
</td>
</tr>
</table>
</center>
</div>
</br>
</br>
</br>
</br>
</section>
<section class="some-related-articles">
<div class="description">
<h1 id="funding">FUNDING</h1>
<p>OUR RESEARCH IS KINDLY SUPPORTED BY</p>
</br>
</br>
<center>
<table style="width:700px">
<tr>
<td style="width:100px">
<img src="assets/sickkids.png" width="80px"/>
</td>
<td style="width:100px">
<img src="assets/cihr.jpg" width="80px"/>
</td>
<td style="width:100px">
<img src="assets/qbin.jpg" width="80px"/>
</td>
<td style="width:100px">
<img src="assets/neuro_final_400.jpg" width="80px"/>
</td>
<td style="width:100px">
<img src="assets/nserc.png" width="80px"/>
</td>
<td style="width:100px">
<img src="assets/frqs.png" width="80px"/>
</td>
</tr>
</table>
</div>
</section>
<section class="content_contact">
<div class="description">
<h3 id="contact">CONTACT</h3>
<p class="summary">Multimodal Imaging and Connectome Analysis Lab</br>
Montreal Neurological Institute and Hospital</br>
3801 University Street, Montreal, QC, H3A 2B4, Canada</br>
<a class="onblue" href="mailto:<EMAIL>"><EMAIL></a></br>
Phone: 514 398 3579</br>
</p>
</br>
</div>
</section>
<section class="content_black">
</br>
<ul class="menu-items-social">
<li><a href="http://github.com/MICA-MNI/" target="_blank"><img src="assets/git_bw_50.gif" height="30px" /></a></li>
<li><a href="https://twitter.com/BorisBernhardt/" target="_blank"><img src="assets/twitter_bw_50.gif" height="30px" /></a></li>
<li><a href="http://www.facebook.com/McConnellBrainImagingCentre/" target="_blank"><img src="assets/fb_bw_50.gif" height="30px" /></a></li>
<li><a href="https://www.researchgate.net/profile/Boris_Bernhardt" target="_blank"><img src="assets/rg_icon.gif" height="30px" /></a></li>
</ul>
</br>
</section>
</body>
</html>
|
html
|
Odisha Chief Minister Naveen Patnaik on Monday announced a special package of Rs 507 crore for farmers affected by cyclone Jawad, which had triggered heavy rainfall in the coastal districts during the first week of December.
According to the provisions of the package, small and marginal farmers who lost 33 per cent of their crops will be given Rs 6,800 per hectare of rain-fed land, Rs 13,500 per hectare for irrigated areas.
The government will dole out Rs 18,000 per damaged hectare of land where all-season crops, such as mango, cashew, coconut, are cultivated.
A minimum input subsidy of Rs 2,000 will be given to farmers against loss of daily crop and Rs 1,000 for other crops, a statement issued by the Chief Minister's Office said.
Certified high quality seeds of 12,000 quintals will be provided to farmers of 12 cyclone-hit districts at a subsidised price.
Also, 50,000 mini kits of pulses and four lakh vegetable kits for consumption will be distributed free of cost, the statement said.
One lakh farmers will be provided with 10 fruit saplings each for planting in the backyard of their houses.
In the affected districts, they will be given a subsidy for agricultural mechanization and 50 per cent discount on pump sets, not exceeding Rs 10,000.
The package also includes provisions for farmers affected by pests.
Short-term loans in areas with 33 per cent or more crop losses will be converted into medium-term loans. In order to ensure that farmers registered under the Prime Minister's Fasal Bima Yojana get their compensation as soon as possible, steps will be taken to immediately assess post-harvest losses.
Measures will also be taken to ensure that farmers affected by the cyclone receive immediate loan assistance for Rabi crop, the release added.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed. )
|
english
|
<reponame>pengdeman/chenxing
package com.cx.chenxing.utils.zj;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.serializer.SimplePropertyPreFilter;
public class JsonUtil {
public static <T> T parseJson(String json, Class<T> clazz) {
return JSON.parseObject(json, clazz);
}
/**
* @param json
* @param type 例 new TypeReference<Map<Integer, Map<BigDecimal,
* UmFullstep>>>() {}
* @return
*/
public static <T> T parseJson(String json, TypeReference<T> type) {
return JSON.parseObject(json, type);
}
public static String toJson(Object object) {
return JSON.toJSONString(object, SerializerFeature.WriteDateUseDateFormat);
}
public static String toJson(Object object,SimplePropertyPreFilter filter) {
return JSON.toJSONString(object,filter);
}
}
|
java
|
There are several things that went horribly wrong in Karan Johar's mockery of a magnum opus, Kalank. The script, the screenplay, the acting, Sanjay Dutt and Madhuri Dixit's expressions behind those plastered, botoxed faces. And the dialogues. Oh, what horrors they were.
The one thing that didn't go wrong - hail, storm, fire, riot or some good ol' action - is Aditya Roy Kapur's Tintin hair. But in this week's Wahiyat Wednesday, we'll concentrate on the dialogues by Hussain Dalal.
Kalank is set in 1946, pre-Independence India. It doesn't matter the geographical setting of the movie, because we assure you there was no place in India back then that needed gondolas to commute (apart from a certain mall in Greater Noida). Just like there was no place in India where the people spoke like that.
The Hindi used in Kalank is heavy. It tries to speak Hindi the way Gulzar writes Urdu. And that right there is a recipe for disaster. Like Rachel's English trifle for Thanksgiving, it ends up being half Gulzar and half every internet poet ever, and a full fail!
"Mohabbat aur nafrat dono ke rang laal hai. Lekin farq yeh hai ki nafrat se duniya barbaad ho jaati hai aur mohabbat mein khud barbaad hona padta hai. Phir bhi kalank aksar mohabbat pe lagta hai."
Leaving the heady romanticism aside, have the dialogue writers never heard of the phrase "Make love, not war?" Doesn't that make the aforementioned dialogue null and void then?
But then, this was essentially just an elaborate attempt to include the name of the film, Kalank, into a dialogue. Even if we cut them some slack for this ambitious (read: ridiculous) attempt, at the end of the film you realise mohabbat was not the root cause of the riot that killed half the ensemble cast; it was nafrat.
A particular exchange that stands out is between two supposedly strong female characters, Alia Bhatt and Sonakshi Sinha.
when Sonakshi tries to convince Alia to marry Aditya, while his first wife (Sonakshi, duh) is still alive, in the hope to ensure said husband has a happy life after the first wife is dead. Consent was given a 20-year Visa and sent on a world tour before this scene even began, but in this exchange, Satya basically uses reverse psychology to trick Roop into believing this whole thing is actually empowering, it is her choice, and that the only way she can take the reins of her life into her own hands is if she siphons herself over to her.
When Kalank failed, Karan Johar was left heartbroken. He admitted that somewhere down the line, his magnanimous vision didn't translate accurately on celluloid. He still hasn't apologised for the dialogues though. And we're waiting.
|
english
|
{"_id":"beer_Blue_Goat","brewery":"New Holland Brewing Company","name":"Blue Goat","abv":"7.5","description":"Chestnut in color with a nutty malt profile from its signature Munich malt. A muted hop presence and smooth caramelized body culminate in a clean, dry finish. Excellent choice for hearty meals with dark flavors and sauces. Grilled meats, musty cheeses or pecan pie.","updated":"2010-07-22 20:00:20"}
|
json
|
Taapsee Pannu says 'aesa mat karo' as paparazzi blocks her car's door to click pics: 'Oh my God, don't attack me'
Taapsee Pannu urged the paparazzi not to block her car's door for clicking her pictures. Here's what happened.
Actor Taapsee Pannu got irritated with the paparazzi when they blocked her car's door to click pictures. The actor exited a building and the paparazzi started surrounding her for pictures and telling her that her car was on the other side. While walking towards her car, she said, "Oh my God. Oh my God. Attack mat karo mere pe (Don't attack me). Phir bolte ho 'chillate hai' (Then you will say 'she screams'). " (Also Read | Paparazzi ask Taapsee Pannu ‘aaj chillana mat’ as they click her pics. Watch her response)
The actor also responded to the paparazzi after they wished her a happy Diwali. As she got inside her car and tried to close the door, a paparazzo blocked the door to click her pictures. Taapsee then told them repeatedly, while shaking her head, "Aesa mat karo, aesa mat karo (Don't do like this). " The video was shared by a paparazzi account on Instagram.
This is not the first time that Taapsee got annoyed with the paparazzi. Last month, the actor got upset after she was surrounded by a crowd that asked her to speak about the late comedian Raju Srivastava. Taapsee had said, "Kya bolun (What should I say)? " She then said, "(Gesturing the people to move aside and clear her path) Aare bhai sahab, aap ek minute, aap ek minute. Aap hatiye, aap aese mat kariye, thoda hatiye, thoda hatiye, piche hatiye (Give me a minute. You please step aside, don't do like this, move a little bit, step back). " She then quickly walked away after saying ‘'thank you’.
A few months ago, when a paparazzo said that her film Dobaaraa got negative comments from critics, Taapsee got angry. During a media interaction, Taapsee told the people, "Chillao mat bhai, phir ye log bolege actors to tameez nahi hai (Don't scream. Then you'll say actors have bad manners). " A reporter asked Taapsee about the alleged ‘negative campaign’ against Dobaaraa and she asked, “Kis film ke against nahi chalaya gaya (Which film did not face it)? "
When the journalist again tried to question her, she said, “Aap mere baat ka jawab dijiye, main aapke sawal ka jawab de dungi. Kaunsi film ke saath nahi chalaya gaya? (You answer my question and I’ll answer yours. Tell me which film did not face it)? " The person then said that critics ran a negative campaign against Dobaaraa. To this Taapsee replied, “Ek baar thoda sa homework kar lena question pooch lene se pehle (Please do your homework before asking any question). "
Taapsee was last seen in Anurag Kashyap's Dobaara, a sci-fi thriller film based on the concept of time travel. The film also stars Pavail Gulati. Produced by Ekta Kapoor, the film is an official Hindi adaptation of a Spanish thriller film Mirage. Taapsee will also be seen in Rajkumar Hirani's next Dunki alongside Shah Rukh Khan.
|
english
|
Lovely Car.
Lovely Car.
Nice car. currently, I am using it a gulf specification 1.6 GDI engine with a top variation. Hope to buy one in India too. very smooth and lovely car. the interior is super. Waiting for its lunch in India.
- Mileage (4)
- Performance (3)
- Comfort (3)
- Engine (3)
- Interior (8)
- Power (2)
|
english
|
There are very few actors in the current generation who became stars without any film background and the first name that comes to our mind in the list is Nani.
The actor who started his journey as a Radio Jockey, before entering the industry as an assistant director is celebrating his birthday today.
Nani made his debut as a lead actor with Ashta Chamma which was a runaway hit and from there on he saw many ups and downs in his career.
Despite scoring hits and flops, Nani never failed as an actor and he didn’t even lose his fan base. There is always a section of the audience who waits for his movies to hit the theatres.
Though family entertainers are his biggest forte, Nani didn’t restrict himself to doing films of one particular genre. Moreover, he is giving chances to upcoming directors.
Nani is going on a different path since Shyam Singha Roy. He was appreciated by many in the industry for his impeccable performance in the titular role.
Nani who has more success rate than any of his contemporary stars is now awaiting the release of his first Pan India film Dasara which has done the biggest business for him.
The movie is carrying exceptional buzz, ever since Nani spellbound with his superb performance in a rustic avatar in the theatrical trailer.
This highly anticipated film directed by Srikanth Odela will be arriving on March 30th and the team is promoting the movie vigorously.
Nani who right now is one of the most bankable stars is expected to reach the next level of stardom with Dasara. His journey is truly an inspiring one for the upcoming actors!
|
english
|
<reponame>openware/irix
{
"name": "Kraken",
"enabled": true,
"verbose": false,
"httpTimeout": 15000000000,
"websocketResponseCheckTimeout": 30000000,
"websocketResponseMaxLimit": 7000000000,
"websocketTrafficTimeout": 30000000000,
"websocketOrderbookBufferLimit": 5,
"baseCurrencies": "EUR,USD,CAD,GBP,JPY",
"currencyPairs": {
"requestFormat": {
"uppercase": true,
"separator": ","
},
"configFormat": {
"uppercase": true,
"delimiter": "-",
"separator": ","
},
"useGlobalFormat": true,
"assetTypes": [
"spot"
],
"pairs": {
"spot": {
"assetEnabled": true,
"enabled": "XBT-USD",
"available": "ETH-GBP,XRP-USD,DAI-EUR,LSK-USD,BAT-EUR,BCH-EUR,EOS-ETH,GNO-EUR,ETH-CAD,XRP-JPY,ADA-ETH,DAI-USD,DASH-EUR,GNO-USD,LSK-XBT,ETH-EUR,ZEC-EUR,DASH-XBT,EOS-EUR,ETH-CHF,SC-ETH,SC-USD,WAVES-EUR,XBT-USD,ADA-EUR,LINK-USD,NANO-EUR,PAXG-USD,SC-EUR,WAVES-ETH,REP-USD,EOS-XBT,ETC-ETH,XMR-USD,LTC-USD,MLN-XBT,XTZ-CAD,XBT-GBP,ADA-CAD,XTZ-EUR,ETH-JPY,XTZ-USD,XDG-XBT,XLM-EUR,ATOM-USD,ATOM-XBT,OMG-EUR,ZEC-JPY,ADA-XBT,GNO-ETH,LINK-XBT,ETC-EUR,BCH-XBT,QTUM-ETH,XBT-CHF,LTC-EUR,ETH-DAI,LSK-EUR,NANO-USD,QTUM-XBT,XRP-XBT,ZEC-USD,BAT-ETH,LINK-ETH,XBT-CAD,BAT-USD,GNO-XBT,ICX-XBT,PAXG-ETH,DAI-USDT,NANO-ETH,OMG-ETH,WAVES-XBT,ZEC-XBT,BAT-XBT,NANO-XBT,XBT-JPY,DASH-USD,ICX-ETH,LSK-ETH,QTUM-CAD,REP-XBT,XMR-XBT,XRP-EUR,ATOM-CAD,OMG-USD,LTC-XBT,MLN-ETH,XTZ-ETH,EOS-USD,ICX-EUR,SC-XBT,ETC-USD,BCH-USD,ICX-USD,QTUM-USD,ETH-XBT,ETH-USD,OMG-XBT,PAXG-EUR,REP-EUR,ADA-USD,USDT-USD,XMR-EUR,XRP-CAD,ATOM-EUR,ETC-XBT,XBT-EUR,XLM-USD,ATOM-ETH,LINK-EUR,PAXG-XBT,WAVES-USD,REP-ETH,XLM-XBT,QTUM-EUR,XTZ-XBT"
}
}
},
"api": {
"authenticatedSupport": false,
"authenticatedWebsocketApiSupport": false,
"endpoints": {
"url": "NON_DEFAULT_HTTP_LINK_TO_EXCHANGE_API",
"urlSecondary": "NON_DEFAULT_HTTP_LINK_TO_EXCHANGE_API",
"websocketURL": "NON_DEFAULT_HTTP_LINK_TO_WEBSOCKET_EXCHANGE_API"
},
"credentials": {
"key": "Key",
"secret": "Secret"
},
"credentialsValidator": {
"requiresKey": true,
"requiresSecret": true,
"requiresBase64DecodeSecret": true
}
},
"features": {
"supports": {
"restAPI": true,
"restCapabilities": {
"tickerBatching": true,
"autoPairUpdates": true
},
"websocketAPI": true,
"websocketCapabilities": {}
},
"enabled": {
"autoPairUpdates": true,
"websocketAPI": true
}
},
"bankAccounts": [
{
"enabled": false,
"bankName": "",
"bankAddress": "",
"bankPostalCode": "",
"bankPostalCity": "",
"bankCountry": "",
"accountName": "",
"accountNumber": "",
"swiftCode": "",
"iban": "",
"supportedCurrencies": ""
}
]
}
|
json
|
<gh_stars>0
import {
Component,
OnInit,
OnDestroy,
ViewChild,
ViewChildren,
QueryList,
ElementRef,
} from '@angular/core';
import {
HttpClient,
HttpHeaders
} from '@angular/common/http';
import {
Subject
} from 'rxjs';
import {
NgbModal,
NgbModalConfig
} from '@ng-bootstrap/ng-bootstrap';
import {
DataTableDirective
} from 'angular-datatables';
import {
debounceTime
} from 'rxjs/operators';
import {
Router
} from '@angular/router';
import {
environment
} from './../../../environments/environment';
var del_item_id: String;
// Componente principale
@Component({
selector: 'app-articoli',
templateUrl: './articoli.component.html',
styleUrls: ['./articoli.component.scss']
})
export class ArticoliComponent implements OnInit, OnDestroy {
// Var DataTables
@ViewChild(DataTableDirective, {
static: false
})
dtElement: DataTableDirective;
items$: any[] = [];
dtOptions: any = {};
dtTrigger: Subject < any > = new Subject();
// Variabili ItemType
items_t;
titems_t: number;
// Alert e Modal - Delete
private _success = new Subject < string > ();
staticAlertClosed = false;
alias: String;
providers: [NgbModalConfig, NgbModal]
successMessage = '';
// Multiple Delete
index = 0;
indexDel = 0;
delItems$: any[] = [];
toZero: boolean = true;
constructor(private httpClient: HttpClient, private modalService: NgbModal, config: NgbModalConfig, private router: Router) {
config.backdrop = 'static';
config.keyboard = false;
}
// Init
ngOnInit(): void {
// Controllo l'accesso
if (localStorage.getItem('apikey') != null) {
// DataTables Options
this.dtOptions = {
pagingType: 'full_numbers',
pageLength: 10,
processing: true,
order: [],
select: {
style: 'multi'
},
retrieve: true,
// dom: 'lfti',
};
// Tabella Articoli
this.getItems();
// Crea Nuovo Articolo
this.getItemType();
} else {
this.router.navigate(['../login']);
}
}
// Destory
ngOnDestroy(): void {
this.dtTrigger.unsubscribe();
}
// API Articoli
getItems() {
let headers = new HttpHeaders().set('apikey', localStorage.getItem('apikey'));
this.httpClient.get(environment.URL_ROOT + '/item/concrete?recordsPerPage=999999999999', {
headers
})
.toPromise().then((data: any) => {
this.items$ = data.items;
this.dtTrigger.next();
}, error => {
console.log(error);
});
}
// --------------------------------------------------------------------------------------------------------------------------------------------
// Funzione viewItem
viewItem(item_id: string) {
localStorage.removeItem('item_id');
localStorage.setItem('item_id', item_id);
this.router.navigateByUrl('/view-item');
}
// New Item
addItem(id) {
localStorage.removeItem('new_item_id');
localStorage.setItem('new_item_id', id);
this.router.navigateByUrl('/crea-item');
}
// --------------------------------------------------------------------------------------------------------------------------------------------
// Funzione Crea Nuovo Articolo
getItemType() {
let headers = new HttpHeaders().set('apikey', localStorage.getItem('apikey'));
this.httpClient.get(environment.URL_ROOT + '/item/type', {
headers
})
.toPromise().then((itemtAPI: any) => {
this.titems_t = itemtAPI.total_itemtype;
this.items_t = itemtAPI.itemtype;
}, error => {
console.log(error);
});
}
// --------------------------------------------------------------------------------------------------------------------------------------------
// Funzione Elimina Articolo - OpenModal
open(content, d_item_id: String, d_item_a: String) {
// Passo le info dell'item da eliminare
del_item_id = d_item_id;
this.alias = d_item_a;
// Mostro il Modal per la conferma
this.modalService.open(content, {
ariaLabelledBy: 'modal-basic-title'
})
}
openMultiple(multiple) {
// Mostro il Modal per la conferma
this.modalService.open(multiple, {
ariaLabelledBy: 'modal-basic-title'
})
}
// API DELETE Item
deleteItem(): void {
let headers = new HttpHeaders().set('apikey', localStorage.getItem('apikey'));
headers.set('Content-Type', 'application/x-www-form-urlencoded');
this.httpClient.delete(environment.URL_ROOT + '/item/concrete/' + del_item_id, {
headers
}).subscribe(data => {
this.getItems();
this.modalService.dismissAll();
this.showAlert();
}, error => {
console.log(error);
});
}
// Multiple DELETE ------
@ViewChildren("checkboxes") checkboxes: QueryList < ElementRef > ;
deleteMultiple() {
this.toZero = true;
this.checkboxes.forEach((element) => {
if (element.nativeElement.checked == true) {
this.delItems$[this.indexDel] = element.nativeElement.id;
this.indexDel++;
}
});
let headers = new HttpHeaders().set('apikey', localStorage.getItem('apikey'));
headers.set('Content-Type', 'application/x-www-form-urlencoded');
let i;
this.delItems$.forEach(element => {
this.httpClient.delete(environment.URL_ROOT + '/item/concrete/' + element, {
headers
}).subscribe(data => {
// Index elemento da eliminare
let i: number;
i = this.delItems$.indexOf(element);
// Parte Grafica
this.getItems();
this.modalService.dismissAll();
this.showAlert();
// Rimuovere item dall'array
this.delItems$.splice(i, 1);
this.index--;
}, error => {
console.log(error);
});
});
}
// Aggiungi tutti gli ITEM alla lista
checkAll() {
this.checkboxes.forEach((element) => {
element.nativeElement.checked = true;
this.getIndex()
});
}
// Singolo Chechbox control
ngOnSelected() {
this.getIndex();
}
// Conteggio Articoli Selezionati
getIndex() {
this.index = 0;
this.checkboxes.forEach((element) => {
if (element.nativeElement.checked == true) {
this.index++;
}
});
}
// DELETE - Alert e Modal
// Alert di Conferma
public showAlert() {
this._success.subscribe(message => this.successMessage = message);
this._success.pipe(
debounceTime(5000)
).subscribe(() => this.successMessage = '');
this._success.next('Articolo ' + this.alias + ' rimosso con successo!');
}
// Rerender Tabella
rerender(): void {
this.dtElement.dtInstance.then((dtInstance: DataTables.Api) => {
dtInstance.destroy();
// this.getItems();
// this.dtTrigger.next();
});
}
}
|
typescript
|
<gh_stars>0
{
"TeamMentor_Article": {
"$": {
"Metadata_Hash": "0",
"Content_Hash": "0"
},
"Metadata": [
{
"Id": [
"2a6367d8-81a1-4953-bf17-504643574215"
],
"Id_History": [
"2a6367d8-81a1-4953-bf17-504643574215,ea0fa055-ee00-413a-b7f0-9b373e644411,"
],
"Library_Id": [
"be5273b1-d682-4361-99d9-6234f2d47eb7"
],
"Title": [
"Data Is Separated from Mail Commands"
],
"Category": [
"Dangerous APIs"
],
"Phase": [
"Implementation"
],
"Technology": [
"Technology Independent"
],
"Type": [
"Checklist Item"
],
"DirectLink": [
"Parameterized Mail APIs Are Used"
],
"Author": [
""
],
"Priority": [
""
],
"Status": [
""
]
}
],
"Content": [
{
"$": {
"Sanitized": "false",
"DataType": "wikitext"
},
"Data": [
"==What to Check For==\n\nMake sure that parameterized mail APIs are used instead of custom SMTP client code implemented by the application.\n\n==Why==\n\nUsing APIs that provide SMTP functionality is better than writing your own SMTP client code because it reduces the risk of introducing Mail Command Injection vulnerabilities. Most Web Application platforms provide APIs that can be used to send email and these APIs should be used instead of custom SMTP client code. \n\n==When==\n\nUse this Guideline when your application sends email.\n\n==How to Check==\n\nTo verify that parameterized APIs are used to send email:\n\n# **Identify code that sends email.** Review application code to find functions that send email. \n# **Identify available email APIs.** Review platform documentation to find available APIs that can be used to send email.\n# **Verify that parameterized APIs are used to send email.** Examine code that sends email to make sure that it uses platform-provided APIs that send email, instead of implementing custom SMTP client code.\n\n==How to Fix==\n\nTo use parameterized APIs to send e-mail:\n\n# **Identify code that sends email.** Review application code to find functions that send email. \n# **Identify available email APIs.** Review platform documentation to find available APIs that can be used to send email.\n# **Use parameterized email APIs.** If the application uses custom SMTP client code to send email, replace that code with calls to email APIs provided by the platform.\n"
]
}
]
}
}
|
json
|
{"201702": {"c": "SOC 420", "n": "Sociology of Mobilities", "f": "FASS", "cr": 3.0, "ac": 18, "ca": 20, "pr": ["SOC 520"], "co": [], "i": [{"tn": "<NAME>", "ta": 18, "tc": 20}], "ce": 0, "p": 238}, "catList": ["This course introduces students to the study of current mobilities of everything (people, ideas, goods, capital, and images), the social, cultural and political aspects of the infrastructure and workings of mobility places and systems, and the historical formation of the mobility as an insaparable feature of civilization, modernity and globalization. Topics to be covered include Mobilities Theory; cities as interfaces and spaces of travel and tourism; inequalities across (im)mobilities; historical development of transportation systems; global structures of mobilities; airports, railways, and container ports; mutual constitution of transportation, travel and tourism; social, cultural and economic impacts of transportation systems and hubs over place-making and social relations."]}
|
json
|
<filename>frontend/node_modules/.cache/vue-loader/b61b74f2b59bb890218024ca290bb8dc.json
{"remainingRequest":"/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/src/views/profile/info.vue?vue&type=template&id=4374b06e&scoped=true&","dependencies":[{"path":"/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/src/views/profile/info.vue","mtime":1581603020831},{"path":"/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/johnnyhao/WorkSpace/IDEAProjects/JShop/frontend/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["\n<div class=\"app-container\">\n <el-form\n ref=\"form\"\n v-loading=\"formLoading\"\n :data=\"form\"\n element-loading-text=\"加载中...\"\n :model=\"form\"\n label-width=\"120px\"\n >\n <el-input v-model=\"form.id\" type=\"hidden\" />\n <el-form-item label=\"头像\">\n <img :src=\"form.icon\" width=\"60\" height=\"60\">\n </el-form-item>\n <el-form-item label=\"账号\">\n <el-input v-model=\"form.username\" :disabled=\"true\" />\n </el-form-item>\n <el-form-item label=\"邮箱\">\n <el-input v-model=\"form.email\" />\n </el-form-item>\n <el-form-item label=\"昵称\">\n <el-input v-model=\"form.nickName\" />\n </el-form-item>\n <el-form-item label=\"备注\">\n <el-input v-model=\"form.note\" />\n </el-form-item>\n <el-form-item label=\"创建时间\">\n <el-input v-model=\"form.createTime\" :disabled=\"true\" />\n </el-form-item>\n <el-form-item label=\"最后登录\">\n <el-input v-model=\"form.loginTime\" :disabled=\"true\" />\n </el-form-item>\n <el-form-item label=\"是否启用\">\n <el-radio-group v-model=\"form.status\">\n <el-radio :label=\"0\">禁用</el-radio>\n <el-radio :label=\"1\">启用</el-radio>\n </el-radio-group>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"onSubmit\">保存</el-button>\n </el-form-item>\n </el-form>\n</div>\n",null]}
|
json
|
<filename>library/bubble/bubble_border.cpp
#include "bubble_border.h"
#include "base/logging.h"
#include "SkBitmap.h"
#include "ui_gfx/canvas_skia.h"
#include "ui_gfx/path.h"
#include "ui_gfx/rect.h"
#include "ui_base/resource/resource_bundle.h"
#include "view/view.h"
#include "../../resource/resource.h"
// static
SkBitmap* BubbleBorder::left_ = NULL;
SkBitmap* BubbleBorder::top_left_ = NULL;
SkBitmap* BubbleBorder::top_ = NULL;
SkBitmap* BubbleBorder::top_right_ = NULL;
SkBitmap* BubbleBorder::right_ = NULL;
SkBitmap* BubbleBorder::bottom_right_ = NULL;
SkBitmap* BubbleBorder::bottom_ = NULL;
SkBitmap* BubbleBorder::bottom_left_ = NULL;
SkBitmap* BubbleBorder::top_arrow_ = NULL;
SkBitmap* BubbleBorder::bottom_arrow_ = NULL;
SkBitmap* BubbleBorder::left_arrow_ = NULL;
SkBitmap* BubbleBorder::right_arrow_ = NULL;
// static
int BubbleBorder::arrow_offset_;
// The height inside the arrow image, in pixels.
static const int kArrowInteriorHeight = 7;
gfx::Rect BubbleBorder::GetBounds(const gfx::Rect& position_relative_to,
const gfx::Size& contents_size) const
{
// Desired size is size of contents enlarged by the size of the border images.
gfx::Size border_size(contents_size);
gfx::Insets insets;
GetInsets(&insets);
border_size.Enlarge(insets.left() + insets.right(),
insets.top() + insets.bottom());
// Screen position depends on the arrow location.
// The arrow should overlap the target by some amount since there is space
// for shadow between arrow tip and bitmap bounds.
const int kArrowOverlap = 3;
int x = position_relative_to.x();
int y = position_relative_to.y();
int w = position_relative_to.width();
int h = position_relative_to.height();
int arrow_offset = override_arrow_offset_ ? override_arrow_offset_ :
arrow_offset_;
// Calculate bubble x coordinate.
switch(arrow_location_)
{
case TOP_LEFT:
case BOTTOM_LEFT:
x += w / 2 - arrow_offset;
break;
case TOP_RIGHT:
case BOTTOM_RIGHT:
x += w / 2 + arrow_offset - border_size.width() + 1;
break;
case LEFT_TOP:
case LEFT_BOTTOM:
x += w - kArrowOverlap;
break;
case RIGHT_TOP:
case RIGHT_BOTTOM:
x += kArrowOverlap - border_size.width();
break;
case NONE:
case FLOAT:
x += w / 2 - border_size.width() / 2;
break;
}
// Calculate bubble y coordinate.
switch(arrow_location_)
{
case TOP_LEFT:
case TOP_RIGHT:
y += h - kArrowOverlap;
break;
case BOTTOM_LEFT:
case BOTTOM_RIGHT:
y += kArrowOverlap - border_size.height();
break;
case LEFT_TOP:
case RIGHT_TOP:
y += h / 2 - arrow_offset;
break;
case LEFT_BOTTOM:
case RIGHT_BOTTOM:
y += h / 2 + arrow_offset - border_size.height() + 1;
break;
case NONE:
y += h;
break;
case FLOAT:
y += h / 2 - border_size.height() / 2;
break;
}
return gfx::Rect(x, y, border_size.width(), border_size.height());
}
void BubbleBorder::GetInsets(gfx::Insets* insets) const
{
int top = top_->height();
int bottom = bottom_->height();
int left = left_->width();
int right = right_->width();
switch(arrow_location_)
{
case TOP_LEFT:
case TOP_RIGHT:
top = std::max(top, top_arrow_->height());
break;
case BOTTOM_LEFT:
case BOTTOM_RIGHT:
bottom = std::max(bottom, bottom_arrow_->height());
break;
case LEFT_TOP:
case LEFT_BOTTOM:
left = std::max(left, left_arrow_->width());
break;
case RIGHT_TOP:
case RIGHT_BOTTOM:
right = std::max(right, right_arrow_->width());
break;
case NONE:
case FLOAT:
// Nothing to do.
break;
}
insets->Set(top, left, bottom, right);
}
int BubbleBorder::SetArrowOffset(int offset, const gfx::Size& contents_size)
{
gfx::Size border_size(contents_size);
gfx::Insets insets;
GetInsets(&insets);
border_size.Enlarge(insets.left() + insets.right(),
insets.top() + insets.bottom());
offset = std::max(arrow_offset_,
std::min(offset, (is_arrow_on_horizontal(arrow_location_) ?
border_size.width() : border_size.height()) - arrow_offset_));
override_arrow_offset_ = offset;
return override_arrow_offset_;
}
// static
void BubbleBorder::InitClass()
{
static bool initialized = false;
if(!initialized)
{
// Load images.
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
left_ = rb.GetBitmapNamed(IDR_BUBBLE_L);
top_left_ = rb.GetBitmapNamed(IDR_BUBBLE_TL);
top_ = rb.GetBitmapNamed(IDR_BUBBLE_T);
top_right_ = rb.GetBitmapNamed(IDR_BUBBLE_TR);
right_ = rb.GetBitmapNamed(IDR_BUBBLE_R);
bottom_right_ = rb.GetBitmapNamed(IDR_BUBBLE_BR);
bottom_ = rb.GetBitmapNamed(IDR_BUBBLE_B);
bottom_left_ = rb.GetBitmapNamed(IDR_BUBBLE_BL);
left_arrow_ = rb.GetBitmapNamed(IDR_BUBBLE_L_ARROW);
top_arrow_ = rb.GetBitmapNamed(IDR_BUBBLE_T_ARROW);
right_arrow_ = rb.GetBitmapNamed(IDR_BUBBLE_R_ARROW);
bottom_arrow_ = rb.GetBitmapNamed(IDR_BUBBLE_B_ARROW);
// Calculate horizontal and vertical insets for arrow by ensuring that
// the widest arrow and corner images will have enough room to avoid overlap
int offset_x = (std::max(top_arrow_->width(), bottom_arrow_->width()) / 2) +
std::max(std::max(top_left_->width(), top_right_->width()),
std::max(bottom_left_->width(), bottom_right_->width()));
int offset_y = (std::max(left_arrow_->height(), right_arrow_->height()) / 2) +
std::max(std::max(top_left_->height(), top_right_->height()),
std::max(bottom_left_->height(), bottom_right_->height()));
arrow_offset_ = std::max(offset_x, offset_y);
initialized = true;
}
}
void BubbleBorder::Paint(const view::View& view, gfx::Canvas* canvas) const
{
// Convenience shorthand variables.
const int tl_width = top_left_->width();
const int tl_height = top_left_->height();
const int t_height = top_->height();
const int tr_width = top_right_->width();
const int tr_height = top_right_->height();
const int l_width = left_->width();
const int r_width = right_->width();
const int br_width = bottom_right_->width();
const int br_height = bottom_right_->height();
const int b_height = bottom_->height();
const int bl_width = bottom_left_->width();
const int bl_height = bottom_left_->height();
gfx::Insets insets;
GetInsets(&insets);
const int top = insets.top() - t_height;
const int bottom = view.height() - insets.bottom() + b_height;
const int left = insets.left() - l_width;
const int right = view.width() - insets.right() + r_width;
const int height = bottom - top;
const int width = right - left;
// |arrow_offset| is offset of arrow from the begining of the edge.
int arrow_offset = arrow_offset_;
if(override_arrow_offset_)
{
arrow_offset = override_arrow_offset_;
}
else if(is_arrow_on_horizontal(arrow_location_) &&
!is_arrow_on_left(arrow_location_))
{
arrow_offset = view.width() - arrow_offset - 1;
}
else if(!is_arrow_on_horizontal(arrow_location_) &&
!is_arrow_on_top(arrow_location_))
{
arrow_offset = view.height() - arrow_offset - 1;
}
// Left edge.
if(arrow_location_==LEFT_TOP || arrow_location_==LEFT_BOTTOM)
{
int start_y = top + tl_height;
int before_arrow = arrow_offset - start_y - left_arrow_->height() / 2;
int after_arrow =
height - tl_height - bl_height - left_arrow_->height() - before_arrow;
DrawArrowInterior(canvas,
false,
left_arrow_->width() - kArrowInteriorHeight,
start_y + before_arrow + left_arrow_->height() / 2,
kArrowInteriorHeight,
left_arrow_->height() / 2 - 1);
DrawEdgeWithArrow(canvas,
false,
left_,
left_arrow_,
left,
start_y,
before_arrow,
after_arrow,
left_->width() - left_arrow_->width());
}
else
{
canvas->TileImageInt(*left_, left, top + tl_height, l_width,
height - tl_height - bl_height);
}
// Top left corner.
canvas->DrawBitmapInt(*top_left_, left, top);
// Top edge.
if(arrow_location_==TOP_LEFT || arrow_location_==TOP_RIGHT)
{
int start_x = left + tl_width;
int before_arrow = arrow_offset - start_x - top_arrow_->width() / 2;
int after_arrow =
width - tl_width - tr_width - top_arrow_->width() - before_arrow;
DrawArrowInterior(canvas,
true,
start_x + before_arrow + top_arrow_->width() / 2,
top_arrow_->height() - kArrowInteriorHeight,
1 - top_arrow_->width() / 2,
kArrowInteriorHeight);
DrawEdgeWithArrow(canvas,
true,
top_,
top_arrow_,
start_x,
top,
before_arrow,
after_arrow,
top_->height() - top_arrow_->height());
}
else
{
canvas->TileImageInt(*top_, left + tl_width, top,
width - tl_width - tr_width, t_height);
}
// Top right corner.
canvas->DrawBitmapInt(*top_right_, right - tr_width, top);
// Right edge.
if(arrow_location_==RIGHT_TOP || arrow_location_==RIGHT_BOTTOM)
{
int start_y = top + tr_height;
int before_arrow = arrow_offset - start_y - right_arrow_->height() / 2;
int after_arrow = height - tl_height - bl_height -
right_arrow_->height() - before_arrow;
DrawArrowInterior(canvas,
false,
right - r_width + kArrowInteriorHeight,
start_y + before_arrow + right_arrow_->height() / 2,
-kArrowInteriorHeight,
right_arrow_->height() / 2 - 1);
DrawEdgeWithArrow(canvas,
false,
right_,
right_arrow_,
right - r_width,
start_y,
before_arrow,
after_arrow,
0);
}
else
{
canvas->TileImageInt(*right_, right - r_width, top + tr_height, r_width,
height - tr_height - br_height);
}
// Bottom right corner.
canvas->DrawBitmapInt(*bottom_right_, right - br_width, bottom - br_height);
// Bottom edge.
if(arrow_location_==BOTTOM_LEFT || arrow_location_==BOTTOM_RIGHT)
{
int start_x = left + bl_width;
int before_arrow = arrow_offset - start_x - bottom_arrow_->width() / 2;
int after_arrow =
width - bl_width - br_width - bottom_arrow_->width() - before_arrow;
DrawArrowInterior(canvas,
true,
start_x + before_arrow + bottom_arrow_->width() / 2,
bottom - b_height + kArrowInteriorHeight,
1 - bottom_arrow_->width() / 2,
-kArrowInteriorHeight);
DrawEdgeWithArrow(canvas,
true,
bottom_,
bottom_arrow_,
start_x,
bottom - b_height,
before_arrow,
after_arrow,
0);
}
else
{
canvas->TileImageInt(*bottom_, left + bl_width, bottom - b_height,
width - bl_width - br_width, b_height);
}
// Bottom left corner.
canvas->DrawBitmapInt(*bottom_left_, left, bottom - bl_height);
}
void BubbleBorder::DrawEdgeWithArrow(gfx::Canvas* canvas,
bool is_horizontal,
SkBitmap* edge,
SkBitmap* arrow,
int start_x,
int start_y,
int before_arrow,
int after_arrow,
int offset) const
{
/* Here's what the parameters mean:
* start_x
* .
* . ┌───┐ ┬ offset
* start_y..........┌────┬────────┤ ▲ ├────────┬────┐
* │ / │--------│∙ ∙│--------│ \ │
* │ / ├────────┴───┴────────┤ \ │
* ├───┬┘ └┬───┤
* └───┬────┘ └───┬────┘
* before_arrow ─┘ └─ after_arrow
*/
if(before_arrow)
{
canvas->TileImageInt(*edge, start_x, start_y,
is_horizontal ? before_arrow : edge->width(),
is_horizontal ? edge->height() : before_arrow);
}
canvas->DrawBitmapInt(*arrow,
start_x + (is_horizontal ? before_arrow : offset),
start_y + (is_horizontal ? offset : before_arrow));
if(after_arrow)
{
start_x += (is_horizontal ? before_arrow + arrow->width() : 0);
start_y += (is_horizontal ? 0 : before_arrow + arrow->height());
canvas->TileImageInt(*edge, start_x, start_y,
is_horizontal ? after_arrow : edge->width(),
is_horizontal ? edge->height() : after_arrow);
}
}
void BubbleBorder::DrawArrowInterior(gfx::Canvas* canvas,
bool is_horizontal,
int tip_x,
int tip_y,
int shift_x,
int shift_y) const
{
/* This function fills the interior of the arrow with background color.
* It draws isosceles triangle under semitransparent arrow tip.
*
* Here's what the parameters mean:
*
* ┌──────── |tip_x|
* ┌─────┐
* │ ▲ │ ──── |tip y|
* │∙∙∙∙∙│ ┐
* └─────┘ └─── |shift_x| (offset from tip to vertexes of isosceles triangle)
* └────────── |shift_y|
*/
SkPaint paint;
paint.setStyle(SkPaint::kFill_Style);
paint.setColor(background_color_);
gfx::Path path;
path.incReserve(4);
path.moveTo(SkIntToScalar(tip_x), SkIntToScalar(tip_y));
path.lineTo(SkIntToScalar(tip_x + shift_x),
SkIntToScalar(tip_y + shift_y));
if(is_horizontal)
{
path.lineTo(SkIntToScalar(tip_x - shift_x), SkIntToScalar(tip_y + shift_y));
}
else
{
path.lineTo(SkIntToScalar(tip_x + shift_x), SkIntToScalar(tip_y - shift_y));
}
path.close();
canvas->AsCanvasSkia()->drawPath(path, paint);
}
void BubbleBackground::Paint(gfx::Canvas* canvas, view::View* view) const
{
// The border of this view creates an anti-aliased round-rect region for the
// contents, which we need to fill with the background color.
// NOTE: This doesn't handle an arrow location of "NONE", which has square top
// corners.
SkPaint paint;
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kFill_Style);
paint.setColor(border_->background_color());
gfx::Path path;
gfx::Rect bounds(view->GetContentsBounds());
SkRect rect;
rect.set(SkIntToScalar(bounds.x()), SkIntToScalar(bounds.y()),
SkIntToScalar(bounds.right()), SkIntToScalar(bounds.bottom()));
SkScalar radius = SkIntToScalar(BubbleBorder::GetCornerRadius());
path.addRoundRect(rect, radius, radius);
canvas->AsCanvasSkia()->drawPath(path, paint);
}
|
cpp
|
What’s the story?
The transfer window is in full swing and we have witnessed some big money moves involving some big clubs, however, the biggest one is yet to take place, or so we hope. According to Spanish outlet AS, we might be on the cusp of witnessing something extraordinary, so much so that, it almost double the current world transfer record.
According to the report, Neymar’s father is scheduled to travel to Paris later in the week to discuss the possibilities of his 25-year-old son’s move to Paris Saint-Germain. The Brazilian and his representatives plan to cash in on Barcelona’s interest in Marco Verratti, to broker a move for the former Santos player to the Parc des Princes.
Verratti is currently valued at close to €100m and the Catalan giants hold a long standing interest in the Italian, while Neymar has a release clause of €222m and thus Paris Saint-Germain have to cough up the remaining €122m to activate it.
Neymar had signed a contract extension at Barcelona only last year, which included a release clause of €200m but increased to €222m in the current transfer window. The release clause will increase once more, if Neymar enters the final three years of his contract, then it will rise to €250m.
The Brazilian is reportedly being advised to consider a move away from Camp Nou, where he will have the freedom to realize his true potential – a scenario not possible at Barcelona due to the presence of Lionel Messi. As many as 4 clubs, including Real Madrid, Manchester United and Manchester City, hold interest in the 25-year-old.
Barcelona have been heavily linked with Marco Verratti so far in the transfer window, however, any approach by the Catalan giants has been rebuffed by PSG who are adamant not to let their prized-asset leave.
Neymar and his representatives want to cash in on this opportunity to broker a move away for the 25-year-old, with the deal potentially the biggest ever in the history of football, with a lot of money for Barcelona in addition to Verratti.
It is highly unlikely that Barcelona will be willing to let go of Neymar, even if it means they sign their #1 target and they pocket an additional €122m. However, one can never be sure that a deal is too ludicrous to be completed, especially in today’s world.
There are only a few clubs in the world to pull off a deal like that, which includes Real Madrid, Manchester United, Manchester City and PSG. We will have to wait and watch what happens and how this saga develops.
|
english
|
<filename>src/main/webapp/i18n/ru/home-about-project-page.json
{
"home": {
"about-project-page": {
"head-title": "<NAME> - О проектe Мой Блог",
"title": "О проектe Мой Блог",
"ul-title": "<p><a href=\"https://git.sergey-didenko.pro/my-blog\" target=\"_blank\">Проект</a> создавался, чтобы решить несколько проблем:</p>",
"li-1": "Разработать правильный технологический стек",
"li-2": "Разработать удобный и гибкий <b>блог</b> с использованием новейших технологий",
"li-3": "Для закрепления знаний в разработке и попробовать новые решения",
"li-4": "Для закрепления знаний в управлении проектами",
"li-5": "<b>Учебный материал </b> для начинающих программистов, так как проект разрабатывается \"с нуля\". <br>Процесс разработки максимально приближен к рабочему процессу, <br>и я надеюсь, что он кому-нибудь пригодится.",
"languages": "Java, TypeScript, HTML, SCSS, JSON, MySql.",
"technologies": "Angular, Webpack, Spring REST, Spring JPA, Security.",
"link-1": "Документация, структура данных, UML",
"link-2": "Доска проекта",
"link-3": "Будущие возможности",
"link-4": "Изменения",
"source": "Исходники проекта доступны на <a href=\"https://git.sergey-didenko.pro/my-blog\" target=\"_blank\">https://git.sergey-didenko.pro/my-blog</a>",
"follow": "Также вы можете на мой Git аккаунт <a href=\"https://git.sergey-didenko.pro\" target=\"_blank\">https://git.sergey-didenko.pro</a><br>чтобы получать последние обновления."
}
}
}
|
json
|
<filename>README.md
# ReactHooks-Platzi
ReactHooks-Platzi
|
markdown
|
<gh_stars>1-10
{
"tlmr6400.ip": "Adresse IP du routeur",
"tlmr6400.username": "Nom d'utilisateur",
"tlmr6400.password": "<PASSWORD>",
"tlmr6400.techno.tile": "Afficher la technologie sur l'écran d'accueil (2G, 3G, 4G)",
"tlmr6400.router.title": "Routeur"
}
|
json
|
<reponame>Anthonyive/DSCI-550-Assignment-2
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="subject" content="FORM SADRA VICTOR" />
<meta name="dc:creator" content="<<EMAIL>>" />
<meta name="dc:creator" content="<EMAIL>" />
<meta name="MboxParser-status" content="O" />
<meta name="dcterms:created" content="2006-05-29T09:52:02Z" />
<meta name="Message:From-Email" content="<EMAIL>" />
<meta name="Message-To" content="<<EMAIL>>" />
<meta name="Message-To" content="<EMAIL>" />
<meta name="dc:format" content="text/plain; charset="windows-1250"" />
<meta name="Message-Recipient-Address" content="<EMAIL>" />
<meta name="Message:Raw-Header:Status" content="O" />
<meta name="Message:Raw-Header:MIME-Version" content="1.0" />
<meta name="Message:Raw-Header:Message-ID" content="<200605291<EMAIL>>" />
<meta name="dc:title" content="FORM SADRA VICTOR" />
<meta name="Message:Raw-Header:X-Sieve" content="CMU Sieve 2.2 by mail1003.centrum.cz (Centrum Mail) with HTTP" />
<meta name="Content-Type-Override" content="message/rfc822" />
<meta name="Content-Type" content="message/rfc822" />
<meta name="MboxParser-content-transfer-encoding" content="8bit" />
<meta name="identifier" content="<200605291152.<EMAIL>8<EMAIL>>" />
<meta name="creator" content="<<EMAIL>>" />
<meta name="creator" content="<EMAIL>" />
<meta name="X-Parsed-By" content="org.apache.tika.parser.DefaultParser" />
<meta name="X-Parsed-By" content="org.apache.tika.parser.mail.RFC822Parser" />
<meta name="Message:Raw-Header:Content-Type" content="text/plain; charset="windows-1250"" />
<meta name="meta:author" content="<<EMAIL>>" />
<meta name="meta:author" content="<EMAIL>" />
<meta name="meta:creation-date" content="2006-05-29T09:52:02Z" />
<meta name="format" content="text/plain; charset="windows-1250"" />
<meta name="MboxParser-x-sieve" content="CMU Sieve 2.2 " />
<meta name="Creation-Date" content="2006-05-29T09:52:02Z" />
<meta name="Message:Raw-Header:Content-Transfer-Encoding" content="8bit" />
<meta name="Message:Raw-Header:Return-Path" content="<<EMAIL>>" />
<meta name="MboxParser-x-mailer" content="Centrum Mail 1.0" />
<meta name="MboxParser-x-priority" content="3" />
<meta name="Message:Raw-Header:X-Priority" content="3" />
<meta name="MboxParser-from" content="r Mon May 29 05:52:25 2006" />
<meta name="MboxParser-return-path" content="<<EMAIL>> by mail1003.centrum.cz (Centrum Mail) with HTTP Dear One," />
<meta name="MboxParser-mime-version" content="1.0" />
<meta name="X-TIKA:embedded_depth" content="1" />
<meta name="Author" content="<<EMAIL>>" />
<meta name="Author" content="<EMAIL>" />
<meta name="Message:Raw-Header:X-Mailer" content="Centrum Mail 1.0" />
<meta name="X-TIKA:embedded_resource_path" content="/embedded-2605" />
<meta name="Message-From" content="<EMAIL>" />
<meta name="dc:identifier" content="<20060529<EMAIL>>" />
<title>FORM SADRA VICTOR</title>
</head>
<body><p>
Dear One,
am <NAME> the daughter of late Mr <NAME> from
republic of sierra leone, however, before the death of my
father he instructed me to go to his underground safe and
pick up some documents and move to Abidjan cote d'Ivoire
where he deposited the cash sum of $23 million dollars with
a bank to be transfered into an overseas bank account of
his foriegn business partner, and he has instructed me to
look for a foreigner who will stand in the bank as his
business partner to enable the bank transfer the money out
to a foreign bank account as it was deposited between the
bank and my late father. I want you to help me with honest
mind as beneficiary of this money.I have plans to do investment in your
country, and you will help me in the
area of investment in your country.please I am writing with
heart felt condition because of how I lost my entire
family.Right now i am here in Abidjan alone for this very
money that my late father left in the bank,i will want you
to help me and get this money transfered into your bank
account as my late father's foriegn business partner, and
as soon as the money is in been transfer into your account,
i will be coming to meet you for the proper investment of
the money,then i will continue my education in your country.
God bless you
Yours Sincerelly
<NAME>
</p>
</body></html>
|
html
|
<reponame>jynnie/typesmart
import React from "react";
import Box from "ui-box";
import cn from "classnames";
import { ChartContext } from "pages";
import { TYPECHART, TYPEINFO, TYPES } from "models/typechart.model";
import { helperToggle } from "components/Chart";
import cstl from "styles/Chart.module.scss";
function AttackType({
atk,
setHoverAtk,
}: {
atk: TYPES;
setHoverAtk: (val: TYPES) => void;
}) {
const { clickAtk, setClickAtk, clickAtk2, setClickAtk2 } = React.useContext(
ChartContext,
);
if (!atk) return null;
function setHover() {
if (atk) setHoverAtk(atk);
}
const toggleClick = (atk: TYPES | null) => (evt: MouseEvent) => {
helperToggle(evt, atk, clickAtk, clickAtk2, setClickAtk, setClickAtk2);
};
//* Render
return (
<td key={atk} onMouseEnter={setHover} onClick={toggleClick(atk) as any}>
<Box
className={cn(cstl.typeIcon, cstl.atkBox)}
backgroundColor={TYPEINFO[atk].color}
color={TYPEINFO[atk].font}
>
{atk}
</Box>
</td>
);
}
export default AttackType;
|
typescript
|
The Indian Premier League (IPL) has been one of the fiercest competitions in cricket history where the best players from all over the world compete against each other. Mumbai Indians (MI) have been the most successful team in the tournament's history with 4 title wins, while Chennai Super Kings (CSK) have won the championship thrice.
Over the years, the prominence of left-arm pace bowlers has increased in the tournament as the franchises firmly believe that the left-arm pacers have the ‘X-factor’ element. The left-arm fast bowlers bring uniqueness to the table with their different angle. It is very tough for the batsmen to score runs when a right-arm and a left-arm fast bowler bowl from opposite ends.
Here’s a look at the three left-arm quicks who have taken a five wicket haul in the IPL.
Very few fans may remember that the left-arm fast bowler from Saurashtra, Jaydev Unadkat, achieved his maiden five-wicket haul in IPL way back in 2013. He was a part of the Royal Challengers Bangalore (RCB) back then, and he recorded figures of 5/25 against Delhi Daredevils at the Arun Jaitley Stadium.
Virat Kohli’s heroics powered the visitors to a score of 183 runs in the first innings. Unmukt Chand and Ben Rohrer played magnificently for Delhi as they took the home side near the target. However, Unadkat’s brilliant bowling performance denied Delhi the win. He had dismissed Mahela Jayawardene and Virender Sehwag before he came back and sent Chand, Kedar Jadhav and Morne Morkel back to the pavilion. Bangalore won that match by 4 runs.
Four years later, Unadkat registered his second five-wicket haul playing for Rising Pune Supergiant (RPS) against Sunrisers Hyderabad (SRH). Some splendid performances from Steve Smith, Ben Stokes and MS Dhoni guided RPS to a total of 148 in their 20 overs. Yuvraj Singh and David Warner played well in the second innings, however, Unadkat’s hat-trick and subsequent five wicket haul helped Pune win the match by 12 runs.
In the only IPL season that the Pakistani players featured in, Sohail Tanvir etched his name in the history books with a dream spell for Rajasthan Royals (RR) against Chennai Super Kings (CSK). Playing at the Sawai Man Singh Stadium, MS Dhoni won the toss and batted first. The visitors got off to a disastrous start as Tanvir sent Parthiv Patel and Stephen Fleming back to the dressing room before they could even open their accounts.
He soon dismissed Sivaramakrishna Vidyut as Chennai got reduced to 11/3. Suresh Raina, Subramaniam Badrinath and Albie Morkel steadied the boat for Chennai but Tanvir ran through the lower middle order in the death overs to pick 6 wickets in his 4 overs. RR won that match by 8 wickets.
The left-arm fast bowler from Australia became a popular name in the IPL after his two five-wicket hauls against Sunrisers Hyderabad. Playing for Rajasthan in the 2013 season, James Faulkner picked up his first five-wicket haul in Jaipur. He got the better of Shikhar Dhawan, Kumar Sangakkara, and Karn Sharma in his first spell.
Daren Sammy tried to save the day for Hyderabad with a fighting knock of 60 runs but Faulkner dismissed him and Amit Mishra in his second spell to ensure that Rajasthan Royals won the match by 8 wickets.
In the same season, Sunrisers Hyderabad hosted the Royals at the Rajiv Gandhi International Stadium and Faulkner repeated his heroics once again. He picked up the wickets of Parthiv Patel and Dhawan in his first spell. This time, Biplab Samantray stabilized the innings of the home team with a half-century but Faulkner dismissed him and his partner, Sammy before completing his five-wicket haul with the wicket of Dale Steyn. Unfortunately, Rajasthan lost that match by 23 runs.
|
english
|
The 82-year-old has been hospitalized in Sao Paulo since Tuesday amid ongoing treatments for colon cancer, which was first diagnosed in September 2021.
Brazilian football superstar Pele's daughters told his fans Sunday that their father's health was not at serious risk, saying they are confident he will return home when he recovers from a respiratory infection.
The 82-year-old has been hospitalized in Sao Paulo since Tuesday amid ongoing treatments for colon cancer, which was first diagnosed in September 2021.
Pele "is sick, he is elderly, but at this point he is hospitalized for a lung infection," Kely Arantes Nascimento told the TV channel Globo.
"And when he gets better, he'll come home," she said.
"We are not saying goodbye in the hospital," she insisted, explaining that the respiratory illness was the result of a Covid-19 infection the sporting icon had contracted three weeks ago.
Her sister, Flavia Arantes Nascimento, denied reports from the daily Folha de S. Paulo and ESPN Brazil that Pele was no longer responding to chemotherapy and was now receiving only "palliative care. "
She told the news channel that her father was not in the intensive care unit, but a regular ward, and that the family was "tired of receiving condolences" and that the cancer treatment is "delivering results. "
"It's really unfair that they're saying he's at the terminal stage. It's not that, believe us," she said.
Earlier Sunday, fans of Pele -- born Edson Arantes do Nascimento -- congregated outside the Sao Paulo hospital where the three-time world champion is staying.
More than 100 devotees prayed for the recovery of the man widely regarded as the greatest footballer of all time.
"We are a spiritual force" praying for the sporting idol as he wages "one of the toughest battles of his life," one fan, Marcos Bispo dos Santos, told AFP.
Doctors at Sao Paulo's Albert Einstein Hospital said Saturday that Pele remained "stable. "
Pele "has had a good response to care without any worsening in the clinical picture in the last 24 hours," they said in a statement.
The star later struck an optimistic note in an Instagram post, saying, "My friends, I want to keep everyone calm and positive. I'm strong, with a lot of hope and I follow my treatment as usual. "
On Sunday, his fans stood mostly in silence outside the clinic in the Morumbi neighborhood of western Sao Paulo, holding a banner bearing an image of a youthful Pele and marked "Torcida Joven" ("Young Fans").
"Long live the king! " said several posters pasted on walls near entrances to the hospital.
Around noon, the fans formed a circle and held hands as they recited an "Our Father. "
|
english
|
<gh_stars>0
## Examples
TBD
|
markdown
|
<gh_stars>10-100
""" Imports/wrapper for separating plots out of utils. Maintains
backwards compatibility by not changing utils.py"""
from pyparty.utils import grayhist, splot, showim, zoom, zoomshow
from pyparty.utils import multi_axes
def multishow(images, *args, **kwargs):
""" """
names = kwargs.pop('names', [])
if not getattr(images, '__iter__'):
return showim(images, *args, **kwargs)
if len(images) == 1:
return showim(images[0], *args, **kwargs)
axes, kwargs = multi_axes(len(images), **kwargs)
for idx, ax in enumerate(axes):
showim(images[idx], ax, *args, **kwargs)
try:
ax.set_title(names[idx])
except IndexError:
pass
return axes
|
python
|
Google Cloud has added a number of new features that should make it easier for cloud computing developers to start new projects. In particular, it should be more straightforward for them to find existing code samples, which they can then use or tweak for their own software solutions.
The first addition to the Google Cloud platform is a new search page featuring all code samples, containing more than 1,200 code sample tiles, along with the programming languages that each one is available in and the relevant Google Cloud product that it is associated with. Filters and a text-based search box make it easy to find samples quickly.
Another new feature sure to interest developers is the ability to see all the code samples for a particular Google Cloud product, integrated within that product’s existing documentation. For example, if software engineers want to see all the code samples relating to BigQuery, it is now easy to see associated documentation and view the sample on GitHub.
Google Cloud also confirmed that as its team adds more open source samples to its GitHub repositories, it will also add new standalone code sample pages to its documentation to reflect these additions.
The new code sample features for Google Cloud should speed up the development of new projects and make coding efforts for existing projects progress more smoothly.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
Barclay has been writing about technology for a decade, starting out as a freelancer with ITProPortal covering everything from London’s start-up scene to comparisons of the best cloud storage services. After that, he spent some time as the managing editor of an online outlet focusing on cloud computing, furthering his interest in virtualization, Big Data, and the Internet of Things.
|
english
|
<reponame>BISAECG/BisaRealTimeProject<gh_stars>0
package com.bisa.health.provider.device;
// @formatter:off
import android.net.Uri;
import android.provider.BaseColumns;
import com.bisa.health.provider.BisaHealthProvider;
/**
* Columns for the {@code device} table.
*/
@SuppressWarnings("unused")
public class DeviceColumns implements BaseColumns {
public static final String TABLE_NAME = "device";
public static final Uri CONTENT_URI = Uri.parse(BisaHealthProvider.CONTENT_URI_BASE + "/" + TABLE_NAME);
/**
* Primary key.
*/
public static final String _ID = BaseColumns._ID;
public static final String USER_GUID = "user_guid";
public static final String DEVNAME = "devname";
public static final String MACADDERSS = "macadderss";
public static final String DEVNUM = "devnum";
public static final String CONNSTATUS = "connstatus";
public static final String CLZNAME = "clzName";
public static final String CHECKBOX = "checkbox";
public static final String ICOFLAG = "icoflag";
public static final String CUSTNAME = "custName";
public static final String DEFAULT_ORDER = null;
public static final String[] ALL_COLUMNS = new String[] {
_ID,
USER_GUID,
DEVNAME,
MACADDERSS,
DEVNUM,
CONNSTATUS,
CLZNAME,
CHECKBOX,
ICOFLAG,
CUSTNAME
};
public static boolean hasColumns(String[] projection) {
if (projection == null) return true;
for (String c : projection) {
if (c.equals(USER_GUID) || c.contains("." + USER_GUID)) return true;
if (c.equals(DEVNAME) || c.contains("." + DEVNAME)) return true;
if (c.equals(MACADDERSS) || c.contains("." + MACADDERSS)) return true;
if (c.equals(DEVNUM) || c.contains("." + DEVNUM)) return true;
if (c.equals(CONNSTATUS) || c.contains("." + CONNSTATUS)) return true;
if (c.equals(CLZNAME) || c.contains("." + CLZNAME)) return true;
if (c.equals(CHECKBOX) || c.contains("." + CHECKBOX)) return true;
if (c.equals(ICOFLAG) || c.contains("." + ICOFLAG)) return true;
if (c.equals(CUSTNAME) || c.contains("." + CUSTNAME)) return true;
}
return false;
}
}
|
java
|
{"id":138730,"line-1":"New York","line-2":"United States","attribution":"©2016 Bluesky, DigitalGlobe, USDA Farm Service Agency","url":"https://www.google.com/maps/@40.580878,-74.073837,16z/data=!3m1!1e3"}
|
json
|
<reponame>AnyChart/anystock-drawing-tools-and-annotations-demo
body {
padding: 10px 15px;
}
html, body {
height: 100%;
}
.color-fill-icon {
display: inline-block;
width: 16px;
height: 16px;
border: 1px solid #000;
background-color: #fff;
margin: 2px;
}
.colorpickerplus-custom-colors,
.colorpickerplus .input-group {
display: none;
}
.dropdown-color-fill-icon {
position: relative;
float: left;
margin-left: 0;
margin-right: 0
}
.title-drawing-tools {
display: none;
}
.text-drawing-tools {
display: none;
max-width: 1080px;
margin-bottom: 20px;
}
#chart-container {
height: 550px;
}
#annotation-label {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.table-container {
padding: 0;
width: 100%;
height: 100%;
}
.table-container td {
vertical-align: top;
}
.chart-column {
height: 100%;
}
.no-iframe #chart-container {
width: 99%;
}
.container-drawing-tools #chart-container {
margin-top: 0;
}
.drawing-tools-solo.container {
margin-top: 25px;
}
.container-drawing-tools .drawing-tools-solo {
margin: 0;
}
* {
outline: none !important;
}
.select > .btn {
font-weight: 400;
border-color: #c5c8d1;
background: #fff;
}
.bootstrap-select > .btn {
width: 100%;
padding-right: 25px;
}
.error .bootstrap-select .btn {
border: 1px solid #b94a48;
}
.control-group.error .bootstrap-select .dropdown-toggle {
border-color: #b94a48;
}
.bootstrap-select.fit-width {
width: auto !important;
}
.bootstrap-select.form-control {
margin-bottom: 0;
padding: 0;
}
.bootstrap-select .dropdown-toggle {
height: 34px;
padding: 8px 16px;
font-weight: 400;
border-color: #c5c8d1;
background: #fff;
}
.filter-option {
font-size: 14px;
float: left;
}
.btn-group-container {
display: inline-block;
}
.toolbar > .select-container {
display: inline-block;
}
.select .ac {
margin-right: 5px;
top: -1px;
}
.bootstrap-select .dropdown-toggle:focus {
outline: none !important;
outline-offset: 0 !important;
}
.btn-group-vertical > .btn,
.btn-group > .btn {
margin-left: -1px;
}
.bootstrap-select.btn-group:not(.input-group-btn),
.bootstrap-select.btn-group[class*=col-] {
margin-left: -1px;
}
.btn-group .select.select-marker-size {
margin-left: -5px !important;
}
.btn-group .select {
margin-left: -1px !important;
}
.select-marker-size[disabled="disabled"] > .btn:first-child {
opacity: 0.75;
cursor: not-allowed;
}
.select-marker-size[disabled="disabled"] .btn.active,
.select-marker-size[disabled="disabled"] .btn:active {
-webkit-box-shadow: none;
box-shadow: none;
}
.choose-drawing-tools.bootstrap-select.btn-group ul.dropdown-menu {
margin-right: 10px;
}
.choose-marker.bootstrap-select.btn-group ul.dropdown-menu {
margin-right: 10px;
}
.bootstrap-select.btn-group .dropdown-toggle .filter-option {
text-overflow: ellipsis;
}
.btn-group .btn {
margin-bottom: 5px;
}
.btn-group .volume-btn {
display: inline-block;
float: none;
}
.btn-group {
font-size: 0;
}
.ac.glyphicon {
font-family: 'Glyphicons Halflings' !important;
}
button.dropdown-toggle {
padding-left: 13px !important;
padding-right: 25px !important;
}
.filter-option .ac,
.dropdown-menu .ac {
font-size: 14px;
}
/*Loader------------------------------------------------------------------------------------------------------------------------------------*/
.anychart-loader {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
background: #fff;
}
.anychart-loader .rotating-cover {
width: 70px;
height: 70px;
position: absolute;
top: 50%;
margin-top: -35px;
left: 50%;
margin-left: -35px;
}
.anychart-loader .rotating-plane {
display: block;
width: 100%;
height: 100%;
border-radius: 20%;
border: 5px solid #1c75ba;
margin: 0 auto;
position: relative;
-webkit-animation: rotateplane 3s infinite;
animation: rotateplane 3s infinite;
}
.anychart-loader .chart-row {
position: absolute;
top: 10px;
bottom: 0;
left: 10px;
right: 10px;
letter-spacing: -3px;
line-height: 0;
font-size: 0;
white-space: nowrap;
}
.anychart-loader .chart-row .chart-col {
display: inline-block;
width: 25%;
height: 90%;
background: #000;
margin: 0 12.5% 0 0;
vertical-align: bottom;
}
.anychart-loader .chart-row .chart-col.green {
background: #26a957;
height: 50%;
-webkit-animation: blinkplane 1.5s infinite;
animation: blinkplane 1.5s infinite;
}
.anychart-loader .chart-row .chart-col.orange {
background: #ff8207;
height: 70%;
-webkit-animation: blinkplane 1.5s infinite 0.15s;
animation: blinkplane 1.5s infinite 0.25s;
}
.anychart-loader .chart-row .chart-col.red {
background: #f0402e;
height: 90%;
-webkit-animation: blinkplane 1.5s infinite 0.3s;
animation: blinkplane 1.5s infinite 0.5s;
}
@keyframes rotateplane {
0% {
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
opacity: 1;
}
25% {
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
opacity: 0.3;
}
50% {
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
opacity: 1;
}
75% {
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(-180.1deg);
transform: perspective(120px) rotateX(0deg) rotateY(-180.1deg);
opacity: 0.3;
}
100% {
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
opacity: 1;
}
}
@keyframes blinkplane {
0% {
opacity: 1;
}
50% {
opacity: 0.01;
}
100% {
opacity: 1;
}
}
/*Loader End------------------------------------------------------------------------------------------------------------------------------------*/
|
css
|
http://data.doremus.org/expression/4cdb3161-64ab-3c3f-8237-8632ac59ff98
http://data.doremus.org/expression/65246e44-7a05-38c1-a7ea-8fccf00435c5
http://data.doremus.org/expression/3433bc90-b20a-37f1-be16-844bef4a2488
http://data.doremus.org/expression/1cdbc440-62a8-3247-8770-f3a59372bd79
http://data.doremus.org/expression/97470298-6498-305e-9ae4-f106f473bb36
http://data.doremus.org/expression/34892ab4-e2fc-3f15-bb70-0313a7be1fc1
http://data.doremus.org/expression/f29909e3-d5d7-358f-b94b-fb2c2d99c0af
http://data.doremus.org/expression/dd6b13c6-2184-3f29-b16e-8c11ed1bf990
http://data.doremus.org/expression/6023c89c-5b0a-34fc-b8ca-8682721477fb
http://data.doremus.org/expression/be12b2bd-e648-3c53-b89c-822c4802e447
|
json
|
import React from 'react';
import MaterialSkeleton from '@material-ui/lab/Skeleton';
import times from 'lodash.times';
import uniqueid from 'lodash.uniqueid';
type Props = {
variant: 'text' | 'rect' | 'circle';
width: number;
height: number;
repeat: number;
};
const Skeleton: React.FunctionComponent<Props> = ({
variant = 'text',
width,
height,
repeat = 1,
}: Props) => {
return times(repeat, () => (
<MaterialSkeleton
key={uniqueid('id_')}
variant={variant}
width={width}
height={height}
/>
)).map((elem: JSX.Element) => elem);
};
export default Skeleton;
|
typescript
|
### Project Overview
Manipulated Files And worked On functions in Python
### Learnings from the project
learnt how to handles files in python and manipulate the files.
|
markdown
|
{
"alias": "video/3999/money-money-money-writing-software-in-a-rich",
"category": "PyCon AU 2015",
"copyright_text": "creativeCommon",
"description": "Free software advocates talk about two types of \"Free\": Free as in\nfreedom, and Free as in beer. While Free (as in freedom) software is\nunquestionably better for users and developers alike, Free (as in beer)\nsoftware doesn't pay the bills.\n\nTalk to any prominent open source developer, and amongst the success\nstories, you'll also hear some consistent troubles - that they've got\ngreat ideas and grand plans, but no time to execute; that they're about\nto burn out due to the pressues of maintaining their project; or that\nthey've had yet another mailing list discussion with someone who doesn't\nunderstand they're a volunteer. All of these problems stem from a\nfundamental disconnect: the discrepancy between the clear demand for a\nsoftware product, and the ability to convert that demand into time\nneeded to service that demand - and that means money.\n\nSo is there a way to pay the piper? Or is open source doomed to eek out\nan existence at the edges of \"a real job\"?\n",
"duration": null,
"id": 3999,
"language": "eng",
"quality_notes": "",
"recorded": "2015-08-04",
"slug": "money-money-money-writing-software-in-a-rich",
"speakers": [
"<NAME>"
],
"summary": "",
"tags": [],
"thumbnail_url": "https://i.ytimg.com/vi/mY8B2lXIu6g/hqdefault.jpg",
"title": "Money, Money, Money - Writing software, in a rich (wo)man's world",
"videos": [
{
"length": 0,
"type": "youtube",
"url": "https://www.youtube.com/watch?v=mY8B2lXIu6g"
}
]
}
|
json
|
Sony Corporation is reportedly mulling over a proposal from a major shareholder Third Point LLC to spin-off its movie and music businesses. Reported by the Japanese daily newspaper Nikkei (via Reuters), the hope is to separate two of successful business units and use the funds to aid Sony’s struggling electronics division.
Third Point LLC investor Daniel Loeb last week stated last week that he hoped the money from the spin-off could be used to bolster Sony’s device-manufacturing unit. Loeb said that by allowing the company to fund improvements in its electronics operations, it would also provide its shareholders with an opportunity to be better connected with the profitable units by owning a piece of them directly.
The New York Times notes that shares in Sony have dropped nearly 85 percent over the last 13 years, leading many to believe that some form of a turnaround must happen if the company will remain competitive. It no longer is considered a company that produces “cool electronics”, having given that title to the likes of Apple and is suffering in other areas including televisions and phones.
Sony is a struggling company and needs to make some changes for it to improve its standing in the eyes of investors. Surely, people will be watching to see how the upcoming Playstation 4 will perform, given that it hasn’t even revealed what it looks like or what it will cost, just that it’s coming. However, as Microsoft revealed earlier today its next-generation Xbox game console, Sony surely needs this newest Playstation to work.
Sony has made it a priority in the next year to rebuild its electronics business. To achieve this, Hirai says it will focus on five initiatives: strengthening its core businesses in digital imaging, games, and mobile, turning around its television operations, expanding to more emerging markets, create new business, and realigning its business portfolio and optimize the use of its resources.
Whether Loeb’s proposal works remains to be seen, but it could also be a way for Sony to prevent the lackluster performance its electronics unit has from spreading to other divisions. In the end, money isn’t going to necessarily solve all of Sony’s problems — it needs to focus on innovating and producing products that its customers want to use. Anything short of that will just be Sony putting itself on life-support.
Investors certainly think that Loeb’s proposal is a good one. After news leaked about his idea, shares in the company rose more than 9 percent on the New York Stock Exchange.
Get the most important tech news in your inbox each week.
|
english
|
The most recent entry on this list, the rumor mill was going abuzz about the fact that Vince McMahon was furious at the Intercontinental Championship match. Dean Ambrose and Seth Rollins' rivalry was years in the making and had a really good build-up, with fans anticipating what would happen in the grudge match.
Except, it didn't feel like a grudge match at all. It felt like an absolute dud of a match. To start off with, it was placed in an extremely unfavorable part of the card. With the crowd being hot for the matches prior, they were already slightly burned out.
To add to it, the pace of Rollins-Ambrose never really got off, and the crowd was mellowed down throughout the match. With a feud being built as possibly the most important on the card, McMahon was understandably frustrated that the payoff of it didn't go as expected.
|
english
|
<reponame>jornsky/jifeng-demo
import {
PrimaryGeneratedColumn,
Column,
Entity,
CreateDateColumn,
UpdateDateColumn,
BeforeUpdate,
BeforeInsert,
ManyToMany,
JoinTable,
} from 'typeorm';
import * as bcrypt from 'bcrypt';
import { Exclude } from 'class-transformer';
import { Role } from '../role/role.entity';
import { ApiProperty } from '@nestjs/swagger';
@Entity()
export class User {
@ApiProperty()
@PrimaryGeneratedColumn()
id: number;
@ApiProperty()
@Column('varchar', { unique: true })
name: string;
@ApiProperty()
@Column()
@Exclude()
password: string;
@ApiProperty()
@CreateDateColumn()
created: string;
@ApiProperty()
@UpdateDateColumn()
update: string;
@ApiProperty()
@ManyToMany(
type => Role,
role => role.users,
)
// 会创建一个关系表
@JoinTable()
roles: Role[];
@BeforeInsert()
@BeforeUpdate()
async hashPassword() {
this.password = await bcrypt.hash(this.password, 12);
}
async comparepassword(password: string) {
return await bcrypt.compare(password, this.password);
}
}
|
typescript
|
Wilt Chamberlain's unique career and place in NBA history can't be denied. Nowadays, his reputation is somewhat of an urban legend. And many of the stories regarding the 7-foot-1 legend come from word of mouth, with fans and former teammates sharing stories about his life and career.
As Hall of Famer Jerry West spoke about the man, the myth, the legend on the "Dan Patrick Show," Patrick recalled a time when he was just a young fan eager to get autographs from the NBA's biggest stars.
As he remembered, he was fortunate enough to get West's autograph, but when he tried to get an autograph from Chamberlain, he got a unique memory instead.
"You guys came into Cincinnati, and the Royals beat you, and I got your autograph, and I got Bill Sharman, I got everybody but Wilt," Patrick said. "And Wilt sat in the first seat on the bus, and after the game I saw him there and he didn't sign my autograph.
"I walked on the bus, I took one step up, and I said, 'Mr. Chamberlain, would you sign my autograph?' And he stood up and he said, 'Get the f**k off the bus!' And that was my encounter with Wilt."
From his beginnings as a standout member of the Harlem Globetrotters to a legendary career that sees him hold 72 NBA records, Chamberlain did it all. Accomplishments like averaging 30 points and 20 rebounds per game over the course of a season and scoring 100 points in a game baffle fans.
At the time of Dan Patrick's story, Wilt Chamberlain and Jerry West played together on the LA Lakers. Given that, the situation must fall sometime between 1968 and 1973, the period Chamberlain was with the Lakers.
As West recalled, things were different back then, and not just because he and Chamberlain were young NBA stars. Now, fans don't have access to the player buses, nor would a fan be able to step onto a bus like Patrick did.
(Suggested Reading: Kareem Abdul-Jabbar reflects on falling out with Wilt Chamberlain)
Between security guards and safety protocols, players take back routes into the arenas for games, with security checkpoints along the way.
After the two shared a laugh about Patrick's story, West said:
"Well, that was probably not what you expected I'm guessing. Today, not only the security guard but the entrance to the bus is really protected, because it's usually under the arena. It's really changed."
Given that fans and analysts don't have access to troves of interviews and gameplay footage of Chamberlain, stories like Patrick's are always appreciated.
(Suggested Reading: That time Wilt Chamberlain shut down Michael Jordan's case for the GOAT)
How did Michael Jordan's gambling "habit" taint his image?
|
english
|
Former South African fast bowler Lonwabo Tsotsobe, who impressed one and all with his outstanding display of swing bowling in the first year of his debut, has been banned for 8 years by Cricket South Africa, for corruption.
In April, Lonwabo Tsotsobe charged by Cricket South Africa (CSA) for several breaches of its Anti-Corruption Code relating to the 2015 RAM SLAM T20 Challenge Series.
Later, Tsotsobe was also provisionally suspended from any involvement in cricket under the jurisdiction of CSA, the ICC or any other ICC members.
The fast bowler also admitted one charge of contriving to fix a match and nine separate charges of failing to co-operate properly with various investigations.
This is what he said:
“I was, at the time, in a very vulnerable financial state and this dilemma too easily persuaded me to participate in spot fixing,” he said in a statement.
Haroon Lorgat, the CSA chief executive, said:
|
english
|
<filename>src/main/java/org/kurento/tutorial/one2manycall/CallHandler.java
/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.kurento.tutorial.one2manycall;
import java.io.IOException;
import java.util.concurrent.ConcurrentHashMap;
import org.kurento.client.*;
import org.kurento.jsonrpc.JsonUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
/**
* Protocol handler for 1 to N video call communication.
*
* @author <NAME> (<EMAIL>)
* @since 5.0.0
*/
public class CallHandler extends TextWebSocketHandler {
private class RecordFlag {
public boolean Camera = false;
public boolean Screen = false;
}
private static final Logger log = LoggerFactory.getLogger(CallHandler.class);
private static final Gson gson = new GsonBuilder().create();
private final ConcurrentHashMap<String, UserSession> viewers = new ConcurrentHashMap<>();
@Autowired
private KurentoClient kurento;
private MediaPipeline pipeline;
private UserSession presenterUserSession;
private JsonObject candidate;
private UserSession user;
private Composite composite;
private HubPort compositeOutput;
private RecorderEndpoint recorderEndpoint;
private RecordFlag recordFlag;
@Override
public void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
JsonObject jsonMessage = gson.fromJson(message.getPayload(), JsonObject.class);
log.debug("Incoming message from session '{}': {}", session.getId(), jsonMessage);
switch (jsonMessage.get("id").getAsString()) {
case "ps":
try {
presenterScreen(session, jsonMessage);
} catch (Throwable t) {
handleErrorResponse(t, session, "presenterScreenRes-ponse");
}
break;
case "pc":
try {
presenterCamera(session, jsonMessage);
} catch (Throwable t) {
handleErrorResponse(t, session, "presenterCameraResponse");
}
break;
case "vs":
try {
viewerScreen(session, jsonMessage);
} catch (Throwable t) {
handleErrorResponse(t, session, "viewerResponse");
}
break;
case "vc":
try {
viewerCamera(session, jsonMessage);
} catch (Throwable t) {
handleErrorResponse(t, session, "viewerResponse");
}
break;
case "onIceCandidateCamera":
candidate = jsonMessage.get("candidate").getAsJsonObject();
if (presenterUserSession != null) {
if (presenterUserSession.getSession() == session) {
user = presenterUserSession;
} else {
user = viewers.get(session.getId());
}
}
if (user != null) {
IceCandidate cand =
new IceCandidate(candidate.get("candidate").getAsString(), candidate.get("sdpMid")
.getAsString(), candidate.get("sdpMLineIndex").getAsInt());
user.addCandidateCamera(cand);
}
break;
case "onIceCandidateScreen": {
candidate = jsonMessage.get("candidate").getAsJsonObject();
if (presenterUserSession != null) {
if (presenterUserSession.getSession() == session) {
user = presenterUserSession;
} else {
user = viewers.get(session.getId());
}
}
if (user != null) {
IceCandidate cand =
new IceCandidate(candidate.get("candidate").getAsString(), candidate.get("sdpMid")
.getAsString(), candidate.get("sdpMLineIndex").getAsInt());
user.addCandidateScreen(cand);
}
break;
}
case "stop":
stop(session);
break;
default:
break;
}
}
private void handleErrorResponse(Throwable throwable, WebSocketSession session, String responseId)
throws IOException {
stop(session);
log.error(throwable.getMessage(), throwable);
JsonObject response = new JsonObject();
response.addProperty("id", responseId);
response.addProperty("response", "rejected");
response.addProperty("message", throwable.getMessage());
session.sendMessage(new TextMessage(response.toString()));
}
private void initialPresenterMisc(final WebSocketSession session)
{
if (presenterUserSession == null) {
presenterUserSession = new UserSession(session);
pipeline = kurento.createMediaPipeline();
composite = new Composite.Builder(pipeline).build();
recordFlag = new RecordFlag();
}
}
private void record(){
boolean isReady = recordFlag.Camera && recordFlag.Screen;
if (isReady) {
compositeOutput = new HubPort.Builder(composite).build();
recorderEndpoint = new RecorderEndpoint.Builder(pipeline, "file:///Users/eric/Downloads/tmp/recording.webm").withMediaProfile(MediaProfileSpecType.WEBM).build();
compositeOutput.connect(recorderEndpoint);
recorderEndpoint.record();
}
}
private synchronized void presenterCamera(final WebSocketSession session, final JsonObject jsonMessage)
throws IOException {
initialPresenterMisc(session);
presenterUserSession.setWebRtcCameraEndpoint(new WebRtcEndpoint.Builder(pipeline).build());
WebRtcEndpoint presenterWebRtc = presenterUserSession.getWebRtcCameraEndpoint();
HubPort hubPort = new HubPort.Builder(composite).build();
presenterWebRtc.connect(hubPort);
presenterWebRtc.addIceCandidateFoundListener(new EventListener<IceCandidateFoundEvent>() {
@Override
public void onEvent(IceCandidateFoundEvent event) {
JsonObject response = new JsonObject();
response.addProperty("id", "iceCandidateCamera");
response.add("candidate", JsonUtils.toJsonObject(event.getCandidate()));
try {
synchronized (session) {
session.sendMessage(new TextMessage(response.toString()));
}
} catch (IOException e) {
log.debug(e.getMessage());
}
}
});
String sdpOffer = jsonMessage.getAsJsonPrimitive("sdpOffer").getAsString();
String sdpAnswer = presenterWebRtc.processOffer(sdpOffer);
JsonObject response = new JsonObject();
response.addProperty("id", "presenterCameraResponse");
response.addProperty("response", "accepted");
response.addProperty("sdpAnswer", sdpAnswer);
recordFlag.Camera = true;
synchronized (session) {
presenterUserSession.sendMessage(response);
}
presenterWebRtc.gatherCandidates();
record();
}
private synchronized void presenterScreen(final WebSocketSession session, final JsonObject jsonMessage)
throws IOException {
initialPresenterMisc(session);
presenterUserSession.setWebRtcScreenEndpoint(new WebRtcEndpoint.Builder(pipeline).build());
WebRtcEndpoint presenterWebRtc = presenterUserSession.getWebRtcScreenEndpoint();
HubPort hubPort = new HubPort.Builder(composite).build();
presenterWebRtc.connect(hubPort);
presenterWebRtc.addIceCandidateFoundListener(new EventListener<IceCandidateFoundEvent>() {
@Override
public void onEvent(IceCandidateFoundEvent event) {
JsonObject response = new JsonObject();
response.addProperty("id", "iceCandidateScreen");
response.add("candidate", JsonUtils.toJsonObject(event.getCandidate()));
try {
synchronized (session) {
session.sendMessage(new TextMessage(response.toString()));
}
} catch (IOException e) {
log.debug(e.getMessage());
}
}
});
String sdpOffer = jsonMessage.getAsJsonPrimitive("sdpOffer").getAsString();
String sdpAnswer = presenterWebRtc.processOffer(sdpOffer);
JsonObject response = new JsonObject();
response.addProperty("id", "presenterScreenResponse");
response.addProperty("response", "accepted");
response.addProperty("sdpAnswer", sdpAnswer);
recordFlag.Screen = true;
synchronized (session) {
presenterUserSession.sendMessage(response);
}
presenterWebRtc.gatherCandidates();
record();
}
private synchronized void viewerCamera(final WebSocketSession session, JsonObject jsonMessage)
throws IOException {
if (presenterUserSession == null) {
JsonObject response = new JsonObject();
response.addProperty("id", "viewerCameraResponse");
response.addProperty("response", "rejected");
response.addProperty("message",
"No active sender now. Become sender or . Try again later ...");
session.sendMessage(new TextMessage(response.toString()));
} else {
UserSession viewer = viewers.get(session.getId());
if (viewer == null) {
viewer = new UserSession(session);
viewers.put(session.getId(), viewer);
}
WebRtcEndpoint nextWebRtc = new WebRtcEndpoint.Builder(pipeline).build();
nextWebRtc.addIceCandidateFoundListener(new EventListener<IceCandidateFoundEvent>() {
@Override
public void onEvent(IceCandidateFoundEvent event) {
JsonObject response = new JsonObject();
response.addProperty("id", "iceCandidateViewerCamera");
response.add("candidate", JsonUtils.toJsonObject(event.getCandidate()));
try {
synchronized (session) {
session.sendMessage(new TextMessage(response.toString()));
}
} catch (IOException e) {
log.debug(e.getMessage());
}
}
});
viewer.setWebRtcCameraEndpoint(nextWebRtc);
presenterUserSession.getWebRtcCameraEndpoint().connect(nextWebRtc);
String sdpOffer = jsonMessage.getAsJsonPrimitive("sdpOffer").getAsString();
String sdpAnswer = nextWebRtc.processOffer(sdpOffer);
JsonObject response = new JsonObject();
response.addProperty("id", "viewerCameraResponse");
response.addProperty("response", "accepted");
response.addProperty("sdpAnswer", sdpAnswer);
synchronized (session) {
viewer.sendMessage(response);
}
nextWebRtc.gatherCandidates();
}
}
private synchronized void viewerScreen(final WebSocketSession session, JsonObject jsonMessage)
throws IOException {
if (presenterUserSession == null) {
JsonObject response = new JsonObject();
response.addProperty("id", "viewerScreenResponse");
response.addProperty("response", "rejected");
response.addProperty("message",
"No active sender now. Become sender or . Try again later ...");
session.sendMessage(new TextMessage(response.toString()));
} else {
UserSession viewer = viewers.get(session.getId());
if (viewer == null) {
viewer = new UserSession(session);
viewers.put(session.getId(), viewer);
}
WebRtcEndpoint nextWebRtc = new WebRtcEndpoint.Builder(pipeline).build();
nextWebRtc.addIceCandidateFoundListener(new EventListener<IceCandidateFoundEvent>() {
@Override
public void onEvent(IceCandidateFoundEvent event) {
JsonObject response = new JsonObject();
response.addProperty("id", "iceCandidateViewerScreen");
response.add("candidate", JsonUtils.toJsonObject(event.getCandidate()));
try {
synchronized (session) {
session.sendMessage(new TextMessage(response.toString()));
}
} catch (IOException e) {
log.debug(e.getMessage());
}
}
});
viewer.setWebRtcScreenEndpoint(nextWebRtc);
presenterUserSession.getWebRtcScreenEndpoint().connect(nextWebRtc);
String sdpOffer = jsonMessage.getAsJsonPrimitive("sdpOffer").getAsString();
String sdpAnswer = nextWebRtc.processOffer(sdpOffer);
JsonObject response = new JsonObject();
response.addProperty("id", "viewerScreenResponse");
response.addProperty("response", "accepted");
response.addProperty("sdpAnswer", sdpAnswer);
synchronized (session) {
viewer.sendMessage(response);
}
nextWebRtc.gatherCandidates();
}
}
private synchronized void stop(WebSocketSession session) throws IOException {
String sessionId = session.getId();
recorderEndpoint.stop();
if (presenterUserSession != null && presenterUserSession.getSession().getId().equals(sessionId)) {
for (UserSession viewer : viewers.values()) {
JsonObject response = new JsonObject();
response.addProperty("id", "stopCommunication");
viewer.sendMessage(response);
}
log.info("Releasing media pipeline");
if (pipeline != null) {
pipeline.release();
}
pipeline = null;
presenterUserSession = null;
} else if (viewers.containsKey(sessionId)) {
if (viewers.get(sessionId).getWebRtcScreenEndpoint() != null) {
viewers.get(sessionId).getWebRtcScreenEndpoint().release();
}
if (viewers.get(sessionId).getWebRtcCameraEndpoint() != null) {
viewers.get(sessionId).getWebRtcCameraEndpoint().release();
}
viewers.remove(sessionId);
}
recordFlag = new RecordFlag();
}
@Override
public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception {
stop(session);
}
}
|
java
|
Colors’ popular show Sasural Simar Ka witnessed a major twist with Roli’s (Avika Gor) sudden death. Now the entire family is moaning her demise. But that’s not all; it seems the family will lose their property and luxury home as well.
Looks like when Veeru transferred the Bhardwaj property to Roli’s name, he added a clause that in case something happens to her, he would get the property back. So besides dealing with Roli’s loss, the family now has to leave their home within 24 hours.
While all this is going on, somewhere in the country Roli is seen dressed in a Rajasthani attire dancing to local music. Apparently, it’s not Roli; instead her name is Jhumki, who happens to be Siddhanth’s wife’s look-alike – how original, no?
"I have mixed feelings. While on the one hand I feel sad about the end of Roli's character, which was loved by the audiences very much, on the other hand, I am excited to be seen in a new role. I think a new role always offers an actor something new to learn and experiment with," said Avika. "I also hope the new twist is loved by everyone," she added.
So will Jhumki, who will be seen next week onwards, be the one to save the family from the new crisis?
Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series.
Click to join us on Facebook, Twitter, Youtube and Instagram.
Also follow us on Facebook Messenger for latest updates.
|
english
|
<gh_stars>1-10
package org.hzero.boot.imported.app.service;
import org.hzero.boot.imported.domain.entity.LocalTemplate;
import io.choerodon.core.domain.Page;
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
/**
* 应用服务
*
* @author <EMAIL> 2018-12-18 16:00:39
*/
public interface LocalTemplateService {
/**
* 通过模板头主键分页查询模板行
*
* @param tenantId 租户Id
* @param templateCode 模板编码
* @param pageRequest 分页
* @return 模板信息
*/
Page<LocalTemplate> pageTemplate(Long tenantId, String templateCode, PageRequest pageRequest);
/**
* 根据主键查询
*
* @param templateId 主键
* @return 模板
*/
LocalTemplate detailTemplateJson(Long templateId);
/**
* 根据唯一索引查询
*
* @param tenantId 租户Id
* @param templateCode 模板编码
* @return 模板
*/
LocalTemplate detailTemplateJsonByCode(Long tenantId, String templateCode);
/**
* 创建与更新
*
* @param localTemplate 模板信息
* @return 更新后的信息
*/
LocalTemplate save(LocalTemplate localTemplate);
/**
* 删除本地模板
*
* @param localTemplate 本地模板
*/
void deleteTemplateJson(LocalTemplate localTemplate);
}
|
java
|
<filename>public/plugin/bower_components/angular-sticky/demo/views/demos/simple.html
<div save-content="intro">
<h2>Simple demo</h2>
<p>
Simplest usage demo for Angular Sticky.
This container will stick to the top only by adding <code>hl-sticky</code> to the DOM element.
A little added bonus is the usage of the class<code>.is-sticky</code>, but that is optional.
That class is being added by the plugin whenever the element becomes sticky.
</p>
</div>
<div save-content="css">
.sticks {
display: none;
}
.is-sticky .sticks {
display: block;
}
.is-sticky .not-sticky {
display: none;
}
</div>
<div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12" save-content="html">
<div hl-sticky class="simple">
<span class="not-sticky">Scroll to make me sticky</span>
<span class="sticks">Look, I'm sticky!</span>
</div>
</div>
</div>
</div>
</div>
|
html
|
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://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.
# Lint as: python2, python3
"""Explicit time marching scheme for parabolic PDEs."""
from tf_quant_finance.experimental.pde_v2.steppers.parabolic_equation_stepper import parabolic_equation_step
from tf_quant_finance.experimental.pde_v2.steppers.weighted_implicit_explicit import weighted_implicit_explicit_scheme
def explicit_step(
time,
next_time,
coord_grid,
value_grid,
boundary_conditions,
second_order_coeff_fn,
first_order_coeff_fn,
zeroth_order_coeff_fn,
inner_second_order_coeff_fn,
inner_first_order_coeff_fn,
num_steps_performed,
dtype=None,
name=None):
"""Performs one step of the parabolic PDE solver using explicit scheme.
For a given solution (given by the `value_grid`) of a parabolic PDE at a given
`time` on a given `coord_grid` computes an approximate solution at the
`next_time` on the same coordinate grid using explicit time marching scheme.
(see, e.g., [1]). The parabolic PDE is of the form:
```none
V_{t} + a(t, x) * V_{xx} + b(t, x) * V_{x} + c(t, x) * V = 0
```
Here `V = V(t, x)` is a solution to the 2-dimensional PDE. `V_{t}` is the
derivative over time and `V_{x}` and `V_{xx}` are the first and second
derivatives over the space component. For a solution to be well-defined, it is
required for `a` to be positive on its domain.
See `fd_solvers.solve` for an example use case.
### References:
[1]: <NAME>, <NAME>. Quadratic Convergence for Valuing American
Options Using A Penalty Method. Journal on Scientific Computing, 2002.
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.28.9066&rep=rep1&type=pdf
Args:
time: Real scalar `Tensor`. The time before the step.
next_time: Real scalar `Tensor`. The time after the step.
coord_grid: List of `n` rank 1 real `Tensor`s. `n` is the dimension of the
domain. The i-th `Tensor` has shape, `[d_i]` where `d_i` is the size of
the grid along axis `i`. The coordinates of the grid points. Corresponds
to the spatial grid `G` above.
value_grid: Real `Tensor` containing the function values at time
`time` which have to be evolved to time `next_time`. The shape of the
`Tensor` must broadcast with `B + [d_1, d_2, ..., d_n]`. `B` is the batch
dimensions (one or more), which allow multiple functions (with potentially
different boundary/final conditions and PDE coefficients) to be evolved
simultaneously.
boundary_conditions: The boundary conditions. Only rectangular boundary
conditions are supported. A list of tuples of size 1. The list element is
a tuple that consists of two callables representing the
boundary conditions at the minimum and maximum values of the spatial
variable indexed by the position in the list. `boundary_conditions[0][0]`
describes the boundary at `x_min`, and `boundary_conditions[0][1]` the
boundary at `x_max`. The boundary conditions are accepted in the form
`alpha(t) V + beta(t) V_n = gamma(t)`, where `V_n` is the derivative
with respect to the exterior normal to the boundary.
Each callable receives the current time `t` and the `coord_grid` at the
current time, and should return a tuple of `alpha`, `beta`, and `gamma`.
Each can be a number, a zero-rank `Tensor` or a `Tensor` of the batch
shape.
For example, for a grid of shape `(b, n)`, where `b` is the batch size,
`boundary_conditions[0][0]` should return a tuple of either numbers,
zero-rank tensors or tensors of shape `(b, n)`.
`alpha` and `beta` can also be `None` in case of Neumann and
Dirichlet conditions, respectively.
second_order_coeff_fn: See the spec in fd_solvers.solve.
first_order_coeff_fn: See the spec in fd_solvers.solve.
zeroth_order_coeff_fn: See the spec in fd_solvers.solve.
inner_second_order_coeff_fn: See the spec in fd_solvers.solve.
inner_first_order_coeff_fn: See the spec in fd_solvers.solve.
num_steps_performed: Python `int`. Number of steps performed so far.
dtype: The dtype to use.
name: The name to give to the ops.
Default value: None which means `explicit_step` is used.
Returns:
A sequence of two `Tensor`s. The first one is a `Tensor` of the same
`dtype` and `shape` as `coord_grid` and represents a new coordinate grid
after one iteration. The second `Tensor` is of the same shape and `dtype`
as`values_grid` and represents an approximate solution of the equation after
one iteration.
"""
del num_steps_performed
name = name or 'explicit_step'
return parabolic_equation_step(time,
next_time,
coord_grid,
value_grid,
boundary_conditions,
second_order_coeff_fn,
first_order_coeff_fn,
zeroth_order_coeff_fn,
inner_second_order_coeff_fn,
inner_first_order_coeff_fn,
time_marching_scheme=explicit_scheme,
dtype=dtype,
name=name)
explicit_scheme = weighted_implicit_explicit_scheme(theta=1)
|
python
|
<reponame>pocke/korat
const path = require('path');
const base = require('./webpack.base');
const renderProcessConfig = Object.assign({}, base, {
target: 'electron-renderer',
entry: {
renderer: './src/renderer.tsx',
preload: './src/preload/preload.ts',
settings: './src/settings.tsx',
},
output: {
path: path.resolve(__dirname, '../public'),
filename: 'build/[name].js',
},
});
module.exports = renderProcessConfig;
|
javascript
|
God set Moses aside to inaugurate the old covenant in its definitive form at Mount Sinai. For the Jews, Moses was the greatest of the prophets and the greatest mediator between God and man. Writing to Jewish Christians who were continually badgered by the Jews and the Judaizers, the author of Hebrews wants to establish that the Son is greater than Moses.
Like Moses, Jesus administered the house of God. Moses was “faithful in all God’s house,” writes the author of Hebrews. Now Moses did sin at one point and was not allowed to enter the promised land, but a contrast between Moses the sinner and Jesus, the perfect man, is not what the author of Hebrews is getting at. Moses, he says, was faithful, and so was Jesus. But Moses was faithful as a servant, while Jesus was faithful as the Son. Moses was a faithful steward, managing the household until the Son should come and take over (Heb. 3:2–6).
Moses was the supreme prophet who brought the Word of God to the people (Ex. 19–24). He was the greatest priest of Israel, who instituted the Aaronic priesthood and the whole sacrificial system (Lev. 8–9). He was the greatest leader, the supreme judge, and the model for all the judges and kings who came later.
But in all these things, Moses was only a servant. His prophetic work did not bring the final Word from God but rather a system of laws, types, and prophecies. The priestly system he inaugurated did not take away sin but pointed forward to the Son, who would take away sin once for all. Moses’ rule as leader of God’s people did not last forever but looked to the permanent lordship of the Son to come. Thus, the house Moses administered was not the final house of God, but it was a symbolic house that anticipated the church of the new covenant.
Yet, Moses’ house was still God’s house, and those who rebelled against him were thrown out of the house. Those who refused to hear the new covenant brought by Moses perished in the wilderness. Just so, those who rebel against the greater house of Jesus, who refuse to hear the final new covenant, will receive the same punishment (Heb. 3:7–14).
The evangelical church is becoming increasingly driven by personalities. When they fail, as they inevitably will, people are crushed. Be certain that your hope and trust are in Christ and Christ alone. Thank Him for the certainty we have that He will never fail.
|
english
|
Books on and about law, especially in the non-fiction genre, authored by lawyers have seldom found acceptance among the non-legal community, unless, of course, the genre is legal fiction, which permits the author to free himself from the shackles of dreary legal procedures and take flights of fantasy within and outside the courtroom.
Vivek Sood is a practising lawyer in the courts at the national capital and puts out a disclaimer right at the outset, that his book Chaff and Grain is a conscious effort to make his book “readable by people from all walks of life and not restricted to the legal community alone”.
He then proceeds to acknowledge the redoubtable senior advocate Ram Jethmalani, whose contribution to India’s criminal law jurisprudence hardly needs elaboration. In seven chapters on subjects ranging from the abuse of criminal law and the abuse of the power to arrest and investigate to the age-old conundrum of jail versus bail and fake encounters, Sood has done a fair job of living up to his book’s primary objective, which is to demystify legal issues so they can engage the attention of non-lawyer readers.
Sood is spot-on when he says that the “Law of Cheating” has become “Cheating of the Law”. Our civil court remedies are largely toothless and time consuming and therefore, there is an increasing propensity among litigants to convert disputes, which are essentially civil in nature, into FIRs via the ubiquitous route of Section 420 (cheating) of the Indian Penal Code, 1860, which gives them a much better shot at recovering money.
The guidelines passed by the Supreme Court in the case of Arnesh Kumar vs the State of Bihar (2014) concerning the preconditions to be met by the police before arresting any accused rightly find a mention in this book. In our country, one need not be convicted to suffer because the legal process itself is a punishment. An accused would have had to face penal consequences, interminable delays, convoluted procedural postponements, lack of adequate judicial infrastructure and also, sadly, lack of competent professional assistance from lawyers during the journey of his criminal case in the trial courts, high courts and possibly even the Supreme Court. It’s not unusual to see this process, from the registration of the FIR till the final word on it by the Supreme Court, taking at least 15 to 20 years for these long-winded tortuous processes to conclude. One can only imagine the toll this process takes on the mental, physical, and financial health of an accused, even before his conviction, if any.
Sood also gives the reader a bird’s-eye view of some of the sensational criminal cases of the recent past like the Aarushi Talwar, Jessica Lal, Priyadarshini Mattoo, Telgi fake stamp paper scam, and the Nirbhaya rape cases.
The author coins the expression “Fenocide” to describe financial victimization of a large number of innocent citizens, who are cheated of their hard-earned money by unscrupulous financial scamsters. In recent years, the plight of millions of homebuyers, who have given their life-savings to deviant conmen masquerading as builders and real estate developers, is well known.
This book also highlights another topic that has engaged the attention of the nation in recent times ie free speech versus criminal prosecutions. Very often, irrespective of ideological persuasion, the government in power has ruthlessly employed criminal prosecutions to punish, penalize, and stultify the contrarian, dissident voice of political opponents and media personalities. In some cases, the statements brazenly constitute “hate speech” and in some others, it is the brazen victimization of the right of free speech, intended to administer a “chilling effect” on adversaries through constitutionally impermissible methods. So how does the Court balance these two seemingly conflicting positions? One man’s free speech may be seditious to the ears of another. How does the Supreme Court ensure Freedom “after” speech and not merely “freedom of speech” to its citizens? The Supreme Court has done a creditable job till date in balancing these two seemingly irreconcilable positions, but the law is still evolving and fluid, and the last word on this issue is yet to be said.
Sood argues that the testimony of almost every witness in criminal trials in India is tainted with some exaggeration, embellishment or falsity. If our criminal courts were to strictly apply the legal principle applicable in English courts – “Falsus in Uno, Falsus in Ominbus” which means “If a part of your testimony is false, then the witness stands discredited and his entire testimony has to be rejected”, then hardly any crime will go punished as Indian witnesses are invariably influenced, in varying degrees by social pressures, inducements, threats (and I would also add, a lack of adequate understanding of the sanctity of court testimony and the inability of our overworked and overburdened courts to punish and deter witnesses who commit perjury). This is separating the “chaff from grain” as per the author.
This book immeasurably benefits from the decades of actual law practice put in by Vivek Sood. The book’s content doesn’t lean heavily on academia, rather it focuses on the practical aspects that afflict our criminal legal system. Those who have spent years in the legal profession may not necessarily find anything new in it but for those who are commencing their journey in the legal field, either as law students or as young law graduates, as well as those who are not related to the legal field but have a keen interest in the functioning and dynamics of the criminal justice delivery system, this book is a worthwhile read.
Sunil Fernandes is an Advocate-on-Record, practising in the Supreme Court.
|
english
|
<gh_stars>0
use super::*;
use std::time::{Instant, Duration};
impl CtxDetails for GlutinSurface {
type FbCol = ();
fn swap_buffers(&mut self) {
self.swap_buffers();
}
fn update_backbuffer(&mut self) -> Framebuffer<Self::Backend, Dim2, Self::FbCol, ()> {
self.back_buffer().unwrap()
}
}
pub fn new_app(size: [u32; 2], mut scene_loader: SceneDescLoader) -> (App<GlutinSurface, ()>, EventLoop<()>) {
let (mut surface, el) = GlutinSurface::new_gl33_from_builders(
|_, wb| wb.with_inner_size(glutin::dpi::Size::Physical(size.into())),
|_, cb| cb,
)
.unwrap();
surface.ctx.window().set_cursor_visible(false);
let _ = surface.ctx.window().set_cursor_grab(true);
let bb = surface.back_buffer().unwrap();
let triangle = TessBuilder::new(&mut surface)
.set_vertices(SCREEN)
.set_mode(Mode::Triangle)
.build()
.unwrap();
let scene = scene_loader.load().unwrap();
let app = App {
scene_loader: Some(scene_loader),
program: scene.get_program(&mut surface).unwrap(),
scene,
surface,
bb,
triangle,
size,
prev_cursor: None,
holding_lmb: false,
pressed_keys: HashSet::new(),
pos: glm::Vec3::zeros(),
rot: glm::vec2(0.0, 0.0),
camera_up: glm::Vec3::y(),
camera_fw: glm::Vec3::z(),
};
(app, el)
}
impl<Ctx, Col> App<Ctx, Col>
where
Ctx: GraphicsContext + CtxDetails<FbCol = Col>,
Ctx::Backend: backend::framebuffer::Framebuffer<Dim2>,
Ctx::Backend: backend::tess::Tess<Vertex, (), (), tess::Interleaved>,
Ctx::Backend: backend::shader::Shader,
Ctx::Backend: backend::pipeline::Pipeline<Dim2>,
Ctx::Backend: backend::render_gate::RenderGate,
Ctx::Backend: backend::tess_gate::TessGate<Vertex, (), (), tess::Interleaved>,
f32: Uniformable<Ctx::Backend>,
[[f32; 4]; 4]: Uniformable<Ctx::Backend>,
[f32; 3]: Uniformable<Ctx::Backend>,
Col: ColorSlot<Ctx::Backend, Dim2>,
{
fn camera_rotation(&self) -> glm::Quat {
let side_axis = glm::cross(&self.camera_up, &self.camera_fw);
let rot = glm::quat_rotate(&glm::quat_identity(), self.rot.y, &side_axis);
glm::quat_rotate(&rot, self.rot.x, &self.camera_up)
}
pub fn draw(&mut self, time: f32) {
let camera = self.camera_rotation();
let Self {
scene,
surface,
program,
bb,
triangle,
size,
pos,
..
} = self;
surface
.new_pipeline_gate()
.pipeline::<PipelineError, _, _, _, _>(
bb,
&PipelineState::default().set_clear_color([0.0, 0.0, 0.0, 1.0]),
|_, mut shader_gate| {
shader_gate.shade(program, |mut iface, uni, mut render_gate| {
let fov = glm::pi::<f32>() / 2.0;
let (cam_pos, cam_rot) = if let Some(camera) = scene.camera.as_ref() {
camera.get_transform_at(time)
} else {
(*pos, camera)
};
*pos = cam_pos;
iface.set(&uni.aspect, size[0] as f32 / size[1] as f32);
iface.set(&uni.fov, fov);
iface.set(&uni.cam, glm::quat_to_mat4(&cam_rot).into());
iface.set(&uni.cam_pos, [cam_pos.x, cam_pos.y, cam_pos.z]);
iface.set(&uni.light, [1.0, -1.0, 1.0]);
iface.set(&uni.time, time);
render_gate.render(&RenderState::default(), |mut tess_gate| {
tess_gate.render(triangle.view(..).unwrap())
})
})
},
);
surface.swap_buffers();
}
pub fn update_scene_if_necessary(&mut self) {
let new_scene = self.scene_loader
.as_mut()
.and_then(|loader| loader.load_if_updated());
match new_scene {
Some(Ok(new_scene)) => {
match new_scene.get_program(&mut self.surface) {
Ok(new_program) => {
self.scene = new_scene;
self.program = new_program;
}
Err(e) => {
eprintln!("{}", e);
}
}
}
Some(Err(e)) => {
eprintln!("{}", e);
}
None => {}
}
}
pub fn run(mut self, el: EventLoop<()>) -> !
where
Ctx: 'static,
Col: 'static,
{
let mut paused = false;
let mut start = Instant::now();
let mut prev = Instant::now();
let mut now = Instant::now();
let mut offset = 0.0;
let mut delta = 0.0;
el.run(move |event, _, ctl| {
match event {
Event::MainEventsCleared => {
let camera = self.camera_rotation();
for key in &self.pressed_keys {
let dir = match key {
VirtualKeyCode::W => glm::vec3(0.0, 0.0, 1.0),
VirtualKeyCode::S => glm::vec3(0.0, 0.0, -1.0),
VirtualKeyCode::A => glm::vec3(-1.0, 0.0, 0.0),
VirtualKeyCode::D => glm::vec3(1.0, 0.0, 0.0),
_ => glm::Vec3::zeros(),
};
self.pos +=
glm::quat_rotate_vec3(&glm::quat_inverse(&camera), &dir) * delta * 10.0;
let abs_dir = match key {
VirtualKeyCode::E => glm::vec3(0.0, 1.0, 0.0),
VirtualKeyCode::Q => glm::vec3(0.0, -1.0, 0.0),
_ => glm::Vec3::zeros(),
};
self.pos += abs_dir * delta * 10.0;
}
}
Event::RedrawRequested(_) | Event::NewEvents(_) => {
now = Instant::now();
let delta_duration = now - prev;
if paused {
start += delta_duration;
}
delta = delta_duration.as_secs_f32();
let t = (now - start).as_secs_f32() + offset;
self.update_scene_if_necessary();
self.draw(t);
prev = now;
}
Event::DeviceEvent {
event: DeviceEvent::MouseMotion { delta: (x, y) },
..
} => {
let prev_cursor = self.prev_cursor.unwrap_or(glm::vec2(0.0, 0.0));
let cursor = prev_cursor + glm::vec2(x as f32, y as f32) * -2.0;
let diff = (cursor - prev_cursor).zip_map(
&glm::vec2(self.size[0] as f32, self.size[1] as f32),
|a, b| a / b,
);
self.prev_cursor = Some(cursor);
self.rot += diff;
}
Event::WindowEvent { event, .. } => match event {
WindowEvent::MouseInput {
button: MouseButton::Left,
state,
..
} => {
self.holding_lmb = state == ElementState::Pressed;
}
WindowEvent::CloseRequested
| WindowEvent::KeyboardInput {
input:
KeyboardInput {
virtual_keycode: Some(VirtualKeyCode::Escape),
state: ElementState::Released,
..
},
..
} => {
*ctl = ControlFlow::Exit;
return;
}
WindowEvent::KeyboardInput {
input:
KeyboardInput {
virtual_keycode: Some(key),
state,
..
},
..
} => {
match state {
ElementState::Pressed => {
self.pressed_keys.insert(key);
match key {
VirtualKeyCode::R => {
start = now;
offset = 0.0;
},
VirtualKeyCode::P => {
let t = (now - start).as_secs_f32() + offset;
eprintln!("position = {}time={}\n\n", self.pos, t);
}
VirtualKeyCode::Add => offset += 0.5,
VirtualKeyCode::Subtract => offset -= 0.5,
VirtualKeyCode::Space => paused = !paused,
_ => {}
}
}
ElementState::Released => {
self.pressed_keys.remove(&key);
}
};
}
WindowEvent::Resized(size) => {
self.size = [size.width, size.height];
self.bb = self.surface.update_backbuffer();
}
_ => {}
},
_ => {}
}
*ctl = ControlFlow::WaitUntil(now + std::time::Duration::from_millis(33));
});
}
}
|
rust
|
<gh_stars>0
class Point {
protected int x, y;
public Point() { this(0); }
public Point(int x0) { this(x0, 0); }
public Point(int x0, int y0) { x = x0; y = y0; }
public Point(Point p) { this(p.x, p.y); }
public int getX() { return x; }
public int getY() { return y; }
public int setX(int x0) { x = x0; }
public int setY(int y0) { y = y0; }
public void print() { System.out.println("Point"); }
}
public class Circle extends Point {
private int r;
public Circle(Point p) { this(p, 0); }
public Circle(Point p, int r0) { super(p); r = r0; }
public Circle() { this(0); }
public Circle(int x0) { this(x0, 0); }
public Circle(int x0, int y0) { this(x0, y0, 0); }
public Circle(int x0, int y0, int r0) { super(x0, y0); r = r0; }
public Circle(Circle c) { this(c.x, c.y, c.r); }
public int getR() { return r; }
public int setR(int r0) { r = r0; }
public void print() { System.out.println("Circle"); }
public static void main(String args[]) {
Point p = new Point();
Point c = new Circle();
p.print();
c.print();
}
}
|
java
|
EXCLUSIVE: Enterprise Minister Simon Coveney said in a parliamentary question that Chinese fast-fashion company SHEIN gave the IDA 'assurances in relation to the company’s commitment to environmental sustainability'. It was announced earlier this month that SHEIN had launched its EMA headquarters in Dublin. Minister for Enterprise, Simon Coveney said that he “warmly welcomed” the announcement that could create 30 new jobs in 2023.
The company has also run several pop-up shops across the country.
She also questioned if either “discussed corporate responsibility with the organisation and or agents acting on its behalf” and Minister Coveney’s attention had been “drawn to industrial relations and environmental concerns” about SHEIN.Read more:
The IDA has refused to say what assurances controversial fast fashion retailer SHEIN gave it on sustainability and workers' rights before opening its European headquarters in Dublin.
It was announced earlier this month that SHEIN had launched its EMA headquarters in Dublin. Minister for Enterprise, Simon Coveney said that he “warmly welcomed” the announcement that could create 30 new jobs in 2023. The company has also run several pop-up shops across the country.
There has been regular criticism of the Chinese fast-fashion company SHEIN’s environmental impact. There have also been concerns raised over their workers’ rights.
Social Democrats’ TD Catherine Murphy asked Minister Coveney in a parliamentary question if the Department of Enterprise or the IDA carried out “due diligence in advance of delivering support to SHEIN”.
She also questioned if either “discussed corporate responsibility with the organisation and or agents acting on its behalf” and Minister Coveney’s attention had been “drawn to industrial relations and environmental concerns” about SHEIN.
In response, Minister Coveney stated that SHEIN was an “IDA Ireland client”.
He said: “Sustainability considerations, including the company’s corporate level approach to the environment, formed part of the IDA’s due diligence process in assessing the investment project for approval.
“Environmental sustainability is a key consideration for the IDA when assessing an investment project for Ireland.
Minister Coveney also stated that SHEIN had demonstrated to the IDA that it had “signed international pledges and committed funding to improve worker conditions”.
When asked by the Irish Mirror what assurances had been given to them by SHEIN on environmental issues and workers' rights, the IDA refused to provide information.
A spokesman said: “The response by the Minister to the PQ regarding SHEIN outlines the process followed by IDA Ireland.
Deputy Murphy said that there should not be secrecy around these matters.
Ms Murphy also said that there needs to be more awareness about the dangers of fast fashion and its impact on the environment.
|
english
|
<filename>app/data/roo/definitions/examples/MaxNOM.html
<details class="govuk-details" data-module="govuk-details">
<summary class="govuk-details__summary">
<span class="govuk-details__summary-text">What does MaxNOM (Maximum of non-originating materials) mean?</span>
</summary>
<div class="govuk-details__text">
"MaxNOM" means the maximum value of non-originating materials expressed as a percentage;
<div class="govuk-inset-text">
<p class="b">Example</p>
<p class="govuk-body">
xxx
</p>
</div>
</div>
</details>
|
html
|
New York, Feb 9 (IANS) US stocks have plunged more than 1,000 points for the second time this week and the stock market was now in a correction — 10 per cent off its record high just two weeks ago, the media reported.
The Dow finished with a decline of 1,033 points or 4.15 per cent to 23,860.46 on Thursday, the second-worst point drop in history, eclipsed only by Monday’s historic 1,175-point nosedive, reports CNN .
The S&P 500 dropped 100.66 points, or 3.75 percent, to 2,581.00. The Nasdaq Composite Index tumbled 274.82 points, or 3.90 perc ent, to 6,777.16.
Analysts said the rising bonds yields dented investor sentiment. The country’s 10-year yield nearly surpassed a four-year high of 2.885 per cent in the morning trading on Thursday, a level that helped trigger a global sell-off in equity markets on Monday, reports Xinhua news agency.
On the economic front, in the week ending on February 3, the advance figure for seasonally adjusted initial claims was 221,000, a decrease of 9,000 from the previous week’s unrevised level of 230,000, the US Labour Department said on Thursday.
The four-week moving average was 224,500, a decrease of 10,000 from the previous week’s unrevised average of 234,500. This is the lowest level for this average since March 10, 1973 when it was 222,000.
International online casino Casino Days has published a report sharing their internal data on what types and brands of devices are used to play on the platform by users from the South Asian region.
Such aggregate data analyses allow the operator to optimise their website for the brands and models of devices people are actually using.
The insights gained through the research also help Casino Days tailor their services based on the better understanding of their clients and their needs.
The primary data samples analysed by Casino Days reveal that mobile connections dominate the market in South Asia and are responsible for a whopping 96.6% of gaming sessions, while computers and tablets have negligible shares of 2.9% and 0.5% respectively.
The authors of the study point out that historically, playing online casino was exclusively done on computers, and attribute thе major shift to mobile that has unfolded over time to the wide spread of cheaper smartphones and mobile data plans in South Asia.
“Some of the reasons behind this massive difference in device type are affordability, technical advantages, as well as cheaper and more obtainable internet plans for mobiles than those for computers,” the researchers comment.
Chinese brands Xiaomi and Vivo were used by 21.9% and 20.79% of Casino Days players from South Asia respectively, and together with the positioned in third place with a 18.1% share South Korean brand Samsung dominate the market among real money gamers in the region.
Cupertino, California-based Apple is way down in seventh with a user share of just 2.29%, overshadowed by Chinese brands Realme (11.43%), OPPO (11.23%), and OnePlus (4.07%).
Huawei is at the very bottom of the chart with a tiny share just below the single percent mark, trailing behind mobile devices by Motorola, Google, and Infinix.
The data on actual phone usage provided by Casino Days, even though limited to the gaming parts of the population of South Asia, paints a different picture from global statistics on smartphone shipments by vendors.
Apple and Samsung have been sharing the worldwide lead for over a decade, while current regional leader Xiaomi secured their third position globally just a couple of years ago.
The shifted market share patterns of the world’s top smartphone brands in South Asia observed by the Casino Days research paper reveal a striking dominance of Android devices at the expense of iOS-powered phones.
On the global level, Android enjoys a comfortable lead with a sizable 68.79% share which grows to nearly 79% when we look at the whole continent of Asia. The data on South Asian real money gaming communities suggests that Android’s dominance grows even higher and is north of the 90% mark.
Among the major factors behind these figures, the authors of the study point to the relative affordability of and greater availability of Android devices in the region, especially when manufactured locally in countries like India and Vietnam.
“And, with influencers and tech reviews putting emphasis on Android devices, the choice of mobile phone brand and OS becomes easy; Android has a much wider range of products and caters to the Asian online casino market in ways that Apple can’t due to technical limitations,” the researchers add.
The far better integration achieved by Google Pay compared to its counterpart Apple Pay has also played a crucial role in shaping the existing smartphone market trends.
|
english
|
<reponame>aynurin/nickel-search<filename>samples/data/source/OL4713982M.json
{"key": "/books/OL4713982M", "title": "Sustenance organization and migration in nonmetropolitan America", "subtitle": null, "publishers": ["University of Iowa Press"], "authors": ["<NAME>"], "isbn_10": "0874140072", "isbn_13": null, "publish_date": "1978", "subjects": ["Migration, Internal -- United States"]}
|
json
|
<reponame>kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE
package com.leetcode;
import java.util.Arrays;
public class KsmallestElementInSortedMatrix {
public int kthSmallest(int[][] matrix, int k) {
int r = matrix.length;
int c = matrix[0].length;
if (r == 1 && c == 1) return matrix[0][0];
int[] array = new int[r * c + 1];
int index = 1;
for (int i = 0; i < matrix.length; i++) {
for (int j = 0; j < matrix[0].length; j++) {
array[index] = matrix[i][j];
index++;
}
}
Arrays.sort(array);
// for(int i = 0 ; i < array.length; i++){
// System.out.println(array[i]);
// }
return array[k];
}
}
|
java
|
104.5 WOKV invites you to join us as we Salute America! Brian Kilmeade, Mark Kaye, and Rich Jones share the spotlight for a lively and entertaining discussion Saluting America and honoring our military for Veterans Day.
Brian Kilmeade, Mark Kaye, and Rich Jones share the spotlight for a lively and entertaining discussion Saluting America and honoring our military for Veterans Day.Read more:
Brian Daboll not ruling Saquon Barkley out for 49ers game: ‘A lot better’The Giants plan to keep the 49ers guessing.
Saquon Barkley's ankle improving, not ruled out vs. 49ers, Brian Daboll saysSaquon Barkley’s sprained ankle is showing signs of improvement, and Giants coach Brian Daboll refused to rule him out for Thursday's game.
Nick Sirianni, Brian Johnson need to get Jalen Hurts and the Eagles' passing game goingThe Eagles want to win, of course. But they also want to win a certain way. And relying on their running game isn't it.
Brian Austin Green Accuses Ex Vanessa Marcil of Keeping Son From HimThe actor is alleging his ex kept their son from him as he battled a health issue.
Brian Michael Bendis Reteams with Alex Maleev for Crime Caper Mini-Series ‘Masterpiece’ (Exclusive)The writer-artist duo made a name as a team with 'Daredevil' and are back for the first time since 2016.
The stars of Jacksonville Talk Radio take the stage Friday night November 10th at the Ponte Vedra Concert Hall.
Brian Kilmeade, Mark Kaye, and Rich Jones share the spotlight for a lively and entertaining discussion Saluting America and honoring our military for Veterans Day.
|
english
|
CA Technologies today announced that it has entered into a definitive agreement to divest its CA arcserve data protection business (arcserve) to Marlin Equity Partners (Marlin). Terms of the transaction, which is expected to close in the second quarter of fiscal year 2015 subject to certain approvals, were not disclosed. All arcserve business activity will now be recognised by the company as discontinued operations. As a result, CA Technologies filed a Form 8-K to update its fiscal year 2015 guidance and provide select financial information. A more detailed disclosure of the financial effects of the transaction will be disclosed during CA Technologies first quarter earnings announcement on July 23, 2014.
We are very pleased with this transaction, and look forward to a seamless transition for our customers, partners and arcserve employees,? said Jacob Lamm, Executive Vice President, Strategy and Corporate Development, CA Technologies. ?CA continues to sharpen its focus and actively manage its portfolio, divesting non-core assets and making investments in areas of core capability. This transaction also further refines our global partner strategy as we continue to build CA for growth.?
A backup and recovery software solution, arcserve helps companies ensure the availability of mission-critical systems, applications and data. It is designed for ease of use and mixed IT environments, with a unified architecture that makes protecting physical, virtual and cloud systems simple and effective.
We are committed to providing the strategic and operational support necessary to create long-term value for arcserve and look forward to working closely with CA Technologies through the transition,? said Michael Anderson, Vice President at Marlin. Foros acted as financial advisor to CA Technologies on this divestiture.
|
english
|
package com.heroku.sdk.deploy;
import com.heroku.sdk.deploy.standalone.StandaloneDeploy;
import java.io.IOException;
// Entry point for standalone WAR deployment. Located in this package to provide backwards comparability with 2.x.
public class DeployWar {
public static void main(String[] args) throws IOException, InterruptedException {
StandaloneDeploy.deploy(StandaloneDeploy.Mode.WAR);
}
}
|
java
|
<reponame>afewell/project-heimdall<filename>content/platforms/vsphere/guides/vddk-programming-guide/backing-up-vapps-in-vcloud-director/common-use-cases.md<gh_stars>0
# Common Use Cases
The following sections give an overview of use cases related to the backup and restore processes.
## Managing Credentials
Backup software needs vCloud Director access to manage vApps at the metadata level, and vCenter Server access to manage vApps at the virtual machine and virtual disk level. The backup software must collect and retain authentication credentials for both vCloud Director and vCenter Server.
For information about vCloud Director authentication, see [Getting Access to vCloud Director](https://vdc-download.vmware.com/vmwb-repository/dcr-public/fe86d9b8-a400-4e19-aae0-71fb7d1ed798/b97d7eae-eaca-4338-93b8-bb7ffedbe449/doc/GUID-FD8D62DA-3C2D-4001-96AD-5B8C0CE01032.html). For information about vSphere authentication, see the vSphere Web Services SDK Programming Guide.
## Finding a vApp
There are different ways to locate a vApp managed by vCloud Director. One way is to traverse the vCloud Director inventory. Another way is to use the query service.
### Inventory Traversal
Using the vCloud Director inventory to locate a vApp requires navigating a hierarchy of containers based on organizational and resource divisions. The process is explained in [Inventory Access](https://vdc-download.vmware.com/vmwb-repository/dcr-public/fe86d9b8-a400-4e19-aae0-71fb7d1ed798/b97d7eae-eaca-4338-93b8-bb7ffedbe449/doc/GUID-4656EBDD-C728-43F6-98B5-CB62CAFCE05C.html).
### Using the Query Service
The vCloud SDK for .NET also supports the query service of the vCloud API for finding vApps. Consult the sample programs in the SDK for more information about how to use the query service in the SDK.
## Protecting Specified vApps
Backup systems typically identify vApps to be backed up in a given Organization based on their identity, using vApp attributes such as name and ID or user defined metadata. A set of vApps to be backed up can also be created based on their Organization \(for example, all vApps in the Human Resources Organization\), the VDC where they are deployed, and so forth.
In all these cases you must traverse the given Organization and its contents to locate and make a list of vApps.
## Recovering an Older Version of a vApp
If a vApp has become corrupted, or if users need to revert to an older state of the vApp, the administrator can restore a version of the vApp from backup storage even when the vApp still exists in vCloud Director. The backup/restore application in these cases can access vCloud Director to get vApp identity information and metadata before restoring the backup copy.
The backup/restore application has a choice between overwriting the current vApp instance or deleting it and creating a new vApp. The choice to delete the vApp can be convenient when the vApp configuration has changed since the last backup, especially when a virtual machine has been added to or deleted from the vApp.
## Recovering a Deleted vApp
When recovering a deleted vApp, the backup/restore application must identify the vApp from user input to locate the vApp metadata and virtual machine files on the backup storage medium. After the virtual machines have been restored using vSphere APIs, the vApp can be recomposed using the vCloud API. The backup software must first create a vApp from one of the virtual machines, then import the remaining virtual machines into the same vApp.
## Recovering a Single Virtual Machine
The process of recovering a single virtual machine from the backup storage medium is a special case of recovering a deleted vApp. In the case of a deleted vApp, the backup software must re-create the vApp in vCloud Director, then import the remaining virtual machines. For a single lost virtual machine, the backup software must only import the one virtual machine into the existing vApp.
## Backing Up vCloud Director
The vCloud SDK for .NET does not offer any special features for backing up or restoring the vCloud Director application and its data. Users should follow standard industry advice for protecting Tomcat applications and Oracle or SQL Server databases.
|
markdown
|
import { BuildMerchantCategoryInput } from './dto/create_merchant_category.input';
import { UpdateMerchantCategoryInput } from './dto/update_merchant_category.input';
import { MerchantCategory } from './merchant_category.entity';
import { MerchantCategoryRepository } from './merchant_category.repository';
export declare class MerchantCategoryService {
private merchantCategoryRepository;
constructor(merchantCategoryRepository: MerchantCategoryRepository);
testQuery(message: string): Promise<{
message: string;
}>;
build(category: BuildMerchantCategoryInput): Promise<MerchantCategory>;
rebuild(category: UpdateMerchantCategoryInput): Promise<MerchantCategory>;
fetchById(rId: number): Promise<MerchantCategory>;
}
|
typescript
|
<gh_stars>100-1000
<ng-container *ngIf="orderApprovals$ | async as orderApprovals">
<ng-container
*ngIf="orderApprovals.pagination.totalResults > 0; else noOrder"
>
<!-- Select Form and Pagination Top -->
<div class="cx-order-approval-sort top row">
<div
class="
cx-order-approval-form-group
form-group
col-sm-12 col-md-4 col-lg-4
"
>
<cx-sorting
[sortOptions]="orderApprovals.sorts"
[sortLabels]="sortLabels$ | async"
(sortListEvent)="changeSortCode($event)"
[selectedOption]="orderApprovals.pagination.sort"
></cx-sorting>
</div>
<div class="cx-order-approval-pagination">
<cx-pagination
[pagination]="orderApprovals.pagination"
(viewPageEvent)="pageChange($event)"
></cx-pagination>
</div>
</div>
<!-- TABLE -->
<table class="table cx-order-approval-table">
<thead class="cx-order-approval-thead-mobile">
<th scope="col">
{{ 'orderApprovalList.orderCode' | cxTranslate }}
</th>
<th scope="col">{{ 'orderApprovalList.POCode' | cxTranslate }}</th>
<th scope="col">{{ 'orderApprovalList.placedBy' | cxTranslate }}</th>
<th scope="col">{{ 'orderApprovalList.date' | cxTranslate }}</th>
<th scope="col">
{{ 'orderApprovalList.status' | cxTranslate }}
</th>
<th scope="col">{{ 'orderApprovalList.total' | cxTranslate }}</th>
</thead>
<tbody>
<tr
*ngFor="let approval of orderApprovals.values"
(click)="goToApprovalDetails($event, approval)"
>
<td class="cx-order-approval-code">
<div class="d-md-none cx-order-approval-label">
{{ 'orderApprovalList.orderCode' | cxTranslate }}
</div>
<a
[routerLink]="
{
cxRoute: 'orderApprovalDetails',
params: { approvalCode: approval?.code }
} | cxUrl
"
class="cx-order-approval-value"
>
{{ approval.order?.code }}</a
>
</td>
<td class="cx-order-approval-po-code">
<div class="d-md-none cx-order-approval-label">
{{ 'orderApprovalList.POCode' | cxTranslate }}
</div>
<a
[routerLink]="
{
cxRoute: 'orderApprovalDetails',
params: { approvalCode: approval?.code }
} | cxUrl
"
class="cx-order-approval-value"
>{{
approval.order?.purchaseOrderNumber ||
('orderApprovalList.none' | cxTranslate)
}}</a
>
</td>
<td class="cx-order-approval-placed">
<div class="d-md-none cx-order-approval-label">
{{ 'orderApprovalList.placedBy' | cxTranslate }}
</div>
<a
[routerLink]="
{
cxRoute: 'orderApprovalDetails',
params: { approvalCode: approval?.code }
} | cxUrl
"
class="cx-order-approval-value"
>{{ approval.order?.orgCustomer?.name }}</a
>
</td>
<td class="cx-order-approval-date">
<div class="d-md-none cx-order-approval-label">
{{ 'orderApprovalList.date' | cxTranslate }}
</div>
<a
[routerLink]="
{
cxRoute: 'orderApprovalDetails',
params: { approvalCode: approval?.code }
} | cxUrl
"
class="cx-order-approval-value"
>{{ approval.order?.created | cxDate: 'longDate' }}</a
>
</td>
<td class="cx-order-approval-status">
<div class="d-md-none cx-order-approval-label">
{{ 'orderApprovalList.status' | cxTranslate }}
</div>
<a
[routerLink]="
{
cxRoute: 'orderApprovalDetails',
params: { approvalCode: approval?.code }
} | cxUrl
"
class="cx-order-approval-value"
>
{{
'orderDetails.statusDisplay_' + approval.order?.statusDisplay
| cxTranslate
}}</a
>
</td>
<td class="cx-order-approval-total">
<div class="d-md-none cx-order-approval-label">
{{ 'orderApprovalList.total' | cxTranslate }}
</div>
<a
[routerLink]="
{
cxRoute: 'orderApprovalDetails',
params: { approvalCode: approval?.code }
} | cxUrl
"
class="cx-order-approval-value"
>
{{ approval.order?.totalPrice?.formattedValue }}</a
>
</td>
</tr>
</tbody>
</table>
<!-- Select Form and Pagination Bottom -->
<div class="cx-order-approval-sort bottom row">
<div
class="
cx-order-approval-form-group
form-group
col-sm-12 col-md-4 col-lg-4
"
>
<cx-sorting
[sortOptions]="orderApprovals.sorts"
[sortLabels]="sortLabels$ | async"
(sortListEvent)="changeSortCode($event)"
[selectedOption]="orderApprovals.pagination.sort"
></cx-sorting>
</div>
<div class="cx-order-approval-pagination">
<cx-pagination
[pagination]="orderApprovals.pagination"
(viewPageEvent)="pageChange($event)"
></cx-pagination>
</div>
</div>
</ng-container>
<!-- NO ORDER CONTAINER -->
<ng-template #noOrder>
<div class="cx-order-approval-no-order row">
<div class="col-sm-12 col-md-6 col-lg-4">
<div>{{ 'orderApprovalList.emptyList' | cxTranslate }}</div>
</div>
</div>
</ng-template>
</ng-container>
|
html
|
import { renderHook, act } from "@testing-library/react-hooks";
import useToggle from "../useToggle";
describe("useToggle", () => {
it("has initial value fase if not provided", () => {
const { result } = renderHook(() => useToggle());
expect(result.current[0]).toBe(false);
});
it("toggles", () => {
const { result } = renderHook(() => useToggle());
expect(result.current[0]).toBe(false);
act(() => {
result.current[1]();
});
expect(result.current[0]).toBe(true);
act(() => {
result.current[1]();
});
expect(result.current[0]).toBe(false);
});
it("set initial value if provided", () => {
let initialValue = false;
let { result } = renderHook(() => useToggle(initialValue));
expect(result.current[0]).toBe(initialValue);
initialValue = true;
result = renderHook(() => useToggle(initialValue)).result;
expect(result.current[0]).toBe(initialValue);
});
});
|
typescript
|
<reponame>dnltsk/esc-politics
import {fitToMap, initFitToMap, project} from "../projection-util";
import * as d3 from "d3";
import {Feature, FeatureCollection, Polygon} from "geojson";
import {CountryCode, CountryProperties, EscTimeseries} from "../types";
import {EventBus} from "../event-bus";
import {separatedPointsSince} from "../scripts/config";
export abstract class Map {
readonly projection = d3.geoProjection(project);
readonly path = d3.geoPath()
.projection(this.projection);
readonly fillColorScale24 = d3.scaleSequential(d3["interpolateYlOrRd"]).domain([0, 24]);
readonly fillColorScale12 = d3.scaleSequential(d3["interpolateYlOrRd"]).domain([0, 12]);
eventBus: EventBus;
mapData: FeatureCollection<Polygon, CountryProperties>;
escTimeseries: EscTimeseries;
targetElement: d3.Selection<HTMLElement, {}, HTMLElement, any>;
selectedYear: number;
selectedCountry: CountryCode;
g: d3.Selection<SVGElement, {}, HTMLElement, any>;
constructor(
eventBus: EventBus,
mapData: FeatureCollection<Polygon, CountryProperties>,
escTimeseries: EscTimeseries,
targetElement: d3.Selection<HTMLElement, {}, HTMLElement, any>,
initialYear: number
) {
this.eventBus = eventBus;
this.mapData = mapData;
this.escTimeseries = escTimeseries;
this.targetElement = targetElement;
this.selectedYear = initialYear;
this.selectedCountry = CountryCode.DE;
this.initMap();
}
abstract getFillColor(d: Feature<Polygon, CountryProperties>): string;
abstract isNavigationStopped(): boolean;
public receiveYear(year: number) {
this.selectedYear = year;
this.redrawMap();
}
private initMap() {
const innerWidth = this.targetElement.node().clientWidth,
innerHeight = this.targetElement.node().clientHeight;
initFitToMap(this.path, this.projection, this.mapData, innerWidth, innerHeight);
const svg = this.targetElement.append("svg")
.attr("width", "95%")
.attr("height", "95%");
this.g = svg.append("g");
this.g.call(d3.drag().on("drag",
(d, i, n) => this.drag(d3.select(n[i])))
);
this.g.call(d3.zoom()).on("wheel.zoom",
(d, i, n) => this.zoom(d3.select(n[i]))
);
this.g.append("rect")
.attr("class", "background")
.attr("width", "100%")
.attr("height", "100%")
.style("fill", "#0077be");
this.g.selectAll("countries")
.data(this.mapData.features)
.enter()
.append("path")
.classed("country", true)
.style("fill", (d) => {
if (d.properties.ISO_A2 === this.selectedCountry) {
return "black";
}
return this.getFillColor(d);
})
.each(function (d) {
this.classList.add(d.properties.ISO_A2);
})
.attr("d", this.path)
.on("mouseover", (d, i, n) => {
this.localMouseover(d, d3.select(n[i]));
})
.on("mouseout", (d, i, n) => {
this.localMouseout(d, d3.select(n[i]));
});
}
protected whiteOrColor(points: number): string {
if (points == null || points == 0) {
return "white";
}
return this.getColorScale()(points);
}
protected getColorScale(): d3.ScaleSequential<string> {
if (this.selectedYear <= separatedPointsSince) {
return this.fillColorScale12;
}
return this.fillColorScale24;
}
private redrawMap() {
this.g.selectAll("countries")
.data(this.mapData.features)
.enter()
.selectAll("path")
.style("fill", (d: Feature<Polygon, CountryProperties>) => {
if (d.properties.ISO_A2 === this.selectedCountry) {
return "black";
}
return this.getFillColor(d);
});
}
public receiveResize() {
console.log("resize");
const innerWidth = this.targetElement.node().clientWidth,
innerHeight = this.targetElement.node().clientHeight;
fitToMap(this.path, this.projection, this.mapData, innerWidth, innerHeight);
this.redrawMap();
}
public receiveMouseover(ISO_A2: CountryCode) {
this.g.selectAll("." + ISO_A2).classed("selected", true);
this.selectedCountry = ISO_A2;
this.redrawMap();
}
public receiveMouseout(ISO_A2: CountryCode) {
this.g.selectAll("." + ISO_A2).classed("selected", false);
}
public receiveZoom(scale: number, translate: [number, number]) {
this.projection
.scale(scale)
.translate(translate);
this.g.selectAll("path").attr("d", this.path);
}
public receiveDrag(translate: [number, number]) {
this.projection.translate(translate);
this.g.selectAll("path").attr("d", this.path);
}
private localMouseover(geom: Feature<Polygon, CountryProperties>, path: d3.Selection<SVGElement, {}, HTMLElement, any>) {
this.eventBus.sendMouseover(geom.properties.ISO_A2);
}
private localMouseout(geom: Feature<Polygon, CountryProperties>, path: d3.Selection<SVGElement, {}, HTMLElement, any>) {
this.eventBus.sendMouseout(geom.properties.ISO_A2);
}
private drag(g: d3.Selection<Element, {}, HTMLElement, any>) {
if(this.isNavigationStopped()){
return
}
const currTranslate = this.projection.translate();
const translate: [number, number] = [currTranslate[0] + d3.event.dx, currTranslate[1] + d3.event.dy];
this.eventBus.sendDrag(translate);
}
private zoom(g: d3.Selection<SVGElement, {}, HTMLElement, any>) {
console.log("zoom", this.isNavigationStopped());
if(this.isNavigationStopped()){
return
}
d3.event.preventDefault();//lock body scroll
const ZOOM_FACTOR = 0.000005;
const ZOOM_IN_LIMIT = 0.001;
const ZOOM_OUT_LIMIT = 0.00006;
const currScale = this.projection.scale();
let newScale = currScale - ZOOM_FACTOR * d3.event.deltaY;
if (d3.event.deltaY < 0) {
newScale = Math.min(ZOOM_IN_LIMIT, newScale);
}
else {
newScale = Math.max(ZOOM_OUT_LIMIT, newScale);
}
const currTranslate = this.projection.translate();
const coords = this.projection.invert([d3.event.offsetX, d3.event.offsetY]);
this.projection.scale(newScale);
const newPos = this.projection(coords);
const translate: [number, number] = [currTranslate[0] + (d3.event.offsetX - newPos[0]), currTranslate[1] + (d3.event.offsetY - newPos[1])];
this.eventBus.sendZoom(newScale, translate);
}
}
|
typescript
|
<gh_stars>0
<!-- About Section -->
<section class="success" id="about">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>About</h2>
<hr class="star-light">
</div>
</div>
<div class="row">
<div class="col-lg-4 col-lg-offset-2">
<p>Finding a replacement for a damaged TV or monitor is often not just costly but also an unnecessary hassle. Take your broken TV in for repairs at your local repair shop in NLR, AR for a quick diagnosis to avoid the costly hassle of finding a replacement.</p>
</div>
<div class="col-lg-4">
<p>Halter TV Service is open for carry-in diagnosis and repairs from <b>10 AM to 5 PM Monday through Friday</b>. Please call for an appointment to drop off your TV before coming to the shop at <b>1920 Percy Machin Dr. N.L.R.</b>, and we will carry it the rest of the way for a complete diagnosis.</p>
</div>
<div class="col-lg-8 col-lg-offset-2 text-center">
<a href="tel:{{ site.phone.tel }}" class="btn btn-lg btn-outline phone" data-label="About Phone">
<i class="fa fa-phone"></i> {{ site.phone.short }}
</a>
</div>
</div>
</div>
</section>
|
html
|
Canberra: The forthcoming India-Australia Test series could be decided by how the visiting batsmen fare against the young and enthusiastic host pacers, feels domestic opener Ed Cowan, who is in the shortlist to make the team for the opening Test in Melbourne starting from December 26.
"I don't think the Indians have had a good look at the Aussie quicks. That's where the series will probably be decided on - Indian batsmen vs Aussie quicks," said Tasmanian opener Ed Cowan, who is in the short mix of openers Australian selectors could be asking to open the innings with David Warner.
As opener Phil Hughes has regularly failed in Tests this summer, Australian selectors are looking for his replacement.
Shane Watson is a front-runner but if somehow the Australian vice-captain refuses to open the innings, then Cowan stands a chance to make his debut for Australia. Cowan has been the highest scorer in domestic competition this year.
"It will be a great Test series. India have some fantastic cricketers. But so does the Australian team. Ricky Ponting, Michael Clarke and Michael Hussey have all been world-class performers for a number of years, forgetting the last month about which a lot of people to rely heavily upon. "
"People are forgetting they have been world-class performers for a number of years. They would be pretty pumped up, come Boxing Day. There is no occasion bigger than a Boxing Day Test. "
However, Cowan feels that the Zaheer Khan-led Indian attack will be a far sterner test for the Australian batsmen than New Zealand - a daunting remark given the Black Cap bowlers were quite a handful against the home batters in the recent series.
"Indians are proven to be a better attack than the New Zealanders, who were inexperienced. Dough Bracewell was in his third Test; Trevor Boult was playing his first Test; Daniel Vettori was missing. The big question for our batters would be if Zaheer could get the reverse swing - if it is Sydney and Adelaide, then the answer probably is yes," Cowan said.
"We have seen in the sub-continent his skills with the reverse swing has been tremendous. It would be a big challenge as he would be with the new ball. I don't know much about the rest of the attack. I'm sure they would be a strong one. "
Former India coach Greg Chappell is slated to address the Australian players before the opening Test, but Cowan wasn't sure if it could influence the thinking of Australian captain Michael Clarke.
"I'm not sure. . . I'm not on the same page in Australian set-up, so I'm not sure how much Greg Chappell would influence people like Michael Clarke and their planning. I'm not sure if Tugga (Michael Clarke) would take it (Greg's opinion) on board. But it would be silly not to, at the same time, given how much time Greg spent with India. "
Even though Cowan is being spoken to as prospective opener for Australia, the Tasmanian has no doubt it would be Watson who would get the nod.
"It wouldn't come down to what I've done (recently). It's more a question of how Shane Watson is and whether he wants to open the innings. If he is fit, he sends someone out. If he doesn't want to open, they have to call out for someone else. "
"I'm in the form of my life but whether I'm chosen or not, it's not up to me. There is no communication that he isn't going to be there on the Boxing Day. I've learnt over the years not to look too far ahead of self. I'm a big believer that great expectations lead to great disappointments. This (the warm-up) is the game I'm focused on. "
"If so happens I get a chance to play in Boxing Day Test, the mind will start working. At the moment though, I don't feel close to being selected. "
|
english
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.