text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<reponame>tyon2006/UniversalBestiaryMidnightFork
{
"name": "<NAME>",
"icon": "minecraft:spawn_egg{EntityTag:{id:'mysticalwildlife:dusk_lurker'}}",
"category": "animals",
"flag": "universalbestiary:entity:mysticalwildlife:dusk_lurker",
"advancement": "universalbestiary:mysticalwildlife_dusk_lurker",
"pages": [
{
"type": "text",
"text": "The $(mob)Dusk Lurker$() is an animal that spawns in $(thing)Forests$(). It wanders around, staring at nearby players and fleeing when approached.$(p)Its meat is a good source of food, if it can be approached. It can also be bred with $(l:minecraft_rabbit)$(item)Rabbit$() or $(item)Cicaptera$(), but only during the night."
},
{
"type": "entity",
"entity": "mysticalwildlife:dusk_lurker",
"scale": 0.5,
"text": "$(li)12 Health$()"
},
{
"type": "spotlight",
"item": "mysticalwildlife:dusk_lurker_fur",
"link_recipe": true,
"text": "$(mob)Dusk Lurkers$() drop $(item)Dusk Lurker Fur$() on death. It can be crafted into the same things that mundane $(l:minecraft_cow)$(item)Leather$() can."
},
{
"type": "spotlight",
"item": "mysticalwildlife:dusk_ash",
"link_recipe": true,
"text": "$(mob)Dusk Lurkers$() also drop $(item)Dusk Ash$() on death or when brushed with a $(item)Brush$(). It is used as a black dye, and as such is used to paint various items black, like $(l:minecraft_sheep)$(mob)Wool$().$(p)It can only be brushed a few times every few minutes."
},
{
"type": "spotlight",
"item": "mysticalwildlife:dusk_lurker_fur_tuft",
"link_recipe": true,
"text": "Brushing a $(mob)Dusk Lurker$() also gives $(item)Dusk Lurker Fur Tufts$(), which can be crafted into $(item)Dusk Lurker Fur$()."
}
]
} | json |
package handlers;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Label;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Observable;
import java.util.Observer;
import java.util.Vector;
import org.eclipse.swt.SWT;
import org.eclipse.wb.swt.SWTResourceManager;
import parser.ArtifactLibrary;
import parser.Requirement;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.jface.viewers.ListViewer;
public class reqwindow implements Observer {
protected Shell shell;
String[] saveList;
List wholeList;
List reqList;
ArtifactLibrary lib;
public reqwindow(ArtifactLibrary lib) {
this.lib = lib;
lib.addObserver(this);
}
/**
* Open the window.
*/
public void open(ArtifactLibrary lib, String designId) {
System.out.println("REQ");
Display display = Display.getDefault();
createContents(designId);
shell.open();
shell.layout();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
}
/**
* Create contents of the window.
*
* @wbp.parser.entryPoint
*/
protected void createContents(String designId) {
shell = new Shell();
shell.setSize(450, 300);
shell.setText("SWT Application");
Label lblReqwindow = new Label(shell, SWT.CENTER);
lblReqwindow.setFont(SWTResourceManager.getFont(".Helvetica Neue DeskInterface", 20, SWT.NORMAL));
lblReqwindow.setBounds(23, 10, 391, 24);
lblReqwindow.setText("Select Requirements for " + designId);
wholeList = new List(shell, SWT.BORDER | SWT.V_SCROLL);
wholeList.setBounds(23, 47, 142, 221);
List reqList = new List(shell, SWT.BORDER | SWT.V_SCROLL);
reqList.setBounds(262, 47, 152, 187);
for (Entry<String, String> R : lib.getRequirements().map.entrySet()) {
wholeList.add(R.getKey());// + ": " + R.getValue().description);
}
for (String str : lib.getReqIdList(designId)) {
reqList.add(str);
}
Button moveRightButton = new Button(shell, SWT.CENTER);
moveRightButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
int index = wholeList.getSelectionIndex();
reqList.add(wholeList.getItem(index));
}
});
moveRightButton.setBounds(171, 82, 86, 28);
moveRightButton.setText("----->");
Button button = new Button(shell, SWT.NONE);
button.setBounds(171, 174, 86, 28);
button.setText("<------");
Button btnSave = new Button(shell, SWT.NONE);
btnSave.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
// on save, add items to set and send to library
saveList = reqList.getItems();
HashSet<String> saveSet = new HashSet<String>();
for (String id : saveList)
saveSet.add(id);
lib.setReqIdList(designId, saveSet);
shell.close();
}
});
btnSave.setBounds(295, 240, 95, 28);
btnSave.setText("Save");
button.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
int index2 = reqList.getSelectionIndex();
reqList.remove(reqList.getItem(index2));
}
});
Button btnCancel = new Button(shell, SWT.NONE);
btnCancel.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
shell.close();
}
});
btnCancel.setBounds(223, 240, 95, 28);
btnCancel.setText("Cancel");
}
public void updateContents(String designId) {
for (Entry<String, String> R : lib.getRequirements().map.entrySet()) {
wholeList.add(R.getKey());// + ": " + R.getValue().description);
}
for (String str : lib.getReqIdList(designId)) {
reqList.add(str);
}
}
@Override
public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
}
}
| java |
<gh_stars>0
package com.logicify.htb.configurator.htb;
/**
* <h1>DefaultHTBClassValues</h1>
* <p>This class keeps important constants that all HTB class' library uses </p>
*/
public class DefaultHTBClassValues {
public static final int DEFAULT_LIMIT_SPEED = 1000; //default limits speed
public static final Unit DEFAULT_SPEED_UNIT = Unit.BPS; //default limits unit
public static final int DEFAULT_QUANTUM_SPEED = 1600; //quantum speed mustn't be less than MTU the default value of MTU is 1600
public static final int DEFAULT_PERTURB = 10; //default perturb parameter
public static final int DEFAULT_ROOT_ID = 0; //default ID of the root HTB class
public static final int DEFAULT_R2Q = 10; //default r2q parameter of root HTB class
}
| java |
WWE Legend Goldberg recently revealed that executing the Jackhammer on The Big Show was an extremely challenging task during the early days of his career. The former world champions wrestled each other in WCW back when The Big Show was known as 'The Giant.'
Goldberg recalled that the Big Show was already more than 500 pounds at the time and interestingly hated being upside down during suplexes and other similar power moves.
The former WCW Champion revealed the little-known details about The Big Show during this week's episode of The Bump, as you can view below:
"It's very easy: The Big Show. Anyone that weighed 525 — he weighed over 500 when I Jackhammered him the first time," revealed Goldberg. "And a little piece of information most people don't know is that he — well, you can probably guess it, but he didn't like being upside down."
Goldberg and The Big Show worked several singles matches at WCW house shows and followed a tried-and-tested pattern in all their outings.
Despite becoming familiar with Paul Wight's wrestling style, Goldberg admitted that lifting his massive opponent for the Jackhammer finisher always caused headaches for him in the ring. The former Universal Champion also added:
When will Goldberg wrestle at WWE Crown Jewel?
With WWE's next Saudi Arabia event just around the corner, it's least surprising to see Goldberg's name emerge amongst the dirt sheets regarding a surprise return.
It was reported a few days back that WWE wanted the veteran star to wrestle at Crown Jewel on November 5th; however, contradictory reports regarding his status have since surfaced online. While Goldberg is expected to be in Saudi Arabia on the day of the event, there is no guarantee whether he will get booked for a match at Crown Jewel.
Goldberg might not have any matches left on his contract, but he still intends to return to the squared circle, as he clarified recently with a big statement.
Who would you like to see Goldberg face in his next WWE match? Share your picks in the comments section below.
| english |
import { read } from 'ktx-parse';
export { read as default }; | javascript |
use ffi::AiMaterial;
define_type_and_iterator_indirect! {
/// Material type (not yet implemented)
struct Material(&AiMaterial)
/// Material iterator type.
struct MaterialIter
}
| rust |
<reponame>3c1u/cubism-rs<filename>src/json/physics.rs<gh_stars>0
/// Parses .physics3.json.
use serde::{Deserialize, Serialize};
use std::str::FromStr;
/// Rust structure representation for .physics3.json file.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct Physics3 {
version: usize,
meta: Physics3Meta,
physics_settings: Vec<PhysicsSetting>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsSetting {
id: String,
#[serde(default)]
#[serde(rename = "Input")]
inputs: Vec<PhysicsInput>,
#[serde(default)]
#[serde(rename = "Output")]
outputs: Vec<PhysicsOutput>,
#[serde(default)]
vertices: Vec<PhysicsVertex>,
normalization: Option<PhysicsNormalization>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsInput {
source: PhysicsTarget,
weight: f32,
#[serde(rename = "Type")]
input_type: PhysicsType,
reflect: bool,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsOutput {
destination: PhysicsTarget,
vertex_index: usize,
scale: f32,
weight: f32,
#[serde(rename = "Type")]
output_type: PhysicsType,
reflect: bool,
}
#[derive(Copy, Clone, Debug, Deserialize, Serialize)]
pub enum PhysicsType {
X,
Y,
Angle,
}
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsVertex {
position: Vec2D,
mobility: f32,
delay: f32,
acceleration: f32,
radius: f32,
}
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsNormalization {
position: PhysicsNormalizationParameter,
angle: PhysicsNormalizationParameter,
}
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsNormalizationParameter {
minimum: f32,
maximum: f32,
default: f32,
}
impl PhysicsNormalizationParameter {
pub fn normalize<F: Into<f32>>(&self, value: Option<F>) -> f32 {
if let Some(value) = value {
self.maximum.min(self.minimum.max(value.into()))
} else {
self.default
}
}
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(tag = "Target")]
pub enum PhysicsTarget {
#[serde(rename_all = "PascalCase")]
Parameter { id: String },
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct Physics3Meta {
total_input_count: usize,
total_output_count: usize,
#[serde(rename = "VertexCount")]
total_vertices: usize,
physics_setting_count: usize,
effective_forces: EffectiveForces,
physics_dictionary: Vec<PhysicsIdName>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct PhysicsIdName {
id: String,
name: String,
}
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct EffectiveForces {
#[serde(default)]
gravity: Vec2D,
#[serde(default)]
wind: Vec2D,
}
#[derive(Clone, Copy, Default, Debug, Deserialize, Serialize)]
#[serde(rename_all = "PascalCase")]
pub struct Vec2D {
x: f32,
y: f32,
}
impl From<(f32, f32)> for Vec2D {
fn from((x, y): (f32, f32)) -> Vec2D {
Vec2D { x, y }
}
}
impl Into<(f32, f32)> for Vec2D {
fn into(self) -> (f32, f32) {
(self.x, self.y)
}
}
/* */
impl Physics3 {
/// Parses a Physics3 from a .physics3.json reader.
#[inline]
pub fn from_reader<R: std::io::Read>(r: R) -> serde_json::Result<Self> {
serde_json::from_reader(r)
}
}
impl FromStr for Physics3 {
type Err = serde_json::Error;
/// Parses a Physics3 from a .physics3.json string.
#[inline]
fn from_str(s: &str) -> serde_json::Result<Self> {
serde_json::from_str(s)
}
}
#[test]
fn json_samples_physics3() {
use std::iter::FromIterator;
let path = std::path::PathBuf::from_iter(&[
env!("CUBISM_CORE"),
"Samples/Res/Rice/Rice.physics3.json",
]);
Physics3::from_str(
&std::fs::read_to_string(&path)
.unwrap_or_else(|e| panic!("error while reading {:?}: {:?}", &path, e)),
)
.unwrap_or_else(|e| panic!("error while parsing {:?}: {:?}", &path, e));
}
| rust |
<filename>hphp/hack/src/rupro/lib/pos/pos.rs
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the "hack" directory of this source tree.
use crate::{Prefix, RelativePath};
use intern::string::BytesId;
use oxidized::file_pos_small::FilePosSmall;
use oxidized::pos_span_tiny::PosSpanTiny;
use std::hash::Hash;
pub use oxidized::file_pos_large::FilePosLarge;
pub trait Pos: Eq + Hash + Clone + std::fmt::Debug {
/// Make a new instance. If the implementing Pos is stateful,
/// it will call cons() to obtain interned values to construct the instance.
fn mk(cons: impl FnOnce() -> (RelativePath, FilePosLarge, FilePosLarge)) -> Self;
fn to_oxidized_pos(&self) -> oxidized::pos::Pos;
}
/// Represents a closed-ended range [start, end] in a file.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
enum PosImpl {
Small {
prefix: Prefix,
suffix: BytesId,
span: Box<(FilePosSmall, FilePosSmall)>,
},
Large {
prefix: Prefix,
suffix: BytesId,
span: Box<(FilePosLarge, FilePosLarge)>,
},
Tiny {
prefix: Prefix,
suffix: BytesId,
span: PosSpanTiny,
},
}
static_assertions::assert_eq_size!(PosImpl, u128);
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct BPos(PosImpl);
impl Pos for BPos {
fn mk(cons: impl FnOnce() -> (RelativePath, FilePosLarge, FilePosLarge)) -> Self {
let (file, start, end) = cons();
Self::new(file, start, end)
}
fn to_oxidized_pos(&self) -> oxidized::pos::Pos {
unimplemented!()
}
}
impl BPos {
pub fn new(file: RelativePath, start: FilePosLarge, end: FilePosLarge) -> Self {
let prefix = file.prefix();
let suffix = file.suffix();
if let Some(span) = PosSpanTiny::make(&start, &end) {
return BPos(PosImpl::Tiny {
prefix,
suffix,
span,
});
}
let (lnum, bol, offset) = start.line_beg_offset();
if let Some(start) = FilePosSmall::from_lnum_bol_offset(lnum, bol, offset) {
let (lnum, bol, offset) = end.line_beg_offset();
if let Some(end) = FilePosSmall::from_lnum_bol_offset(lnum, bol, offset) {
let span = Box::new((start, end));
return BPos(PosImpl::Small {
prefix,
suffix,
span,
});
}
}
let span = Box::new((start, end));
BPos(PosImpl::Large {
prefix,
suffix,
span,
})
}
pub fn file(&self) -> RelativePath {
match self.0 {
PosImpl::Small { prefix, suffix, .. }
| PosImpl::Large { prefix, suffix, .. }
| PosImpl::Tiny { prefix, suffix, .. } => RelativePath::new(prefix, suffix),
}
}
}
/// A stateless sentinal Pos.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct NPos;
impl Pos for NPos {
fn mk(_cons: impl FnOnce() -> (RelativePath, FilePosLarge, FilePosLarge)) -> Self {
NPos
}
fn to_oxidized_pos(&self) -> oxidized::pos::Pos {
oxidized::pos::Pos::make_none()
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Positioned<S, P> {
// Caution: field order will matter if we ever derive
// `ToOcamlRep`/`FromOcamlRep` for this type.
pos: P,
id: S,
}
impl<S, P> Positioned<S, P> {
pub fn new(pos: P, id: S) -> Self {
Self { pos, id }
}
pub fn pos(&self) -> &P {
&self.pos
}
pub fn id_ref(&self) -> &S {
&self.id
}
}
impl<S: Copy, P> Positioned<S, P> {
pub fn id(&self) -> S {
self.id
}
}
impl<S: ToString, P: Pos> Positioned<S, P> {
pub fn to_oxidized(&self) -> oxidized::typing_reason::PosId {
(self.pos.to_oxidized_pos(), self.id.to_string())
}
}
| rust |
Koo and Google have submitted the compliance report under the new rules for digital media. Facebook will also file its first interim report on June 2.
By Aishwarya Paliwal: Google and Koo have filed their compliance report as per the requirement under the new IT rules - which came into effect on May 26.
As per the new IT law, large social media companies need to publish periodic compliance reports every month, mentioning the details of complaints received and action taken.
Social media companies have to submit a compliance report every month, in accordance with Rule 4(d) of the Information Technology (Intermediary Guidelines and Digital Media Ethics Code) Rules, 2021 of the Government of India.
Koo, has filed its compliance report for the month of June 2021. The company in its report states that it will publish the report on the first day of each month, and it will be available on the public platform.
The report for June 2021 shows that of the 5,502 complaints reported by the users, 22. 7 per cent (1,253) were removed, while other action was taken against the rest 4,249. Similarly, Koo took steps to proactively moderate 54,235 accounts, of which 2. 2 per cent (1,996) were removed while other actions were taken against the rest 52,239.
‘Other action’ includes overlay, blur, ignore, warn, etc. , of accounts that do not comply with Government of India guidelines.
Aprayameya Radhakrishna, Founder & CEO, Koo said: “As Koo gains tractions across India, we will ensure that Koo respects the law of the land and meets the requirements, enabling every country to define its own digital ecosystem. This Compliance Report is one step in that direction. "
"As part of Koo’s continued efforts to make social media a safer place and provide transparency for users, we are happy to be the first social media platform to publish a Compliance Report. We will continue to make efforts to make social media a safe place for all users,"he added.
96 per cent of the complainants received by Google were related to copyright.
The company has submitted its first compliance report, in which it stated that it received 27,762 complaints during the period between April 1 and April 30, of which 26,707 or 96 per cent were for copyright.
The company acted on 59,350 requests raised by users during the period, a majority of which again were related to copyright infringement.
In its next report, the platform will also include data on removals done on the basis of automated selection as well as data on impersonation and graphic sexual content complaints that it has received after May 25.
“Some requests may allege infringement of intellectual property rights, while others claim violation of local laws prohibiting types of content on grounds such as defamation. When we receive complaints regarding content on our platforms, we review them carefully,” Google said in the report.
Social media giant Facebook has informed the government that it will submit its report on July 2 which will be an interim report, the full report will be published by July 15.
The July 15 report by Facebook will also contain data related to WhatsApp. The report will have details of user complaints received and action taken.
Facebook spokesperson said, "In accordance with the IT Rules, we'll publish an interim report for the period May 15-June 15 on July 2. This report will contain details of the content that we have removed proactively using our automated tools. " | english |
import { lang } from '../..'
export default class Paths extends lang.Object {
//TODO: https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html
}
| typescript |
DIBRUGARH: Dibrugarh police have arrested three cattle thieves and recovered eight bags containing 423 kg of beef meat from their possession in Dibrugarh on Friday. The accused persons have been identified as Miraj Khan (50), Yunus Khan (46) and Imran Ali (30) alias Papu of Dibrugarh.
Speaking to media persons, Dibrugarh Additional Superintendent of police (HQ) Bitul Chetia said, "A team of Dibrugarh Police, based on secret information, followed a vehicle coming from Chaolkhowa side carrying suspected beef meat illegally to supply at Loharpatty area of Dibrugarh," said Dibrugarh Additional Superintendent of Police (HQ) Bitul Chetia. On being followed, the carrier vehicle delivered three gunny bags of beef meat at a house of one Imran Hussain alias Motlib and another bag to Younis Khan while rest bags were carried to be delivered at another place. "
"We have apprehended the driver namely Imran Ali and seized four gunny bags of beef meat from his vehicle (AS06AC 5867). The team also apprehended Younis Khan and recovered one gunny bag of beef meat from his possession. Later, Imran Hussain alias Motlib's house was searched, and three more bags of beef meat were seized. But Imran managed to fled from the place," said Bitul Chetia.
He further said, "A total of 8 bags containing 423 kgs of meat, a vehicle along with chopping knives have been seized from the accused persons. We have started our interrogation and launched a manhunt to nab Imran. "
"We have arrested the three accused under Dibrugarh PS case. no. 797/22 u/s 353/34 IPC R/W Sec. 13 Assam cattle Preservation Act, 2021," Chetia said. Sources said the cattle thieves lift the cattle during night and bring them to their hiding place for slaughtering.
"They have brought the beef meat for consumption. Everyday, cattle were slaughtered in their hiding places and after that they secretly sell the beef meat according to their demand," said a source.
Also Watch: | english |
{
"variants": {
"type=bottom": {
"model": "biomemakeover:block/cyan_terracotta_brick_slab"
},
"type=double": {
"model": "biomemakeover:block/cyan_terracotta_bricks"
},
"type=top": {
"model": "biomemakeover:block/cyan_terracotta_brick_slab_top"
}
}
} | json |
<gh_stars>1-10
#[doc = "Register `TWI_DRV_FMT` reader"]
pub struct R(crate::R<TWI_DRV_FMT_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<TWI_DRV_FMT_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<TWI_DRV_FMT_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<TWI_DRV_FMT_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `TWI_DRV_FMT` writer"]
pub struct W(crate::W<TWI_DRV_FMT_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<TWI_DRV_FMT_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<TWI_DRV_FMT_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<TWI_DRV_FMT_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `addr_byte` reader - "]
pub struct ADDR_BYTE_R(crate::FieldReader<u8>);
impl ADDR_BYTE_R {
#[inline(always)]
pub(crate) fn new(bits: u8) -> Self {
ADDR_BYTE_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for ADDR_BYTE_R {
type Target = crate::FieldReader<u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `addr_byte` writer - "]
pub struct ADDR_BYTE_W<'a> {
w: &'a mut W,
}
impl<'a> ADDR_BYTE_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0xff << 16)) | ((value as u32 & 0xff) << 16);
self.w
}
}
#[doc = "Field `data_byte` reader - "]
pub struct DATA_BYTE_R(crate::FieldReader<u16>);
impl DATA_BYTE_R {
#[inline(always)]
pub(crate) fn new(bits: u16) -> Self {
DATA_BYTE_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DATA_BYTE_R {
type Target = crate::FieldReader<u16>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `data_byte` writer - "]
pub struct DATA_BYTE_W<'a> {
w: &'a mut W,
}
impl<'a> DATA_BYTE_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u16) -> &'a mut W {
self.w.bits = (self.w.bits & !0xffff) | (value as u32 & 0xffff);
self.w
}
}
impl R {
#[doc = "Bits 16:23"]
#[inline(always)]
pub fn addr_byte(&self) -> ADDR_BYTE_R {
ADDR_BYTE_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[doc = "Bits 0:15"]
#[inline(always)]
pub fn data_byte(&self) -> DATA_BYTE_R {
DATA_BYTE_R::new((self.bits & 0xffff) as u16)
}
}
impl W {
#[doc = "Bits 16:23"]
#[inline(always)]
pub fn addr_byte(&mut self) -> ADDR_BYTE_W {
ADDR_BYTE_W { w: self }
}
#[doc = "Bits 0:15"]
#[inline(always)]
pub fn data_byte(&mut self) -> DATA_BYTE_W {
DATA_BYTE_W { w: self }
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "TWI_DRV Packet Format Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [twi_drv_fmt](index.html) module"]
pub struct TWI_DRV_FMT_SPEC;
impl crate::RegisterSpec for TWI_DRV_FMT_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [twi_drv_fmt::R](R) reader structure"]
impl crate::Readable for TWI_DRV_FMT_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [twi_drv_fmt::W](W) writer structure"]
impl crate::Writable for TWI_DRV_FMT_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets TWI_DRV_FMT to value 0"]
impl crate::Resettable for TWI_DRV_FMT_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}
| rust |
Screenshots from Apple's new MacOS leak ahead of WWDC.
Images have leaked of Apple's MacOS 10.15, showing off the new look of the Apple TV and Apple Music apps.
The screenshots, published by 9to5Mac, show the apps as having a gray sidebar on the left-hand side to list content sections of each app, and a large white section on the right to display the content.
The in-app icons, like those for Browse, Radio, Artists, Albums and Songs in the Music app, are also now colored.
Icons in the TV app are separated into Recently Added, Movies, TV Shows and Downloaded, as well as genres including Action & Adventure, Comedy, Drama and Kids.
Ahead of Apple's WWDC 2019 next week, there've also been leaks of dark mode for iOS 13.
| english |
Ahead of the theatre release of Avatar: The Way Of Water a screening has been organised in Mumbai. At the event, Akshay Kumar led the celeb roll call. The actor looked handsome in formal and happily posed for the shutterbugs stationed at the venue. Varun Dhawan, Kartik Aaryan, Mrunal Thakur, Bobby Deol and Varun Sharma were also spotted at the venue. Helmed by James Cameron, a science fiction film is the sequel to the 2009 film Avatar. Check out the pictures from the Mumbai screening below:
Avatar: The Way Of Water stars Sam Worthington, Zoe Saldana, Stephen Lang, Kate Winslet, Joel David Moore, CCH Pounder, Cliff Curtis, Joel David Moore, Giovanni Ribisi, Edie Falco, Jemaine Clement, Dileep Rao, and Matt Gerald. Also, at the 80th Golden Globes Awards 2023, the film's been nominated in two categories Best Motion Picture and Best Director. In London, the movie released on December 6, 2022, while in India and United States, the film is slated to hit the theatres on December 16, 2022. In India, the movie will release in six languages Hindi, English, Tamil, Telugu, Malayalam and Kannada. It is releasing almost thirteen years after the release of Avatar.
Meanwhile, James Cameron will not be attending the premiere of his film in Los Angeles as he has tested positive for COVID-19. "Jim has COVID but is feeling fine. He tested positive as part of a routine testing cadence. He will continue to complete his schedule virtually but will not be at the premiere," news agency ANI reported. | english |
<reponame>L-Slavov/Express-exam
{
"msg": "Pug each and for should no longer be prefixed with a dash (\"-\"). They are pug keywords and not part of JavaScript.",
"code": "PUG:MALFORMED_EACH",
"line": 2,
"column": 3
} | json |
<reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-257v-vj4p-3w2h",
"modified": "2021-06-30T18:03:29Z",
"published": "2021-06-22T01:14:09Z",
"aliases": [
"CVE-2021-29060"
],
"summary": "Regular Expression Denial of Service (ReDOS)",
"details": "In the npm package `color-string`, there is a ReDos (Regular Expression Denial of Service) vulnerability regarding an exponential time complexity for\nlinearly increasing input lengths for `hwb()` color strings.\n\nStrings reaching more than 5000 characters would see several\nmilliseconds of processing time; strings reaching more than\n50,000 characters began seeing 1500ms (1.5s) of processing time.\n\nThe cause was due to a the regular expression that parses\nhwb() strings - specifically, the hue value - where\nthe integer portion of the hue value used a 0-or-more quantifier\nshortly thereafter followed by a 1-or-more quantifier.\n\nThis caused excessive backtracking and a cartesian scan,\nresulting in exponential time complexity given a linear\nincrease in input length.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "color-string"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.5"
}
]
}
]
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-29060"
},
{
"type": "WEB",
"url": "https://github.com/Qix-/color-string/commit/0789e21284c33d89ebc4ab4ca6f759b9375ac9d3"
},
{
"type": "WEB",
"url": "https://github.com/Qix-/color-string/releases/tag/1.5.5"
},
{
"type": "WEB",
"url": "https://github.com/yetingli/PoCs/blob/main/CVE-2021-29060/Color-String.md"
},
{
"type": "WEB",
"url": "https://github.com/yetingli/SaveResults/blob/main/js/color-string.js"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/color-string"
}
],
"database_specific": {
"cwe_ids": [
"CWE-770"
],
"severity": "MODERATE",
"github_reviewed": true
}
} | json |
{
"name": "node-i18n-util",
"version": "1.0.5",
"description": "Internationalization (i18n) library for Node.js",
"main": "index.js",
"scripts": {
"test": "node_modules/mocha/bin/mocha --recursive -u tdd lib/test"
},
"repository": {
"type": "git",
"url": "https://github.com/IBM/node-i18n-utilities"
},
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
"devDependencies": {
"mocha": "^3.4.2"
}
}
| json |
Four-time champion Serena Williams withdrew from the upcoming Italian Open on Saturday citing the Achilles issue that bothered her in a loss to Victoria Azarenka in the U. S. Open semifinals, organizers announced Saturday.
Williams took a medical timeout for a tape job on her Achilles during her three-set loss on Thursday.
The Italian Open, which was rescheduled from May due to the coronavirus pandemic, begins Monday.
Azarenka remained entered for Rome.
tournament, U. S. Open finalists Dominic Thiem and Alexander Zverev withdrew, as did Daniil Medvedev, who lost to Thiem in the semifinals in New York.
Nine-time champion Rafael Nadal headlines the field at the Foro Italico, marking his return to tennis after a seven-month layoff. The Spaniard has been practicing in Rome for several days.
Top-ranked Novak Djokovic, who was disqualified from the U. S. Open, is also entered.
The clay-court tournament in Rome is a warmup event for the French Open, which starts Sept 27. | english |
<filename>lib/lexer.js<gh_stars>0
module.exports = lex;
var
util = require('util')
container_types = {
list: {chars: ['(', ')']},
array: {chars: ['[', ']']},
object: {chars: ['{', '}']},
double_quoted_string: {chars: ['"']},
single_quoted_string: {chars: ["'"]},
},
reserved_words = [
'false',
'true',
'null',
'undefined',
],
quoted_string_chars = [
" ",
",",
"'",
'"',
"[", "]",
"(", ")",
"{", "}",
"\\",
"$",
],
list_delim = /[\s,]/;
Object.keys(container_types).forEach(function (id) {
var type = container_types[id];
type.id = id;
if (type.chars.length === 1) type.chars.push(type.chars[0]);
});
function lex (input, opts) {
opts = opts || {};
var
buffer = {input: input.split(''), output: []},
collection = null,
escaped = false,
delimited = false,
char,
temp = {},
i;
buffer.output.punchline = {type: {id: 'top'}};
function make_buffer () {
collection = [];
collection.punchline = {type: {}};
return collection;
};
function push_buffer () {
var collection = make_buffer();
buffer.output.push(collection);
return collection;
}
function pop_buffer () {
collection = buffer.output.slice(-2)[0];
if (
(temp.list = buffer.output.pop()) &&
(
['unquoted_string', 'variable'].indexOf(temp.list.type) < 0 ||
temp.list.length
)
) {
collection.push(temp.list);
}
}
function attrs (c) {
c = c || collection;
return c.punchline;
}
function transition (event, char) {
var container;
delimited = false;
if (event === 'variable') {
// temp.buffer = buffer.output.pop();
// transition('descend');
collection.punchline.type = {id: 'variable'};
// buffer.output.push(temp.buffer);
}
else if (event !== 'ascend') {
collection = push_buffer();
// Descend into container
Object.keys(container_types).every(function (type) {
if (container_types[type].chars.indexOf(char) >= 0) {
collection.punchline.type = container_types[type];
return false;
}
return true;
});
if (! collection.punchline.type.id) {
collection.punchline.type.id = event;
}
}
// Always give new state crack at current char?
else pop_buffer();
}
// transition
function unquoted_string_eligible (char) {
var
delimiter = list_delim.test(char),
eligible = (
! delimiter &&
quoted_string_chars.indexOf(char) === -1
);
return eligible;
}
function variable_eligible (char) {
// JMMDEBUG eliminate duplication
return ['(', '[', '{'].indexOf(char) >= 0;
}
function closed_by (char) {
return (! escaped && char === collection.punchline.type.chars[1]);
}
var handlers = {};
handlers.list = function list (char) {
if (unquoted_string_eligible(char)) {
transition('unquoted_string');
return handlers.unquoted_string(char);
}
};
handlers.array = handlers.list;
handlers.object = function (char) {
var handled = handlers.start_end(char);
if (! handled) collection.push(char);
return true;
};
// object
handlers.unquoted_string = function unquoted_string (char) {
if (unquoted_string_eligible(char)) {
collection.push(char);
return true;
}
else if (collection.length && variable_eligible(char)) {
transition('variable', char);
return handlers.variable(char);
}
else {
transition('ascend');
}
};
// unquoted_string
handlers.variable = function (char) {
var handled = unquoted_string_eligible(char) || variable_eligible(char);
if (unquoted_string_eligible(char)) {
collection.push(char);
handled = true;
}
else if (
! variable_eligible(char) ||
! (handled = handlers.start_end(char))
) {
transition('ascend');
handled = handlers.start_end(char);
}
return handled;
};
// variable
handlers.quoted_string = function quoted_string (char) {
var handled = handlers.start_end(char);
if (! handled) {
collection.push(char);
if (! escaped && char === "\\") {
escaped = true;
}
else if (escaped) escaped = false;
handled = true;
}
return handled;
};
// quoted_string
handlers.double_quoted_string =
handlers.single_quoted_string = handlers.quoted_string;
handlers.start_end = function start_end (char) {
var
handled = true,
quoted = collection.punchline.type.id.match(/_quoted_string$/);
// Start quote
if (! quoted && ['"', "'"].indexOf(char) >= 0) {
transition('quoted_string', char);
}
// Start container
else if (! quoted && ['(', '[', '{'].indexOf(char) >= 0) {
transition('descend', char);
}
// End container
else if (collection.punchline.type.chars && closed_by(char)) {
transition('ascend', char);
}
else handled = false;
return handled;
};
// start_end
handlers.literal = function (char) {
var handled = handlers.start_end(char);
if (! handled) collection.push(char);
return true;
};
// literal
collection = push_buffer();
collection.punchline.type = {id: 'literal'};
for (i = 0; i < buffer.input.length; ++i) {
char = buffer.input[i];
temp.handled = false;
if ((i < 0) || (i > (buffer.input.length - 1))) {
throw "Character index out of bounds";
}
[
collection.punchline.type.id,
'start_end',
].every(function (handler) {
return ! handlers[handler](char);
});
}
// for
return buffer.output;
}
// lex
| javascript |
import _ from 'lodash';
import React, { useRef } from 'react';
import { renderVirtualComponent } from '../utils/arToolKitHandler';
import SceneRenderer from './SceneRenderer';
import useGesture from '../utils/useGesture';
import useDistanceSubscriber from '../utils/useDistanceSubscriber';
import { rendererInterface } from '../utils/componentInterface';
import { useEventListener } from 'krsbx-hooks';
const AFrameRenderer: React.FC<rendererInterface> = (props) => {
const { gestureHandler, onError, onInit, autoRestart } = props;
const container = document.body;
const renderer = useRef();
!!gestureHandler && useGesture(gestureHandler);
// Add event listner for get distance between marker and camera
useDistanceSubscriber();
// On camera cant be initialize
useEventListener('camera-error', () => {
!!onError && onError();
console.error("Camera can't be initialize!");
if (autoRestart) {
setTimeout(() => {
window.location.reload();
}, 3000);
}
});
// On camera can be initialize
useEventListener('camera-init', () => {
!!onInit && onInit();
console.log('Camera successfulyy initialized!');
});
useEventListener('gps-entity-place-added', () => {
console.log('Geolocation objects added!');
});
return renderVirtualComponent(
<SceneRenderer
{..._.omit(props, ['gestureHandler'])}
renderer={renderer}
/>,
container
);
};
AFrameRenderer.defaultProps = {
arToolKit: {},
getSceneRef: () => {},
inherent: true,
};
export default AFrameRenderer;
| typescript |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { LeaseStatus, BerthMooringType } from "./../../../@types/__generated__/globalTypes";
// ====================================================
// GraphQL query operation: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR
// ====================================================
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases_edges_node_customer {
__typename: "ProfileNode";
id: string;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases_edges_node {
__typename: "BerthLeaseNode";
status: LeaseStatus;
startDate: any;
endDate: any;
isActive: boolean;
customer: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases_edges_node_customer;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases_edges {
__typename: "BerthLeaseNodeEdge";
node: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases_edges_node | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases {
__typename: "BerthLeaseNodeConnection";
edges: (BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases_edges | null)[];
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node {
__typename: "BerthNode";
comment: string;
depth: number | null;
id: string;
isAccessible: boolean | null;
isActive: boolean;
leases: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node_leases | null;
length: number;
mooringType: BerthMooringType;
number: string;
width: number;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges {
__typename: "BerthNodeEdge";
node: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges_node | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths {
__typename: "BerthNodeConnection";
edges: (BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths_edges | null)[];
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties {
__typename: "PierProperties";
identifier: string;
electricity: boolean;
gate: boolean;
water: boolean;
lighting: boolean;
wasteCollection: boolean;
berths: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties_berths;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node {
__typename: "PierNode";
id: string;
properties: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node_properties | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges {
__typename: "PierNodeEdge";
node: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges_node | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers {
__typename: "PierNodeConnection";
edges: (BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers_edges | null)[];
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties {
__typename: "HarborProperties";
name: string | null;
servicemapId: string | null;
imageFile: string | null;
streetAddress: string | null;
municipality: string | null;
zipCode: string;
maxWidth: number | null;
numberOfPlaces: number;
numberOfFreePlaces: number;
piers: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties_piers | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor {
__typename: "HarborNode";
id: string;
properties: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor_properties | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBOR {
harbor: BERTH_OFFER_WITHOUT_APPLICATION_HARBOR_harbor | null;
}
export interface BERTH_OFFER_WITHOUT_APPLICATION_HARBORVariables {
harborId: string;
boatWidth: number;
}
| typescript |
{
"pci_notebook_add_attach_container_description": "Verbinden Sie bei Bedarf Object Storage Container von OVHcloud mit Ihrem Notebook. Wenn die Verbindung mit den Containern hergestellt ist, werden sie vorübergehend geladen und nahe an Ihrer Instanz im Cache abgelegt. Das reduziert die Latenz und verbessert die Leistung. Es hat sich bewährt, das Notebook mit einem Container für Ihre eingehenden Daten und einem weiteren für Ihre ausgehenden Daten zu verbinden.",
"pci_notebook_add_attach_container_description_link": "Mehr Informationen zum Speichern von Daten",
"pci_notebook_add_attach_container_btn_attach_storage_add": "Verbindung mit einem Object Storage Container herstellen",
"pci_notebook_add_attach_container_btn_attach_storage_remove": "Object Storage Container löschen",
"pci_notebook_add_attach_container_storage_container": "Storage Container",
"pci_notebook_add_attach_container_storage_container_select": "Storage Container",
"pci_notebook_add_attach_container_mount_path": "Mountverzeichnis",
"pci_notebook_add_attach_container_mount_path_error_key_already_exist": "Dieses Verzeichnis besteht bereits",
"pci_notebook_add_attach_container_volumes_quantity": "{{ numberOfVolumes }} / {{ maxVolumes }} Volumes",
"pci_notebook_add_attach_container_btn_attach_repo_git_add": "Ein öffentliches Git-Repository anhängen",
"pci_notebook_add_attach_container_git_url": "URL des Git-Repositorys",
"pci_notebook_add_attach_container_data_prefix": "Nach Präfix filtern",
"pci_notebook_add_attach_container_data_prefix_help": "Nur Objekte mit dem entsprechenden Präfix werden in das Dateisystem geladen.",
"pci_notebook_add_attach_container_permission_select": "Berechtigung",
"pci_notebook_add_attach_container_permission_help": "Im „Nur-Lese-Modus“ wird am Ende des Auftrags keine Synchronisierung gestartet. Der Auftrag wird dadurch schneller abgeschlossen.",
"pci_notebook_add_attach_container_data_cache": "Cache",
"pci_notebook_add_attach_container_data_cache_help": "Container im Cache können ohne zusätzliche Synchronisierung durch andere Aufträge wiederverwendet werden. Wenn sie über einen bestimmten Zeitraum nicht verwendet werden, werden die Container aus dem Cache entfernt."
}
| json |
<gh_stars>10-100
import React, { useRef } from 'react';
import { useQuery, useMutation, useApolloClient } from '@apollo/react-hooks';
import { Text, useDisclosure, useToast } from '@robertcooper/chakra-ui-core';
import {
CompaniesQuery,
CompaniesQueryVariables,
CompaniesQuery_companies_nodes,
} from '../../graphql/generated/CompaniesQuery';
import { DeleteCompanyMutation, DeleteCompanyMutationVariables } from '../../graphql/generated/DeleteCompanyMutation';
import Loader from '../Loader/Loader';
import { deleteCompanyMutation } from '../../graphql/mutations';
import { companiesQuery } from '../../graphql/queries';
import CompanyName from '../CompanyName/CompanyName';
import { QueryParamKeys } from '../../utils/constants';
import { useModalQuery } from '../../utils/hooks/useModalQuery';
import { usePaginationQuery } from '../../utils/hooks/usePaginationQuery';
import { formatDate } from '../../utils/formatDate';
import { ConfirmDeleteCompany } from '../ViewCompanyModal/ViewCompanyModal';
import { OrderByArg } from '../../graphql/generated/graphql-global-types';
import Table, {
Column,
TableRow,
handleTableRowAction,
TableCell,
handleTableRowKeyDown,
previewPageSize,
} from './Table';
import { ActionsTableCell } from './ActionsCell';
import TableEmptyState from './TableEmptyState';
const CompanyTableRow: React.FC<
{
columns: Column[];
} & CompaniesQuery_companies_nodes
> = ({ columns, id, Image, name, updatedAt, jobApplicationsCount }) => {
const actionButtons = useRef<HTMLDivElement>(null);
const toast = useToast();
const client = useApolloClient();
const { isOpen: isOpenConfirmDelete, onOpen: onOpenConfirmDelete, onClose: onCloseConfirmDelete } = useDisclosure();
const { onOpen: onOpenView } = useModalQuery(QueryParamKeys.VIEW_COMPANY, id);
const [deleteCompany, { loading: isLoadingDeleteCompany }] = useMutation<
DeleteCompanyMutation,
DeleteCompanyMutationVariables
>(deleteCompanyMutation, {
variables: {
id,
},
onError: () => {
onCloseConfirmDelete();
toast({
title: `Error`,
description: `Unable to deleted company`,
status: 'error',
duration: 5000,
isClosable: true,
position: 'top',
});
},
onCompleted: () => {
onCloseConfirmDelete();
toast({
title: 'Deleted',
description: 'Successfully deleted company',
status: 'success',
duration: 5000,
isClosable: true,
position: 'top',
});
client.resetStore();
},
});
return (
<>
<TableRow
tabIndex={0}
onClick={(e: React.MouseEvent<HTMLTableRowElement>): void =>
handleTableRowAction(e, () => onOpenView(), actionButtons)
}
onKeyPress={(e: React.KeyboardEvent<HTMLTableRowElement>): void =>
handleTableRowAction(e, () => onOpenView(), actionButtons)
}
onKeyDown={handleTableRowKeyDown}
columns={columns}
>
<TableCell>
<CompanyName imageUrl={Image?.cloudfrontUrl} name={name} isBold />
</TableCell>
<TableCell>
<Text as="span" title={formatDate(updatedAt)}>
{formatDate(updatedAt)}
</Text>
</TableCell>
<TableCell>
<Text as="span" title={jobApplicationsCount.toString()}>
{jobApplicationsCount}
</Text>
</TableCell>
<ActionsTableCell containerRef={actionButtons} onDelete={onOpenConfirmDelete} />
</TableRow>
<ConfirmDeleteCompany
isOpen={isOpenConfirmDelete}
companyName={name}
jobApplicationsCount={jobApplicationsCount}
onDelete={deleteCompany}
isOnDeleteLoading={isLoadingDeleteCompany}
onClose={onCloseConfirmDelete}
/>
</>
);
};
type Props = {
isPreview?: boolean;
};
const CompaniesTable: React.FC<Props> = ({ isPreview = false }) => {
const { page, orderBy, pageSize, setQuery, direction } = usePaginationQuery({
orderBy: 'updatedAt',
direction: OrderByArg.desc,
});
const skip = isPreview ? 0 : (page - 1) * pageSize;
const first = isPreview ? previewPageSize : pageSize;
const { data: companies, loading, refetch } = useQuery<CompaniesQuery, CompaniesQueryVariables>(companiesQuery, {
variables: {
first,
skip,
orderBy: {
[orderBy]: direction,
},
},
});
const { onOpen: onOpenAddNewCompany } = useModalQuery(QueryParamKeys.ADD_COMPANY);
const companyColumns: Column[] = [
{
text: 'Company',
columnSizeFraction: 4,
orderBy: 'name',
},
{
text: 'Updated at',
minWidth: '160px',
orderBy: 'updatedAt',
},
{
text: 'Jobs',
minWidth: '80px',
orderBy: 'jobApplicationsCount',
},
{ text: 'Actions', columnSizeFraction: 2, minWidth: '100px', isLabelHidden: true },
];
const totalNumberOfResults = companies?.companies.totalCount ?? 0;
return loading ? (
<Loader />
) : (
<>
{totalNumberOfResults === 0 ? (
<TableEmptyState
onClick={(): void => {
onOpenAddNewCompany();
}}
title="No Companies"
description="Click the button below to add your first job company."
/>
) : (
<Table
page={page}
pageSize={pageSize}
refetch={refetch}
isPreview={isPreview}
orderBy={orderBy}
totalNumberOfResults={totalNumberOfResults}
columns={companyColumns}
setQuery={setQuery}
direction={direction}
rows={companies?.companies.nodes.map(
(item): JSX.Element => (
<CompanyTableRow key={item.id} columns={companyColumns} {...item} />
)
)}
/>
)}
</>
);
};
export default CompaniesTable;
| typescript |
Consuming particular meals that are seen as auspicious and appropriate for this holy period is one of the main components of the Shravan fast.
Digital Desk: Shravan, commonly called Sawan, is an especially significant month for Hindus all over India. Devotees observe a variety of rituals and traditions during this time of fasting and devotion to Lord Shiva. Consuming particular meals that are seen as auspicious and appropriate for this holy period is one of the main components of the Shravan fast. In this post, we will discuss some of the items that can be consumed during the Second Sawan Somwar to help devotees have a healthy diet while observing the Shravan fast.
Fruits, which are regarded as being pure, reviving, and easily digestible, are essential during the Shravan fast. In their diets, devotees might eat a variety of fruits such as bananas, apples, pomegranates, oranges, and grapes. These fruits are a source of energy and hydration during the fast because they are packed with vital nutrients, vitamins, and minerals.
During the month of Shravan, dry fruits like almonds, cashews, raisins, and dates are also preferred choices. They keep you full and give your body the resources it needs because they are a wonderful source of fibre, proteins, and healthy fats.
Because it is acceptable to devotees, sabudana is frequently taken during the Shravan fast. Sabudana vada, sabudana kheer, and sabudana khichdi are some of the meals that can be made using it. Instant energy is available from sabudana, which is a high source of carbs. It is also gluten-free, which makes it a great option for people who must adhere to stringent dietary restrictions.
During the Shravan fast, Singhara flour is another need. Singhara puri, Singhara halwa, and Singhara cheela are among the dishes that employ it. Gluten-free and easily absorbed Singhara flour is available. It offers vital minerals like potassium and magnesium and is a rich source of carbs.
During the Shravan fast, milk and milk products like yoghurt, buttermilk, and paneer are frequently consumed. They offer a healthy amount of calcium, vitamins, and protein. To keep a balanced diet throughout the fasting time, devotees might make meals like fruit yoghurt, paneer tikka, and drinks with buttermilk as an ingredient.
During the Shravan fast, makhana—also referred to as fox nuts or lotus seeds—is a preferred food. It is eaten in a roasted form and can be eaten alone or added to a variety of dishes. Makhana is a fantastic option for weight management because it is low in calories and high in fibre. Additionally, it is a wonderful source of calcium, antioxidants, and protein. | english |
Eighty years for Lewis C. Henry. Whoever heard of such an inhumane sentence for a non-violent crime which was given to my brother almost 27 years ago. Before leaving office President Obama said that he saw an injustice of sentences that were imposed in many situations, and he had a strong view that people deserve a second chance. After all this time, my brother Lewis deserves a second chance. The President repeatedly called on Congress to pass a broader criminal justice fix, but lawmakers never acted and prisoners like Lewis remain in honorable prisons like Statesville Correctional Center all of their natural life. Something is very wrong with that.
My brother Lewis C. Henry was convicted of Possession with the intent to Deliver 430 grams of cocaine and 700 grams of marijuana on one charge and sentenced to 80 years. Thirty of the 80 years resulted from a previously possessing only $10 worth of cocaine in 1989. These amounts of cocaine and marijuana is not a significant amount, however, Lewis was sentenced as though he was leader of a drug cartel. Marijuana use has recently been legalized in many states including Illinois where Lewis C. Henry is presently serving his extensive time.
My brother Lewis C. Henry III was born on Sept 14,1957 in Chicago, ILL to Lewis C. Henry II and Dorothy Mae Henry. Lewis Sr. passed away just before his son was sentenced. Our mother Dorothy is presently 89 years old and lives here in Lee's Summit, Mo. She only gets to see her boy maybe once a year now. Lewis has two sisters, two brothers, one recently deceased, a beautiful daughter, age 34 ,who was 8 years old when her dad went to prison, 4 grandchildren, and a host of outstanding nieces and nephews. Lewis said that his greatest fear is that our mom, passes away before he's released.
Lewis is 62 years old with a release date of 2037. He will be 80 years old. There was no trafficking to, or with minors,nor was he an organizer, leader, manager, or supervisor of others within a criminal organization. Lewis did not have ties to large scale drug trafficking organization, gangs, or cartel. My brother Lewis C. Henry was just a low-level participant in the sale of small amounts of cocaine.
The former U.S. Attorney General, Eric Holder, stated, and I quote: The time has come to refine our charging policy regarding mandatory minimum and maximum penalties for certain non-violent, low-level, drug offenders. We must ensure that our most serve mandatory penalties are reserved for serious high-level, or violent drug traffickers. Long sentences for low-level non-violent drug offenses do not promote public safety, deterrence or rehabilitation.
Although possession with intent to deliver cocaine and marijuana is a serious offense, it cannot compare to the severity, and harm to society as murder. the maximum sentence Lewis faced was 50 years, yet, that sentence was nearly doubled. There was no rational reason to almost double a delivery sentence because of a prior simple possession conviction. This time did not fit the crime.
A recent study conducted by Professor Evelyn Patterson of Vanderbilt University indicated that incarceration has a jarring affect on life expectancy. It found that for each year of incarceration life expectancy is reduced by two years.Based on these factors the United States Sentencing Commission considers a 39 year prison sentence the equivalent of a life sentence.
Lewis C. Henry's sentence in it's very essence is tantamount to a natural life sentence for a non-violent offense. It is inhumane to order him to spend the rest of his life in prison for a non-violent crime. Because of this, I'm asking you to stand with me and my family against policies that bury people alive by sentencing them to death by incarceration, and support this petition for clemency from the Illinois Governor J. B. Pritzker for my brother, Lewis C. Henry III. Thank you.
| english |
Fresh update on Akshay Kumar's 'Ram Setu'
Akshay Kumar certainly has a lot on his plate right now. One of his many upcoming films is 'Ram Setu'. The announcement of this project created a certain hype around it. The team filmed a muhurat shot back in March but the the project is yet to go on floors. Actresses Jacqueline Fernandes and Nushrratt Bharuccha are also part of the cast. Initially, makers planned to shoot for some scenes in Sri Lanka but the idea was soon scraped and location was changed to Kerala.
Now that Kerala is having a spike in the Covid-19 cases, the production plans have shifted to Gujrat. Akshay is currently busy shooting for a film with Rakul Preet Singh in London. He'd start working on 'Ram Setu' by October and will wrap it up by December in a start to end schedule.
Follow us on Google News and stay updated with the latest! | english |
<filename>src/main/java/action/OgnlAction.java
package action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.util.ValueStack;
public class OgnlAction extends ActionSupport {
@Override
public String execute() throws Exception {
//获取valueStack
//1.通过request获取
// Object valueStack = ServletActionContext.getRequest().getAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY);
// System.out.println(valueStack);
//2.通过actionContext获取
ValueStack valueStack1 = ActionContext.getContext().getValueStack();
valueStack1.push("valueStack--value");
valueStack1.set("name","谷志雄");
return SUCCESS;
}
}
| java |
US Secretary of State Mike Pompeo has arrived in Germany as part of a four-nation European trip that was abruptly cancelled last month amid escalating tensions between the US and Iran.
According to Press TV, Pompeo, who flew to Berlin on Thursday, is scheduled to meet German Chancellor Angela Merkel and Foreign Minister Heiko Maas on Friday.
The United States and its German allies are locked in dispute over a host of issues, from trade to military spending.
Ahead of his trip, Pompeo said Germany needed to do more to meet NATO military spending commitments of two percent of GDP.
“President Trump is not satisfied,” Pompeo said.
Donald Trump has repeatedly complained that Germany and other NATO allies are not pulling their weight in the US-led military alliance.
Among other major issues that Pompeo is expected to discuss during the five-day trip are the escalating tensions with Iran and Washington's bans on China’s Huawei Technologies.
Before heading to Germany, Pompeo said Huawei would be an issue at each stop in Europe.
“Everywhere I go, we talk about the opportunities and challenges that China presents not only to the United States and its security but to countries around the world. So it will be a topic,” he said.
Earlier this month, President Donald Trump took the escalating trade tensions with China to a new level by adding Huawei to a list of firms with which US companies cannot engage in trade unless they get a license from authorities.
This prompted American Internet giant Google and its Android mobile operating system to suspend business with the Chinese tech giant.
Huawei filed the case in a federal US court in March.
The US diplomat also said that he was going to discuss Iran during his trip.
The Trump administration has imposed illegal sanctions on Iran and beefed up its military presence in the region, citing alleged and unspecified threats posed by the Islamic Republic to American troops and interests.
This came a year after Trump unilaterally pulled the US out of a landmark 2015 multilateral deal with Iran.
Germany, one of the signatories to the 2015 nuclear deal — officially known as Joint Comprehensive Plan of Action (JCPOA) —is trying to keep it alive as Tehran still remained in compliance with the agreement.
Alongside other European Union members, Berlin has constantly voiced opposition and disapproval of Washington’s escalating tensions with Tehran.
According to a German government spokeswoman, Merkel is expected to stress to Pompeo that tensions with Iran must be resolved peacefully.
Trump has recently ratcheted up pressure on Iran by halting a waiver for countries importing crude oil from the Islamic Republic.
Tehran has said it will not be the initiator of any war, but reserves the right to self-defense and will give a crushing response to any act of aggression. | english |
<reponame>CoryBorek/PseudocodeCompiler
package com.github.CoryBorek.PseudocodeCompiler;
import com.github.CoryBorek.PseudocodeCompiler.impl.java.JavaPseudoFile;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Main Class, runs program
*/
public class Main {
/**
* Main function
* @param args Command-line arguments
*/
public static void main(String[] args) {
//Filetype to be outputted
String type = args[0];
//Runs for each file given
for (int i = 1; i < args.length; i++) {
//Compiles a file
Path main = Paths.get("./").resolve(args[i]);
CompileRunnable run = new CompileRunnable(type, main);
Thread thread = new Thread(run);
thread.start();
}
}
}
/**
* Runs a compilation asynchronously
*/
class CompileRunnable implements Runnable {
String type;
Path path;
public CompileRunnable(String type, Path path) {
this.type = type;
this.path = path;
}
@Override
public void run() {
//Compile the file.
if (type.equalsIgnoreCase("java")) {
JavaPseudoFile file = new JavaPseudoFile(path.toFile());
file.run();
}
}
} | java |
Punjab Kings (PBKS) will take on the Chennai Super Kings(CSK) in match eight of the 2021 Indian Premier League (IPL) at the Wankhede Stadium in Mumbai.
Head to head: (24 matches: PBKS 9 | CSK 15)
The two teams have played one another 24 times in the IPL with CSK winning 15 matches and PBKS winning 9.
CSK has won four of the last five matches played between two teams in the league.
Last IPL meeting:
PBKS (153/6 in 20 overs) lt to CSK (154/1 in 18.5 overs)
First led by South African pacer Lungi Ngidi's spell of 3-39 and then an unbeaten 62 by opener Ruturaj Gaikwad, the Chennai Super Kings defeated the Punjab Kings by nine wickets in the last meeting between these two teams in the IPL.
All-rounder Deepak Hooda was the best performer on the day for Punjab, making an unbeaten 30-ball 62.
In the other fixture, the Chennai Super Kings chased down a target of 179 runs set by the Punjab Kings with 10 wickets in hand.
| english |
{% load review_tags %}
<table class="reviews-summary">
<tr class="reviews-summary__tr">
<td class="reviews-summary__td">
{% if record.stage.has_external_review %}
{{ record.review_count|default:'0' }}
{% else %}
{{ record.review_staff_count|default:'0' }}
{% endif %}
</td>
<td class="reviews-summary__td">{{ record.review_submitted_count|default:'0' }}</td>
<td class="reviews-summary__td">{{ record.review_recommendation|traffic_light }}</td>
</tr>
</table>
| html |
/** global **/
body {
margin:0px auto;
padding:0;
font-family:Verdana, Geneva, sans-serif;
font-size:12px;
color:#333;
background:#fff url('images/body-bg.png') repeat-x;
}
body.small-header {
background:#fff url('images/body-bg-small.png') repeat-x;
}
body.slider-header {
background:#fff url('images/body-bg-slider.png') repeat-x;
}
* {
margin:0;
padding:0;
}
/** element defaults **/
table {
width:100%;
font-family:Arial, Helvetica, sans-serif;
text-align:left;
}
th, td {
padding:5px 10px;
}
th {
color:#fff;
border-top:3px solid #870101;
background-color:#A50000;
}
td {
border-bottom:1px solid #f4f4f4;
}
code, blockquote {
display:block;
border-left:5px solid #ddd;
padding:10px;
margin-bottom:20px;
}
blockquote p {
font-style:italic;
font-family:Georgia, "Times New Roman", Times, serif;
margin:0;
height: 1%;
}
p {
line-height:1.9em;
margin-bottom:20px;
}
a {
color:#0D3C84;
}
a:hover {
color:#870101;
}
a:focus {
outline:none;
}
fieldset {
display:block;
border:none;
border-top:1px solid #e0e0e0;
}
fieldset legend {
font-weight:bold;
font-size:13px;
padding-right:10px;
color:#222;
}
fieldset form {
padding-top:15px;
}
fieldset p label {
float:left;
width:150px;
font-family:Arial, Helvetica, sans-serif;
}
form input, form select, form textarea {
padding:5px;
color:#333333;
font-size:13px;
font-family:Arial, Helvetica, sans-serif;
border:1px solid #ddd;
}
form input.formbutton {
margin-left:150px;
background:#A50000;
border:none;
border-bottom:3px solid #870101;
color:#ffffff;
font-weight:bold;
padding:5px 10px;
font-size:13px;
}
h1 {
font-size:45px;
font-family:Arial, Helvetica, sans-serif;
}
h2 {
color:#000;
font-family:Arial,Helvetica,sans-serif;
font-size:30px;
font-weight:bold;
letter-spacing:-2px;
padding:0 0 5px;
margin:0;
}
h3 {
font-family:Arial,Helvetica,sans-serif;
color:#0D357B;
font-size:20px;
padding-bottom:10px;
}
h4 {
font-family:Arial,Helvetica,sans-serif;
padding-bottom:10px;
font-size:15px;
color:#870101;
}
h5 {
padding-bottom:10px;
font-size:13px;
color:#666666;
}
ul, ol {
margin:0 0 35px 35px;
}
li {
padding-bottom:5px;
}
/** wrapper **/
div#wrapper {
width:960px;
margin:0px auto;
padding:0;
}
/** sitename **/
div#sitename {
float:left;
width:30%;
}
div#sitename h1 {
font-size:48px;
letter-spacing:-5px;
margin:0;
height:72px;
padding:18px 0 0;
text-transform:uppercase;
text-shadow: 2px 2px #000;
}
div#sitename h1 a,
div#sitename h1 a:hover {
color:#fff;
font-weight:normal;
text-decoration:none;
}
div#sitename h1 strong {
color: #A81212;
}
div#nav {
width:65%;
float:right;
padding:30px 0 0 0;
margin:0;
}
div#nav ul {
list-style:none;
float:right;
padding:0 0 0 50px;
margin:-10px 0 0 50px;
}
div#nav ul li {
display:inline;
float:left;
margin:0 5px;
padding-bottom:0;
}
div#nav ul li a, div#nav ul li a:visited, div#nav ul li a:hover {
float:left;
text-decoration:none;
color:#ffffff;
font-weight:normal;
font-size: 13px;
font-family:Arial Rounded MT Bold, Helvetica, sans-serif;
display: block;
}
div#nav ul li a span {
display:block;
padding:10px;
}
div#nav ul li a:hover {
background: #ff9900 url('images/nav-sprite.gif') no-repeat scroll right -35px;
}
div#nav ul li a:hover span {
background: transparent url('images/top-nav-hover-left.gif') no-repeat;
}
div#nav ul li.selected a, div#nav ul li.selected a:hover {
background: #222 url('images/nav-sprite.gif') no-repeat scroll top right;
}
div#nav ul li.selected a span, div#nav ul li.selected a:hover span {
background: transparent url('images/top-nav-selected-left.gif') no-repeat;
}
/** header **/
div#header {
padding:40px 0 0;
margin:0 auto;
height:135px;
}
.small-header div#header {
padding-top: 25px;
height: 64px;
}
.slider-header div#header {
height: 245px;
}
div#header h2 {
color:#ffffff;
padding-bottom:0;
font-weight:normal;
font-family:Arial Rounded MT Bold, Arial,Helvetica,sans-serif;
font-size:32px;
letter-spacing:0;
text-shadow: 2px 2px #4C0101;
}
div#header div.tagline, div#header div.slide-text {
color:#eee;
font-size:14px;
padding-bottom:10px;
font-family:'Lucida Grande','Lucida Sans Unicode',Geneva,Verdana,Sans-Serif;
}
div#header div.tagline a {
color:#ffffff;
}
/* front page slider styles */
div#jFlowSlide {
margin:0 auto;
}
div#slides-container {
height:220px;
}
div#slides-container div#jFlowSlide {
height:200px;
}
div#slides-container div.jFlowSlideContainer img {
margin:auto;
display:block;
border:4px solid #313D45;
}
div#slides-container div.jFlowSlideContainer div {
}
div#slides-container div.jFlowSlideContainer div.slide-image {
float:left;
width:322px;
padding-top:10px;
}
span.jFlowPrev, span.jFlowNext {
background-image:url('images/slide-prev.gif');
background-repeat:no-repeat;
display:block;
height:25px;
width:25px;
float:left;
margin:0;
cursor:pointer;
}
span.jFlowPrev span, span.jFlowNext span { display:none; }
span.jFlowNext {
background-image:url('images/slide-next.gif');
float:right;
}
div#slides-container div.controls {
position:relative;
top:-125px;
width:960px;
margin:0 auto;
}
div.slide-text {
padding-top: 10px;
}
/** body **/
div#body {
padding:10px 0;
background: transparent url('images/body-arrow.png') no-repeat scroll 5px 0;
}
/** content+sidebar styles **/
div#content {
width:715px;
}
div.column-left {
float:left;
margin-right:20px;
}
div.column-right {
float:right;
}
div#sidebar {
width:200px;
padding-top: 15px;
}
div#sidebar ul {
margin:0;
padding:0;
list-style:none;
}
div#sidebar li ul {
margin-bottom:20px;
width:200px;
}
div#sidebar li ul li {
display:block;
padding:5px 0px;
color:#777;
}
div#sidebar li ul li a {
color:#999;
text-decoration:none;
font-weight:bold;
}
div#sidebar li ul li a:hover {
color:#09285E;
text-decoration:underline;
}
div#sidebar li ul.blocklist li {
padding:0;
}
div#sidebar li ul.blocklist li.selected-item a {
color:#870101;
font-weight:bold;
background:transparent url('images/item-selected.gif') no-repeat scroll right center;
}
div#sidebar li ul.blocklist li.selected-item a:hover {
text-decoration:none;
}
div#sidebar li ul.blocklist li a {
width:200px;
display:block;
padding:5px 0px;
}
div#sidebar h4 {
color:#0C367E;
font-family:arial;
font-size:16px;
text-transform:uppercase;
font-weight:bold;
margin:0;
padding:7px 0px;
}
/** footer **/
#footer {
margin:0 auto;
background: #000 url('images/footer.jpg') repeat-x scroll bottom left;
padding: 30px 5px 0;
}
.footer-content {
width: 960px;
margin: 0 auto;
display: block;
padding-bottom: 30px;
}
#footer a {
color: #999;
text-decoration: underline;
}
#footer h4 {
color: #ccc;
font-size: 18px;
font-weight: normal;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif;
}
#footer p {
text-align: left;
color: #999;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
#footer form {
margin: 0;
padding: 0;
}
#footer form input#searchbutton {
margin: 0;
border-bottom: none;
overflow:visible;
width:auto;
}
#footer form input#searchquery {
background-color: #333;
color: #fff;
font-family: Arial, Helvetica, sans-serif;
border: none;
padding: 6px 3px;
}
#footer ul {
margin: 0;
padding: 0;
list-style: none;
border-top: 1px solid #222;
}
#footer ul li {
padding: 0;
}
#footer ul li a {
display: inline-block; /* for IE 6, 7 */
}
#footer ul li a {
text-decoration: none;
display: block;
font-size: 11px;
padding: 7px 10px;
border-bottom: 1px solid #222;
}
#footer ul li a:hover {
background-color: #111;
}
.footer-box {
width: 220px;
margin-right: 26px;
float: left;
}
.end-footer-box {
margin-right: 0;
}
#footer-links {
background-color: #000;
color: #ccc;
padding: 5px;
}
div#footer-links p {
text-align: right;
padding: 0;
margin: 0 auto;
font-size: 10px;
width: 960px;
display: block;
}
#footer-links a {
color: #eee;
font-weight: bold;
text-decoration: underline;
}
/** clear fix **/
.clear:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clear {
display: inline-block;
}
.clear {
clear:both;
display: block;
}
| css |
In a recent interview, podcast host Joe Rogan admitted he never had former President Donald Trump on his popular show because he was "not interested in helping him. "
Speaking on The Lex Fridman Podcast, Rogan gave his candid impression about the former president, describing him as "such a polarizing figure that so many people felt like they could abandon their own ethics and morals and principles just to attack him and anybody who supports him because he is an existential threat to democracy itself. "
Rogan also referred to the "Trump era" as "one of the weirder times" in American history.
Fridman acknowledged Rogan’s assessment and added "maybe it’s going to get weirder. " "Yeah, I think it’s going to get weirder," Rogan responded, declaring Trump was "going to run again. "
CNN, ABC AND NBC PANELISTS ON BIDEN'S RESPONSE TO DOBBS DECISION: 'HE HAS NOT MET THE MOMENT'
Curious about Trump’s chances in the 2024 presidential election, Fridman asked, "You think he could win? " Rogan affirmed that Trump has got a good shot because his likely opponent, President Joe Biden, is a "dead man. "
"Well, he’s running against a dead man," Rogan argued. "Biden shakes hands with people that aren’t even there when he gets off stage. I think he’s seeing ghosts. "
The host of "The Joe Rogan Experience" then slammed Biden’s recent appearance on "Jimmy Kimmel Live! " "You see him on Jimmy Kimmel the other day? " he asked Fridman, adding, "He was just rambling. "
"If he was anyone else. If he was a Republican – if that was Donald Trump doing that – every f---ing talk show would be screaming for him to be off the air. "
Rogan, who has had his fair share of controversial guests come on his show, mentioned that he would never have Trump on his podcast. "By the way, I’m not a Trump supporter in any way, shape or form. I’ve had the opportunity to have him on my show more than once. I’ve said no, every time. "
"I don’t want to help him," Rogan declared, adding, "I’m not interested in helping him. "
Newsweek reported in March that Rogan had an opportunity to interview Trump at the White House before he left office, though Rogan declined due to the interview’s format being too different from what he’s used to.
Fridman rebutted Rogan playfully, remarking, "The night is still young. " He insisted, "I think you’ll have him on. "
The host pressed Rogan on the topic of hosting Trump, reminding the famous podcaster that he has had controversial figures like rapper Kanye West on his show. Rogan responded, "Yeah but Kanye’s an artist. Like Kanye doing well or not doing well doesn’t change the course of our country. "
Fridman then asked, "Do you really bear the responsibility of the course of our country based on a conversation? "
"I think you can revitalize and rehabilitate someone’s image in a way that is pretty shocking," Rogan insisted. | english |
{"text":"Any health-care provider or any other person or institution providing information to the Committee pursuant to this subchapter shall have immunity from liability, administrative, civil, or criminal, that might otherwise be incurred or imposed with respect to the disclosure of the information.","historical":"Temporary Addition of Section\n\nFor temporary (225 day) addition of section, see § 2 of Child Fatality Review Committee Establishment Temporary Act of 2001 (D.C. Law 14-20, September 6, 2001, law notification 48 DCR 9090).\n\nEmergency Act Amendments\n\nFor temporary (90 day) addition of section, see § 10 of Child Fatality Review Committee Establishment Emergency Act of 2001 (D.C. Act 14-40, April 25, 2001, 48 DCR 5917).\n\nFor temporary (90 day) addition of section, see § 10 of Child Fatality Review Committee Establishment Legislative Review Emergency Act of 2001 (D.C. Act 14- 82, July 9, 2001, 48 DCR 6355).\n\nLegislative History of Laws\n\nFor Law 14-28, see notes following § 4-344.01.\n\nDC CODE § 4-1371.10\n\nCurrent through December 11, 2012","credits":"(Oct. 3, 2001, D.C. Law 14-28, § 4610, 48 DCR 6981.)","sections":[],"division":{"identifier":"I","text":"Government of District."},"title":{"identifier":"4","text":"Public Care Systems. (Refs & Annos)"},"chapter":{"identifier":"13","text":"Child Abuse and Neglect."},"subchapter":{"identifier":"V","text":"Child Fatality Review Committee."},"heading":{"title":"4","chaptersection":"1371","identifier":"4-1371.10","catch_text":"Immunity from liability for providing information to Committee."}} | json |
England fast bowler Jofra Archer had an infuriating outing in the ongoing Boxing Day Test against South Africa at the SuperSport Park in Centurion. After managing to scalp only one wicket in the first wicket, the young fast bowler claimed two wickets in the ongoing second innings. However, Archer escaped a beamer suspension after bowling two consecutive beamers of which one was called a legal delivery by the umpires.
The incident took place in the penultimate over the day’s play. Jofra Archer appeared to be called for a second no-ball by the square-leg umpire Paul Reiffel after ending his day with a pair of beamers. While there is no doubt both deliveries were unintentional – replays suggested Archer had attempted to bowl two successive knuckle-balls.
ICC’s Test playing conditions dictate that any bowler who has delivered two such balls should be suspended from bowling for the rest of the innings. But the umpires also appeared to rescind the no-ball call on the basis that the second delivery was dipping towards the stumps and should be considered more of a full-toss than a beamer. But Jofra Archer remains on a warning which means another such beamer, and he will have to watch the game from the dressing room.
Speaking at the end of the game, South Africa’s Vernon Philander called on the umpires to “stand your ground” and withdraw Jofra Archer from the attack in the ongoing Test. He also asked the umpires to set the right examples for those coming into the game.
“I don’t know what happened, but there was a little bit of a conversation going on after the game. For me, it’s plain and simple. We’re playing a game, and we’re setting an example for the rest of the people coming into this game,” said Philander, speaking about the incident with Archer.
“You’ve got to make the right call. Are we going to tolerate it at another game or are we going to put a stop to it right here. It’s in the hands of the umpires. That’s why it’s called the purest format, don’t try silly things that can cost you not bowling another ball in the innings. Umpires have to make a call, and hopefully, it’s the right one for the game looking forward,” Philander added.
Speaking of the game, it is evenly poised with South Africa leading by 175 runs in the second innings with six wickets in hand. With three days still to play, the fans will certainly expect a result in the Test match.
| english |
<filename>47.go
package main
import (
"fmt"
)
func distinctPrimeFactors(n int) []int {
var (
primeStatus = make([]bool, n+1)
factorCount = make([]int, n+1)
)
for i := 0; i < n+1; i++ {
primeStatus[i] = true
}
for i := 2; i < n+1; i++ {
if primeStatus[i] {
factorCount[i]++
for j := i * 2; j < n+1; j += i {
factorCount[j]++
primeStatus[j] = false
}
}
}
return factorCount[1:]
}
func main() {
var (
count int
primeFactors = distinctPrimeFactors(1000000)
)
for index, num := range primeFactors {
if num != 4 {
count = 0
continue
}
count++
if count == 4 {
fmt.Println(index - 2)
return
}
}
}
| go |
{"appid": 287600, "name": "Sunset", "windows": true, "mac": true, "linux": true, "early_access": false, "lookup_time": 1490975972} | json |
During the eighth century, Bhavabhuti was a well-known Indian dramatist, poet, and philosopher. Jain poet Hastimalla served in the Solanki kings' court.
Which of the following pairs is the wrong match?
Why Chenab was called Askini?
Askini was Chenab's name during the Rig Vedic era. Chandrabhaga River is the traditional name for this river. The name referred to the dark-colored waters that were observed.
Which Kakatiya queen ruled over Warangal, a region of present-day Andhra Pradesh?
Who was Rudrama Devi?
From 1263 to 1289, Rudrama Devi was the ruler of the Kakatiya Dynasty. She was one of the extremely few female kings in Indian history.
Who constructed Kanchipuram's renowned Vaikunta Perumal temple?
Who built Ekambareswarar temple Kanchipuram?
The Pallavas initially constructed this enormous Shiva temple, which the Chola and Vijayanagara rulers later enhanced.
The Kailasha temple is found within the caves of:
How many caves are found in Kailash temple?
Over 100 caves have been excavated from the basalt cliffs of the Charanandri Hills, 34 of which are open to the public.
Who among the following lived during Alexander the Great's lifetime?
Who is the founder of the Maurya dynasty?
The Mauryan dynasty was started by Chandragupta Maurya. After Alexander the Great passed away in 323 BCE, Chandragupta seized control of the Punjab region from the southern border of Alexander's former empire.
Which ruler was known as Prithivyah Pratham Veer?
Who is Samudragupta?
Samudragupta was the Gupta Dynasty's first significant king. He chose to expand his empire after ascending to the throne in order to include the other kingdoms and republics that existed outside of it.
Which of the following statements about the Megasthenese profession of writing is true? I. Megasthenese wrote extensively in a book called 'Indica' which is no longer available to us. II. Megasthenese's writings could be seen through various extracts in the writings of Diodorous, Strabo and Arrian. III. Megasthenese mentions that Indian society comprised of seven castes (jatis)
Who was the author of Indica what was highlighted in this book?
A brief military history of interior Asia, specifically the Indian subcontinent, called Indica was written by Arrian in the second century CE. The book is about Alexander the Great's expedition, which took place between 336 and 323 BCE.
Who among the following was the Sanskrit language's first grammarian?
Who was Panini?
He was a brilliant scholar who created a Sanskrit grammar. He put the vowels and consonants in a specific order, which he then utilised to make formulas similar to those in algebra.
In Sravanabelagola, who of the following built the Gomateshwara statue?
Which temple was built by Chamundaraya?
The Gomateshwara, a monolithic statue of Bahubali, was built in 982 at Shravanabelagola, a significant Jain pilgrimage site, by Chamundaraya, a man of many abilities.
What was the appropriate language for ancient source material?
What kind of language did ancient India use?
Sanskrit was the earliest language used in India. Aryan had a simpler language that was closer to traditional Sanskrit. The Sanskrit language reached its classical form around the time of the grammarian Panini.
What are Smritis?
Hindu sacred books that are based on the Vedas and comprise customary teachings (such as those about religious, household, and social behaviour) make up the class of shastras below the shruti.
Which of the following claims regarding the Rigvedic Aryans is false?
Is there any trace child marriage in Vedic period?
The Early Vedic or Rigvedic Period did not have child marriage or the practise of Sati.
During the Early Vedic Civilization, which of the following was worshipped?
Who were the main gods worshipped during the later Vedic age?
Brahma, Vishnu, and Shiva were worshipped by the Later Vedic Aryans. They thought that the creator was Prajapati or Brahma.
What is the common name for Mahabalipuram's monolithic rock shrines?
What is monolithic temple?
Buildings that are carved, cast, or excavated from a single piece of material—typically rock—are referred to as monolithic architecture. A rock-cut structure, or Pancha Rathas in India, is the most fundamental type of monolithic architecture.
Greek Roman art can be found in:
What is the similarities of Greek and Roman art?
Ancient Greek antiquity served as direct inspiration for Roman paintings. Greek artefacts, like as pottery, sculptures, and figurines, were widely used in Roman culture. The majority of Roman art is a copy of Greek art.
How long did Sangma dynasty member Harihara Raya II rule the Vijaynagara Empire?
What was the capital of Vijayanagara Empire?
The capital city of the empire, Vijaynagar, bears the name of the empire. The present-day Hampi is surrounded by the remains of the empire. Its advantageous position led to its selection as the nation's capital.
Which pottery style was most favoured by the Later Vedic people?
Why was Indus pottery famous?
Ancient glazed pottery is beautifully displayed in the pottery from the Indus Valley culture. The various shapes, each expertly crafted with exquisite detail, provide as proof of the advanced methods used by the Indus Valley potter.
All Souls Day is a _________ celebration.
What kind of holiday is All Souls Day?
On All Souls Day, people give offerings and pray for the deceased. The goal is for people who are alive to help those who are in purgatory.
What was Kalidasa famous for?
The standard for Sanskrit literary composition has been set by Kalidasa. His Abhijnanashakuntala is the most well-known drama, and is typically regarded as the best literary work by an Indian author at any time. | english |
Feedback (2)
Famous Wholesale Mother Milk Pump Exporters Companies – RH-298 Electric Automatic Milk Pump Breast Feeding Utensils for Mother Inspiration Product – Dearevery Detail:
Installation Instructions:
Warm Tip : before each use. should be pre-sterilized with breast milk has direct contact with the components:bottle, silicone horn, three-way silicone cylinder, duck mouth valve, milk bottle cap and so on.
1.Put the silicone horn and bell mouth in sequence, then putin the dust shield.
2.Insert the silicone horn and bell mouth assembly into the three links to ensure that the sleeve is tight.
(Note: when removing, one hand holds the three links, the other hand holds the bell mouth assembly up and woen, gently pull out.)
3.Put the cylinder and cylinder head into three links and tighten the cylinder head.
4.Put the duckbill valve into the bottom outlet of the three-way to ensure that there is no leakage.
5.Screw the three-way assembly into the bottle.
6.Insert the straigt-through joint of the hose into the cylinder head and the relative hole position of the main engine to ensure that there is no air leakage and can be used.
Product detail pictures:
Related Product Guide:
We believe that long term partnership is a result of high quality, value added service, rich experience and personal contact for Famous Wholesale Mother Milk Pump Exporters Companies – RH-298 Electric Automatic Milk Pump Breast Feeding Utensils for Mother Inspiration Product – Dearevery, The product will supply to all over the world, such as: Bolivia, Eindhoven, Tunisia, We can meet the various needs of customers at home and abroad. We welcome new and old customers to come to consult & negotiate with us. Your satisfaction is our motivation! Let us work together to write a brilliant new chapter!
The factory technical staff not only have high level of technology, their English level is also very good, this is a great help to technology communication.
| english |
<reponame>Who8MyLunch/WanderBits<gh_stars>0
#!/usr/bin/python
from __future__ import division, print_function, unicode_literals
import os
import unittest
from context import wanderbits
class Test_Things(unittest.TestCase):
def setUp(self):
path_module = os.path.dirname(os.path.abspath(__file__))
f = os.path.join(path_module, '..', 'wanderbits', 'game.yml')
self.game_info = wanderbits.config.read(f)
def tearDown(self):
pass
def test_does_room_init(self):
info = self.game_info['rooms'][0]
wanderbits.things.Room(**info)
def test_does_item_init(self):
info = self.game_info['items'][0]
wanderbits.things.Item(**info)
def test_does_user_init(self):
info = self.game_info['user'][0]
wanderbits.things.User(**info)
def test_find_things(self):
name = 'apple'
many_things = [wanderbits.things.Item(**info) for
info in self.game_info['items']]
wanderbits.things.find_thing(many_things, name)
def test_init_abc(self):
# Should not be able to instanciate an abstract class.
self.assertRaises(TypeError, wanderbits.things.Thing)
#############################################
# Test for property values.
def test_property_name(self):
info = self.game_info['rooms'][0]
A = wanderbits.things.Room(**info)
self.assertTrue('kitchen' in A.name)
def test_property_description(self):
info = self.game_info['rooms'][0]
A = wanderbits.things.Room(**info)
txt = 'a very tidy average-looking kitchen'
self.assertTrue(A.description == txt)
def test_property_size(self):
info = self.game_info['rooms'][0]
A = wanderbits.things.Room(**info)
self.assertTrue(A.size == 1000)
def test_property_capacity(self):
info = self.game_info['rooms'][0]
A = wanderbits.things.Room(**info)
self.assertTrue(A.capacity == 1000)
#############################################
# Test for container actions.
def test_add_is_container(self):
info_apple = self.game_info['items'][0]
A = wanderbits.things.Item(**info_apple)
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
# Put the apple in the sack.
B.add(A)
self.assertTrue(A in B.container)
def test_add_item_twice(self):
info_apple = self.game_info['items'][0]
A = wanderbits.things.Item(**info_apple)
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
# Put the apple in the sack.
B.add(A)
# B.add(A)
# Put the apple in the sack again. I know! This is a dumb rule!
self.assertRaises(wanderbits.errors.ThingError, B.add, A)
def test_add_is_not_container(self):
info_apple = self.game_info['items'][0]
A = wanderbits.things.Item(**info_apple)
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
# Put the sack in the apple.
# A.add(B)
self.assertRaises(wanderbits.errors.ThingError, A.add, B)
def test_available_space_init(self):
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
self.assertTrue(B.available_space == 100)
def test_available_space_after_add(self):
info_apple = self.game_info['items'][0]
A = wanderbits.things.Item(**info_apple)
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
B.add(A)
self.assertTrue(B.available_space == 99)
def test_remove(self):
info_apple = self.game_info['items'][0]
A = wanderbits.things.Item(**info_apple)
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
B.add(A)
self.assertTrue(A in B.container)
B.remove(A)
self.assertTrue(A not in B.container)
# B.remove(A)
self.assertRaises(wanderbits.errors.ThingError, B.remove, A)
#############################################
# User as a container.
def test_user_local_things(self):
E = wanderbits.executive.Executive(self.game_info)
info_apple = self.game_info['items'][0]
A = wanderbits.things.Item(**info_apple)
info_sack = self.game_info['items'][1]
B = wanderbits.things.Item(**info_sack)
info_room = self.game_info['rooms'][0]
C = wanderbits.things.Item(**info_room)
info_rock = self.game_info['items'][2]
D = wanderbits.things.Item(**info_rock)
self.assertTrue(A.name in [n.name for n in E.user.local_things])
self.assertTrue(B.name in [n.name for n in E.user.local_things])
self.assertTrue(C.name in [n.name for n in E.user.local_things])
self.assertFalse(D.name in [n.name for n in E.user.local_things])
# Standalone.
if __name__ == '__main__':
unittest.main(verbosity=2)
| python |
Barcelona are reportedly interested in brining Juventus forward Federico Chiesa to the Spotify Camp Nou this summer.
As per Calciomercato, multiple players like Chiesa, Dusan Vlahovic, and Adrien Rabiot could leave the Turin-based club in the summer. Juventus were handed a 15-point deduction due to off-field issues and could miss out on the UEFA Champions League places.
They currently sit seventh in the Serie A table, seven points behind fourth-placed AC Milan. If Juventus don't make it into next season's Champions League, Chiesa, 25, could be one of the players to leave the club amidst interest from Barcelona.
The Italian forward has made just 17 appearances across competitions this season after having to recover from an ACL injury. He has scored two goals and provided four assists in that time.
Chiesa's agent, Fali Ramadani, has previously been involved in a few transfers with Barcelona, including those of Miralem Pjanic and Marcos Alonso. He also played his part in Pierre-Emerick Aubameyang and Franck Kessie's moves to the Spotify Camp Nou.
Ramadani's next deal with the Catalan club could see them sign Chiesa. The Italy international is known for his powerful runs with the ball and versatility in the forward line.
Chiesa, 25, has scored 20 goals and provided 18 assists in 78 games for Juventus. His contract with the club expires in the summer of 2025 and his market value is €60 million (via Transfermarkt).
Barcelona beat arch-rivals Real Madrid 2-1 at home in La Liga on Sunday, March 19. Sergi Roberto and Franck Kessie scored for the hosts after Vinicius Jr. had given the visitors an early lead.
The Blaugrana now hold a 12-point advantage at the top of the La Liga table over Los Blancos. With 12 games remaining, that appears to be an unassailable lead but manager Xavi Hernandez isn't counting his chickens before they hatch.
After their win over Real Madrid on Sunday, he said (via Managing Madrid):
He added:
“The league is not definitive. We don’t feel like champions. It’s a step forward and I’m very happy for the players.
Barcelona will next face Elche away in the league on April 1 after the upcoming international break.
| english |
import os
from django.conf import settings
from django.contrib.auth import logout as django_logout
from django.contrib.sites.models import Site
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.views.generic import View, TemplateView
from luna_django_commons.app.mixins import get_login_context
from .forms import (
B2DropProviderForm,
DatafileForm,
DatafileUpdateForm,
DatasetAddFileForm,
DatasetForm,
DropboxProviderForm,
FolderForm,
ForgotPasswordForm,
GDriveProviderForm,
LoginForm,
PasswordChangeForm,
RegisterForm,
ResetPasswordForm,
S3ProviderForm,
WLWebdavProviderForm,
)
class Root(TemplateView):
def get_template_names(self):
"""
Returns a list of template names to be used for the request. Must return
a list. May not be called if render_to_response is overridden.
"""
domain = Site.objects.get_current().domain
if "west-life" in domain:
return ['static_pages/landing_westlife.html']
elif "pype" in domain:
return ['static_pages/landing_pype.html']
return ['static_pages/landing_westlife.html']
def westlife_services(request):
context = get_login_context(request)
return render(request, 'static_pages/westlife/services.html', context)
def legal(request):
context = get_login_context(request)
return render(request, 'static_pages/cgv.html', context)
def internet_explorer(request):
context = get_login_context(request)
return render(request, 'static_pages/internet_explorer.html', context)
def westlife_static_page(request, page_name='fweh.html', render_kwargs=None):
if render_kwargs is None:
render_kwargs = dict()
context = get_login_context(request)
return render(request, 'static_pages/westlife/%s' % page_name, context, **render_kwargs)
#
# Debug information
#
class BuildInfo(View):
def get(self, *args, **kwargs):
version_file_path = os.path.join(settings.BASE_DIR, 'build_info.txt')
try:
with open(version_file_path, 'r') as f:
data = f.read()
except IOError:
data = 'No build information found. Probably means we are in development mode.'
return HttpResponse(data, content_type='text/plain')
class MainPage(TemplateView):
template_name = 'main.html'
def get_context_data(self, **kwargs):
context = super(MainPage, self).get_context_data(**kwargs)
user = self.request.user
context.update({
'INTERCOM_APP_ID': settings.INTERCOM_APP_ID,
'b2dropprovider_form': B2DropProviderForm(),
'wlwebdavprovider_form': WLWebdavProviderForm(),
'change_password_form': PasswordChangeForm(user=user),
'datafile_form': DatafileForm(),
'datafile_update_form': DatafileUpdateForm(),
'dataset_add_file_form': DatasetAddFileForm(),
'dataset_form': DatasetForm(),
'dropboxprovider_form': DropboxProviderForm(),
'folder_form': FolderForm(),
'forgot_password_form': ForgotPasswordForm(),
'gdriveprovider_form': GDriveProviderForm(),
'login_form': LoginForm(),
'register_form': RegisterForm(),
'reset_password_form': ResetPasswordForm(),
's3provider_form': S3ProviderForm(),
})
return context
def whoami(request):
return HttpResponse(request.user.username)
def logout(request):
django_logout(request)
#return HttpResponse('Logged out!')
return redirect('home')
def switch_login(request):
next_url=request.GET.get('next', '/virtualfolder/')
if hasattr(settings, 'SAML_CONFIG'):
return redirect('/saml2/login/?next=%s' % next_url)
else:
return redirect('/accounts/login/?next=%s' % next_url)
| python |
"When our humanity overflows, divinity descends," Sadhguru tells us in this video. Looking at the reason why our humanity can get "constipated", he tells us that devotion allows our humanity to find expression, and stresses the importance of devotion as a way of being, rather than as an act.
So lot of good things are being done in the world. A flower is not thinking of giving fragrance to you, it has no such intention. A tree is not thinking of giving oxygen to you, no such intention in its mind. The earthworm is not thinking of making the earth fertile for your crops, no such intention in his head; he has no head, but whatever they do, they’re doing good things. Yes or no? Whatever they do, whichever way they live. If they eat, they’re doing good things; if they shit they are doing good things. Isn't it so? Because they’re just being themselves. They are living according to their nature, so they don't have to think of doing good things. Only because human beings are not living according to their human nature, they have to think up good things and they think of these good things which are unbearable for lots of people. Hmm?
So this is not about you doing good things. If your humanity flowers, what is needed will anyway happen. Like if a flower blossoms, you don't have to tell it shoot the fragrance in the air; it will anyway happen, nobody can stop it. Whether somebody is there to appreciate the flower or nobody is there, still the same fragrance will come. When you come, more; when you do not come, less – no such thing. All the time on. So a couple of weeks ago we put you on bhakti sadhana, the way of devotion. Devotion means just that, that's how you are; you’re not acting it up when you see one particular person. ‘Sadhguru,’ like this. Somebody else, ‘Hmph.’ This is an activity; this is not going to work. Just becoming like that. Becoming like that, not by training, by digging little deeper. If you dig deep enough into this, that's how this is. If you live on the surface, you have to act like how somebody else says is a gooood way to be. There is no good way to be. There is a human way to be. If you overflow with your humanity, divinity has to descend, it has no choice. If your humanity is constipated and you’re trying to be gooood and gooood, gooood is not going to work. Gooood is not good.
| english |
{"visual":{"name":"reactFever","displayName":"ReactFever","guid":"reactFever8DB75E0C310A44F3A27A95F33F89171E","visualClassName":"Visual","version":"1.0.0","description":"Fever Visual for Power BI","supportUrl":"https://github.com/thiagao0860/Fever-Chart-View","gitHubUrl":"https://github.com/thiagao0860/Fever-Chart-View"},"apiVersion":"2.6.0","author":{"name":"<NAME>","email":"<EMAIL>"},"assets":{"icon":"assets/icon.png"},"externalJS":null,"style":"style/visual.less","capabilities":"capabilities.json","dependencies":null,"stringResources":[]}
| json |
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.checkerframework.checker.nullness.qual.Nullable;
public class Issue1630 {
static @Nullable String toString(Object o) {
return null;
}
@SuppressWarnings("nullness") // Issue 979
public static List<String> f(List<Integer> xs) {
return xs != null
? xs.stream().map(Issue1630::toString).filter(Objects::nonNull).collect(Collectors.toList())
: Collections.emptyList();
}
}
| java |
{"pos":"n","translits":{"tar·‘ê·lāh":{"psa.60.3|5":["the wine","of confusion.",null]},"hat·tar·‘ê·lāh":{"isa.51.17|14":["of the cup","of trembling、","You have drunk"],"isa.51.22|12":["the cup","of trembling、","-"]}},"meanings":{"tremble":2,"confusion":1},"meaningsCount":2,"occurences":3} | json |
<filename>maps/gsiv/rooms/16449.json
{
"id": 16449,
"title": [
"[Rogue Guild, Upstairs Hallway]"
],
"description": [
"Twin brass sconces hold dimly glowing torches on either side of an artfully carved dark felwood door set into the north wall. A faint draft ruffles the heavy brocaded curtains that cover the end of the hall, sending a shiver of cool air along the passage."
],
"paths": [
"Obvious exits: west"
],
"location": "Wehnimer's Landing",
"wayto": {
"16396": "west",
"16468": "go door"
},
"timeto": {
"16396": 0.2,
"16468": 0.2
},
"image": "wl-rogue_guild-1267242645.png",
"image_coords": [
598,
359,
626,
387
]
} | json |
<filename>sri/jmespath/0.15.0.json
{"jmespath.js":"sha256-A/zjKVxnD<KEY>,"jmespath.min.js":"sha2<KEY>} | json |
<reponame>AbdallahAlkhatatbeh/cookie-stand
table
{
border: 1px solid #ccc;
border-collapse: collapse;
}
table th
{
background-color: #F7F7F7;
color: #333;
font-weight: bold;
}
table th, table td
{
border:solid;
padding: 5px;
border-color: #ccc;
}
header{
background-color: blueviolet;
}
#store{
font-family: 'Yellowtail' ;
font-size: xx-large;
text-align: center;
margin: auto;
padding: 10px;
border: 10px solid slateblue;
}
nav{
font-family: 'Oswald' ;
color: coral;
margin: auto;
padding: 10px;
border: 10px solid slateblue;
}
#lastpa{
font-family: 'Yellowtail' ;
font-size: xx-large;
text-align: center;
background-color: steelblue;
}
body{
background-color:slategray;
} | css |
If you're looking for a pair of budget wireless earbuds that don't skimp on the specs, the latest buds from Anker might be right up your street.
The Anker Soundcore Life P3 cost just $79.99 / £79.99 (about AU$100), but come with active noise cancellation, long battery life, and an IPX5 water resistance rating.
They'll be available to buy from mid-July, but you can preorder them between June 10 and July 5 from the Soundcore website in the US and the UK. Australian pricing and availability is still to be confirmed.
Coming in five different colors, the new earbuds pick up where the Soundcore Life P2 left off – which we awarded four out five stars in our review, thanks to their comfy fit, enjoyable sound, and ease of use.
The new model has been updated with active noise cancellation, with Transport, Indoor, and Outdoor settings that allow you to customize how much external sound you want to pass through the buds.
The Soundcore Life P3 also come with two transparency modes, which Anker says will enhance the sound of your environment, including voices, without you having to remove your earbuds.
Inside the earbuds are 11m drivers, which the company claims will deliver an "accurate sound and clarity at all frequencies" – and if they sound anything like their predecessors, you can expect a wide soundstage with punchy bass frequencies.
Looking a little like a colorful version of the Apple AirPods Pro, the Soundcore Life P3 come with customizable touch controls, which allow you to play / pause your music, skip to the next track, and adjust the volume.
Meanwhile, an IPX5 water resistance rating means you can use these buds for working out without needing to worry about a little sweat or rain breaking them.
The claimed battery life is impressive, too. Anker says that you'll get seven hours from the earbuds with ANC off, dropping to six hours with ANC on. The wireless charging case provides an additional 30 hours (ANC on) / 35 hours (ANC off), while a fast charging feature means a quick 10-minute charge will give you two hours of playback.
According to Anker, the new noise-cancelling earbuds will launch with Siri compatibility, with other voice assistants coming "in the future".
That all makes for a rather impressive spec sheet, particularly when you consider how cheap the Soundcore Life P3 are compared to competing models like the AirPods Pro and the new Sony WF-1000XM4. Here's hoping they live up to the claims – as they could be a contender for the best budget wireless earbuds of 2021.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Olivia was previously TechRadar's Senior Editor - Home Entertainment, covering everything from headphones to TVs. Based in London, she's a popular music graduate who worked in the music industry before finding her calling in journalism. She's previously been interviewed on BBC Radio 5 Live on the subject of multi-room audio, chaired panel discussions on diversity in music festival lineups, and her bylines include T3, Stereoboard, What to Watch, Top Ten Reviews, Creative Bloq, and Croco Magazine. Olivia now has a career in PR.
| english |
<reponame>mohammad-pourmirzay/Python-Resume<filename>app10.py
import termcolor
print(termcolor.colored("Hello, welcome to the question game", color = "green"))
print(termcolor.colored("Please specify the difficulty level of the questions", color ="green"))
difficulty_questions = int(input("Easy = 1, Medium = 2, Hard = 3 : "))
score = 0
class Question:
def __init__(self, question_text, option_1, option_2, option_3, option_4, right_option):
self.question_text = question_text
self.option_1 = option_1
self.option_2 = option_2
self.option_3 = option_3
self.option_4 = option_4
self.right_option = right_option
def option(self):
print("Question:",self.question_text)
print("Option_1:",self.option_1)
print("Option_2:",self.option_2)
print("Option_3:",self.option_3)
print("Option_4:",self.option_4)
question_1_1 = Question("What color is the sky?", "blue = 1", "red = 2", "green = 3", "pink = 4", 1)
question_1_2 = Question("What color are the trees?", "blue = 1", "red = 2", "green = 3", "pink = 4", 3)
question_1_3 = Question("What color is the sea? ", "blue = 1", "red = 2", "green = 3", "pink = 4", 1)
if difficulty_questions == 1:
question_1_1.option()
user_input_1 = int(input("What is the right option?: "))
if user_input_1 == question_1_1.right_option:
print(termcolor.colored("your win!!!", color="green"))
score += 1
else:
print(termcolor.colored("yiur lost!!!", color= "red"))
score -= 1
elif difficulty_questions == 2:
pass
elif difficulty_questions == 3:
pass
print("socore your", score) | python |
mod fixtures;
use std::sync::Arc;
use agreed::{Config, State};
use anyhow::Result;
use maplit::hashset;
use tracing::info;
use fixtures::{sleep_for_a_sec, RaftRouter};
const CLUSTER_NAME: &str = "test";
/// Leader stepdown test.
///
/// Test plan:
///
/// 1. Create a single-node cluster of Node 0.
/// 1. Add three new nodes (1, 2, 3) as Voters.
/// 1. Ask the leader (Node 0) to remove itself from the cluster.
/// 1. Ensure that the old leader (Node 0) no longer gets updates.
///
/// RUST_LOG=agreed,memstore,stepdown=trace cargo test -p agreed --test stepdown
#[tokio::test(flavor = "multi_thread", worker_threads = 5)]
async fn stepdown() -> Result<()> {
fixtures::init_tracing();
// Setup test dependencies.
let router = {
info!("--- Setup test dependencies");
let config = Arc::new(
Config::build(CLUSTER_NAME.into())
.validate()
.expect("failed to build Raft config"),
);
Arc::new(RaftRouter::new(config))
};
{
info!("--- Initializing and asserting on a single-node cluster");
router.new_raft_node(0).await;
sleep_for_a_sec().await;
router.assert_pristine_cluster().await;
router.initialize_from_single_node(0).await?;
sleep_for_a_sec().await;
router.assert_stable_cluster(Some(1), Some(1)).await;
}
let original_leader = {
info!("--- Adding nodes 1, 2, 3 to the cluster");
let original_leader = router
.leader()
.await
.expect("expected the cluster to have a leader");
assert_eq!(0, original_leader, "expected original leader to be node 0");
for node in 1u64..=3 {
info!("--- Adding node {}", node);
router.new_raft_node(node).await;
let _ = router.add_voter(original_leader, node).await;
}
original_leader
};
sleep_for_a_sec().await;
{
info!("--- Asserting whether the cluster formed properly");
let metrics = router
.latest_metrics()
.await
.into_iter()
.find(|node| node.id == original_leader)
.expect("expected to find metrics on original leader node");
let cfg = metrics.membership_config;
assert_eq!(
metrics.state,
State::Leader,
"expected node 0 to be the old leader"
);
assert_eq!(
metrics.current_term, 1,
"expected old leader to still be in first term, got {}",
metrics.current_term
);
// 7 because
// 1 - initial entry
// 2 - add node 1
// 3 - add node 2
// 4 - add node 3
assert_eq!(
metrics.last_log_index, 4,
"expected old leader to have last log index of 4, got {}",
metrics.last_log_index
);
assert_eq!(
metrics.last_applied, 4,
"expected old leader to have last applied of 4, got {}",
metrics.last_applied
);
assert_eq!(
cfg.members,
hashset![0, 1, 2, 3],
"expected old leader to have membership of [0, 1, 2, 3], got {:?}",
cfg.members
);
}
{
info!("--- Old leader stepping down");
let _ = router.remove_voter(original_leader, original_leader).await;
}
sleep_for_a_sec().await;
{
info!("--- Asserting cluster state after the old leader stepped down");
let metrics = router
.latest_metrics()
.await
.into_iter()
.find(|m| m.state == State::Leader)
.expect("expected the cluster to have a new leader");
let cfg = metrics.membership_config;
assert_eq!(
metrics.current_term, 2,
"expected the new leader to be in term 2, got {}",
metrics.current_term
);
// 10 because
// we carried over 4 from before
// 5 - node removal
// 6 - the new leader starts its term with a new entry
assert_eq!(
metrics.last_log_index, 6,
"expected the new leader to have last log index of 6, got {}",
metrics.last_log_index
);
assert_eq!(
metrics.last_applied, 6,
"expected the new leader to have last applied of 6, got {}",
metrics.last_applied
);
assert_eq!(
cfg.members,
hashset![1, 2, 3],
"expected new cluster to have membership of [1, 2, 3], got {:?}",
cfg.members
);
}
{
info!("--- Asserting that the stepped down leader no longer gets updates");
let new_leader_metrics = router
.latest_metrics()
.await
.into_iter()
.find(|m| m.state == State::Leader)
.expect("expected the cluster to have a new leader");
let old_leader_metrics = router
.latest_metrics()
.await
.into_iter()
.find(|m| m.id == original_leader)
.expect("expected the cluster to have a new leader");
assert!(
old_leader_metrics.current_term < new_leader_metrics.current_term,
"expected the old leader to have term less than that of the new leader"
);
assert!(
old_leader_metrics.last_log_index < new_leader_metrics.last_log_index,
"expected the old leader to have last log index less than that of the new leader"
);
}
Ok(())
}
| rust |
GUWAHATI, Jan 31: All India Council for Technical Education (AICTE) chairman Prof. Anil D Sahasrabudhe urged the aspiring engineers and technocrats to dream for becoming employers than job seekers. Addressing students and teachers at a ceremony at the Girijanda Chowdhury Institute of Magement and Technology (GIMT) and Girijanda Chowdhury Institute of Pharmaceutical Science (GIPS) in the city on Tuesday, he appealed the budding talents and college authorities to turn the technical institutions into invention hubs. “If you look at America, all the companies have come from some university. In India also need to start a similar culture and our start-ups should compete with the likes of Microsoft and Google. We need to challenge the quality of education across the globe,” Sahasrabudhe said.
He said that it is the responsibility of the AICTE and the college authorities to ensure that 100 percent engineering students get employed after completion of the courses.
“The negative perception of the industry sector has on the quality of education in engineering has to be changed. Instead of seeking jobs in some company or other you can create jobs from the college itself,” Sahasrabudhe said emphasizing on starting entrepreneurship from the college campuses itself. | english |
Friday June 24, 2022,
, the world’s largest crypto exchange by trading volume, on Thursday announced a multi-year NFT (non-fungible token) partnership with football legend Cristiano Ronaldo.
With this partnership, the firm plans to launch a global marketing campaign to promote Web3 and provide football fans with a compelling entry point into the NFT market.
The football legend took to Twitter to announce the partnership, and the video garnered millions of views in a few hours, with several individuals rooting for the partnership.
Ronaldo said his relationship with fans is "very important to me, so the idea of bringing unprecedented experiences and access through this NFT platform is something that I wanted to be a part of". “I know fans are going to enjoy the collection as much as I do. "
Meanwhile, earlier this week crypto exchanges, including, withdrew sports deals due to the current economic downturn, and global crypto firms, including Coinbase, Gemini, Robinhood, BlockFi, BitMex, and Crypto. com, announced that they were downsizing their workforce.
In the last two years, crypto firms have invested in several sports deals. Billions of dollars were spent on marketing strategies. Crypto. com has been one of the biggest investors in sports deals. Besides partnering with football players, crypto exchanges such as Bybit, FTX, and Tezos have also collaborated with Formula1 teams. | english |
from flask import (
jsonify,
request,
current_app
)
from functools import wraps
def login_required(func):
@wraps(func)
def decorator(*args, **kwargs):
auth_header = request.headers.get('Authorization')
error_message = current_app.login_manager.login_message
if auth_header:
try:
# Expected format (Bearer TOKEN)
token = auth_header.split(" ")[1]
except IndexError:
return jsonify(
dict(
status=401,
message=error_message
)
), 401
valid, user_id = current_app.login_manager.decode_token(token)
if valid:
user = current_app.login_manager._user_callback(user_id)
return func(*args, **kwargs, current_user=user)
else:
# Note: if not valid, user_id holds an error message
error_message = user_id
return jsonify(
dict(
status=401,
message=error_message
)
), 401
return decorator
| python |
{
"order":{
"preview_14.html":"Preview 14",
"preview_13.html":"Preview 13",
"preview_12.html":"Preview 12",
"preview_11.html":"Preview 11",
"preview_10.html":"Preview 10",
"preview_9.html":"Preview 9",
"preview_8.html":"Preview 8",
"preview_7.html":"Preview 7",
"preview_6.html":"Preview 6",
"preview_5.html":"Preview 5",
"preview_4.html":"Preview 4",
"preview_3.html":"Preview 3",
"preview_2.html":"Preview 2",
"preview_1.html":"Preview 1"
}
}
| json |
<filename>arduino/portable/sketchbook/libraries/IRremoteESP8266/docs/doxygen/html/search/variables_8.js
var searchData=
[
['irparams_4396',['irparams',['../IRrecv_8cpp.html#a5620be27a7445f25d43dbe3432ed6fd1',1,'IRrecv.cpp']]],
['irparams_5fsave_4397',['irparams_save',['../classIRrecv.html#a6fdac84ce51ce119972bf121ccc95aab',1,'IRrecv::irparams_save()'],['../IRrecv_8cpp.html#a96e84ae171529ee954c53e2e938dd998',1,'irparams_save(): IRrecv.cpp']]],
['irpin_4398',['IRpin',['../classIRsend.html#ae4a6ea1e72f4861167002d6e7bf17b7c',1,'IRsend']]],
['irremote_5fmux_4399',['irremote_mux',['../IRrecv_8cpp.html#ad2612f65707186ef7df0179d3636b4ea',1,'IRrecv.cpp']]]
];
| javascript |
{
"name": "stylelint-config-flashfix",
"description": "Shareable flashfix styleguide config for stylelint",
"author": "flashfix GmbH <<EMAIL>>",
"license": "MIT",
"readmeFilename": "README.md",
"repository": "flashfixapp/styleguide",
"bugs": "https://github.com/flashfixapp/styleguide/issues",
"version": "1.0.0",
"keywords": [
"linter",
"config",
"stylelint"
],
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"reinstall": "rm -rf node_modules package-lock.json && npm install",
"test": "node ../../../test ./test css",
"prepublishOnly": "npm test"
},
"devDependencies": {
"eslint": "^8.9.0",
"eslint-config-flashfix-base": "^1.0.0",
"stylelint": "^14.5.3"
},
"dependencies": {
"stylelint-config-standard": "^25.0.0",
"stylelint-config-standard-scss": "^3.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.1.0"
},
"peerDependencies": {
"stylelint": "^14.0.0"
}
}
| json |
# Nano vote visualizer
Forked from https://github.com/numsu/nano-vote-visualizer and use another node (NanoTicker) to collect stats from, as redundancy.
* Hosted at: [votes.nanos.cc](https://votes.nanos.cc) for the live net
* Hosted at: [votes.nanos.cc/beta](https://votes.nanos.cc/beta) for the beta net
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.0.
## Development server
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Build
Run `npm run build:live` to build the project source to use the live network configuration.
Run `npm run build:beta` to build the project source to use the beta network configuration.
Change the environment.*.ts files if you want to host the service with your own node.
## Docker
### Building
Run `docker build -t nano-vote-visualizer:latest .` to build a runnable container for the live network.
Run `docker build -t nano-vote-visualizer:latest --build-arg ENVIRONMENT=beta .` to build a runnable container for the beta network.
### Running
Run `docker run -d --rm -p 8080:80 nano-vote-visualizer:latest` to spin up the container to http://localhost:8080.
## Contributing
Please be welcomed to open issues and contribute to the project with pull requests. If you require assistance, you can contact me on Discord.
## Donations
Donations are welcome, you can sent Nano to:
`nano_1iic4ggaxy3eyg89xmswhj1r5j9uj66beka8qjcte11bs6uc3wdwr7i9hepm` | markdown |
{
"project": {
"title": "Here is a list of my Github projects",
"no.readme": "No README file is present in the selected project, but you can still see the content of the project by clicking ",
"no.readme.link": "here",
"notice": "The list of projects is currently outdated, please see my activity on ",
"section": {
"mobile": "Mobile",
"games": "Games",
"other": "Other"
}
},
"home": {
"ui": "UI Passionate",
"forensics": "Digital Forensics Enthusiast",
"dev": "Mobile/Web Developer",
"student": "4th Year Software Engineering Student"
},
"resume": "click here to view as a PDF",
"navigation": {
"pages": {
"home": "Home",
"projects": "Projects",
"resume": "Resumé"
}
},
"about": {
"languages": "French, English",
"education": "University of Ottawa",
"title": "Hi there!",
"location": "Ottawa, ON",
"email": "<EMAIL>",
"description": "Want to know more about me? The icon near my face allows you to access my social networks. To see my resume or my detailed projects, select the category in the navigation bar below. Feel free to contact me!"
}
}
| json |
<reponame>853Lab/CSGO_Gamestate_Live2dViewerEX_demo<gh_stars>1-10
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sonic853 = void 0;
const lvex_1 = require("./lvex");
const method_1 = require("./method");
/** 自己的class */
class Sonic853 {
lvex;
#boobs = false;
#boobs_list = new method_1.RList();
get Boobs() {
return this.#boobs;
}
set Boobs(val) {
if (this.#boobs !== val) {
this.#boobs = val;
this.#boobs_list.Push().then(e => {
this.lvex.SetMotion(this.#boobs ? 'motions/ShowBoobs1.motion3.json' : 'motions/ShowBoobs0.motion3.json');
});
}
}
#glasses = true;
#glasses_list = new method_1.RList();
get Glasses() {
return this.#glasses;
}
set Glasses(val) {
if (this.#glasses !== val) {
this.#glasses = val;
this.#glasses_list.Push().then(e => {
this.lvex.SetMotion(this.#glasses ? 'motions/ShowGlasses1.motion3.json' : 'motions/ShowGlasses0.motion3.json');
});
}
}
#expressions = 'idle';
get Exp() {
return this.#expressions;
}
set Exp(val) {
if (this.#expressions !== val) {
this.#expressions = val;
let exp = 0;
switch (this.#expressions) {
case 'idle':
exp = 0;
break;
case 'eyes1':
exp = 1;
break;
case 'eyes2':
exp = 2;
break;
case 'eyes3':
exp = 3;
break;
case 'eyes4':
exp = 4;
break;
case 'eyes5':
exp = 5;
break;
case 'eyesX':
exp = 6;
break;
case 'eyesBaka':
exp = 7;
break;
case 'mouth1':
exp = 8;
break;
case 'mouth2':
exp = 9;
break;
case 'mouth3':
exp = 10;
break;
case 'mouth4':
exp = 11;
break;
case 'Baka':
exp = 12;
break;
case 'Scary':
exp = 13;
break;
case 'XXX':
exp = 14;
break;
case 'Ehehe':
exp = 15;
break;
default:
break;
}
this.lvex.SetExpId(exp);
}
}
#red_face = false;
#red_face_list = new method_1.RList();
get RedFace() {
return this.#red_face;
}
set RedFace(val) {
if (this.#red_face !== val) {
this.#red_face = val;
this.#red_face_list.Push().then(e => {
this.lvex.SetMotion(this.#red_face ? 'motions/ShowRedFace1.motion3.json' : 'motions/ShowRedFace0.motion3.json');
});
}
}
#sweats = false;
#sweats_list = new method_1.RList();
get Sweats() {
return this.#sweats;
}
set Sweats(val) {
if (this.#sweats !== val) {
this.#sweats = val;
this.#sweats_list.Push().then(e => {
this.lvex.SetMotion(this.#sweats ? 'motions/ShowSweats1.motion3.json' : 'motions/ShowSweats0.motion3.json');
});
}
}
#lines = false;
#lines_list = new method_1.RList();
get Lines() {
return this.#lines;
}
set Lines(val) {
if (this.#lines !== val) {
this.#lines = val;
this.#lines_list.Push().then(e => {
this.lvex.SetMotion(this.#lines ? 'motions/ShowLines1.motion3.json' : 'motions/ShowLines0.motion3.json');
});
}
}
#drop = false;
#drop_list = new method_1.RList();
get Drop() {
return this.#drop;
}
set Drop(val) {
if (this.#drop !== val) {
this.#drop = val;
this.#drop_list.Push().then(e => {
this.lvex.SetMotion(this.#drop ? 'motions/ShowDrop1.motion3.json' : 'motions/ShowDrop0.motion3.json');
});
}
}
#dark_eye = false;
#dark_eye_list = new method_1.RList();
get DarkEye() {
return this.#dark_eye;
}
set DarkEye(val) {
if (this.#dark_eye !== val) {
this.#dark_eye = val;
this.#dark_eye_list.Push().then(e => {
this.lvex.SetMotion(this.#dark_eye ? 'motions/ShowDarkEye1.motion3.json' : 'motions/ShowDarkEye0.motion3.json');
});
}
}
constructor(id, lvex) {
this.lvex = lvex ?? new lvex_1.LVEX();
if (typeof id === 'number')
this.lvex.modelId = id;
this.lvex.Start();
this.#boobs_list.time = this.#dark_eye_list.time = this.#drop_list.time = this.#glasses_list.time = this.#lines_list.time = this.#red_face_list.time = this.#sweats_list.time = 330;
}
}
exports.Sonic853 = Sonic853;
// nomal: idle
// 优先级:1
// 被烧、混烟、被闪
// 优先级:2
// death: eyes1
// hp20: eyes3
// hp50: eyes2
// 优先级:3 (做不了)
// 1 v 1-0: Scary
// 5 v 1-0: eyesBaka
// 5 v 3-2 : eyes5
// 2 v 5: normal
// 1 v >5: eyes3 + ShowRedFace1 + Sweats
// 1 v 4-2: idle + Sweats
// 优先级:4
// 0 - 10 : Lines + Sweats
// 10 - 0 : Baka
| javascript |
Khaidi No 150 collects 100 crores share!
Chiranjeevi, Suriya to lend their voice for 'Ghazi'
Lenovo Yoga Book: Usher in new era of productivity (Tech Review)
Ram Gopal Varma now targets Mahesh Babu!
Date fixed for Khaidi No 150 Success meet?
Bichagadu strikes again with new movie teaser!
Double Bonanza from Ravi Teja tomorrow!
Battle of the blockbusters: 'Kaabil' versus 'Raees' | english |
In 2019, I was fortunate to interview Gary Vaynerchuk in Las Vegas and Armenia after he performed keynotes at a smorgasbord of tech conferences. I nodded in all the right places as he talked about a future dominated by tech that would pave the way for virtual conferences, concerts, and remote working.
On the subject of podcasts, Vaynerchuk told me, “Joe Rogan is going to eventually sign a $100 million-plus deal to go exclusive on a platform because of the level of attention he has.” We all know what happened next. The world is now a very different place since we last spoke, and I find myself looking back and joining up the dots from our previous conversations.
Although he has an impressive track record of spotting the next big thing before most businesses, he continues to divide opinion. His brutal serving of the truth and New Jersey attitude is considered a little too loud and brash for some of his critics. Vaynerchuk’s rags to riches tale of transforming a humble liquor store into a wine empire and an ambition to buy the New York Jets is a back story that has been shared so often that his followers know it off by heart.
Nevertheless, having met him twice, I noticed a very different side of him that is seldom shared. Behind the tough exterior is a man who believes in patience, kindness, humility, gratitude, and helping others. Much of his charity work is deliberately performed outside of the public eye. But I caught up with him again after his 12 hours TikTok live streaming telethon for the All In Challenge.
Thankfully, he practices what he preaches when it comes to self-awareness. His boisterous and excitable communication style puts him in the love it or hate it category, and nobody knows this more than Vaynerchuk himself. In a digital world where there are thousands of video clips of him swearing in front of large audiences, he admitted that he fully understands why some people may have a misperception of what, who, and what he stands for.
I know how I navigate the world, and it’s just so obvious to me that kindness breeds kindness. Good breeds good. We need to be louder about positivity. And I’m very focused on that.
As a man who proudly wears his heart on his sleeve, the 12-hour TikTok telethon was much more than chatting with celebrities such as Howie Mandel, will.i.am, and Paris Hilton to raise $2.3 million. It was one of the rare moments when his online followers got a glimpse of his altruistic side, which is usually kept private for all the right reasons.
If you dare to look beyond the bravado, Gary Vaynerchuk has always spoken about the importance of humility, gratitude, and kindness. He chose to inspire rather than demonize the young and famously said, “Nice guys might be losing at halftime, but they win the game.” Despite being guilty of over-communicating to make sure he’s not being misunderstood, ironically, many still have the wrong perception.
The global pandemic delivered a gut punch in terms of a massive financial hit with all of his speaking gigs now canceled. But as he attempts to steer his companies in the right direction, he notes that it’s actually about him. “If we build as humans, we keep getting better and stronger together.” These are just a few reasons why he is so focused on helping others right now.
Whatever your opinion or indeed perception of Gary Vaynerchuk, it’s clear to me at least that there is much more to him than the entrepreneurial hustle label that is often attached to his name. As we enter a period of uncertainty with a recession waiting on our immediate horizon, we need hope, optimism, kindness, empathy, and a selfless desire to help each other more than ever. Maybe that’s a message of Vaynerchuk’s that we can all agree on.
Get the most important tech news in your inbox each week.
| english |
RBI decides to discontinue I-CRR in a phased manner. 25% of I-CRR maintained by September 9, another 25% by September 23. Rest 50% of I-CRR maintained to be discontinued October 7.
Log In/Connect with:
Find this comment offensive?
Reason for reporting:
Your Reason has been Reported to the admin.
| english |
Team Gulf First won the seventh edition of the JK Tyre Orange 4x4 Fury competition, billed as one of India's toughest and most exciting off-road competitions.
While Team Gulf from Kerala registered their first win, defending champion MOCA from Arunachal stood second followed by NIOC from Delhi-NCR. Presenting the awards to the winning teams, Arunachal Pradesh Chief Minister Pema Khandu said on Friday, "Orange Festival is an opportunity to showcase and promote eco-tourism activities which will ultimately help develop infrastructure of the region. On behalf of the state, I thank JK Tyre for promoting the rich heritage of not only Dambuk but of Arunachal Pradesh."
The two-day event was flagged off on March 3 by state tourism director Abu Tayeng along with Dambuk MLA Gum Tayeng, and concluded on Friday. Held in the backdrop of the famous 'Orange Festival of Adventure & Music' at Dambuk in Lower Dibang Valley district of Arunachal Pradesh, the two-day competition had 12 teams participating from various parts like Kerala, Telangana, Karnataka, Chandigarh, Delhi in Open category, comprising of extreme specified vehicles. Aparna Umesh from Kerala became the first woman participant to participate in the rally.
The 4x4 Fury had the teams negotiate through natural and gruelling obstacles like swamps, steep riverbanks, boulder-filled riverbeds and tracks through rainforests. Such was the route that on the first day itself, almost 80 per cent of the cars broke down as they all struggled to beat the boulders and rocks making it even more challenging. Intermittent rains and tracks along dry river beds added to the excitement in the proceedings.
Out of 24 cars participating only six could reach the finish line. Speaking of her experience Aparna said, "off-roading has always been perceived to be male dominated. This is a dream come true for me but it is yet to sink in. We were facing some mechanical issues due to which I couldn't participate in stage 2 and 3. I will be back again."
| english |
The Nike Air Max Plus has received several incredible and eye-catching alterations from the Swoosh label this year. The Air Max Plus, often overlooked in the past, is now basking in the limelight as it commemorates its 25th anniversary. More recently, Nike just dropped a fresh new colorway for the Air Max Plus, called "Rainbow." This release comes after the introduction of a series of other versions, including the much anticipated "Anniversary" edition.
As sneaker enthusiasts eagerly wait for the release of the OG "Hyper Blue" iteration of the Nike Air Max Plus, Sean McDowell's timeless 1998 design continues to push boundaries in terms of color combinations. The newest release introduces a gradient design on the sneaker's mesh upper, reminiscent of a vibrant rainbow. This sneaker seamlessly combines vibrant hues that exude a fascinating Caribbean vibe.
As per the latest updates from reputable sources like Sneaker News, the highly anticipated Nike Air Max Plus "Rainbow" variant is set to grace the sneaker market in the upcoming weeks of 2023. However, the shoe company has not yet made any official announcements with respect to the release date of these kicks.
The upcoming iteration will be available for purchase on the official Nike website, at brick-and-mortar Nike retail stores, through the SNKRS app, and also via various other retail vendors. For enthusiasts looking to add these sneakers to their collections, they will be able to bring these shoes home for a price of $175 per pair.
The latest version of the Nike Air Max Plus showcases a visually appealing design that effectively replicates a "Rainbow" aesthetic. The gradient design starts with a blend of warm red hues at the front of the shoe, smoothly transitioning into lively oranges in the middle section.
Finally, the color reaches a deep green shade around the heel counter. The underfoot of McDowell's innovative sole unit also embraces a simplistic color palette. The sneaker features a mesh base that perfectly complements the plastic TPU cage, mudguards, leather tongue tabs, and heel overlays.
This Nike Air Max Plus model also includes air bubbles in a dark hue at the front and a deep blue finish with citrus accents on the back. The running shoe includes a pristine white Swoosh logo that beautifully pairs with the sleek midsole and black shank plate.
The midsole of these shoes appears in a pristine white color, while the outsoles, which draw inspiration from Nike Running's legacy, sport a sleek black design. The iconic "Tn Air" badges take center stage on the tread, showcasing their conventional appearance. On the other hand, vibrant orange, green, and yellow elements bring life to the components beneath the Tuned Air bag.
The groundbreaking innovation of Air Max technology has facilitated the Swoosh Label to successfully market its renowned Air Max footwear line. Nike therefore honors its cutting-edge technology in the following words:
The Nike Air Max Plus "Rainbow" sneakers, which will be sold later this year, should be added to your watchlist. Sneaker enthusiasts who are interested in receiving timely updates on the release of the aforementioned iteration may simply sign up for the same on Swoosh's official website or download the SNKRS app.
| english |
{
"slug": "filecoin",
"title": "Filecoin",
"parent_slug": null,
"path": "filecoin",
"repoCount": 201,
"userCount": 180,
"popularity": 11989743
} | json |
<reponame>gustavopinto/entente
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
/*
* This was causing the parser to assert at one point. Now it's not. Yay!
*/
function f(a,[x,y],b,[w,z],c) { function b() { } }
reportCompare(0, 0, "don't crash");
| javascript |
import { useTranslation } from "react-i18next";
import "./ProfileHeaderBio.css";
export const ProfileHeaderBio = (props) => {
const { t } = useTranslation()
return (
<div className={"profile__header__bio"}>
{props.user === null || props.user.Bio === "" ? (
<div className={"profile__header__bioUnfilledSpan"}>
<span onClick={props.toggleClickState}>{t("authorized.profile.header.bio.header.state-1-span")}</span>
</div>
) : (
<>
<div className={"profile__header__bioFilledSpan"}>
<span>{props.user.Bio}</span>
</div>
<div className={"profile__header__bioUnfilledSpan"}>
<span onClick={props.toggleClickState}>{t("authorized.profile.header.bio.header.state-2-span")}</span>
</div>
</>
)}
</div>
);
};
| javascript |
# Generated by Django 2.2.2 on 2019-07-03 13:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('radio', '0004_new_song_path_structure'),
]
operations = [
migrations.AddField(
model_name='store',
name='track_gain',
field=models.DecimalField(blank=True, decimal_places=2, max_digits=6, null=True, verbose_name='recommended replaygain adjustment'),
),
migrations.AddField(
model_name='store',
name='track_peak',
field=models.DecimalField(blank=True, decimal_places=6, max_digits=10, null=True, verbose_name='highest volume level in the track'),
),
]
| python |
<gh_stars>10-100
package it.unimi.di.law.bubing.util;
/*
* Copyright (C) 2012-2017 <NAME>, <NAME>, and <NAME>
*
* 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.
*/
import it.unimi.dsi.bits.LongArrayBitVector;
import it.unimi.dsi.fastutil.Size64;
import it.unimi.dsi.fastutil.longs.LongHeapSemiIndirectPriorityQueue;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import it.unimi.dsi.fastutil.objects.ObjectIterator;
import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
import it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.io.Serializable;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel.MapMode;
import java.util.NoSuchElementException;
//RELEASE-STATUS: DIST
/** A set of memory-mapped queues of byte arrays.
*
* <p>An instance of this class handles a database of FIFO queues. Each queue is associated with a key (which is looked up by {@linkplain Reference2ObjectMap reference},
* for efficiency). Users can {@linkplain #enqueue(Object, byte[], int, int) enqueue}
* and {@linkplain #dequeue(Object) dequeue} elements associated with a key in FIFO order. It is also possible
* to {@linkplain #remove(Object) remove all} elements associated with a key.
*
* <p>The {@linkplain #ratio() ratio} between the used and allocated space can be checked periodically,
* and the method {@link #collect(double)} can be used to compact elements until a target ratio
* is reached.
*
* <p>Note that the metadata associated with all queues must fit into memory. The caching of the
* content of the log files is performed at the operating system level by the memory-mapping system,
* however, and does not use the Java heap.
*
* <h2>Internals</h2>
*
* <p>Queues are stored using a set of memory-mapped append-only log files. When garbage collection frees completely
* a file, it is deleted. Each element contains a pointer to the position of the next element.
*
* <p>{@linkplain #collect(double) Garbage collection} is performed without keeping track of the
* free space beforehand. Keys are kept in a queue prioritized by the pointer to the last element
* of the associated FIFO queue that has been read (initially, the first element).
* As we advance each pointer, we discover free space and we compact the structure.
*/
public class ByteArrayDiskQueues implements Closeable, Size64 {
private static final boolean DEBUG = false;
/** By default, we use 64 MiB log files. */
public static final int DEFAULT_LOG2_LOG_FILE_SIZE = 26;
/** Metadata associated with a queue. */
public static final class QueueData implements Serializable {
private static final long serialVersionUID = 1L;
/** The pointer to the head of the list (the least recently enqueued, but not dequeued, element). */
public long head;
/** The pointer to the tail of the list (the most recently enqueued element). */
public long tail;
/** The number of elements in the list (always nonzero). */
public long count;
/** The number of bytes used by the list. */
public long usage;
}
/** The base 2 logarithm of the byte size of a log file. */
protected final int log2LogFileSize;
/** The byte size of a log file. */
protected final int logFileSize;
/** The mask to extract the position inside a log file from a pointer. A pointer is formed by a position in the lowest
* {@link #log2LogFileSize} bits and a log-file index in the remainig upper bits. */
protected final int logFilePositionMask;
/** For each key, the associated {@link QueueData}. If a key is present, there is at least one associated element in the queue. */
public final Reference2ObjectOpenHashMap<Object,QueueData> key2QueueData;
/** For each log-file index, the associated {@link RandomAccessFile}. An entry might be {@code null} if the log file has been deleted or it has not been opened yet. */
public final ObjectArrayList<RandomAccessFile> files;
/** For each log-file index, the associated {@link ByteBuffer}. An entry might be {@code null} if the log file has been deleted or it has not been opened yet. */
public final ObjectArrayList<ByteBuffer> buffers;
/** The overall number of elements in the queues. */
public long size;
/** The overall number of bytes used by elements in the queues. */
public long used;
/** The overall number of bytes allocated (a multiple of {@link #logFileSize}). */
public long allocated;
/** The current pointer at which new elements can be appended. */
public long appendPointer;
/** The index of the {@linkplain #currBuffer current buffer}. */
private int currBufferIndex;
/** The current buffer. */
private ByteBuffer currBuffer;
/** The directory there the log files must be created. */
private File dir;
/** Creates a set of byte-array disk queues in the given directory using
* log files of size 2<sup>{@value #DEFAULT_LOG2_LOG_FILE_SIZE}</sup>.
*
* @param dir a directory.
*/
public ByteArrayDiskQueues(final File dir) {
this(dir, DEFAULT_LOG2_LOG_FILE_SIZE);
}
/** Creates a set of byte-array disk queues in the given directory using the specified
* file size.
*
* @param dir a directory.
* @param log2LogFileSize the base-2 logarithm of the size of a log file.
*/
public ByteArrayDiskQueues(final File dir, final int log2LogFileSize) {
this.dir = dir;
this.log2LogFileSize =log2LogFileSize;
logFileSize = 1 << log2LogFileSize;
logFilePositionMask = (1 << log2LogFileSize) - 1;
key2QueueData = new Reference2ObjectOpenHashMap<>();
files = new ObjectArrayList<>();
buffers = new ObjectArrayList<>();
}
/** Returns the name of a log file, given its index.
*
* @param logFileIndex the index of a log file.
* @return its name ({@code logFileIndex} in hexadecimal zero-padded to eight digits).
*/
private File file(final int logFileIndex) {
final String t = "00000000" + Integer.toHexString(logFileIndex);
return new File(dir, t.substring(t.length() - 8));
}
/** Returns the index of the buffer associated with a pointer.
*
* @param pointer a pointer.
* @return the index of the buffer associated with {@code pointer}.
*/
private int bufferIndex(final long pointer) {
return (int)(pointer >>> log2LogFileSize);
}
/** Returns the buffer position associated with a pointer.
*
* @param pointer a pointer.
* @return the buffer position associated with {@code pointer}.
*/
private int bufferPosition(final long pointer) {
return (int)(pointer & logFilePositionMask);
}
/** Enqueues an element (specified as a byte array) associated with a given key.
*
* <p>The element is a sequence of bytes specified as an array fragment.
*
* @param key a key.
* @param array a byte array.
*/
public void enqueue(final Object key, byte[] array) throws FileNotFoundException, IOException {
enqueue(key, array, 0, array.length);
}
/** Enqueues an element (specified as a byte-array fragment) associated with a given key.
*
* @param key a key.
* @param array a byte array.
* @param offset the first valid byte in {@code array}.
* @param length the number of valid elements in {@code array}.
*/
public void enqueue(final Object key, byte[] array, final int offset, final int length) throws FileNotFoundException, IOException {
QueueData queueData = key2QueueData.get(key);
if (queueData == null) {
queueData = new QueueData();
queueData.head = appendPointer;
synchronized (key2QueueData) {
key2QueueData.put(key, queueData);
}
}
else {
pointer(queueData.tail);
writeLong(appendPointer);
}
queueData.count++;
queueData.tail = appendPointer;
final long start = appendPointer;
pointer(appendPointer);
writeLong(0);
encodeInt(length);
write(array, offset, length);
appendPointer = pointer();
final long bytes = appendPointer - start;
used += bytes;
queueData.usage += bytes;
assert used >= 0 : used;
size++;
}
/** Dequeues the first element available for a given key.
*
* @param key a key.
* @return the first element associated with {@code key}.
*/
public byte[] dequeue(final Object key) throws IOException {
final QueueData queueData = key2QueueData.get(key);
if (queueData == null) throw new NoSuchElementException();
final long head = queueData.head;
pointer(queueData.head);
queueData.count--;
queueData.head = readLong();
final int length = decodeInt();
final byte[] result = new byte[length];
read(result, 0, length);
final long bytes = pointer() - head;
used -= bytes;
queueData.usage -= bytes; // If we are dequeuing the last element, this is done on a throw-away QueueData
if (queueData.count == 0) remove(key);
size--;
assert used >= 0 : used;
return result;
}
/** Remove all elements associated with a given key.
*
* <p>Note that this is a constant-time operation that simply deletes the metadata
* associated with the specified key.
*
* @param key a key.
*/
public void remove(final Object key) {
final QueueData queueData;
synchronized(key2QueueData) {
queueData = key2QueueData.remove(key);
}
if (queueData == null) return;
size -= queueData.count;
used -= queueData.usage;
}
/** Returns the number of elements associated with the given key.
*
* <p>This method can be called by multiple threads.
*
* @param key a key.
* @return the number of elements currently associated with {@code key}.
*/
public long count(final Object key) {
final QueueData queueData;
synchronized(key2QueueData) {
queueData = key2QueueData.get(key);
}
return queueData == null ? 0 : queueData.count;
}
/** Returns the number of keys.
*
* @return the number of keys.
*/
public int numKeys() {
return key2QueueData.size();
}
/** Reads a byte at the current pointer.
*
* @return the byte at the current pointer.
*/
protected int read() throws IOException {
if (! currBuffer.hasRemaining()) nextBuffer(); // Note that this can create a new log file.
return currBuffer.get() & 0xFF;
}
/** Reads a long at the current pointer.
*
* @return the long at the current pointer.
*/
protected long readLong() throws IOException {
long l = 0;
for(int i = 0; i < 8; i++) {
l <<= 8;
l |= read();
}
return l;
}
/** Reads a specified number of bytes at the current pointer.
*
* @param b the buffer into which the data will be read.
* @param offset the start offset in array <code>b</code> at which the data will be written.
* @param length the number of bytes to read.
*/
protected void read(final byte[] b, final int offset, final int length) throws IOException {
if (length == 0) return;
int read = 0;
while(read < length) {
int remaining = currBuffer.remaining();
if (remaining == 0) {
nextBuffer();
remaining = logFileSize;
}
currBuffer.get(b, offset + read, Math.min(length - read, remaining));
read += Math.min(length - read, remaining);
}
}
/** Writes a byte at the current pointer.
*
* @param b the byte to be written.
*/
protected void write(final byte b) throws IOException {
if (! currBuffer.hasRemaining()) nextBuffer();
currBuffer.put(b);
}
/** Writes a long at the current pointer.
*
* @param l the long to be written.
*/
protected void writeLong(final long l) throws IOException {
for(int i = 8; i-- != 0;) write((byte)(l >>> (i * 8)));
}
/** Writes a specified number of bytes at the current pointer.
*
* @param b the data.
* @param offset the start offset in {@code b}.
* @param length the number of bytes to write.
*/
protected void write(final byte[] b, final int offset, final int length) throws IOException {
if (length == 0) return;
int written = 0;
while(written < length) {
int remaining = currBuffer.remaining();
if (remaining == 0) {
nextBuffer();
remaining = logFileSize;
}
currBuffer.put(b, offset + written, Math.min(length - written, remaining));
written += Math.min(length - written, remaining);
}
}
/** Returns the current pointer.
*
* @return the current pointer.
*/
public long pointer() {
return ((long)currBufferIndex << log2LogFileSize) + currBuffer.position();
}
/** Sets the current pointer. The associated log file is opened if necessary. */
public void pointer(final long pointer) throws FileNotFoundException, IOException {
currBufferIndex = bufferIndex(pointer);
assert currBufferIndex <= buffers.size();
if (currBufferIndex == buffers.size() || (currBuffer = buffers.get(currBufferIndex)) == null) {
if (currBufferIndex == buffers.size()) {
files.size(currBufferIndex + 1);
buffers.size(currBufferIndex + 1);
}
// We open the buffer associated with currBufferIndex.
final File file = file(currBufferIndex);
if (! file.exists()) allocated += logFileSize;
final RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw");
files.set(currBufferIndex, randomAccessFile);
buffers.set(currBufferIndex, currBuffer = randomAccessFile.getChannel().map(MapMode.READ_WRITE, 0, logFileSize));
}
currBuffer.position(bufferPosition(pointer));
}
/** Creates a new buffer, or opens an old one, at the current pointer, which must be a multiple of {@link #logFileSize}. */
private void nextBuffer() throws FileNotFoundException, IOException {
assert (pointer() & logFilePositionMask) == 0;
pointer(pointer());
}
public double ratio() {
if (size == 0) return 1;
if (DEBUG) System.err.println("Returning ratio " + (double)used / (allocated - ((logFileSize - bufferPosition(appendPointer)) & logFilePositionMask)) + "; used=" + used + ", allocated=" + allocated);
return (double)used / (allocated - ((logFileSize - bufferPosition(appendPointer)) & logFilePositionMask));
}
/** Computes the ratio between {@linkplain #used} space and {@linkplain #allocated}
* space minus the gain plus one times {@link #logFileSize}.
*
* @param gain the number of buffers gained.
* @return the ratio between {@linkplain #used used} space and {@linkplain #allocated}
* space minus {@code gain} plus one times {@link #logFileSize}.
*/
private double gainedRatio(long gain) {
if (size == 0) return 1;
return (double)used / (allocated - ((logFileSize - bufferPosition(appendPointer)) & logFilePositionMask) - (gain << log2LogFileSize));
}
/** Performs garbage collection until {@link #ratio()} is greater than the specified target ratio.
*
* @param targetRatio a {@link #ratio()} to reach.
*/
public void collect(final double targetRatio) throws IOException {
final int n = key2QueueData.size();
if (DEBUG) System.err.println("Collection required, ratio=" + ratio());
if (n == 0 || ratio() >= targetRatio) return;
if (DEBUG) System.err.println("Starting collection: used=" + used + ", allocated=" + allocated + ", ratio=" + ratio() + ", target ratio=" + targetRatio);
final Object[] key = new Object[n];
final long[] currentPointer = new long[n];
final long[] previousPointer = new long[n];
final int[] array = new int[n];
// Dump the metadata map into an array of keys and a parallel key of head pointers.
ObjectIterator<Reference2ObjectMap.Entry<Object, QueueData>> fastIterator = key2QueueData.reference2ObjectEntrySet().fastIterator();
for(int i = n; i-- != 0;) {
Reference2ObjectMap.Entry<Object, QueueData> e = fastIterator.next();
key[i] = e.getKey();
previousPointer[i] = currentPointer[i] = e.getValue().head;
array[i] = i;
}
// This queue holds the current pointer for each FIFO queue.
final LongHeapSemiIndirectPriorityQueue queue = new LongHeapSemiIndirectPriorityQueue(currentPointer, array);
// Remembers which log file will be deleted at the end.
final LongArrayBitVector deleted = LongArrayBitVector.ofLength(buffers.size());
long collectPointer = currentPointer[queue.first()] & ~logFilePositionMask;
// Safely remove previous files
for(int buffer = bufferIndex(collectPointer); buffer-- != 0;) deleteBuffer(buffer);
long gain = 0; // Keeps track of the number of ones in the deleted bit vector.
long moved = 0; // Stats
int top = queue.first();
byte[] t = new byte[1024];
// This is just to avoid calling gainedRatio() too much, as it's really slow.
while((moved & 0x3FF) != 0 || gainedRatio(gain) < targetRatio) {
// Read element
pointer(currentPointer[top]);
moved++;
final long nextPointer = readLong();
final int length = decodeInt();
if (length > t.length) t = new byte[length];
read(t, 0, length);
// for(int p = result.length; p-- != 0;) assert result[p] == (byte)p; // Just for unit tests
assert collectPointer <= currentPointer[top] : Long.toHexString(collectPointer) + " > " + Long.toHexString(currentPointer[top]);
// Write element at collection point
final long movedEntryPointer = collectPointer;
pointer(collectPointer);
writeLong(nextPointer);
encodeInt(length);
write(t, 0, length);
collectPointer = pointer();
// Fix pointers
if (currentPointer[top] == previousPointer[top]) key2QueueData.get(key[top]).head = movedEntryPointer;
else {
pointer(previousPointer[top]);
writeLong(movedEntryPointer);
}
previousPointer[top] = movedEntryPointer;
final long previousCurrentPointerTop = currentPointer[top];
if (nextPointer != 0) {
currentPointer[top] = nextPointer;
assert nextPointer >= collectPointer;
queue.changed();
}
else {
key2QueueData.get(key[top]).tail = movedEntryPointer;
queue.dequeue();
if (queue.isEmpty()) break;
}
top = queue.first();
// Update the information about buffers that will be deleted
for(int i = bufferIndex(previousCurrentPointerTop); i < bufferIndex(currentPointer[top]); i++)
if (file(i).exists() && ! deleted.set(i, true)) gain++;
for(int i = bufferIndex(movedEntryPointer); i <= bufferIndex(collectPointer); i++)
if (deleted.set(i, false)) gain--;
assert gain == deleted.count() : gain + " != " + deleted.count() + " " + deleted;
}
if (queue.isEmpty()) {
// We moved all elements. Move append pointer to the end of the collected elements and delete all following buffers.
appendPointer = collectPointer;
final int usedBuffers = bufferIndex(collectPointer) + 1;
for(int buffer = usedBuffers; buffer < buffers.size(); buffer++) deleteBuffer(buffer);
buffers.size(usedBuffers);
files.size(usedBuffers);
assert ratio() == 1 : ratio() + " != 1";
}
else {
// Delete buffers marked as such.
int d = 0;
for(int buffer = bufferIndex(collectPointer + logFileSize - 1); buffer < bufferIndex(currentPointer[top]); buffer++)
if (deleteBuffer(buffer)) d++;
assert d == gain : deleted + " != " + gain;
assert ratio() >= targetRatio : ratio() + " < " + targetRatio;
}
if (DEBUG) System.err.println("Ending collection: used=" + used + ", allocated=" + allocated + ", ratio=" + ratio() + ", moved " + moved + " elements (" + 100.0 * moved / size64() + "%)");
}
/** Deletes a buffer, it it exists, updating {@link #buffers} and {@link #files}.
*
* <p>Note that existence is checked in the {@link #buffers} array, not on the filesystem.
*
* @param buffer a buffer index.
* @return true if the buffer of given index exists.
*/
private boolean deleteBuffer(final int buffer) throws IOException {
if (buffers.get(buffer) != null) {
buffers.set(buffer, null);
files.get(buffer).close();
files.set(buffer, null);
file(buffer).delete();
allocated -= logFileSize;
return true;
}
else {
assert ! file(buffer).exists();
return false;
}
}
/** Encodes using vByte a nonnegative integer at the current pointer.
* @param value a nonnegative integer.
*/
protected int encodeInt(final int value) throws IOException {
if (value < (1 << 7)) {
write((byte)value);
return 1;
}
if (value < (1 << 14)) {
write((byte)(value >>> 7 | 0x80));
write((byte)(value & 0x7F));
return 2;
}
if (value < (1 << 21)) {
write((byte)(value >>> 14 | 0x80));
write((byte)(value >>> 7 | 0x80));
write((byte)(value & 0x7F));
return 3;
}
if (value < (1 << 28)) {
write((byte)(value >>> 21 | 0x80));
write((byte)(value >>> 14 | 0x80));
write((byte)(value >>> 7 | 0x80));
write((byte)(value & 0x7F));
return 4;
}
write((byte)(value >>> 28 | 0x80));
write((byte)(value >>> 21 | 0x80));
write((byte)(value >>> 14 | 0x80));
write((byte)(value >>> 7 | 0x80));
write((byte)(value & 0x7F));
return 5;
}
/** Decodes using vByte a nonnegative integer at the current pointer.
*
* @return a nonnegative integer decoded using vByte.
*/
protected int decodeInt() throws IOException {
for(int x = 0; ;) {
final int b = read();
x |= b & 0x7F;
if ((b & 0x80) == 0) return x;
x <<= 7;
}
}
/** Returns the overall number of elements in the queues.
* @return the overall number of elements in the queues.
*/
@Override
public long size64() {
return size;
}
@Override
@Deprecated
public int size() {
return (int)Math.min(Integer.MAX_VALUE, size);
}
/** Closes all files. */
@Override
public void close() throws IOException {
for(RandomAccessFile file: files) if (file != null) file.close();
}
}
| java |
pub fn brackets_are_balanced(string: &str) -> bool {
let open = b"[{(";
let close = b"]})";
if string
.bytes()
.filter(|ch| open.contains(ch) || close.contains(ch))
.count()
% 2
!= 0
{
return false;
}
string
.bytes()
.filter(|ch| open.contains(ch) || close.contains(ch))
.fold(Vec::<u8>::with_capacity(16), |mut tally, bracket| {
if let Some((idx, _)) =
close.iter().enumerate().find(|&(_, &i)| i == bracket)
{
if Some(&open[idx as usize]) == tally.last() {
tally.pop();
} else {
tally.push(b'x');
}
} else {
tally.push(bracket);
}
tally
})
.is_empty()
}
| rust |
We all agree that a Christmas party is empty without some libations and a good premium bottle of whisky is an ideal way to lift up the festive vibe along with plum cake.
A sip of whisky is a best way to start in as an beverage in the party full of fun and entertainment.
Here is a list of some amazing alcoholic drinks to try this Christmas:
Inspired by the majestic tigers from the land of royalty, The Royal Crafted Rare Whisky is painstakingly crafted with various bespoke blended malt scotches from different geographical regions. The rare scotch grain is made from 100 percent malted barley, carefully blended with oak-infused Indian Grain Neutral Spirit to harmonize this royal blend. The colour of the whisky is inspired by the royal tigers of Ranthambore. Much like other premium whiskies, one needs to have a sip of the whisky that lingers in their mouth rather than just consuming it. Perfect to celebrate the festive spirit, it is a must try drink to celebrate this Christmas.
First released more than 175 years ago by the founders, the original Glenmorangie 10-year-old was known for its mellow tones and delicacy of flavour. The Original is the expression of our elegant spirit and the backbone of the range. It is distilled twice in the tallest stills in Scotland, creating delicate layers of citrus and floral notes.
The emblematic icon of the House of Hennessy, created by Maurice Hennessy in 1870, Hennessy X. O is the Original. It has remained unchanged since its creation, yet it never ceases to surprise the connoisseur, to whom it reveals more of its multiple facets every time it is tasted. Deep and powerful, the Eaux -de-vie of Hennessy X. O is between 12 to 30 years old.
Inspired by two hundred years of London distilling history, the creation of Sipsmith balances modern technology with traditional recipes and techniques. With the finest quality botanicals sourced from all over the globe, it is crafted with a technique known as ‘one-shot’ distilling and is a perfect balance of 10 unique botanicals that make it smooth enough for a Martini, yet rich and balanced, perfect for a Giamp;T.
Belvedere Vodka presents Belvedere Pure made with high-quality Polska rye, purified water, and a distillation process by fire to indulge in and make the most mundane of days, merry and memorable- be it shaken or stirred. This vodka is prepared with Polska rye, purified water, and a distillation process by fire. It contains zero additives, is certified kosher and is produced in accordance with the legal regulations of Polska vodka that dictate nothing can be added.
The remarkable liquid is matured in a combination of American and European oak casks for 21 years and finished for four months in bourbon barrels seasoned with Glenfiddich’s own Caribbean rum, imbuing the whisky with extra exotic notes. The rum is blended with the Speyside distiller’s secret recipe from several tropical Caribbean islands to awaken distinctive notes of ginger, lime, and banana within the rich smoothness of the patiently mellowed 21-Year-Old.
A limited edition gin by Greater Than, The Broken Bat is an ode to India’s love for cricket in a bottle. Greater Than distillers shaved and cleaned cricket bats made with Kashmir Willow and soaked them in a vat of high-proof Greater Than Gin for six weeks resulting in a classic gin that tastes almost like whisky. The tasting notes of the gin resemble aged leather and freshly toasted wood followed by almost-ripe mangoes and sweet juniper spice, all of which leaves you reminiscing over your favourite Christmas cake. | english |
/*
* Copyright 2015 Avanza Bank AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.avanza.carbon.java.relay.selfmetrics;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import com.avanza.carbon.java.relay.network.PacketHandler;
import com.avanza.carbon.java.relay.network.Worker;
import com.avanza.carbon.java.relay.util.NamedThreadFactory;
/**
* @author <NAME>
*/
public class SelfMonitoring {
private final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("self-monitoring-thread"));
private final PacketHandler packetHandler;
private final List<Worker> workers;
private final static String METRIC_KEY = "carbon.java_relay";
public SelfMonitoring(PacketHandler packetHandler, List<Worker> workers) {
this.packetHandler = Objects.requireNonNull(packetHandler);
this.workers = Objects.requireNonNull(workers);
}
public void start() {
executor.scheduleAtFixedRate(this::sendMetrics, 10, 60, TimeUnit.SECONDS);
}
public void sendMetrics() {
sendMetric(METRIC_KEY + ".discardedPackets", packetHandler.getNumDiscardedPackets());
sendMetric(METRIC_KEY + ".receivedPackets", packetHandler.getNumReceivedPackets());
sendMetric(METRIC_KEY + ".queueSize", packetHandler.getQueueSize());
for (int i = 0; i < workers.size(); i++) {
Worker worker = workers.get(i);
sendMetric(METRIC_KEY + ".worker" + i + ".num_sent", worker.getNumSent());
sendMetric(METRIC_KEY + ".worker" + i + ".broken_lines", worker.getNumBrokenLines());
}
}
private void sendMetric(String key, long value) {
String line = String.format("%s %s %s", key, value, System.currentTimeMillis() / 1000);
packetHandler.handlePacket(line);
}
}
| java |
<reponame>nh13/hap.py
#!/usr/bin/env python
# coding=utf-8
#
# Copyright (c) 2010-2015 Illumina, Inc.
# All rights reserved.
#
# This file is distributed under the simplified BSD license.
# The full text can be found here (and in LICENSE.txt in the root folder of
# this distribution):
#
# https://github.com/Illumina/licenses/blob/master/Simplified-BSD-License.txt
#
# 9/9/2014
#
# Diploid VCF File Comparison
#
# Usage:
#
# For usage instructions run with option --help
#
# Author:
#
# <NAME> <<EMAIL>>
#
import sys
import os
import argparse
import logging
import traceback
import multiprocessing
import pandas
import json
import tempfile
import gzip
scriptDir = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(os.path.abspath(os.path.join(scriptDir, '..', 'lib', 'python27')))
import Tools
import Tools.vcfextract
from Tools.metric import makeMetricsObject, dataframeToMetricsTable
import Haplo.quantify
import Haplo.happyroc
import Haplo.gvcf2bed
from Tools import fastasize
def quantify(args):
""" Run quantify and write tables """
vcf_name = args.in_vcf[0]
if not vcf_name or not os.path.exists(vcf_name):
raise Exception("Cannot read input VCF.")
logging.info("Counting variants...")
truth_or_query_is_bcf = False
try:
truth_or_query_is_bcf = args.vcf1.endswith(".bcf") and args.vcf2.endswith(".bcf")
except:
# args.vcf1 and args.vcf2 are only available when we're running
# inside hap.py.
pass
if args.bcf or truth_or_query_is_bcf:
internal_format_suffix = ".bcf"
else:
internal_format_suffix = ".vcf.gz"
output_vcf = args.reports_prefix + internal_format_suffix
roc_table = args.reports_prefix + ".roc.tsv"
qfyregions = {}
if args.fp_bedfile:
if not os.path.exists(args.fp_bedfile):
raise Exception("FP / Confident region file not found at %s" % args.fp_bedfile)
qfyregions["CONF"] = args.fp_bedfile
if args.strat_tsv:
with open(args.strat_tsv) as sf:
for l in sf:
n, _, f = l.strip().partition("\t")
if n in qfyregions:
raise Exception("Duplicate stratification region ID: %s" % n)
if not f:
if n:
raise Exception("No file for stratification region %s" % n)
else:
continue
if not os.path.exists(f):
f = os.path.join(os.path.abspath(os.path.dirname(args.strat_tsv)), f)
if not os.path.exists(f):
raise Exception("Quantification region file %s not found" % f)
qfyregions[n] = f
if args.strat_regions:
for r in args.strat_regions:
n, _, f = r.partition(":")
if not os.path.exists(f):
raise Exception("Quantification region file %s not found" % f)
qfyregions[n] = f
if vcf_name == output_vcf or vcf_name == output_vcf + internal_format_suffix:
raise Exception("Cannot overwrite input VCF: %s would overwritten with output name %s." % (vcf_name, output_vcf))
roc_header = args.roc
try:
roc_header = args.roc_header
except:
pass
Haplo.quantify.run_quantify(vcf_name,
roc_table,
output_vcf if args.write_vcf else False,
qfyregions,
args.ref,
threads=args.threads,
output_vtc=args.output_vtc,
output_rocs=args.do_roc,
qtype=args.type,
roc_val=args.roc,
roc_header=roc_header,
roc_filter=args.roc_filter,
roc_delta=args.roc_delta,
roc_regions=args.roc_regions,
clean_info=not args.preserve_info,
strat_fixchr=args.strat_fixchr)
metrics_output = makeMetricsObject("%s.comparison" % args.runner)
filter_handling = None
try:
if args.engine == "vcfeval" or not args.usefiltered:
filter_handling = "ALL" if args.usefiltered else "PASS"
except AttributeError:
# if we run this through qfy, these arguments are not present
pass
total_region_size = None
headers = Tools.vcfextract.extractHeadersJSON(vcf_name)
try:
contigs_to_use = ",".join(headers["tabix"]["chromosomes"])
contig_lengths = fastasize.fastaNonNContigLengths(args.ref)
total_region_size = fastasize.calculateLength(contig_lengths, contigs_to_use)
logging.info("Subset.Size for * is %i, based on these contigs: %s " % (total_region_size, str(contigs_to_use)))
except:
pass
res = Haplo.happyroc.roc(roc_table, args.reports_prefix + ".roc",
filter_handling=filter_handling,
ci_alpha=args.ci_alpha,
total_region_size=total_region_size)
df = res["all"]
# only use summary numbers
df = df[(df["QQ"] == "*") & (df["Filter"].isin(["ALL", "PASS"]))]
summary_columns = ["Type",
"Filter",
]
for additional_column in ["TRUTH.TOTAL",
"TRUTH.TP",
"TRUTH.FN",
"QUERY.TOTAL",
"QUERY.FP",
"QUERY.UNK",
"FP.gt",
"FP.al",
"METRIC.Recall",
"METRIC.Precision",
"METRIC.Frac_NA",
"METRIC.F1_Score",
"TRUTH.TOTAL.TiTv_ratio",
"QUERY.TOTAL.TiTv_ratio",
"TRUTH.TOTAL.het_hom_ratio",
"QUERY.TOTAL.het_hom_ratio"]:
summary_columns.append(additional_column)
# Remove subtype
summary_df = df[(df["Subtype"] == "*") & (df["Genotype"] == "*") & (df["Subset"] == "*")]
summary_df[summary_columns].to_csv(args.reports_prefix + ".summary.csv", index=False)
metrics_output["metrics"].append(dataframeToMetricsTable("summary.metrics",
summary_df[summary_columns]))
if args.write_counts:
df.to_csv(args.reports_prefix + ".extended.csv", index=False)
metrics_output["metrics"].append(dataframeToMetricsTable("all.metrics", df))
essential_numbers = summary_df[summary_columns]
pandas.set_option('display.max_columns', 500)
pandas.set_option('display.width', 1000)
essential_numbers = essential_numbers[essential_numbers["Type"].isin(
["SNP", "INDEL"])]
logging.info("\n" + essential_numbers.to_string(index=False))
# in default mode, print result summary to stdout
if not args.quiet and not args.verbose:
print "Benchmarking Summary:"
print essential_numbers.to_string(index=False)
# keep this for verbose output
if not args.verbose:
try:
os.unlink(roc_table)
except:
pass
for t in res.iterkeys():
metrics_output["metrics"].append(dataframeToMetricsTable("roc." + t, res[t]))
# gzip JSON output
if args.write_json:
with gzip.open(args.reports_prefix + ".metrics.json.gz", "w") as fp:
json.dump(metrics_output, fp)
def updateArgs(parser):
""" add common quantification args """
parser.add_argument("-t", "--type", dest="type", choices=["xcmp", "ga4gh"],
help="Annotation format in input VCF file.")
parser.add_argument("-f", "--false-positives", dest="fp_bedfile",
default=None, type=str,
help="False positive / confident call regions (.bed or .bed.gz). Calls outside "
"these regions will be labelled as UNK.")
parser.add_argument("--stratification", dest="strat_tsv",
default=None, type=str,
help="Stratification file list (TSV format -- first column is region name, second column is file name).")
parser.add_argument("--stratification-region", dest="strat_regions",
default=[], action="append",
help="Add single stratification region, e.g. --stratification-region TEST:test.bed")
parser.add_argument("--stratification-fixchr", dest="strat_fixchr",
default=None, action="store_true",
help="Add chr prefix to stratification files if necessary")
parser.add_argument("-V", "--write-vcf", dest="write_vcf",
default=False, action="store_true",
help="Write an annotated VCF.")
parser.add_argument("-X", "--write-counts", dest="write_counts",
default=True, action="store_true",
help="Write advanced counts and metrics.")
parser.add_argument("--no-write-counts", dest="write_counts",
default=True, action="store_false",
help="Do not write advanced counts and metrics.")
parser.add_argument("--output-vtc", dest="output_vtc",
default=False, action="store_true",
help="Write VTC field in the final VCF which gives the counts each position has contributed to.")
parser.add_argument("--preserve-info", dest="preserve_info", action="store_true", default=False,
help="When using XCMP, preserve and merge the INFO fields in truth and query. Useful for ROC computation.")
parser.add_argument("--roc", dest="roc", default="QUAL",
help="Select a feature to produce a ROC on (INFO feature, QUAL, GQX, ...).")
parser.add_argument("--no-roc", dest="do_roc", default=True, action="store_false",
help="Disable ROC computation and only output summary statistics for more concise output.")
parser.add_argument("--roc-regions", dest="roc_regions", default=['*'], action="append",
help="Select a list of regions to compute ROCs in. By default, only the '*' region will"
" produce ROC output (aggregate variant counts).")
parser.add_argument("--roc-filter", dest="roc_filter", default=False,
help="Select a filter to ignore when making ROCs.")
parser.add_argument("--roc-delta", dest="roc_delta", default=0.5, type=float,
help="Minimum spacing between ROC QQ levels.")
parser.add_argument("--ci-alpha", dest="ci_alpha", default=0.0, type=float,
help="Confidence level for Jeffrey's CI for recall, precision and fraction of non-assessed calls.")
parser.add_argument("--no-json", dest="write_json", default=True, action="store_false",
help="Disable JSON file output.")
def main():
parser = argparse.ArgumentParser("Quantify annotated VCFs")
parser.add_argument("-v", "--version", dest="version", action="store_true",
help="Show version number and exit.")
parser.add_argument("in_vcf", help="Comparison intermediate VCF file to quantify (two column TRUTH/QUERY format)", nargs=1)
parser.add_argument("--adjust-conf-regions", dest="preprocessing_truth_confregions", default=None,
help="When hap.py was run with --adjust-conf-regions, on the original VCF, "
"then quantify needs the truthset VCF in order to correctly reproduce "
" the results. This switch allows us to pass the truth VCF into quantify.")
updateArgs(parser)
# generic, keep in sync with hap.py!
parser.add_argument("-o", "--report-prefix", dest="reports_prefix",
default=None, required=True,
help="Filename prefix for report output.")
parser.add_argument("-r", "--reference", dest="ref", default=None, help="Specify a reference file.")
parser.add_argument("--threads", dest="threads",
default=multiprocessing.cpu_count(), type=int,
help="Number of threads to use.")
parser.add_argument("--logfile", dest="logfile", default=None,
help="Write logging information into file rather than to stderr")
parser.add_argument("--bcf", dest="bcf", action="store_true", default=False,
help="Use BCF internally. This is the default when the input file"
" is in BCF format already. Using BCF can speed up temp file access, "
" but may fail for VCF files that have broken headers or records that "
" don't comply with the header.")
verbosity_options = parser.add_mutually_exclusive_group(required=False)
verbosity_options.add_argument("--verbose", dest="verbose", default=False, action="store_true",
help="Raise logging level from warning to info.")
verbosity_options.add_argument("--quiet", dest="quiet", default=False, action="store_true",
help="Set logging level to output errors only.")
args, unknown_args = parser.parse_known_args()
args.runner = "qfy.py"
if not args.ref:
args.ref = Tools.defaultReference()
args.scratch_prefix = tempfile.gettempdir()
if args.verbose:
loglevel = logging.INFO
elif args.quiet:
loglevel = logging.ERROR
else:
loglevel = logging.WARNING
# reinitialize logging
for handler in logging.root.handlers[:]:
logging.root.removeHandler(handler)
logging.basicConfig(filename=args.logfile,
format='%(asctime)s %(levelname)-8s %(message)s',
level=loglevel)
# remove some safe unknown args
unknown_args = [x for x in unknown_args if x not in ["--force-interactive"]]
if len(sys.argv) < 2 or len(unknown_args) > 0:
if unknown_args:
logging.error("Unknown arguments specified : %s " % str(unknown_args))
parser.print_help()
exit(0)
if args.version:
print "qfy.py %s" % Tools.version
exit(0)
if args.fp_bedfile and args.preprocessing_truth_confregions:
conf_temp = Haplo.gvcf2bed.gvcf2bed(args.preprocessing_truth_confregions,
args.ref,
args.fp_bedfile, args.scratch_prefix)
args.strat_regions.append("CONF_VARS:" + conf_temp)
args.preprocessing_truth_confregions = None
quantify(args)
if __name__ == "__main__":
try:
main()
except Exception as e:
logging.error(str(e))
traceback.print_exc(file=Tools.LoggingWriter(logging.ERROR))
exit(1)
| python |
<filename>Board.cpp
#include "Board.hpp"
#include <iostream>
#include <string>
#include <array>
#include <limits.h>
#include <stdexcept>
#include <map>
using namespace std;
namespace ariel{
unsigned int max_colums;
unsigned int min_colums;
unsigned int max_row;
unsigned int min_row;
Board::Board(){
min_row = INT_MAX;
max_row = 0;
min_colums = INT_MAX;
max_colums = 0;
}
void Board::post(unsigned int row, unsigned int column, enum Direction d, const string &s){
if (d == Direction::Horizontal){
for(unsigned int i=0; i<s.length(); i++){
b[row][column + i] = s[i];
}
min_row = min(min_row,row);
max_row = max(max_row,row);
min_colums = min(min_colums,column);
max_colums = max((column + unsigned(s.length())), max_colums);
}
else
{
for(unsigned int i=0; i<s.length(); i++)
{
b[row + i][column] = s[i];
}
min_row = min(min_row,row);
max_row = max((row + unsigned(s.length())), max_row);
min_colums = min(min_colums,column);
max_colums = max(min_colums,column);
}
}
string Board::read(unsigned int row, unsigned int column , enum Direction d, unsigned int num){
string ans;
for(unsigned int i=0; i<num; i++)
{
if (d == Direction::Horizontal)
{
if(b[row][column+i] == 0)
{
ans += "_";
}
else
{
ans += b[row][column+i];
}
}
else
{
if(b[row+i][column] == 0)
{
ans += "_";
}
else
{
ans += b[row+i][column];
}
}
}
return ans;
}
void Board::show(){
unsigned int display_rows = (max_row - min_row) + 1;
unsigned int display_cols = (max_colums - min_colums);
for(unsigned int i = 0; i<display_rows; i++) {
for(unsigned int j = 0; j<display_cols; j++)
{
if(b[i][j] != 0)
{
cout << b[i][j];
}
else
{
cout << "_";
}
}
cout << endl;
}
}
Board::~Board(){
}
} | cpp |
from pathlib import Path
import environ
# ENVIROMENT
# ------------------------------------------------------------------------------
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent.parent
# document_service/
BASE_DIR = ROOT_DIR / "nauci_service"
APPS_DIR = BASE_DIR / "apps"
env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=True)
if READ_DOT_ENV_FILE:
# OS environment variables take precedence over variables from .env
env.read_env(str(BASE_DIR / "config" / "envs" / ".env"))
# strip out any of the environment marked with our magic '<stub>' value.
# This is a limitation of parameter store, in that it must always have content.
for key, value in list(env.ENVIRON.items()):
if value == "<stub>":
env.ENVIRON.pop(key)
| python |
Like the proverbial frog in the pot whose Temperature slowly rises.
Yes (sigh) this is about Climate change. But please read it anyway, it may provide some clarity.
There’s another big global climate talk-fest going on now in Egypt. The 2015 Paris agreement set an ambitious goal of limiting Earth’s temperature rise to 1.5 degrees Centigrade. That was a big victory for poorer nations, which stood to be harmed most by warming (being less equipped to cope with it). However, Paris included no commitments for specific action to achieve the goal.
Since then, the 1.5 degree goal has become a totemic gospel, dominating climate discussion. But — as argued in a recent analysis in The Economist, aptly titled “An Inconvenient Truth” — the chances of achieving 1.5 are zero (and have been for quite some time). It would have required massive reductions in carbon emissions, that simply are not happening. Rather than biting the bullet, we’ve barely been licking it. Consequently, at this point, 1.5 would require, going forward, reductions even more draconian. Which won’t happen either.
Because there’s no way to develop and deploy, fast enough, the technological fixes that would be required to reduce emissions enough without huge dislocations to our way of life, for which there is no public or political will. We’re talking here about the burning of fossil fuels, as in power generation, industrial processes, car and air travel; and there are many further ways we put carbon into the Atmosphere, another big one being agriculture. Cow farts are actually a significant factor.
The 1.5 target was adopted even though 1.5 would entail pretty severe climate effects — but that seemed the outer limit for both what might be achievable and what might be more or less tolerable. Now it looks like 2 degrees is about the best we can hope for. And the difference between 1.5 and 2 is the difference between bad and very bad. While blowing past 2 looks increasingly likely.
What are the bad effects? A lot of ice will melt, dumping more water into the oceans, raising sea levels, and flooding low lying coastal cities (and some island countries). More and worse heat waves, obviously; a lot of places becoming simply uninhabitable. More and worse weather events, like hurricanes. More floods, droughts, forest fires. Big disruptions to agriculture and food production. All of which will send vast numbers of people on the move.
Part of the problem is feedback effects: warming creating conditions that cause more warming. For example, ice reflects a lot of sunlight back into space; less ice means less of that. And permafrost melting would release a lot more carbon-rich methane into the atmosphere. There’s danger of a tipping point, causing runaway warming. That’s apparently what happened to Venus, whose temperature now averages a toasty 867 degrees Fahrenheit.
I have argued forever that the zealots were misguided to insist on emissions reductions exclusively, because reducing them enough was a pipe dream. And even if we cut emissions to zero tomorrow, rising temperatures would still be baked in, due to the carbon already in the atmosphere.
We have three main other options. One is carbon capture and storage — sucking it out of the atmosphere. The technology exists. So far, the amount being done is piddling. However, scaling this up to where it would make a difference would be a colossal and colossally costly undertaking.
Second, there’s geoengineering — action to actually lower temperatures. The best known method would mimic the effect of volcanoes — which do periodically reduce temperatures (remember 1816, the “year without a summer”) by throwing a lot of particles into the upper atmosphere that deflect sunlight. This would be problematical and controversial for a host of reasons, and it too would be a gargantuan undertaking.
Both carbon removal and geoengineering would take many years, if not decades, to be deployed at anything near the scale needed.
That leaves the third course — adaptation. Measures to anticipate and cope with higher temperatures. Like building sea walls to protect cities against rising waters. Some places (Venice, for example; the Netherlands, historically) already do this. I’m skeptical that makes sense in the long term; but there are many other things we can do. The Economist article shows how much is actually being done already, although much more is needed.
The idea that humanity is suicidally wrecking the planet is over-the-top. What we have done is what we had to do, utilizing the planet’s resources in order to make ever better lives for generations of people. Of course it was no free lunch, and now we must pay the price. We will pay it.
We will not go extinct. We are the most adaptable of species. Coming out of steamy Africa, humans accommodated to living in the Arctic, and a vast array of other different climates. And that was without the benefit of all the scientific knowledge and technology we’ve acquired since. We will cope with a warmer planet.
As long as it’s not another Venus.
| english |
Tom Brady is a champion quarterback. When he is at his best, the world just stops and admires his greatness. He has won more Super Bowl titles tan any single franchise in the history of the sport which is enough to prove how insanely motivated he is to succeed at the highest level.
However, 2022 is not proving to be a good year for Brady, both, on the personal as well as the professional front. Tom recently announced his divorce with Supermodel Gisele Bundchen. Moreover, out of 9 games this season, his team has lost 5.
To add insult to injury, on several occasions, Tom has been seen yelling at his mates and breaking Microsoft tablets on the sideline. All such actions fueled NFL analyst Shannon Sharpe to go on a fiery rant against the veteran quarterback.
Also Read: Tom Brady 100k Yards: How Many Passing Yards Does Tom Brady Have In His Career?
During a recent episode of ‘The Undisputed,’ Shannon Sharpe lashed out at Brady over his recent comments that the most embarrassing part of the current Buccaneers team is their effort level on game day.
“Stop this Tom,” Shannon claimed, adding that he doesn’t agree with a lot of stuff Tom is saying about his mates. Sharpe stated that every time the ball drops, we see Brady yelling and throwing tantrums relentlessly which is not good as he himself has been at fault several times.
Moreover, when Skip Bayless interjected Sharpe to add that Tom has accepted his mistake on several instances, Shannon replied by asking him that in that case, why don’t we see Tom’s mates yelling at him?
Shannon said that just because Brady has won 7 Super Bowls in the past, he doesn’t get the right to yell at his teammates every now and then while they don’t get to say a thing to him when he commits an error.
When Skip tried defending Brady, Shannon straightaway asked, “if Tom Brady does not care who drops the ball, then why is he constantly yelling at his teammates?” He even called Brady a liar and suggested that the veteran quarterback should be honest with his teammates, without going overboard.
| english |
Over the weekend, the first teaser trailer for Mr. Robot season three arrived, giving us a look at Bobby Cannavale’s new character, and how New York would be changed by the actions of Elliot (Rami Malek) and Tyrell (Martin Wallström). The season begins October 11.
On Monday, Disney’s The Lion King live-action version found two more actors for its star-studded voice cast. Alfre Woodard (Luke Cage) will voice Simba’s mother Sarabi, and John Kani (Captain America: Civil War) will play Rafiki, the advisor to the royal family.
Later the same day, Netflix announced that it has acquired Millarworld, the comics publisher behind Kingsman, and Kick-Ass. It is the company’s first acquisition, and it gives the streaming service access to tons of new properties for future original series.
Ruth Negga (Loving, Preacher) has been cast in an undisclosed role in sci-fi epic Ad Astra, which also includes Brad Pitt in the lead. Directed by James Gray (The Lost City of Z), the film will go into production next month. There’s no release date set.
The Hellboy reboot added to its cast this week by bringing Milla Jovovich on board as the main villain, Blood Queen. David Harbour is playing Hellboy, with Ian McShane as his adoptive father, Professor Broom. There’s no release date for Hellboy either, but it’ll enter production this year with Neil Marshall (Game of Thrones) as director.
Disney announced this week that it’ll be launching its own streaming service, and end its distribution deal with Netflix in 2019. CEO Bob Iger said that it’s possible Marvel and Lucasfilm (Star Wars) films will continue to be on another platform. To get started, Disney will spend $1.58 billion to acquire a majority stake in BAMTech, which will build the platform for the media giant.
Deadpool’s Tim Miller has found his next project: it’ll be an adaptation of William Gibson’s Neuromancer. He left the Deadpool sequel after falling out with Ryan Reynolds over creative differences, and he’s now busy working on a new Terminator instalment.
The Coen Brothers have found a place for their first TV project – Western anthology series The Ballad of Buster Scruggs – and that's Netflix. The Oscar-winning duo will write, direct and executive produce the show. There’ll be a total of six stories, and they’ll arrive in 2018.
Westworld season two has added three new cast members: Gustaf Skarsgård (Vikings) as a white-collar guy, Fares Fares (Tyrant) as a tech expert, and Betty Gabriel (Get Out) as someone who’s tasked with trying to restore order. Westworld will return to air in spring 2018.
That’s all the entertainment news for this week. Welcome back to The Weekend Chill, your one-stop destination for what to watch, play, or listen to this weekend. Here are the best picks:
The third season of Difficult People – which began earlier this week – finds our struggling and jaded comedians Julie Kessler (Julie Klausner) and Billy Epstein (Billy Eichner) still hating on everyone else in New York, while remaining each other’s best friends even as they are their own worst enemies.
Picking up from season two, Julie is happy with her boyfriend Arthur Tack (James Urbaniak), while trying to navigate life without taking on more anti-depressants by engaging in meditation and ayahuasca among other things. Meanwhile, Billy is thinking of leaving New York just as he starts to fall for his first real boyfriend Todd (John Cho).
Created and written by Klausner, Difficult People’s third season – of which critics have seen five episodes – is getting great reviews from most critics. Indiewire’s Liz Shannon Miller called it a “more empathetic experience that never also fails to find the funny”.
Based on Stephen King’s 2014 novel of the same name – which he has described as his first hard-boiled detective book – Mr. Mercedes is the story of a retired policeman named Bill Hodges (Brendan Gleeson) being taunted by a psychopathic murderer called Brady Hartsfield (Harry Treadaway).
Created by David E. Kelley (Big Little Lies, Ally McBeal), who executive produces with King, the first season of the show – airing on AT&T-owned Audience network – will have a total of 10 episodes. The book was brought to Kelley by director Jack Bender, and it’s the first time he’s dabbled in the horror genre.
“Horror isn't necessarily my genre, but having a blueprint created for you by Stephen King certainly gives you a leg up in that arena,” he told THR. Mr. Mercedes is getting average to good reviews from most critics, who have praised Gleeson’s performance, but criticised its slow-burn.
From the director behind John Wick, and the upcoming Deadpool 2 – David Leitch – Atomic Blonde stars Charlize Theron as a MI6 field agent Lorraine Broughton, set on the eve of the collapse of the Berlin Wall in 1989. After a fellow MI6 agent is killed with a list that contains name of active field agents, Broughton is dispatched to find it.
Adapted from Antony Johnston and Sam Hart’s 2012 graphic novel The Coldest City, the film also stars James McAvoy as Berlin station chief David Percival, John Goodman as CIA agent Emmett Kurzfeld working with MI6, Sofia Boutella as an undercover French agent Delphine Lasalle, and Toby Jones as Broughton’s MI6 superior Eric Gray.
Like John Wick, Atomic Blonde has garnered praise for its action sequences, which is thanks to Leitch’s long career as a stuntman. The narrative didn’t collect the same praise, but Theron’s charismatic performance is enough to carry you through.
The highest-grossing anime film of all time, Your Name is the story of two high school children – a girl in rural Japan called Mitsuha, and a boy in Tokyo called Taki – who swap bodies. Mitsuha wakes up in Taki’s body one morning, and vice versa. As this continues to happen intermittently, both must work to adjust their lives, and build a connection by leaving notes and messages.
Directed by Makoto Shinkai – who’s been described as “The New Miyazaki”, a comparison he calls an overestimation – the film is based on a novel of the same name he wrote a month before the film’s premiere. Your Name was a huge commercial success upon release in Japan last year, and became the first anime not by Hayao Miyazaki to earn more than JPY 10 billion.
The film has received superlative reviews from most publications, and has a 98 percent fresh rating on reviews aggregator Rotten Tomatoes. It’s now available on English-language Blu-ray, though you’ll need to endure a delivery wait owing to its popularity.
Other mentions:
If you’re looking for more streaming options, check out our Netflix guide for August. The biggest addition this week is Baahubali 2: The Conclusion, for which Netflix reportedly paid Rs. 25.5 crore.
On home media meanwhile, there’s James Spinney and Pete Middleton’s documentary on writer John Hull – Notes on Blindness – who gradually became blind and chronicled his experiences on audiocassette.
Video games:
From the makers of DmC: Devil May Cry, Heavenly Sword, and Enslaved: Odyssey to the West, comes an “independent AAA” title that’s based on Celtic and Norse mythologies. The game puts you in the role of Senua, a Celtic warrior struggling with trauma and psychosis, who journeys into the savage Viking heartland.
The result is a dark, twisted, and bleak outcome about an individual’s personal voyage into a nightmarish landscape called Hel, to save her boyfriend Dillion. And throughout, voices in Senua’s head will help provide narration, flesh out the world, and even help defeat the game’s enemies.
We loved the game for its cohesive, gripping plot, solid combat that forces you to strategise, brilliant voice acting, and slick visuals. There’s no tutorial or hand-holding, so beware.
Affiliate links may be automatically generated - see our ethics statement for details.
| english |
The New Orleans Saints clinched a 2020 NFL Playoff spot in Week 13 of the 2020 NFL Season. The Saints have an interesting decision to make with veteran quarterback Drew Brees. Brees could be held out for the rest of the 2020 NFL Regular Season.
It would be beneficial for the Saints to achieve home field advantage throughout the NFL Playoffs. Would playing Drew Brees be more important than making a deep run in the playoffs? This is something that the Saints will have to answer in the next couple weeks.
Three out of the last four games for the New Orleans Saints are against teams that they can beat. The Saints play the Eagles, Chiefs, Vikings, and Panthers to end their 2020 NFL Season. New Orleans will be favored in three out of those four games.
Rushing the 41-year-old back may not be in the best interest to the New Orleans Saints. The Saints need to win to make sure that they can hold on to home field advantage. New Orleans could easily start Brees against the Chiefs then rest him against the Eagles, Vikings, and Panthers.
Drew Brees has been the heart and soul of the New Orleans Saints throughout his career. Sean Payton and Drew Brees have put together top offenses in the NFL since joining forces. The Saints are a different team without Drew Brees behind center.
Although Taysom Hill has led the Saints to back-to-back wins, he is not at the same level as Drew Brees. Hill brings a different skill set to the Saints offense and he may be the future of the franchise. Brees is a field general that can make plays with his arm that most quarterbacks cannot make.
When Drew Brees went down in Week 9 of the 2020 NFL Season, the Saints fan base hearts dropped to their stomachs. It would come out that Drew Brees fractured 11 ribs and the road to recovery was not going to be easy. The chances of Drew Brees reinjuring his ribs is high.
This is why it is important for the New Orleans Saints to hold off on starting Drew Brees. If the Saints were to play him it would have to be for their matchup with the Chiefs and that is all. Playing him any more only risks a serious problem for the playoffs. | english |
With severe pain in the abdomen, the child, as a rule, cholecystitis is the last thing we can suspect, since we are accustomed to that they are mostly sick with adults. But, unfortunately, cholecystitis in children is quite common, however, its clinical picture is atypical, and it can be difficult to recognize it. In this case, inflammation is not limited to any one department of the biliary system and in chronic course goes further, affecting the liver.
The cause of cholecystitis in children is most often intestinal parasites, in particular worms and lamblias, which, having settled in the intestine, gradually ascending to the bile ducts and bladder. Breeding and irritating the mucous membranes, lamblias cause dyskinetic disorders and blockage of the ducts. In addition, they are introduced into the walls of the vessels and cause pathological changes in their structure, accompanied by inflammatory processes, and the products of the vital activity of the parasites cause a general intoxication of the organism.
Symptoms of acute cholecystitis in children:
- pain in the right side of the abdomen and hypochondrium, gradually it becomes more widespread, localizing throughout the abdominal cavity;
- temperature 38-40 °, which is maintained throughout the attack;
- the child is restless, capricious, rushes in bed, trying to find a comfortable position;
- heaviness in the stomach;
- nausea, vomiting;
- constipation;
- deterioration of appetite.
Chronic cholecystitis in children proceeds in a slow form and is characterized by persistent relapses and the appearance of complications that can develop either as a hepatitis or as an abscess of the liver. The extreme form of complications is the rupture of the abscess and peritonitis - the infection of blood.
In addition to drug treatment of cholecystitis in children, it is necessary to take preventive measures - to eliminate foci of infection (caries, tonsillitis), to monitor complete recovery in various diseases. The diet for cholecystitis in children should be selected taking into account the violation of the stomach and liver and include products that prevent the reproduction of intestinal parasites: fresh vegetables, boiled meat, fermented milk products, acidified drink. | english |
January is the first month of the Gregorian calendar. People across the world look forward to 2020 with much warmth and hope it ushers in happiness, good health and prosperity. The festivities this month shall not end with the New Year day. There are festivals scattered throughout this month. And in India, celebrations in January mark the end of winter and beginning of the spring season. In this web-post, we shall take a look at some of the most significant festivals this month.
The birth anniversary of the tenth Sikh Guru, Guru Gobind Singh will be celebrated on January 2 this year. According to the Nanakshashi calendar, it falls on Saptami tithi during Shukla Paksha in the month of Poh (Paush). This year, devotees will celebrate his 353rd birth anniversary.
Vaikuntha Ekadashi is the most important date in the Hindu calendar for devotees of Shri Hari Vishnu. On this day, the doors of Vaikuntha or the abode of Lord Vishnu open for those who wish to attain salvation (Moksha). Every devotee of Lord Vishnu's ultimate aim is to visit Vaikuntha after death.
The first penumbral Lunar eclipse or Chandra Grahan of the year 2020 will take place on the full moon day, but it wouldn't be visible to the naked eye for people in India. However, the eclipse will last for four hours and five minutes approximately.
Born as Narendranath Dutta, Swami Vivekananda went on to become one of the greatest saints revered in India. A disciple of Shri Ramakrishna Paramhamsa, Swami Vivekananda introduced the real essence and philosophy of Hinduism to the world. His birth anniversary is celebrated as National Youth Day in India.
Lohri celebrations mark the end of the winter season in the Punjab region while Bhogi marks the first day of the Makar Sankranti festivities in South India. These festivals will be celebrated on January 13. Bohag Bihu festivities in Assam will begin on January 14, and Makar Sankranti celebrations in the country will conclude on January 16. These festivals mark the onset of the harvest season.
The Panchami tithi of the month of Magha marks the onset of the spring season. On this day, people in the eastern part of the country celebrate Saraswati Puja and pay obeisance to the Goddess of knowledge, arts and music.
Track Spiritual monthly Calendar for all Festivals, Vrats and Muhurat on Times Now. | english |
New York: In an alarming sign, Covid hospitalisations for children jumped 58 per cent across the US in the past week, according to the latest data by the US Centers for Disease Control and Prevention (CDC).
The US is averaging 260 paediatric Covid-19 hospitalisations a day, up nearly 30 per cent within a week, showed that data from December 21-December 27.
According to CBS News, unvaccinated people of all ages are at increased risk, including children.
“We need to get child vaccinations up. We need to get them higher than they are, particularly in the 5- to 11-year-old age group,” Mary T. Bassett, acting commissioner of the New York State Department of Health, was quoted as saying in the report.
An Al Jazeera report mentioned, quoting doctors, that more severe Covid-19 symptoms being seen in hospitalised children this month include difficulty breathing, high fever, and dehydration.
“They need help breathing, they need help getting oxygen, they need extra hydration. They are sick enough to end up in the hospital, and that’s scary for doctors, and it’s scary for parents,” said Rebecca Madan, a paediatric infectious disease specialist at New York University’s Langone Health hospital system.
The seven-day-average of daily hospitalisations for children between December 21 and December 27 rose more than 58 per cent, according to the CDC.
In New York City, data shows children under the age of 5 now account for almost half of the total new hospital cases.
Other parts of the US also are seeing a spike in cases among children.
“Ohio has seen a 125 percent increase in hospitalisations among children 17 and under in the past four weeks, according to data from the Ohio Hospital Association,” the report said.
The severity of the Omicron variant on kids is still unclear but more cases have generally meant more hospitalisations, infectious disease expert Dr Anthony Fauci said this week.
A Financial Times report said that as Omicron-led infections surge across Europe, a drive to vaccinate children aged five to 11 against Covid-19 is dividing opinion.
“While some parents welcome the opportunity to protect their young, others are unconvinced of the benefits to their health,” the report said.
| english |
export default {
drawerWidth: 205,
headerHeight: 64,
headerHeightMobile: 50,
bottomNavHeight: 56
};
| javascript |
{"componentChunkName":"component---src-templates-single-post-js","path":"/template-comments-disabled","webpackCompilationHash":"","result":{"data":{"wordpressPost":{"title":"Template: Comments Disabled","content":"<p>This post has its comments, pingbacks, and trackbacks disabled.</p>\n<p>There should be no comment reply form, but <em>should</em> display pingbacks and trackbacks.</p>\n","featured_media":null,"categories":[{"name":"Uncategorized"}],"wordpress_id":1150}},"pageContext":{"isCreatedByStatefulCreatePages":false,"postId":1150,"categories":[{"slug":"uncategorized"}],"title":"Template: Comments Disabled | Global Gardens","metaDescription":"%"}}} | json |
<filename>.cache/caches/gatsby-transformer-remark/diskstore-8f4c779b6629d2c563f7f489ca6a4f56.json<gh_stars>0
{"expireTime":9007200850227666000,"key":"transformer-remark-markdown-html-98e41fbe3ff1ea6982af90d82f63d1fe-gatsby-remark-external-links-","val":"<h1>The 5 most important skills are:</h1>\n<ol>\n<li>Reading</li>\n<li>Writing</li>\n<li>Arithmetic</li>\n<li>Persuasion</li>\n<li>Programming</li>\n</ol>\n<p><NAME>, in his book '' <a href=\"https://www.goodreads.com/quotes/984807-i-made-a-list-of-skills-in-which-i-think\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">advises to pick a few skills</a>, then become the top 25% in each of them. Combined you will have a unique set of skills that you can leverage. Naval advises to not be too deliberate in choosing which skills. You still have to follow your obsession(s) otherwise you might end up choosing something that's not in your natural desire.</p>\n<h1>Reading</h1>\n<p>If you don't enjoy reading, start reading stuff you love, until you love to read. Don't force yourself to read a book you don't enjoy, but move on naturally by whatever interests you.</p>\n<p>Once you love to read and want to read more specific knowledge, avoid reading too much junk. When learning about specific knowledge, always start with the fundamentals of a topic. Don't start with highly specific books, but learn the basics first. If you understand the fundamentals, it will be easier to read more specific knowledge later on. Examples of these books are:</p>\n<ul>\n<li><NAME> - the Wealth of nations</li>\n<li>Darwin - Origin of the species</li>\n<li>Watson and Crick - The eigth day of creation</li>\n<li><NAME> - six easy pieces.</li>\n</ul>\n<blockquote>\n<p>I don't know a smart person doesn't read and read all the time. </p>\n<p><cite>Naval</cite></p>\n</blockquote>\n<p>Have the desire to learn. You have to cultivate the desire to learn as all the means to learn are abundant. Children are naturally curious, but once we go into adulthood we lose this sense. So we have to learn how to keep the desire to learn.</p>\n<p>The ultimate foundations of everything is mathematics and logic. If you understand logic and mathematics, then you have the basis for understanding the scientific method. Once you understand the scientific method, then you can understand how to separate truth from falsehood. This is useful in other fields and other things that you’re reading.</p>\n<p>It’s better to read a great book really slowly than to fly through a hundred books quickly. This will help you master the foundations and prevent you from reading too much junk.</p>\n<blockquote>\n<p>I don’t fear the man who knows a thousand kicks and a thousand punches, I fear the man who’s practiced one punch ten thousand times or one kick ten thousand times.</p>\n<p><cite><NAME></cite></p>\n</blockquote>\n<h2>The number of “doing” iterations drives the learning curve</h2>\n<p>To become skilled one has to be doing. You can study a thousand businesses, but starting your own business will teach you more invaluable, unique knowledge by iterating continuously. Doing the same work over and over won't teach you anything new of course. But trying different ways of marketing a product, changing online channels, creating new ways of branding you will learn a lot.</p>\n<p>By doing you will understand the different mental models in business and how to apply them. By studying them, you will only understand what these models are, but you wouldn't know how to apply them.</p>\n<p>If you've played games your whole life, studying game theory makes no sense to you. It's something you would be doing or thinking naturally. Reading books would be a waste of time as it's all common sense.</p>\n<blockquote>\n<p>There’s no actual skill called “business”.</p>\n<p><cite>Naval </cite></p>\n</blockquote>\n<p>Business in college is often just pattern-matching from so-called '<em>case studies</em>'. You won't learn any real unique skills. Instead you will learn to macro-bullshit (Taleb).</p>\n<h2>Pain</h2>\n<p>Doing something new is painful. It's being on uncertain territory with high odds to fail. So get used to frequent small failures, by doing (new) things from scratch over and over again. If you're willing to bleed a little every day, you may win big later.</p>\n<p>Entrepeneurs go through pain every day. Working on something without guarentee of success. Losing money slowly and finding different ways to support yourself. Stressing out every day and bearing all responsibility. But when they win, they win big and on average they'll make more.</p>\n<p>Being an entrepeneur basically means being stressed out constantly while risking it every day, aiming for the highest prize.</p>\n<p>So learn how to cope with pain.</p>"} | json |
package org.folio.circulation.services;
import static java.util.concurrent.CompletableFuture.completedFuture;
import static org.folio.circulation.domain.FeeFine.lostItemFeeTypes;
import static org.folio.circulation.services.LostItemFeeRefundContext.forCheckIn;
import static org.folio.circulation.services.LostItemFeeRefundContext.forRenewal;
import static org.folio.circulation.support.ValidationErrorFailure.singleValidationError;
import static org.folio.circulation.support.http.client.CqlQuery.exactMatch;
import static org.folio.circulation.support.http.client.CqlQuery.exactMatchAny;
import static org.folio.circulation.support.results.Result.failed;
import static org.folio.circulation.support.results.Result.succeeded;
import java.util.concurrent.CompletableFuture;
import org.folio.circulation.domain.CheckInContext;
import org.folio.circulation.domain.Loan;
import org.folio.circulation.domain.policy.lostitem.LostItemPolicy;
import org.folio.circulation.infrastructure.storage.feesandfines.AccountRepository;
import org.folio.circulation.infrastructure.storage.loans.LoanRepository;
import org.folio.circulation.infrastructure.storage.loans.LostItemPolicyRepository;
import org.folio.circulation.resources.context.RenewalContext;
import org.folio.circulation.support.Clients;
import org.folio.circulation.support.http.client.CqlQuery;
import org.folio.circulation.support.results.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LostItemFeeRefundService {
private static final Logger log = LoggerFactory.getLogger(LostItemFeeRefundService.class);
private final LostItemPolicyRepository lostItemPolicyRepository;
private final FeeFineFacade feeFineFacade;
private final AccountRepository accountRepository;
private final LoanRepository loanRepository;
public LostItemFeeRefundService(Clients clients) {
this.lostItemPolicyRepository = new LostItemPolicyRepository(clients);
this.feeFineFacade = new FeeFineFacade(clients);
this.accountRepository = new AccountRepository(clients);
this.loanRepository = new LoanRepository(clients);
}
public CompletableFuture<Result<CheckInContext>> refundLostItemFees(
CheckInContext checkInContext) {
return refundLostItemFees(forCheckIn(checkInContext))
.thenApply(r -> r.map(checkInContext::withLostItemFeesRefundedOrCancelled));
}
public CompletableFuture<Result<RenewalContext>> refundLostItemFees(
RenewalContext renewalContext, String currentServicePointId) {
return refundLostItemFees(forRenewal(renewalContext, currentServicePointId))
.thenApply(r -> r.map(renewalContext::withLostItemFeesRefundedOrCancelled));
}
private CompletableFuture<Result<Boolean>> refundLostItemFees(
LostItemFeeRefundContext refundFeeContext) {
if (!refundFeeContext.shouldRefundFeesForItem()) {
return completedFuture(succeeded(false));
}
return lookupLoan(succeeded(refundFeeContext))
.thenCompose(this::fetchLostItemPolicy)
.thenCompose(contextResult -> contextResult.after(context -> {
final LostItemPolicy lostItemPolicy = context.getLostItemPolicy();
if (!lostItemPolicy.shouldRefundFees(context.getItemLostDate())) {
log.info("Refund interval has exceeded for loan [{}]", context.getLoan().getId());
return completedFuture(succeeded(false));
}
return fetchAccountsAndActionsForLoan(contextResult)
.thenCompose(r -> r.after(this::refundAccounts));
}));
}
private CompletableFuture<Result<Boolean>> refundAccounts(LostItemFeeRefundContext context) {
return feeFineFacade.refundAndCloseAccounts(context.accountRefundCommands())
.thenApply(r -> r.map(notUsed -> context.anyAccountNeedsRefund()));
}
private CompletableFuture<Result<LostItemFeeRefundContext>> lookupLoan(
Result<LostItemFeeRefundContext> contextResult) {
return contextResult.after(context -> {
if (context.hasLoan()) {
return completedFuture(succeeded(context));
}
return loanRepository.findLastLoanForItem(context.getItemId())
.thenApply(r -> r.next(loan -> {
if (loan == null) {
log.error("There are no loans for lost item [{}]", context.getItemId());
return noLoanFoundForLostItem(context.getItemId());
}
if (loan.getDeclareLostDateTime() == null) {
log.error("The last loan [{}] for lost item [{}] is not declared lost",
loan.getId(), context.getItemId());
return lastLoanForLostItemIsNotDeclaredLost(loan);
}
log.info("Loan [{}] retrieved for lost item [{}]", loan.getId(), context.getItemId());
return succeeded(context.withLoan(loan));
}));
});
}
private CompletableFuture<Result<LostItemFeeRefundContext>> fetchAccountsAndActionsForLoan(
Result<LostItemFeeRefundContext> contextResult) {
return contextResult.after(context -> {
final Result<CqlQuery> fetchQuery = exactMatch("loanId", context.getLoan().getId())
.combine(exactMatchAny("feeFineType", lostItemFeeTypes()), CqlQuery::and);
return accountRepository.findAccountsAndActionsForLoanByQuery(fetchQuery)
.thenApply(r -> r.map(context::withAccounts));
});
}
private CompletableFuture<Result<LostItemFeeRefundContext>> fetchLostItemPolicy(
Result<LostItemFeeRefundContext> contextResult) {
return contextResult.combineAfter(
context -> lostItemPolicyRepository
.getLostItemPolicyById(context.getLoan().getLostItemPolicyId()),
LostItemFeeRefundContext::withLostItemPolicy);
}
private Result<LostItemFeeRefundContext> lastLoanForLostItemIsNotDeclaredLost(Loan loan) {
return failed(singleValidationError(
"Last loan for lost item is not declared lost", "loanId", loan.getId()));
}
private Result<LostItemFeeRefundContext> noLoanFoundForLostItem(String itemId) {
return failed(singleValidationError(
"Item is lost however there is no declared lost loan found",
"itemId", itemId));
}
}
| java |
This is a ScalaCheck sample project
| markdown |
<filename>translation/en/sujato/sutta/sn/sn45/sn45.63_translation-en-sujato.json
{
"sn45.63:0.1": "Linked Discourses 45 ",
"sn45.63:0.2": "7. Abbreviated Texts on One Thing ",
"sn45.63:0.3": "63. Good Friends (1st) ",
"sn45.63:1.1": "At Sāvatthī. ",
"sn45.63:1.2": "“Mendicants, one thing helps give rise to the noble eightfold path. ",
"sn45.63:1.3": "What one thing? ",
"sn45.63:1.4": "It’s good friendship. ",
"sn45.63:1.5": "A mendicant with good friends can expect to develop and cultivate the noble eightfold path. ",
"sn45.63:1.6": "And how does a mendicant with good friends develop and cultivate the noble eightfold path? ",
"sn45.63:1.7": "It’s when a mendicant develops right view, right thought, right speech, right action, right livelihood, right effort, right mindfulness, and right immersion, which rely on seclusion, fading away, and cessation, and ripen as letting go. ",
"sn45.63:1.8": "That’s how a mendicant with good friends develops and cultivates the noble eightfold path.” "
} | json |
Ankara, May 28: Turkiye President Recep Tayyip Erdogan won reelection on Sunday, extending his increasingly authoritarian rule into a third decade in a country reeling from high inflation and the aftermath of an earthquake that levelled entire cities.
With nearly 99 per cent of ballot boxes opened, unofficial results from competing news agencies showed Erdogan with 52 per cent of the vote, compared with 48 per cent for his challenger, Kemal Kilicdaroglu. Turkey Presidential Election 2023 Results: President Recep Tayyip Erdogan Claims Victory in Runoff Poll, Congratulations Pour In.
In his first comments since the polls closed, Erdogan spoke to supporters on a campaign bus outside his home in Istanbul. “I thank each member of our nation for entrusting me with the responsibility to govern this country once again for the upcoming five years,” he said. He ridiculed his challenger for his loss, saying “bye bye bye, Kemal,” as supporters booed.
“The only winner today is Turkey,” Erdogan said. He promised to work hard for Turkiye's second century. The country marks its centennial this year. “No one can look down on our nation," he said. Supporters of the divisive populist were celebrating even before the final results arrived, waving Turkish or ruling party flags, and honking car horns, chanting his name and “in the name of God, God is great”.
With a third term, Erdogan will have an even stronger hand domestically and internationally, and the election results will have implications far beyond Ankara. Turkiye stands at the crossroads of Europe and Asia, and it plays a key role in NATO. Turkey Presidential Election 2023 Results: President Recep Tayyip Erdogan Wins Re-Election, Extending His 20 Years in Power.
Erdogan's government vetoed Sweden's bid to join NATO and purchased Russian missile-defence systems, which prompted the United States to oust Turkiye from a US-led fighter-jet project. But it also helped broker a crucial deal that allowed Ukrainian grain shipments and averted a global food crisis.
Erdogan, who has been at Turkiye's helm for 20 years, came just short of victory in the first round of elections on May 14. It was the first time he failed to win an election outright, but he made up for it Sunday. His performance came despite crippling inflation and the effects of a devastating earthquake three months ago.
Hungary's Prime Minister Viktor Orban congratulated Erdogan via Twitter for an “unquestionable election victory,” and Qatar's ruler, Sheikh Tamim bin Hamad Al Thani wished the Turkish president success in a tweet. Other congratulations poured in from Azerbaijan, Pakistan, Libya, Algeria, Serbia and Uzbekistan.
The two candidates offered sharply different visions of the country's future, and its recent past. Critics blame Erdogan's unconventional economic policies for skyrocketing inflation that has fuelled a cost-of-living crisis. Many also faulted his government for a slow response to the earthquake that killed more than 50,000 people in Turkiye.
Mehmet Yurttas, an Erdogan supporter, disagreed. “I believe that our homeland is at the peak, in a very good condition,” the 57-year-old shop owner said. “Our country's trajectory is very good and it will continue being good. ” Erdogan has retained the backing of conservative voters who remain devoted to him for lifting Islam's profile in the Turkiye, which was founded on secular principles, and for raising the country's influence in world politics.
Erdogan, 69, could remain in power until 2028. A devout Muslim, he heads the conservative and religious Justice and Development Party, or AKP. Erdogan transformed the presidency from a largely ceremonial role to a powerful office through a narrowly won 2017 referendum that scrapped Turkiye's parliamentary system of governance. He was the first directly elected president in 2014, and won the 2018 election that ushered in the executive presidency.
The first half of Erdogan's tenure included reforms that allowed the country to begin talks to join the European Union, and economic growth that lifted many out of poverty. But he later moved to suppress freedoms and the media and concentrated more power in his own hands, especially after a failed coup attempt that Turkiye says was orchestrated by the US-based Islamic cleric Fethullah Gulen. The cleric denies involvement.
Erdogan's rival is a soft-mannered former civil servant who has led the pro-secular Republican People's Party, or CHP, since 2010. Kilicdaroglu campaigned on promises to reverse Erdogan's democratic backsliding, to restore the economy by reverting to more conventional policies, and to improve ties with the West.
In a frantic effort to reach out to nationalist voters in the runoff, Kilicdaroglu vowed to send back refugees and ruled out peace negotiations with Kurdish militants if he is elected. The defeat for Kilicdaroglu adds to a long list of electoral losses to Erdogan, and puts pressure on him to step down as party chairman.
Erdogan's AKP party and its allies retained a majority of seats in parliament following a legislative election that was also held on May 14. Sunday also marked the 10th anniversary of the start of mass anti-government protests that broke out over plans to uproot trees in Istanbul's Gezi Park, and became one of the most serious challenges to Erdogan's government.
Erdogan's response to the protests, in which eight people were convicted for alleged involvement, was a harbinger of a crackdown on civil society and freedom of expression. Following the May 14 vote, international observers pointed to the criminalisation of dissemination of false information and online censorship as evidence that Erdogan had an “unjustified advantage”. They also said that strong turnout showed the resilience of Turkish democracy.
Erdogan and pro-government media portrayed Kilicdaroglu, who received the backing of the country's pro-Kurdish party, as colluding with “terrorists” and of supporting what they described as “deviant” LGBTQ rights.
In his victory speech, he repeated those themes, saying LGBTQ people cannot “infiltrate” his ruling party or its nationalist allies.
(This is an unedited and auto-generated story from Syndicated News feed, LatestLY Staff may not have modified or edited the content body) | english |
<filename>data_bank/wgbb_7279.json
{"questions": [{"player_1": {"name": "<NAME>", "player_stat": 116.0}, "player_2": {"name": "<NAME>", "player_stat": 128.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 12.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 9.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 23.04}, "player_2": {"name": "<NAME>", "player_stat": 29.62}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 27.75}, "player_2": {"name": "<NAME>", "player_stat": 25.41}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 7.3}, "player_2": {"name": "<NAME>", "player_stat": 6.67}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 42.66}, "player_2": {"name": "<NAME>", "player_stat": 39.96}, "stat": "average", "skill": "BAT", "question_text": "Who has the better batting average?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 57.0}, "player_2": {"name": "<NAME>", "player_stat": 13.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 12.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 28.73}, "player_2": {"name": "<NAME>", "player_stat": 33.33}, "stat": "average", "skill": "BAT", "question_text": "Who has the better batting average?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 8.2}, "player_2": {"name": "<NAME>", "player_stat": 8.39}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 37.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 26.27}, "player_2": {"name": "<NAME>", "player_stat": 31.39}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 79.0}, "player_2": {"name": "<NAME>", "player_stat": 95.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 133.53}, "player_2": {"name": "<NAME>", "player_stat": 116.97}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 24.13}, "player_2": {"name": "<NAME>", "player_stat": 30.13}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 124.72}, "player_2": {"name": "<NAME>", "player_stat": 137.45}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 76.0}, "player_2": {"name": "<NAME>", "player_stat": 99.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 21.83}, "player_2": {"name": "<NAME>", "player_stat": 19.72}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 7.3}, "player_2": {"name": "<NAME>", "player_stat": 8.51}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}]} | json |
Tollywood prince Mahesh Babu is busy shooting for Brahmotsavam in Goa but he made it a point to enjoy with family in between the shoots. Mahesh was seen spending quality time with his wife Namrata Shirodkar and his kids Gautham Krishna and Sitara in Goa. Watch the beautiful pictures of them enjoying at Goa beach. Mahesh Babu's Brahmotsavam will hit the big screens in May 2016. Actor Mahesh Babu and former Miss India Namrata Shirodkar got married on February 10 2005 at Marriott Hotel in Mumbai. Mahesh made his debut at the age of four as a child artist in Needa (1979) and acted in eight other films as a child artist. He made his debut as a lead actor with Rajakumarudu in 1999 and won the Nandi Award for Best Male Debut. | english |
/*
Jenny WordPress Theme
White Style Sheet
*/
/* ----------------------------------------------- [ * ] */
* {
margin: 0;
padding: 0;
}
/* =Reset default browser CSS. Based on work by <NAME>: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
background: transparent;
border: 0;
margin: 0;
padding: 0;
vertical-align: baseline;
}
@font-face{font-family:gnuolane;src: url(/wp-content/themes/jenny/styles/gnuolane.ttf) format("truetype");}
body {
line-height: 1;
}
h1, h2, h3, h4, h5, h6 {
clear: both;
font-weight: normal;
}
ol, ul {
list-style: none;
}
blockquote {
quotes: none;
}
blockquote:before, blockquote:after {
content: '';
content: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
a img {
border: none;
}
:focus {
outline: 0;
}
/* -------------------------------- [ General Elements ] */
body {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size: 12px;
color: #444;
background:#F4F4F4;
line-height:1.65;
}
hr {
display: none;
}
img {
vertical-align: baseline;
border: 0;
}
p {
margin: 0 0 1.4em 0;
font-size: 13px;
line-height: 1.65;
}
h1, h2, h3, h4, h5, h6{
font-family:"Lucida Grande","Lucida Sans Unicode","Trebuchet MS",Arial,sans-serif;
}
strong {
font-weight: bold;
}
cite,
em,
i {
font-style: italic;
}
big {
font-size: 131.25%;
}
sup,
sub {
height: 0;
line-height: 1;
position: relative;
vertical-align: baseline;
}
sup {
bottom: 1ex;
}
sub {
top: .5ex;
}
ins {
background: #ffc;
text-decoration: none;
}
a {
color: #4083A9;
text-decoration: none;
}
a:hover {
color: #D54E21;
text-decoration: underline;
}
.left{
float:left;
}
.right{
float:right;
}
h1.page-title , h2.page-title {
margin: 0 0 .75em 0;
font-size: 28px;
font-weight: normal;
color: #21759B;
}
/* ----------------------------------------- [ Wrapper ] */
#wrapper {
width: 800px;
margin: 0 auto;
padding:20px 40px 20px 40px;
background:#FFF;
}
#wrapper:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* ------------------------------------------ [ Header ] */
#header {
margin: 0;
margin-bottom:10px;
padding: 0;
clear:both;
}
#header:after, #navigation-wrap:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#masthead{
height:70px;
padding:10px 0 5px 0;
}
#masthead:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#site-title{
font-family:gnuolane;
font-size: 100px;
font-weight: normal;
text-transform:uppercase;
color:#333;
float:left;
clear:both;
line-height:1;
margin:0;
padding:0;
}
#site-title{font-size:100px;margin-top:9px;}
#masthead{height:120px;}
#text-3{font-size:10px;line-height:20px;}
#site-title a:link, #site-title a:visited, #site-title a:hover, #site-title a:active{
text-decoration: none;
color:#444 !important;
line-height:1;
}
#site-description{
font-size: 10;
font-weight: normal;
text-transform:uppercase;
color:gray;
float:left;
clear:both;
line-height:1;
}
/*------------------------------------- [ Top Navigation ]*/
#navigation-wrap{
width:100%;
border-bottom:1px solid #F0F0F0;
border-top:1px solid #F0F0F0;
clear:both;
background:#FAFAFA;
font-family:gnuolane;
}
#navigation{
float:left;
width:90%;
font-size: 15px;
line-height:1em;
list-style-type:none;
text-transform:uppercase;
}
#navigation a:link, #navigation a:visited{
text-decoration:none;
}
#navigation a:hover {
color:#444;
}
/* Superfish Dropdown Menu */
.nav, .nav * {
margin: 0;
padding: 0;
list-style: none;
}
.nav {
line-height: 1.0;
}
.nav ul {
position: absolute;
top: -999em;
width: 20em; /* left offset of submenus need to match (see below) */
}
.nav ul li {
width: 100%;
}
.nav li:hover {
visibility: inherit; /* fixes IE7 'sticky bug' */
}
.nav li {
float: left;
position: relative;
}
.nav a {
display: block;
position: relative;
}
.nav li:hover ul,
.nav li.sfHover ul {
left: 0;
top: 1.8em; /* match top ul list item height */
z-index: 99;
}
ul.nav li:hover li ul,
ul.nav li.sfHover li ul {
top: -999em;
}
ul.nav li li:hover ul,
ul.nav li li.sfHover ul {
left: 20em; /* match ul width */
top: 0;
}
ul.nav li li:hover li ul,
ul.nav li li.sfHover li ul {
top: -999em;
}
ul.nav li li li:hover ul,
ul.nav li li li.sfHover ul {
left: 10em; /* match ul width */
top: 0;
}
/*** NAV SKIN ***/
.nav {
float: left;
}
.nav a {
padding: 5px 15px;
text-decoration:none;
}
.nav a, .nav a:visited { /* visited pseudo selector so IE6 applies text colour*/
color: #444;
}
.nav li {
background: #FAFAFA;
}
.nav li li {
background: #FAFAFA;
border:1px solid #F0F0F0;
border-top:0;
}
.nav li:hover, .nav li.sfHover,
.nav a:focus, .nav a:hover, .nav a:active {
background: #F4F4F4;
outline: 0;
}
/*------------------------------------------ [ Top Connect RSS Twitter Facebook ] */
ul#connect{
float:right;
font-size:9px;
text-transform:uppercase;
color:#444;
margin-top:5px;
}
ul#connect li{
float:right;
margin-right:7px;
}
/* ----------------------------------------- [ Content ] */
#content {
padding: 15px 20px;
float: left;
text-align: justified;
}
#content.narrow{
width: 535px;
}
#content.fullpage{
width: 878px;
}
/* Post */
.hentry {
margin: 0 0 75px 0 !important;
}
.hentry:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.hentry h1, .hentry h2, .hentry h3, .hentry h4, .hentry h5, .hentry h6 {
margin: 25px 0 5px 0;
color: #333;
}
.hentry h1{
font-size: 30px;
}
.hentry h2{
font-size: 26px;
}
.hentry h3{
font-size: 20px;
}
.hentry h4,
.hentry h5,
.hentry h6 {
font-size: 20px;
}
.hentry table {
border-left: 1px solid #F0F0F0;
border-top: 1px solid #F0F0F0;
margin: 0 -1px 24px 0;
text-align: left;
width: 100%;
}
.hentry tr th,
.hentry thead th {
color: #777;
font-size: 12px;
font-weight: bold;
line-height: 18px;
padding: 9px 24px;
border-right: 1px solid #F0F0F0;
border-bottom: 1px solid #F0F0F0;
}
.hentry tr td {
padding: 6px 24px;
border-right: 1px solid #F0F0F0;
border-bottom: 1px solid #F0F0F0;
}
.hentry tr.even td {
background: #FBFBFB;
}
.hentry tr.odd td {
background: #E1E1E1;
}
.hentry dl {
margin: 0 0 20px 0;
}
.hentry dt {
margin-top: 20px;
line-height: 1.65;
font-weight: bold;
}
.hentry dt:first-child {
margin: 0;
}
.hentry dd {
margin-bottom: 20px;
line-height: 1.65;
}
.hentry ul {
list-style: square;
margin: 0 0 18px 2.5em;
}
.hentry ol {
list-style: decimal;
margin: 0 0 18px 2.5em;
}
.hentry ol ol {
list-style: upper-alpha;
}
.hentry ol ol ol {
list-style: lower-roman;
}
.hentry ol ol ol ol {
list-style: lower-alpha;
}
.hentry ul ul,
.hentry ol ol,
.hentry ul ol,
.hentry ol ul {
margin-bottom: 0;
}
.hentry li {
font-size: 13px;
line-height: 1.65;
}
.hentry li ul,
.hentry li ol {
margin-left: 15px;
}
.hentry address {
font-size: 13px;
line-height: 1.65;
margin: 0 0 14px 0;
}
.hentry abbr,
.hentry acronym {
border-bottom: 1px dotted #F0F0F0;
cursor: help;
}
.hentry code {
font-family: Monaco, "Courier New", fixed;
font-size: 12px;
color: #6C8318;
border:1px solid #F0F0F0;
background: #FFFFEF;
padding: 0 2px;
font-weight: normal;
}
.hentry pre {
margin: 0 0 14px 0;
font-family: Monaco, "Courier New", fixed;
font-size: 12px;
background: #FFFFEF;
border:1px solid #F0F0F0;
color: #6C8318;
line-height: 18px;
margin-bottom: 18px;
padding: 5px 7px;
}
.hentry kbd,
.hentry tt {
font-family: Monaco, "Courier New", fixed;
font-size: 12px;
color: #666;
}
.hentry var {
color: #892E12;
}
/* Hack to make the 'Div and Span Tests' unit test look better */
div.myclass strong {
font-size: 14px;
line-height: 1.65;
}
.hentry blockquote {
margin-left: 30px;
padding-left: 15px;
border-left: 2px solid #F0F0F0;
}
.hentry img {
height:auto;
margin-top: 5px;
margin-bottom: 15px;
padding: 8px;
background: #FAFAFA;
border: 1px solid #F0F0F0;
}
.sticky {
}
.sticky:before{
content: "# Sticky Post";
font-size:8px;
line-height:1;
text-transform:uppercase;
color:#FFF;
background:#DFDFDF;
padding:1px 3px;
text-align:right;
letter-spacing:1px;
}
/*Images Widths*/
.post img, .narrow .page img{
max-width: 515px;
}
.post .wp-caption, .narrow .page .wp-caption{
max-width: 535px;
}
.fullpage .page img, .attachment img{
max-width:860px;
}
.fullpage .page .wp-caption{
max-width: 878px;
}
/*Post Title Meta*/
.post-header{
margin:0 0 15px 0;}
.post-header h1, .post-header h2 {
margin: 0 0 10px 0;
font-size: 36px;
font-weight: bold;
color: #333;
line-height:1.4;
font-family: gnuolane;
}
.post-header h1 a, .post-header h2 a {
border: 0 none;
color: #333;
}
.post-header h1 a:hover, .post-header h2 a:hover{
text-decoration:none;
}
.post-header h3 {
margin-bottom: 0;
font-size: 20px;
line-height: 1.4;
font-weight: normal;
}
.post-header h3 a {
border: 0 none;
color: #333;
text-decoration:none;
}
.post-header p {
font-size: 10px;
color: #A3A3A3;
text-transform:uppercase;
}
.post-meta {
font-family:Arial,Helvetica,sans-serif;
font-size: 9px;
color: #A3A3A3;
border-left:4px solid #F0F0F0;
text-transform:uppercase;
clear: both;
padding: 0 0 0 10px;
margin:25px 0 15px 0;
}
.post-meta ul {
list-style-type: none;
margin: 0 0 0 0;
}
.post-meta li {
font-size: 1.1em;
line-height: 1.5;
}
.post-navigation{
margin: 0 0 40px 0;
padding: 10px 0 0 0;
clear: both;
float: left;
height: 1%;
}
.post-navigation:after,
.comment-navigation:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.post-navigation ul,
.comment-navigation ul {
list-style-type: none;
margin: 0 0 0 0;
}
.post-navigation li{
margin-right: 25px;
font-size: 1.1em;
color: #777;
float: left;
}
.post-page-links {
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size: 10px;
text-transform:uppercase;
color: #A3A3A3;
margin: 20px 0;
clear:both;
}
.post-page-links a:link, .post-page-links a:visited{
background:#FAFAFA;
color: #777;
padding:3px;
font-size:10px;
}
/* Comments */
.post-comments {
margin: 0 0 40px 0;
}
.post-comments:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.post-comments h2, h3#comments-title{
margin-bottom: 1em;
font-size: 2.8em;
font-weight: normal;
color: #21759B;
}
.comment,
.trackback,
.pingback {
width: 530px;
margin: 0 0 40px 0;
padding: 0 0 20px 0;
border-bottom: 1px solid #F0F0F0;
clear: both;
float: left;
height: 1%;
}
.comment:after,
.trackback:after,
.pingback:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.pingback p,
.trackback p {
font-size: 1.1em;
line-height: 1.5;
color: #aaa;
}
.comment-avatar {
width: 60px;
float: left;
}
.comment-avatar img {
width: 54px;
padding: 2px;
background: #FAFAFA;
border: 1px solid #F0F0F0;
}
.comment-author{
font-weight:bold;
color:#4083A9;
text-transform:capitalize;
}
.comment-body {
width: 460px;
margin-left: 10px;
float: right;
}
.comment-body ul {
margin: 0 0 1.4em 1.2em;
}
.comment-body li {
font-size: 11px;
line-height: 1.5;
}
.comment-body blockquote {
margin-left: 30px;
margin-bottom: 1.4em;
padding-left: 15px;
font-size: 11px;
line-height: 1.5;
border-left: 2px solid #F0F0F0;
}
.comment-body blockquote p {
font-size: 1em;
}
.comment-meta {
margin: 0 0 10px 0;
font-size: 1.1em;
color: #A3A3A3;
}
.comment-reply-meta {
margin: 0;
font-size: 1.1em;
color: #A3A3A3;
float:right;
}
/*Author Comments*/
.bypostauthor .avatar{
background:#4083A9 !important;
}
/* Comments Form */
#respond {
overflow: hidden;
position: relative;
margin-bottom:50px;
clear:both;
}
h3#reply-title {
margin-bottom: 20px;
font-size: 2.8em;
font-weight: normal;
color: #21759B;
}
#respond p {
color: #A3A3A3;
margin-bottom: 10px;
}
#respond .comment-notes {
margin-bottom: 1em;
}
.form-allowed-tags {
line-height: 1em;
}
#cancel-comment-reply-link {
font-weight: normal;
font-size:24px;
}
a:hover#cancel-comment-reply-link {
text-decoration:none;
}
#respond .required {
color: #21759B;
font-weight: bold;
}
#respond label {
font-size: 13px;
font-weight:bold;
line-height: 1.4;
color: #777;
}
#respond input {
width: 95%;
padding: 6px;
font-family:Verdana,Arial,Helvetica,san-serif;
font-size: 12px;
border: 1px solid #ddd;
color: #666;
}
#respond textarea {
width: 95%;
padding: 6px;
font-size: 12px;
font-family:Verdana,Arial,Helvetica,san-serif;
line-height: 1.65;
border: 1px solid #DDD;
color: #555;
}
#respond .form-allowed-tags {
color: #888;
font-size: 12px;
line-height: 18px;
}
#respond .form-allowed-tags code {
font-size: 11px;
}
#respond .form-submit {
margin: 12px 0;
}
#respond .form-submit input {
font-size: 14px;
width: auto;
}
input#submit {
background:url("images/button-grad.png") repeat-x scroll left top;
background-color: #21759B;
border-color:#298CBA;
color:#FFF;
font-size:14px;
font-weight:bold;
padding:4px 8px;
text-shadow:0 -1px 0 rgba(0, 0, 0, 0.3);
width: auto;
cursor: pointer;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-transition: all .4s linear;
}
input#submit:hover {
background-color: #21759B;
border-color:#13455B;
color:#EAF2FA;
text-decoration: none;
}
.depth-2,
.depth-3,
.depth-4,
.depth-5 {
margin: 15px 0 0 0;
padding: 0;
border: 0 none;
}
.depth-2 .comment-avatar {
text-align: right;
}
.depth-2 .comment-body p {
font-size: 1.1em;
line-height: 1.5;
}
.depth-2 .comment-avatar img {
width: 30px;
height: 30px;
}
.depth-3 .comment-avatar {
width: 100px;
}
.depth-3 .comment-body {
width: 420px;
}
.depth-4 .comment-avatar {
width: 140px;
}
.depth-4 .comment-body {
width: 380px;
}
.comment-navigation {
margin: 0 0 40px 0;
clear: both;
float: left;
height: 1%;
width:100%;
}
.comment-navigation li {
float: left;
color: #777;
margin-right:25px;
}
/* ----------------------------------------- [ Sidebar ] */
#sidebar {
width: 170px;
padding-top: 50px;
float: left;
color: #777777;
font-size:13px;
line-height:.5;
}
#text-4{
width: 100px;
border-left-style: solid;
border-left-color: #d3d2d4;
border-left-width: 1px;
margin-left: 60px;
}
#sidebar img{
padding-bottom: 5px;
padding-left:50px;
}
#sidebar h3 {
margin: 0 0 10px 0;
font-size: 14px;
line-height: 1.4;
text-transform: uppercase;
color: #333;
border-bottom:1px solid #F0F0F0;
}
#sidebar a {
color: #555;
}
#sidebar a:hover {
color: #111;
}
#sidebar p {
font-size: 13px;
line-height: 1.5;
}
#sidebar ul {
list-style-type: none;
}
#sidebar li {
margin: 0 0 4px 0;
font-size: 13px;
line-height: 1.5;
}
#sidebar .section {
margin: 0 0 40px 0;
padding: 0;
width:100%;
}
#sidebar .section:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* ------------------------------------------ [ Widgets With Bulleted Lists ] */
.widget_categories li, .widget_archive li, .widget_links li, .widget_meta li{
width:130px;
float:left;
margin-right:10px !important;
padding: 2px 0 2px 12px;
background: url(images/pointer-grey.gif) no-repeat 0 8px;
border-bottom:1px solid #F0F0F0;
}
/* ------------------------------------------ [ Widget Tag Cloud ] */
.widget_tag_cloud{
font-family: "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Verdana, Arial, sans-serif;
text-align:center;
}
.widget_tag_cloud h3{
text-align:left;
}
.widget_tag_cloud a{
text-transform:capitalize;
padding:4px;
}
#sidebar .widget_tag_cloud a:link, #sidebar .widget_tag_cloud a:visited {
color:#555;
text-decoration:none;
}
#sidebar .widget_tag_cloud a:hover{
color:#4083A9;
text-decoration:underline;
}
/* ------------------------------------------ [ Footer ] */
#footer {
padding: 10px 0 0 0;
clear: both;
}
#footer p {
font-size: 11px;
color: #A3A3A3;
line-height:1;
margin:0 0 5px 0;
clear:both;
display:block;
}
#footer-navi{
font-size: 10px;
font-family:"Lucida Grande","Lucida Sans Unicode","Trebuchet MS",Arial,sans-serif;
clear:both;
line-height:1em;
list-style-type:none;
text-transform:uppercase;
margin-bottom:5px;
background:#FAFAFA;
overflow:hidden;
padding:2px;
}
#footer-navi a{
color:#444;
text-decoration:none;
}
#footer-navi li{
float:left;
padding:0 15px 0 0;
}
#footer-navi:after{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* Plugin: Twitter for WordPress (http://wordpress.org/extend/plugins/twitter-for-wordpress/) */
span.twitter-timestamp {
color: #aaa;
}
li.twitter-item {
margin-bottom: 1.4em !important;
}
/* Widget: Search */
#searchform input {
width: 86%;
padding: 6px 6px 6px 30px;
font-size: 13px;
border: 1px solid #DDD;
background:#FFF url(images/search.png) no-repeat -3px -35px;
color: #CFCFCF;
}
#searchform input:focus{
color:#444;
background:#FFF url(images/search.png) no-repeat -3px -3px;
}
/* Widget: Calendar */
.widget_calendar{
}
table#wp-calendar {
width: 100%;
border-collapse: collapse;
text-align: center;
}
table#wp-calendar caption {
font-size: 11px;
letter-spacing: 1px;
text-transform: uppercase;
background:#E0E8EF;
margin-bottom:10px;
color:#333;
font-weight:bold;
line-height:1;
}
table#wp-calendar thead {
font-size: 11px;
font-weight:normal;
}
table#wp-calendar tbody, table#wp-calendar tfoot{
font-size: 11px;
}
table#wp-calendar tfoot td#prev{
padding:2px 0;
text-align:left;
}
table#wp-calendar tfoot td#next{
font-size: 11px;
padding:2px 0;
text-align:right;
}
table#wp-calendar caption, table#wp-calendar td, table#wp-calendar tr {
padding: 7px 2px;
}
table#wp-calendar tr {
border-bottom: 1px solid #F0F0F0;
}
table#wp-calendar tr:last-child {
border: 0 none;
}
/* Related Posts
------------------------------------------------------------ */
.relatedposts{
width:100%;
margin-top:10px;
overflow:hidden;
font-size:13px;
line-height:1.3em;
text-align:center;
clear:both;
}
.relatedposts ul{
list-style:none;
margin:10px 0 0 0;
padding:0;
}
.relatedposts li{
width:155px;
margin:0 25px 0 0;
float:left;
}
.relatedposts li:last-child{
border-right:0;
padding-right:0;
margin-right:0;
}
.relatedthumb img{
width:150px;
height:150px;
padding:7px;
border:1px solid #F0F0F0;
margin: 0 0 0 0;
display:block;
background: #FAFAFA;
}
.relatedtext{
font-weight:normal;
}
.relatedtitle{
text-align:left;
}
/*Next Previous Links*/
ul.next-prev-links{
font-size:12px;
line-height:1.1;
list-style:none;
margin: 40px 0 0 0 !important;
padding: 0 0 0 0 !important;
overflow:hidden;
}
ul.next-prev-links li{
margin: 0 20px 0 0 !important;
padding: 0 0 0 0 !important;
float:left;
}
/* Widget: Pages */
#sidebar ul.children {
margin-left: 15px;
margin-bottom: 15px;
font-size: .9em;
}
/*Go To Top Arrow*/
.top-arrow{
padding:15px 1px 1px 1px;
}
.top-arrow a{
padding:2px 3px 4px 3px;
background:#FAFAFA;
text-decoration:none;
border:1px solid #F0F0F0;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-transition: all .2s linear;
}
.top-arrow a:hover{
border:1px solid #DFDFDF;
}
/* General WordPress Classes */
.aligncenter {
display: block;
margin: 0 auto;
text-align: center;
}
.alignleft {
margin-right: 15px;
float: left;
}
.alignright {
margin-left: 15px;
float: right;
}
.alignnone {
margin-right: 5px;
margin-bottom: 0;
}
.wp-caption {
margin-bottom:15px;
padding-right:12px;
}
.wp-caption img {
background: #FAFAFA;
border:1px solid #F0F0F0;
height:auto;
margin-top:5px;
margin-bottom:5px;
padding:8px;
}
.wp-caption a[rel] {
border: 0 none;
}
.wp-caption-text {
font-size: 11px !important;
line-height: 1.5 !important;
margin:1px 0;
padding:1px;
text-align: center;
color:#666;
font-style:italic;
}
.gallery-caption {
font-size: 11px !important;
line-height: 1.5 !important;
margin:1px 0;
padding:1px;
text-align: center;
color:#666;
font-style:italic;
}
.gallery-icon a {
border: 0 none;
}
.gallery-item img {
background: #FAFAFA;
height:auto;
margin-top:5px;
margin-bottom:15px;
padding:8px;
border: 1px solid #F0F0F0 !important;
}
.gallery {
margin: 0 auto 18px;
}
.gallery .gallery-item {
float: left;
margin-top: 0;
text-align: center;
width: 33%;
}
.gallery img {
background: #FAFAFA;
border:1px solid #F0F0F0;
}
.gallery .gallery-caption {
color: #888;
font-size: 12px;
margin: 0 0 12px;
}
.gallery dl {
margin: 0;
}
.gallery br+br {
display: none;
}
/*Attachment Page*/
.entry-attachment{
margin:0;
}
.entry-attachment img { /* single attachment images should be centered */
display: block;
padding:8px;
background:#FAFAFA;
border:1px solid #F0F0F0;
margin: 0 0 15px 0;
}
p.attachment{
margin-bottom:5px;
}
.entry-caption, .entry-caption p {
font-size: 13px !important;
line-height: 1.5 !important;
text-align: left;
color:#666;
font-style:italic;
}
ul.attachment-navi{
font-size:13px;
line-height:1.65;
margin:0 0 1.4em 0;
}
ul.attachment-navi:after{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.attachment-navi li{
margin-right:25px;
list-style:none;
float:left;
}
.return-attachment{
display:block;
overflow:hidden;
clear:both;
}
/*Author Page*/
#entry-author-info {
background: #f2f7fc;
border: 1px solid #F0F0F0;
border-top: 4px solid #F0F0F0;
clear: both;
margin: 24px 0;
overflow: hidden;
padding: 18px 20px;
}
#entry-author-info #author-avatar {
background: #fff;
border: 1px solid #F0F0F0;
float: left;
height: 96px;
margin: 0 -116px 0 0;
padding: 2px;
}
#entry-author-info #author-description {
float: left;
margin: 0 0 0 116px;
}
#entry-author-info h2 {
color: #000;
font-size: 20px;
margin-bottom: 0;
}
/*Typo Styles*/
.intro, .intro1 {
color:#888;
font-size:18px;
font-family:"Lucida Grande","Lucida Sans Unicode","Trebuchet MS",Verdana,Arial,sans-serif;
}
.intro2 {
color:#888;
font-size:18px;
font-family:Georgia, "Times New Roman", Serif;
}
.intro3{
color:#444;
font-size:20px;
font-family:Georgia, "Times New Roman", Serif;
}
.capitalize{
text-transform:capitalize;
}
.col1, .half, .half1 {
width:48%;
float:left;
margin-bottom:1.4em;
}
.col2, .half2{
width:48%;
float:right;
margin-bottom:1.4em;
}
.third, .third1, .third2{
width:280px;
float:left;
margin-bottom:1.4em;
margin-right:20px;
}
.third3{
width:280px;
float:right;
margin-bottom:1.4em;
}
.quarter, .quarter1, .quarter2, .quarter3{
width:205px;
float:left;
margin-bottom:1.4em;
margin-right:20px;
}
.quarter4{
width: 205px;
float:right;
margin-bottom:1.4em;
}
/*-------------------------------------- [ Archives Page ]*/
.archivesection{
border-bottom: 1px solid #EEE;
}
.archivesection h3 {
cursor:pointer;
margin-bottom:15px;
padding-left:25px;
background: url(images/plusminus.png) no-repeat 0 8px;
color:#21759B;
}
.archivesection h3:hover{
}
h3.active{
background: url(images/plusminus.png) no-repeat 0 -22px;
}
.archiveslist{
padding-bottom:25px;
padding-left:25px;
}
.archiveslist ol, .archiveslist ul{
overflow:hidden;
width:100%;
clear:both;
margin:0;
padding-left:15px;
}
.archiveslist li{
color:#AFAFAF;
}
/*-------------------------------------------- [Post Ads ]*/
.topad{
margin: 20px 0;
padding:5px 10px;
background:#FAFAFA;
border:1px solid #F0F0F0;
}
.bottomad{
margin: 20px 0;
padding:5px 10px;
background:#FAFAFA;
border:1px solid #F0F0F0;
}
.column{
clear:both;
margin-bottom:15px;
}
.column:after{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
| css |
<gh_stars>0
# Izzle simple OAuth2 Proxy based on Laravel Lumen
## Usage
```php
<?php
use Illuminate\Support\Str;
use GuzzleHttp\Client;
const PROXY_BASE_URI = 'https://proxy.test';
require_once __DIR__ . '/vendor/autoload.php';
session_start();
if (!empty($_REQUEST['state']) && !empty($_REQUEST['code'])) {
if ($_SESSION['state'] !== $_REQUEST['state']) {
die('Client: Invalid state');
}
$client = new Client();
$response = $client->request('POST', PROXY_BASE_URI . '/token', [
'verify' => false,
'form_params' => [
'code' => $_REQUEST['code']
]
]);
echo json_decode((String) $response->getBody(), true, 512, JSON_THROW_ON_ERROR);
die();
}
$params = [
'redirect_uri' => 'https://localhost/callback', // Your callback URL
'state' => ($_SESSION['state'] = Str::random(40)),
'scope' => 'profile phone'
];
header('Location: ' . PROXY_BASE_URI . '/redirect?' . http_build_query($params));
```
# Lumen PHP Framework
[](https://travis-ci.org/laravel/lumen-framework)
[](https://packagist.org/packages/laravel/lumen-framework)
[](https://packagist.org/packages/laravel/lumen-framework)
[](https://packagist.org/packages/laravel/lumen-framework)
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
## Official Documentation
Documentation for the framework can be found on the [Lumen website](https://lumen.laravel.com/docs).
## Contributing
Thank you for considering contributing to Lumen! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Security Vulnerabilities
If you discover a security vulnerability within Lumen, please send an e-mail to <NAME> at <EMAIL>. All security vulnerabilities will be promptly addressed.
## License
The Lumen framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
| markdown |
ORISSA :
Harijan, a magazine was published from Puri by Rai Bahadur Lokanath Mishra with an aim to abolish untouchability.
The 23rd session of Utkal Sammilani was held at Berhampur under the presidentship of Krushna Chandra Gajapati. Raja of Parala.
A High Court was established on 10th April at Baripada with the Dewan as the Chief Judge.
Noted writer Prof. Krushna Prasad Mishra was born on 19th April at Banpur. He became topper in Banares Hindu University (1956) in philosophy. (d. 13.2.1994)
Dhenkanal Municipality was established.
High flood occurred in river Kathajodi. Due to 'Khandeita Ghai", a vast area was flooded. Harshapur, Machhagana and Bisanpur were submerged.
Nababharat Press was established by Pt Nilakantha Das after getting the press purchased from Dhenkanal.
Third special Utkal Sammilani was held at Jeypore in June under the presidentship of Bhubanananda Das.
On 25th April, a meeting of Zamindars Association was held at Berhampur. The meeting could not end in harmony since the views Raja of Parala and Raja of Khalikote deferred. The views of Raja of Parala was that there is no use to create separate province of Orissa unless Parala and Jeypore estate are merged in it. But the view of Raja of Khalikote was that let the Orissa province be formed, thereafter the merger of Parala and Jeypore estate could be thought of. The views of Raja of Khalikote were very much appreciated by leaders of Telugu Association. In the month of June, at Paralakhemundi an organisation. called People's Association was constituted with P. Sitaramswamy as president and B. Satyanarayan (an
Digitized by srujanika@gmail.com
| english |
The current series of posts began in May this year with the announcement "A New Paranormal Initiation to 'God' and 'The Devil' Is Chronicled by Mark Russell Bell (with Updates)". Don't you, yourself, overlook the occurrences and incidents that have been occurring in your personal life during this new phase of life that has been revealed to have recently commenced across Earth as I, myself, don't in regard to some of my own recent experiences. A recent decline in readership statistics for pageviews of articles at this blog suggests the possibility of a diminishing lack of interest in metaphysical, paranormal and spiritual subjects worldwide or some manner of influence resulting from a 'Google Algorithm Update/s'. Possibly, casual readers consider these unprecedented recent Metaphysical Articles posts not as reflecting my attestations of "my primary orientation as metaphysical author is as a journalist" and passively, ignorantly surmise anything conflicting with usual news media programming/social consciousness as something therefore to be ignored and rejected as nonconformist. This is the mass human mentality that obviously is a contributing factor with the onset of this current phase of 'The Devil' 'God Alter Ego' as I've been chronicling. (This is Article 22 in this series.) A recent comment of mine in a journal blog article is — When I began writing journal entries in early 2021, I had no idea that this was going to provide a personal documentary account of the shocking emergence of the 'God Alter Ego' usually called 'The Devil.' I'd previously considered 'The Devil' as a name for metaphorically 'bad' or 'evil' circumstances and/or superstitions as originating in civilizations during the ancient past.
The reader should consider that if the omnipresent 'Source Consciousness' isn't able to contribute accepted consciousness-expanding ideas to an individual 'consciousness unit'/'personality'/'aspect of 'All That Is, the unit (you) can become impeded concerning spiritual intellectual advancement while experiencing what I call 'entertainment trance' with your attention given to the inhibiting pastimes of corporate TV shows, movies, professional sports, computer games, novels, and so on. A metaphysically and cosmologically aware person (with 600+ articles at this blog making possible expansion of consciousness/initiation) will always be able to find interesting media and thoughts for contemplation. For example, the following movie titles are what I watched and contemplated as a USC student who'd selected a "French Film" course during the Fall 1978 semester in 1978. This list reflects the films selected by the course instuctor, Ms. Barr.
Movie title / director (The year of first release and some American titles are in parentheses.)
Le Crime de Monsieur Lange / Jean Renoir (1931)
Le jour se lève / Marcel Carné (1939 Daybreak)
Le quatre cents Coups / Francois Truffaut (1959 The 400 Blows)
Les amants / Louis Malle (1958 The Lovers)
Tirez sur le pianiste / Francois Truffaut (1960 Shoot the Piano Player)
À bout de souffle / Jean-Luc Godard (1960 Breathless)
Masculin-feminin / Jean-Luc Godard (1966)
Une femme est une femme / Jean-Luc Godard (1961 A Woman Is a Woman)
Les bonnes femmes / Claude Chabrol (1960)
Les biches / Claude Chabrol (1968 The Does)
Le collectioneuse / Eric Rohmer (1967 The Collector)
Ma nuit chez Maud / Eric Rohmer (1969 My Night at Maud's)
Lettre de Sibérie / Chris Marker (1958 Letter from Siberia)
L'année dernière à Marienbad / Alain Resnais (1961 Last Year at Marienbad)
Trans-Europ-Express / Alain Robbe-Grillet (1966)
Les dimanches de Ville d'Avray / Serge Bourguignon (1962 Sundays and Cybèle)
I wrote this article today, a Saturday here in Los Angeles, where I was born. One Pop song remembered from my youth is "Come Saturday Morning", a 1969 song performed by The Sandpipers that became popular when featured in the Paramount movie "The Sterile Cuckoo" starring Liza Minnelli. I could never then have imagined that my own path in life would converge with that of the actress later in my life. Working as a Paramount Pictures publicity writer during the years prior to my first 'paranormal initiation' that occurred in August 1995 (as documented in TESTAMENT), one of the movie projects was "Stepping Out" (1991) and I participated in the occasion when Liza received a star on the Hollywood Walk of Fame. I also couldn't have imagined that my only major intimate friendship during my life would by my personal 'guide/s in Oneness'/'Guardian Angel' as representing the 'God Force' ('M') manifesting continuously around me in diverse and unlimited ways.'
Last year, I began posting new articles concerning the daily interactions with M at My Life With Michael . Org. The published description of this journal blog is — These journal entries show how each living organism is an individual aspect of the manifesting Christ Spirit/Christ Consciousness 'Michael' (or M as I call Them). During the last time I drove my car there continued to be seen hopeful synchronicity Messages as M Collaborates with myself as 'Message bringer' serving as the 'everyman'/'surrogate' for everyone else. There were license plate number sequences to 'put something back,' 'take out something' and '111' was seen twice that I estimated to convey that a new blog article (this one) should be published the following day. While driving to conduct a few errands after attending a doctor appointment, a Lexus in front of my car showed a personalized license plate beginning with a red heart: "♥MYWYFE"; and minutes later another I saw another personalized one with "MSMYKE."
"Come Saturday Morning" is an example of a Pop song representing a Positive Polarity in relation to the earthly life experience. An example of a song from my youth representing a Negative Polarity in relation to the earthly life experience is "Fire", a song popular in 1968 performed by Arthur Brown.
Another pair of examples concerning 'good' and 'bad' polarities reflected in Pop songs—that should be considered with the understanding that relativity of experiences is subject to individual orientations—is the Laurie Anderson song expressing how one's current desires derive from the present state of intellectual and emotional development "Babydoll" that along with "The Day The Devil (comes to getcha)" was performed by Laurie on an episode of "Saturday Night Live" in 1986; this year the still-popular TV program featured Billie Eilish singing "Happier Than Ever", a pop song indicative of disturbing contents among Pop culture offerings during this present phase of 'The Devil' ('God Alter Ego').
Metaphysical Articles blog posts about Pop culture include “Krishna Consciousness and The Beatles,” “Hotel California,” “Metaphysical Aspects of Pop Songs,” “Strange Angels” and “Gaga Manifests New Aspects of the Mystery” and "Reflections and Images - Deciphering Angelic Initiation". There are also numerous articles about diverse documented forms and case study books of transcendental communication. A Metaphysical Articles Blog Index of Subjects and Article Titles with Links is available at https://paranormalpeople.org.
Following the publication of TESTAMENT in 1997, I began researching case study books about paranormal phenomena and discovered 'The Michael Pattern' and 'The Bell Pattern' that noticeably interlink famous cases of documented paranormal phenomena.
In one blog article, an example of a metaphysical correlation with the song "The Middle" is offered. Listening to the lyrics of the song, I recalled some instruction about 'the middle' spoken by Direct Voice medium Leslie Flint's transcendental communicator 'Mickey.' When asked during a 1972 seance about what was going on at this moment on his side ('The Other Side'), ‘Mickey’ replied:
". . . all around and about you tiered are many many souls, many peoples from different environments, different vibrations, different evolutional — condition of evolution — and they’re all sort of gathering around. And they’re conjuring the fact that things are going on in the middle . . ."
A recent article mentioned — This YouTube Pop music video of a performance by The Rolling Stones on "Saturday Night Light" in 1978 offers a vivid example of how hypnotic to onlookers the antics of Pop singers can be. This is generally the case with all performers and during a performance singers also may seem to be in an altered state of consciousness. This particular song "Beast of Burden" correlates with this phase of 'The Devil' conveyed to me through my personal firsthand experiences of transcendental communication. The name of the singer 'Mick Jagger' also correlates with 'The Michael Pattern' interlinking famous cases of documented paranormal phenomena. Creativity and 'channeling' are also phenomenal for individuals because each human mind is an individual 'personality' manifesting during an incarnation on the physical Earth plane of existence as an individual aspect of the omnipresent spiritual Oneness / 'The God Force' while each deciding each moment what inspirations to choose for manifestation through 'free will' and 'freedom of choice.'
Below, this 'Pop stars photo montage' exemplifies how thought impulse patterns (such as this one seen among Pop singers) offer evidence of the 'Divine Spark' in everyone.
| english |
<reponame>tibbetts/inside-c<filename>2004-class/day2/object-ret.cc
#include "stdio.h"
class twofield {
private:
int field1, field2;
public:
explicit twofield(int f);
// Copy constructor.
twofield(const twofield &of);
~twofield();
void setField(int f);
int getField() const;
};
twofield fromint(int j) {
twofield of(j);
return of;
}
int main(int argc, char **argv) {
int i = fromint(13).getField();
return i;
}
void twofield::setField(int f) {
this->field1 = f;
}
int twofield::getField() const {
return this->field1;
}
twofield::twofield(int f) {
field1 = f;
printf("initial value of field was %d.\n", field1);
}
twofield::twofield(const twofield &of) {
field1 = of.field1;
}
twofield::~twofield() {
printf("Last value of field was %d.\n", field1);
}
| cpp |
If the algorithms are all working right, then Google+’s “unofficial statistician” Paul Allen believes that Google+ now has over 43 million users. Allen, whose name you might know as being the founder of Ancestry.com has a method whereby he estimates the total number of users on Google+ based upon uncommon surnames.
In the past, according to PlusHeadlines, Allen has been startlingly accurate:
These numbers tie up almost exactly with confirmed reports that we’ve seen in the past, as well as our own findings from Google employees.
When you consider that Google+ is just barely 3 months old, the growth is huge. In fact, Allen posits that in the past 2 days since the public has been able to access the service without an invitation, there has been a 30% growth.
The stats leave me to question exactly what keeps drawing people in at such a rapid rate. Are people really backlashing against Facebook? A reported 800 million users seem to be just fine on the site, especially after recent changes to privacy. But maybe it’s a combination of just wanting a change, and Google’s rollout of comprehensive new features for its own network that has spurred momentum.
We’ve dropped a line to Google to get some confirmation, but given Allen’s track record it seems very likely that he’s dead on, or at least very close.
Get the most important tech news in your inbox each week.
| english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.