text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>TutorialSectionDefinition/Tutorial_Wiki_Section_Basics.dbd70b189523f544a85c6ae9a38c644b.json
{
"$type": "TutorialSectionDefinition, Assembly-CSharp",
"subsections": [
"Definition:Tutorial_Wiki_Section_Character_Creation_Subsection_Abilities:ae099bfe734b53c48a56d299fd729ab6",
"Definition:Tutorial_Wiki_Section_Character_Creation_Subsection_Origins:9ee05483534e5584496e0b38faa45597",
"Definition:Tutorial_Wiki_Section_Character_Creation_Magic:f4ae08e32e46eb44c9c6ee8a1377a415",
"Definition:Tutorial_Wiki_Section_Basics_Subsection_Camera:d883604dea9094a4f9019bccd9b91e46",
"Definition:Tutorial_Wiki_Section_Basics_Subsection_QuestLog:1b3e7a13b50d7574abe5aa18776242f9",
"Definition:Tutorial_Wiki_Section_Basics_Subsection_PartyManagement:16224e073b83ad7488af092fbc11a0cd",
"Definition:Tutorial_Wiki_Section_Basics_Subsection_Moving:55ede389c942e6845a1f8d9f0a2ba957"
],
"guiPresentation": {
"$id": "1",
"$type": "GuiPresentation, Assembly-CSharp",
"title": "TutorialSection/&BasicsTitle",
"description": "Feature/&NoContentTitle",
"spriteReference": {
"$id": "2",
"$type": "UnityEngine.AddressableAssets.AssetReferenceSprite, Unity.Addressables",
"m_AssetGUID": "",
"m_SubObjectName": "",
"m_SubObjectType": ""
},
"color": {
"$id": "3",
"$type": "UnityEngine.Color, UnityEngine.CoreModule",
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 1.0
},
"symbolChar": "221E"
},
"guid": "dbd70b189523f544a85c6ae9a38c644b",
"name": "Tutorial_Wiki_Section_Basics"
} | json |
<reponame>ks555/covid19italia
{
"templmd5": "523d4615240572e66d3c9373d01f37cd",
"number": "1125",
"title": "#aiutiAMOchiaiuta Raccolta fondi Fondazione della Comunità di #Monza #Brianza",
"BACKCOLOR": "green",
"FRONTCOLOR": "white",
"filemd5": "7edc66b20a399b3ec5637434be2c4452"
}
| json |
Discover the incredible benefits of aloe vera and learn how to incorporate it into your skincare routine, promote hair health, aid digestion, and more. Explore 7 versatile ways to use aloe vera for optimal skin, hair, and overall well-being.
Aloe vera is a versatile plant that has been used for centuries for its medicinal properties. It has numerous applications in skincare, hair care, digestion, oral health, immune support, and wound healing. Whether used topically or consumed internally, aloe vera offers a natural and holistic approach to promoting overall well-being. However, it's important to note that individual experiences may vary, and it's advisable to consult a healthcare professional before using aloe vera for any specific health concerns or if you have any known allergies or sensitivities.
Let us explore seven ways aloe vera can be used:
1. Skin Care:
Aloe vera gel is renowned for its soothing and moisturizing properties, making it a popular ingredient in skincare products. It can be applied topically to the skin to alleviate sunburns, irritations, and dryness. Aloe vera gel helps to hydrate the skin, reduce inflammation, and promote the healing of wounds and minor burns.
2. Acne Treatment:
Aloe vera possesses antibacterial and anti-inflammatory properties that make it effective in treating acne. Applying a thin layer of aloe vera gel to the affected area can help reduce redness, inflammation, and promote healing. Its gentle nature makes it suitable for sensitive skin as well.
3. Hair Care:
Aloe vera can be used to improve the health and appearance of the hair. It can be applied as a hair mask or mixed with other ingredients to nourish the scalp, promote hair growth, and reduce dandruff. Aloe vera's hydrating properties can also help to condition and soften the hair, leaving it shiny and manageable.
4. Digestive Aid:
Aloe vera juice, extracted from the inner gel of the plant, is known for its potential benefits in aiding digestion. Consuming aloe vera juice can help soothe digestive discomfort, reduce inflammation in the gastrointestinal tract, and promote regular bowel movements. It may also help alleviate symptoms of acid reflux and irritable bowel syndrome (IBS).
5. Oral Health:
Aloe vera can be used to promote oral health and hygiene. Its natural antibacterial properties can help reduce plaque and gingivitis when used as a mouthwash or applied directly to the gums. Aloe vera gel can also provide relief from mouth ulcers and promote the healing of minor oral wounds.
6. Immune Support:
Aloe vera contains vitamins, minerals, and antioxidants that support immune function. Consuming aloe vera juice or incorporating it into smoothies can help strengthen the immune system and protect the body against various infections and illnesses.
7. Wound Healing:
Aloe vera has long been valued for its ability to promote wound healing. Its gel can be applied topically to minor cuts, burns, and abrasions to accelerate the healing process. Aloe vera gel helps to reduce inflammation, soothe pain, and provide a protective barrier on the wound. | english |
package com.fuzs.consoleexperience.client.element;
import com.fuzs.consoleexperience.ConsoleExperience;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.gui.AbstractGui;
import net.minecraft.client.renderer.texture.PotionSpriteUploader;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.EffectUtils;
import net.minecraft.potion.PotionUtils;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.text.StringTextComponent;
import net.minecraftforge.client.event.RenderGameOverlayEvent;
import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@SuppressWarnings("deprecation")
public class PotionTimeElement extends GameplayElement {
private static final ResourceLocation POTION_BACKGROUND = new ResourceLocation(ConsoleExperience.MODID,"textures/gui/mob_effect_background.png");
@Override
public void setup() {
this.addListener(this::onRenderGameOverlayPre);
this.addListener(this::onRenderGameOverlayText);
}
@Override
public boolean getDefaultState() {
return true;
}
@Override
public String getDisplayName() {
return "Potion Time";
}
@Override
public String getDescription() {
return "Add remaining duration to potion icons shown in-game.";
}
private void onRenderGameOverlayPre(final RenderGameOverlayEvent.Pre evt) {
if (evt.getType() != ElementType.POTION_ICONS) {
return;
}
evt.setCanceled(true);
}
private void onRenderGameOverlayText(final RenderGameOverlayEvent.Text evt) {
// use this event so potion icons are drawn behind the debug menu like in vanilla
assert this.mc.player != null;
Collection<EffectInstance> activePotionEffects = this.mc.player.getActivePotionEffects();
if (!activePotionEffects.isEmpty()) {
RenderSystem.enableBlend();
RenderSystem.disableDepthTest();
int beneficialCounter = 0;
int harmfulCounter = 0;
PotionSpriteUploader potionspriteuploader = this.mc.getPotionSpriteUploader();
List<Runnable> effects = Lists.newArrayListWithExpectedSize(activePotionEffects.size());
for (EffectInstance effectinstance : Ordering.natural().reverse().sortedCopy(activePotionEffects)) {
// Rebind in case previous renderHUDEffect changed texture
this.mc.getTextureManager().bindTexture(POTION_BACKGROUND);
if (effectinstance.shouldRenderHUD() && effectinstance.isShowIcon()) {
Effect effect = effectinstance.getPotion();
int width = evt.getWindow().getScaledWidth();
int height = 1;
if (this.mc.isDemo()) {
height += 15;
}
if (effect.isBeneficial()) {
beneficialCounter++;
width = width - 30 * beneficialCounter;
} else {
harmfulCounter++;
width = width - 30 * harmfulCounter;
height += 26;
}
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
float alpha = 1.0F;
if (effectinstance.isAmbient()) {
AbstractGui.blit(evt.getMatrixStack(), width, height, 29, 0, 29, 24, 256, 256);
} else {
AbstractGui.blit(evt.getMatrixStack(), width, height, 0, 0, 29, 24, 256, 256);
if (effectinstance.getDuration() <= 200) {
int duration = 10 - effectinstance.getDuration() / 20;
alpha = MathHelper.clamp((float) effectinstance.getDuration() / 10.0F / 5.0F * 0.5F, 0.0F, 0.5F) + MathHelper.cos((float) effectinstance.getDuration() * (float)Math.PI / 5.0F) * MathHelper.clamp((float) duration / 10.0F * 0.25F, 0.0F, 0.25F);
}
}
TextureAtlasSprite textureatlassprite = potionspriteuploader.getSprite(effect);
this.addEffectToList(evt.getMatrixStack(), effects, effectinstance, textureatlassprite, width, height, alpha);
effectinstance.renderHUDEffect(this.mc.ingameGUI, evt.getMatrixStack(), width, height, this.mc.ingameGUI.getBlitOffset(), alpha);
}
}
effects.forEach(Runnable::run);
RenderSystem.enableDepthTest();
}
}
private void addEffectToList(MatrixStack matrixStack, List<Runnable> effects, EffectInstance effectinstance, TextureAtlasSprite textureatlassprite, int width, int height, float alpha) {
effects.add(() -> {
this.mc.getTextureManager().bindTexture(textureatlassprite.getAtlasTexture().getTextureLocation());
RenderSystem.color4f(1.0F, 1.0F, 1.0F, alpha);
AbstractGui.blit(matrixStack, width + 5, height + (effectinstance.isAmbient() ? 3 : 2), this.mc.ingameGUI.getBlitOffset(), 18, 18, textureatlassprite);
if (!effectinstance.isAmbient()) {
StringTextComponent component = new StringTextComponent(EffectUtils.getPotionDurationString(effectinstance, 1.0F));
int potionColor = PotionUtils.getPotionColorFromEffectList(Collections.singleton(effectinstance));
AbstractGui.drawCenteredString(matrixStack, this.mc.fontRenderer, component, width + 15, height + 14, potionColor);
}
});
}
}
| java |
Arsenal vs Leeds United Highlights: Premier League LIVE – Arsenal extended their lead at the top of the Premier League table to eight points with a comfortable 4-1 win against Leeds United. Gabriel Jesus scored twice in the match, with Ben White and Granit Xhaka also finding the back of the net. Follow Premier League LIVE Updates on InsideSport.IN.
The Gunners, who have been in stunning form, were put under pressure by Leeds in the early stages of the game. However, it was Arsenal who finally opened the scoring as Arsenal got a penalty after a foul by Luke Ayling, Jesus converted the penalty to give his side the lead in the 35th minute.
The second half saw Arsenal dominate proceedings, with Ben White extending their lead to two goals just two minutes after the start of the second half. Jesus added a third goal for the home side ten minutes later, putting the game to bed.
Leeds managed to score one goal through Rasmus Kristensen in the 76th minute, but Arsenal quickly regained control as Granit Xhaka scored a brilliant goal from outside the box, securing all three points for the league leaders.
The result was a huge disappointment for Leeds, who dropped three places to 17th in the league table, just one point above the relegation zone. For Arsenal, the victory was a crucial one in the pursuit of their first Premier League title since 2004.
| english |
<gh_stars>0
{
"extends": [
"standard-with-typescript",
"plugin:mocha/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"mocha"
],
"rules": {
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/comma-spacing": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-namespace": "off",
"import/export": "off",
"prefer-template": "error",
"no-useless-concat": "error",
"no-console": "warn",
"mocha/no-exclusive-tests": "error",
"mocha/no-mocha-arrows": "off"
}
} | json |
<filename>locales/EmuTarkov-LocaleEsMx/db/locales/es-mx/mail/5c13946186f774210563ecc6.json
"¿Eres de los que leen el periódico? Recientemente los medios han estado divulgando que los <NAME> no estamos haciendo nuestro trabajo en Tarkov, que no seguimos los procedimientos y cosas por el estilo.\n¡Putos bastardos! Odio a esos periodistas de mierda. Porque ese es el primer paso para perder nuestra financiación, lo cual amigo mio es lo opuesto a conseguir dinero. Así que tenemos que convencer al público de lo contrario. Tienes que encargarte de eliminar cualquier actividad ilegal perpetuada por los bandidos en la zona, pero tendrás que hacerlo bajo el estandarte de la ONU. Te daré el equipamiento que necesitas.\n" | json |
<reponame>elanthia-online/cartograph<gh_stars>1-10
{
"id": 25180,
"title": [
"[Museum of Fashion History]"
],
"description": [
"Similar to the previous room, tall glass cases are positioned at various points within the room. Lacking windows, the ebonwood walls are adorned with swathes of silvery gossamer that contrast nicely against the dark hue of the wood. Silvery undertones sweep the grey marble floors, designed to match not only the gossamer, but also the flickering silver sconces that line the walls. An arch leads back to the beginning of the museum."
],
"paths": [
"Obvious exits: none"
],
"location": "Wehnimer's Landing",
"wayto": {
"24674": "go arch"
},
"timeto": {
"24674": 0.2
}
} | json |
If you asked 18-year-old me what's on my playlist, it would mostly be songs composed by bearded men who like saxophone solos and The Diary of Anne Frank. If you also asked me about my opinions on K-pop, I would scoff and say something hyper-pretentious, like how manufacturing the music takes away the "music" of it.
Fast forward to my present-day playlist (or YouTube history) overflowing with K-pop. Clearly, something had happened recently.
My debut as a K-pop "stan" happened one night when my friend decided to show me some of her favourite EXO fancams. Before that night, I had begun to dip a toe into the K-pop world with some cheery girl group songs. But one particular Kai fancam marked my point of no return. I had to devour more.
It started mildly enough, with me looking at fancams and listening to the songs. Then came the infamous "crack" videos and I was a goner. Since then, my Instagram, Pinterest and YouTube feeds have all been filled to the brim with K-pop content.
Now that I have (almost) fully integrated into the K-pop world, I tried to understand why I was so against it in the first place.
One of the reasons could be that the Western media had my world in its grip for most of my life. I grew up with predominantly American/British shows, music and books, which made me look at Asian media through a Westernised lens. This made K-pop seem too campy and kitschy. From my perspective, the genre was closer to the overdramatic Bollywood songs rather than the cookie-cutter American music that I was habituated with. Even though songs from "the West" could be cheesy, too, I was kinder to them compared to K-pop.
Another reason for my unjustified hatred would simply be how everyone disliked K-pop, so I did, too. There really is no other way to explain it. On top of that, I had convinced myself that the only valid genres were either classic rock or anything that sounded remotely alternative.
Post-rock music made entirely of beeping combined with the sound of an old generator? Yes.
Pop music originating in Korea? No.
The general hatred towards pop music in general could be a contributing factor as well. People who were inclined to enjoy rock or alternative music generally expressed distaste towards pop music by calling it inauthentic, manufactured and soulless. Combine that with a distaste for Asian campiness and you have a super annoying music elitist on your hands.
As an adult, I can acknowledge how my thinking process was completely biased and unfair. Moreover, it made me disregard the hard work the idols and pop stars in general put into their craft. They have the immense pressure of being entertaining and charismatic in every single show.
Regardless, I am extremely glad that I grew out of being a hater. It feels like I unlocked a whole new world and found great music.
If you're still adamant about listening to K-pop, I understand. Nonetheless, I would still encourage you to give it a try. Just remember to have an open mind and contact me when you stan Loona. | english |
<reponame>MadeInHaus/django-social
from django.contrib import admin
from ..models import (FacebookAccount, FacebookMessage, FacebookSearch,
TwitterAccount, TwitterMessage, TwitterSearch,
RSSAccount, RSSMessage, Message,
InstagramAccount, InstagramSearch, InstagramMessage,
TwitterSetting, FacebookSetting, InstagramSetting,
FacebookPublicAccount, TwitterPublicAccount, InstagramPublicAccount,
RSSSetting)
from .models import (SingletonAdmin, MessageAdmin, FacebookAccountAdmin, FacebookSearchAdmin,
FacebookMessageAdmin, TwitterAccountAdmin, TwitterPublicAccountAdmin,
TwitterMessageAdmin, TwitterSearchAdmin,
InstagramAccountAdmin, InstagramPublicAccountAdmin, InstagramSearchAdmin,
InstagramMessageAdmin, RSSAccountAdmin, RSSMessageAdmin,)
admin.site.register(Message, MessageAdmin)
admin.site.register(FacebookSetting, SingletonAdmin)
admin.site.register(FacebookAccount, FacebookAccountAdmin)
admin.site.register(FacebookPublicAccount, FacebookAccountAdmin)
admin.site.register(FacebookMessage, FacebookMessageAdmin)
admin.site.register(FacebookSearch, FacebookSearchAdmin)
admin.site.register(TwitterSetting, SingletonAdmin)
admin.site.register(TwitterAccount, TwitterAccountAdmin)
admin.site.register(TwitterPublicAccount, TwitterPublicAccountAdmin)
admin.site.register(TwitterMessage, TwitterMessageAdmin)
admin.site.register(TwitterSearch, TwitterSearchAdmin)
admin.site.register(InstagramSetting, SingletonAdmin)
admin.site.register(InstagramAccount, InstagramAccountAdmin)
admin.site.register(InstagramPublicAccount, InstagramPublicAccountAdmin)
admin.site.register(InstagramSearch, InstagramSearchAdmin)
admin.site.register(InstagramMessage, InstagramMessageAdmin)
admin.site.register(RSSSetting, SingletonAdmin)
admin.site.register(RSSAccount, RSSAccountAdmin)
admin.site.register(RSSMessage, RSSMessageAdmin)
| python |
<reponame>mustafa-synectiks/demo-xformation
import React, { useState, useRef } from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import ScenarioSlider from '../components/ScenarioXformation/ScenarioSlider';
import SelectScenario from '../components/ScenarioXformation/SelectScenario';
import { AiFillCloseCircle } from 'react-icons/ai';
import '../css/scenario.css';
import Microsoft from '../img/scenario/homepage/microsoft.png';
import procurement from '../img/scenario/homepage/procurement.png';
import warehouse from '../img/scenario/homepage/warehouse.jpg';
import workflow from '../img/scenario/homepage/workflow.svg';
import cycle from '../img/scenario/homepage/procurement.svg';
import analysis from '../img/scenario/homepage/analysis.svg';
import telephone from '../img/scenario/homepage/telephone.svg';
import logo from '../img/scenario/homepage/logo.png';
import Login from '../components/Forms/Login';
import Register from '../components/Forms/Register';
import {
TiSocialFacebook,
TiSocialTwitter,
TiSocialLinkedin,
TiSocialYoutube,
} from 'react-icons/ti';
export const XformationPageTemplate = ({ scenarios, slider }) => {
const [showSelectScenario, setShowSelectScenario] = useState(false);
const [showUseCase, setShowUseCase] = useState(false);
const [useCase, setUseCase] = useState(null);
const [showForm, setShowForm] = useState(false);
const [showReg, setShowReg] = useState(false);
function onClickSelectScenario() {
setShowSelectScenario(true);
}
function onClickSelectScenarioClose() {
setShowSelectScenario(false);
}
function onClickUseCase(uc) {
if (uc.useCaseSlider) {
setUseCase(uc);
setShowUseCase(true);
}
}
function onClickUseCaseClose() {
setShowUseCase(false);
}
return (
<section id='scenario-bg'>
<div
className={`scenario-slider-container ${
showSelectScenario === true ? 'select-scenario' : ''
} ${showUseCase === true ? 'select-usecase' : ''}`}>
{/* <ScenarioHome /> */}
{/* homePage Starts here*/}
<div className='homePage-grid'>
{/* Header Start */}
<div className='header'>
<div className='logo'>
<img src={logo} alt='' />
</div>
<div className='search-box'>
<input
type='search'
name=''
id='search-home'
placeholder='Search Here...'
/>
</div>
<div className='group-btn'>
<a className='login' href='/login'>
Login
</a>
<a className='register' href='/register'>
Register
</a>
</div>
</div>
{/* Header End */}
{/* <Register /> */}
{showForm ? (
<div className='form-close-btn'>
<button onClick={() => setShowForm(false)}>
<AiFillCloseCircle />
</button>
<Login />
</div>
) : null}
{showReg ? (
<div className='reg-close-btn'>
<button onClick={() => setShowReg(false)}>
<AiFillCloseCircle />
</button>
<Register />
</div>
) : null}
<div className='banner-stack'>
{/* banner Start */}
<div className='banner'>
<div className='banner-text'>
{/* <h4>Get comprehensive control and visibility</h4> */}
<p>
XFORMATION SIMPLIFIED PROCUREMENT PROCESS WITH IMPROVED USER EXPERIENCE!
</p>
<h6>
Transform your end-to-end procurement operations, personalized
approvals, budget controls, and real-time information with our
intuitive and easy-to-use solution.
</h6>
<div className='banner-btns'>
<button className='login'>CONTACT US</button>
{/* Scenario Button Starts*/}
<div
className={`scenario-select-container ${
showSelectScenario === true ? 'active' : ''
} ${showUseCase === true ? 'active-usecase' : ''}`}>
<button className='select' onClick={onClickSelectScenario}>
SELECT SCENARIO
</button>
<SelectScenario
scenarios={scenarios}
onClickUseCase={onClickUseCase}
onClickCloseScenario={onClickSelectScenarioClose}
/>
</div>
{/* Scenario Button Ends*/}
</div>
</div>
<div className='banner-img'>
<img src={Microsoft} alt='' />
</div>
<div className='banner-icons-stack'>
<div className='article'>
<div className='icon'>
<img src={cycle} alt='' className='hover-animation' />
</div>
<div className='icon-text-group'>
<h6>Simplified Procurement Cycle</h6>
<p>
Lorem ipsum dolor sit amet, cons bh dolor, malesuada etili
adipDon nec malesuada etgutet…
</p>
</div>
</div>
<div className='article'>
<div className='icon'>
<img className='hover-animation' src={workflow} alt='' />
</div>
<div className='icon-text-group'>
<h6>Purchasing Workflows</h6>
<p>
Lorem ipsum dolor sit amet, cons bh dolor, malesuada etili
adipDon nec malesuada etgutet…
</p>
</div>
</div>
<div className='article'>
<div className='icon'>
<img className='hover-animation' src={analysis} alt='' />
</div>
<div className='icon-text-group'>
<h6>Supplier Analysis</h6>
<p>
Lorem ipsum dolor sit amet, cons bh dolor, malesuada etili
adipDon nec malesuada etgutet…
</p>
</div>
</div>
</div>
</div>
{/* banner End */}
{/* banner bottom Start*/}
<div className='main-section'>
{/* banner bottom End*/}
{/* Procurement Start */}
<div className='procurement'>
<h2>End to End Procurement Process</h2>
<img src={procurement} alt='' />
</div>
{/* Procurement End */}
<div className='warehouse'>
<div className='warehouse-left'>
<img src={warehouse} alt='' />
</div>
<div className='warehouse-right'>
<h6 className='we-are'>WHO WE ARE</h6>
<h5>We give solution for your business and technology</h5>
<p>
Lorem ipsum dolor sit amet, cons bh dolor, malesuada etili
adipDon nec malesu Lorem ipsum dolor sit amet, cons bh
dolor, malesuada etgutet. Lorem ipsum dolor sit amet, cons
bh dolor, malesuada etili adipDon nec malesu orem ipsum
dolor sit amet, cons bh dolor, malesuada etgutet…
</p>
<div className='we-company'>
<div className='first-row'>
<span className='fh'>WE</span>
<span className='fp'>
are starter company with of creative mind to solve your
business and IT problems
</span>
</div>
<div className='second-row'>
<a className='border-black'>LEARN MORE</a>
<a className='register'>CONTACT US</a>
</div>
</div>
</div>
</div>
<div className='footer-top'>
<h4>
Connect with us to simplify <br />
your your procurement process
</h4>
<a className='footer-contact'>Contact Us</a>
<div className='telephone'>
<img src={telephone} alt='' />
+00(00) 1234567
</div>
</div>
<div className='footer-bottom'>
<div className='social-icons group-btn'>
<div className='logo'>
<img src={logo} alt='' />
</div>
<ul className='social'>
<li>
<TiSocialFacebook className='icon-size' />
</li>
<li>
<TiSocialTwitter className='icon-size' />
</li>
<li>
<TiSocialLinkedin className='icon-size' />
</li>
<li>
<TiSocialYoutube className='icon-size-U' />
</li>
</ul>
</div>
<p>Copyright © 2021 Synectiks Inc</p>
</div>
</div>
</div>
</div>
{/* homePage Ends here*/}
{/* <ScenarioSlider slider={slider} showMoreDetailsButton={true} /> */}
</div>
{showUseCase && (
<div
className={`scenario-slider-container ${
showUseCase === true ? 'select-usecase' : ''
}`}>
<button
className='close-btn'
onClick={() => {
onClickUseCaseClose(useCase);
}}>
<AiFillCloseCircle />
</button>
<ScenarioSlider
slider={useCase.useCaseSlider}
showMoreDetailsButton={false}
onClickUseCaseClose={onClickUseCaseClose}
/>
</div>
)}
</section>
);
};
XformationPageTemplate.propTypes = {
modules: PropTypes.array,
scenarios: PropTypes.array,
slider: PropTypes.array,
};
const XformationPage = ({ data }) => {
const { frontmatter } = data.markdownRemark;
return (
<XformationPageTemplate
modules={frontmatter.modules}
scenarios={frontmatter.scenarios}
slider={frontmatter.slider}
/>
);
};
XformationPage.propTypes = {
data: PropTypes.shape({
markdownRemark: PropTypes.shape({
frontmatter: PropTypes.object,
}),
}),
};
export default XformationPage;
export const xformationPageQuery = graphql`
query XformationPage($id: String!) {
markdownRemark(id: { eq: $id }) {
frontmatter {
scenarios {
img
name
subItems {
img
name
useCaseSlider {
img
name
text
}
}
}
slider {
img
name
text
moreDetails {
moreDetailsName
moreDetailsText
moreDetailsImage {
img
}
}
}
}
}
}
`;
| javascript |
use serde_json::{Value};
use tokio_tungstenite::tungstenite::protocol::Message;
#[allow(dead_code)]
/// Create a response message type from the original
pub fn build_response_type<S: AsRef<str>>(original_msg_type: S) -> String {
let str_ref = original_msg_type.as_ref();
println!("{}.response", str_ref);
format!("{}.response", str_ref)
}
pub struct MycroftMessage {
msg_type: String,
data: Value,
context: Value
}
impl MycroftMessage {
#[allow(dead_code)]
/// Create a new Message for the mycroft bus
pub fn new(msg_type: &str) -> MycroftMessage {
MycroftMessage {
msg_type: msg_type.to_string(),
data: serde_json::json!({}),
context: serde_json::json!({}),
}
}
#[allow(dead_code)]
/// Create a response Message based on this message.
pub fn response(self) -> MycroftMessage {
let response_type = build_response_type(self.msg_type);
MycroftMessage {
msg_type: response_type,
data: serde_json::json!({}),
context: self.context,
}
}
#[allow(dead_code)]
/// Set the messages data
pub fn with_data(mut self, data_obj: Value) -> MycroftMessage{
self.data = data_obj;
self
}
#[allow(dead_code)]
/// serialize to string
pub fn to_string(self) -> String {
format!("{{\"type\":\"{}\",\"data\":{},\"context\":{}}}",
self.msg_type,
self.data.to_string(),
self.context.to_string()
)
}
#[allow(dead_code)]
/// Convert to tungstenite Message
pub fn to_message(self) -> Message {
let string_repr = self.to_string();
Message::text(string_repr)
}
}
| rust |
Ford just figured how to make a quick $157,500,000.
The automaker has announced plans to extend production of its $450,000 GT supercar by two years due to “exceptional demand,” as it claims to be getting seven orders for every car it can make.
Ford originally said it would build just 1,000 GTs through 2020, but will keep cranking them out through the 2022 model year for a grand total of approximately 1,350.
The market’s thirst for the 216 mph coupe was revealed in recent months when two made their way to auction blocks -- despite their original owners signing agreements not to sell them during the first two years of ownership – and were sold for between $1. 3 million and $1. 8 million each.
A third car offered at a charity auction sanctioned by Ford in January received a high bid of $2. 5 million.
Buying a new GT from Ford isn’t as easy as calling up your local dealer, however. The company is handpicking every customer based on a variety of factors that include loyal Ford ownership and social media reach.
Ford has already allotted nearly 700 cars, and the order books will open on November 1 for the final run.
The carbon fiber GT is assembled for Ford by racing specialist Multimatic and powered by a 647 hp twin-turbocharged V6 that's related to the one offered in the F-150 pickup.
Ford is the only major American brand that currently has a supercar in its lineup, but that's expected to change soon with Chevrolet's long-rumored mid-engine "Corvette" likely to make its debut at or before the Detroit Auto Show in January. | english |
- Lifestyle Beach Day Fashion: Tips and Tricks for a Stylish Look!
Apple just unveiled its object tracker called AirTag featuring Ultra Wide Band (UWB) and others to compete against Samsung's counterpart. So soon, it looks like the Chinese tech giant Oppo is gearing up to jump onto this bandwagon. Well, the real-life images of the Oppo Smart Tag have been hit the web revealing that it is likely on cards.
The well-known tipster Digital Chat Station took to Weibo to share a set of images of what he claims to be the upcoming Oppo Smart Tag's Engineering Test version. This leak strengthens the speculations regarding an Oppo object tracker to compete against the likes of those from Apple and Samsung.
From the leaked images, the Oppo object tracker seems to be in white color. One image shows that the object tracker has Ultra Wide Band and the Oppo branding written clearly on it. The notable aspect is the presence of a USB Type-C port at the bottom, which hints that this Oppo object tracker could include a rechargeable battery.
Furthermore, when it comes to features, the UWB etching on the leaked image shows that the Oppo Smart Tag might help users accurately track the location of the tags. It will help you with directions in a better way than the Bluetooth version. There is no provision for the lanyard hole as seen on the Galaxy SmartTag.
This makes it more environment-friendly than its rivals including the Apple AirTag, Samsung SmartTag+ and SmartTag. Notably, the existing Apple and Samsung object trackers do not have an option to recharge them but these promise 1-year of battery life. Apple has given an option to replace the AirTag's CR2032 battery but a rechargeable one could be a convenient option. We need to wait to know if the Oppo object tracker has any IP rating to protect the charging port from causing damage to the tracker.
When To Expect?
Oppo is all set to host a launch event on May 6 in its home country China. At the launch event, the company is all set to launch a slew of products including the Oppo K9, Enco Air, Smart TV, and a new Oppo Band. We can expect the Smart Tag to also be launched alongside these devices but there is no official confirmation regarding the same for now. Until then, we need to take this leak with a pinch of salt. | english |
Aamir Khan's daughter Ira Khan is all set to tie the knot with fitness trainer Nupur Shikhare in January. Recently, she spoke about it.
Aamir Khan's daughter, Ira Khan, has been in the news lately for being vocal about her mental health struggles. Apart from that, she is also in the news for her relationship with fitness trainer Nupur Shikhare. In a recent interview, the 26-year-old was asked about her upcoming wedding that will take place in January. In response, Ira spilled some details about it.
Ira Khan and celebrity fitness trainer Nupur Shikhare got engaged in November 2022. The two have been in a relationship for a while, and Nupur reportedly proposed to her in Italy a few months before the engagement. In a recent interview with India Today, Ira spoke about their wedding, slated to take place on January 3rd. She said that she is not nervous but very excited about her wedding. When asked if she always wanted a winter wedding, she replied she hates the heat. "I hate the heat, I cannot stand the heat. So my only criteria for the wedding was it has to be in a cold place and there has to be a cliff or a waterbody", she said. Aamir Khan's daughter said that she wanted her wedding to take place where there is a mountain or a valley.
Ira also revealed the significance of her wedding date, i.e., January 3rd. She said that Nupur and her first time met and went out on January 3rd, and it will take place in Mumbai. The 26-year-old also revealed that they will be doing smaller functions outside Mumbai.
Ira Khan is the daughter of Aamir Khan and Reena Dutta. Born in 1997, she also has an elder brother, Junaid Khan. Her engagement with Nupur was attended by Aamir, Reena, Aamir's ex-wife Kiran Rao, his nephew, actor Imran Khan, and others.
Workwise, she made her theater debut in 2019 with a play called Medea. Featuring Hazel Keech in the lead role, it was an Indian adaptation of Euripides' namesake Greek play. She has also been vocal about her struggle with mental health issues like depression and anxiety.
Disclaimer: If you know someone who is having suicidal thoughts, anxiety, going through depression, or is suffering from a serious mental illness, reach out to a nearby doctor, mental health expert, or an NGO for immediate help. There are several helplines available for the same.
NET Worth: ~ 41.7 MN USD (RS 345 cr)
| english |
Athi Marakkili song is a Tamil movie song from the Paatukku Naan Adimai released on 1990. Music of Athi Marakkili song is composed by Illayaraja. Athi Marakkili was sung by Malaysia Vasudevan. Download Athi Marakkili song from Paatukku Naan Adimai on Raaga.com.
| english |
{
"pages": {
"globalpropsDecodeURI": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-decodeuri.js",
"fileName": "globalprops-decodeuri.html",
"title": "JavaScript Demo: Standard built-in objects - decodeURI()",
"type": "js"
},
"globalpropsDecodeURIComponent": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-decodeuricomponent.js",
"fileName": "globalprops-decodeuricomponent.html",
"title": "JavaScript Demo: Standard built-in objects - decodeURIComponent()",
"type": "js"
},
"globalpropsEncodeURI": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-encodeuri.js",
"fileName": "globalprops-encodeuri.html",
"title": "JavaScript Demo: Standard built-in objects - encodeURI()",
"type": "js"
},
"globalpropsEncodeURIComponent": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-encodeuricomponent.js",
"fileName": "globalprops-encodeuricomponent.html",
"title": "JavaScript Demo: Standard built-in objects - encodeURIComponent()",
"type": "js"
},
"globalpropsEval": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-eval.js",
"fileName": "globalprops-eval.html",
"title": "JavaScript Demo: Standard built-in objects - eval()",
"type": "js"
},
"globalpropsGlobalThis": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-globalthis.js",
"fileName": "globalprops-globalthis.html",
"title": "JavaScript Demo: Standard built-in objects - globalThis",
"type": "js"
},
"globalpropsInfinity": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-infinity.js",
"fileName": "globalprops-infinity.html",
"title": "JavaScript Demo: Standard built-in objects - infinity",
"type": "js"
},
"globalpropsIsFinite": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-isfinite.js",
"fileName": "globalprops-isfinite.html",
"title": "JavaScript Demo: Standard built-in objects - isFinite()",
"type": "js"
},
"globalpropsIsNaN": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-isnan.js",
"fileName": "globalprops-isnan.html",
"title": "JavaScript Demo: Standard built-in objects - isNaN()",
"type": "js"
},
"globalpropsNaN": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-nan.js",
"fileName": "globalprops-nan.html",
"title": "JavaScript Demo: Standard built-in objects - NaN",
"type": "js"
},
"globalpropsNull": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-null.js",
"fileName": "globalprops-null.html",
"title": "JavaScript Demo: Standard built-in objects - Null",
"type": "js"
},
"globalpropsParseFloat": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-parsefloat.js",
"fileName": "globalprops-parsefloat.html",
"title": "JavaScript Demo: Standard built-in objects - parseFloat()",
"type": "js"
},
"globalpropsParseInt": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-parseint.js",
"fileName": "globalprops-parseint.html",
"title": "JavaScript Demo: Standard built-in objects - parseInt()",
"type": "js"
},
"globalpropsUndefined": {
"exampleCode": "./live-examples/js-examples/globalprops/globalprops-undefined.js",
"fileName": "globalprops-undefined.html",
"title": "JavaScript Demo: Standard built-in objects - undefined",
"type": "js"
}
}
}
| json |
{
"Tactic": ["Credential Access"],
"ID":["T1003"],
"Reference":"https://github.com/Cyb3rWard0g/ThreatHunter-Playbook/blob/master/tactical_groups/credential_access/in_memory_mimikatz.md",
"Name":"In-Memory Mimikatz",
"Description":"Technique of reflectively loading Mimikatz into Memory. Mainly used to dump credentials without touching disk.",
"Hypothesis":"Adversaries might be executing Mimikatz in memory with the help of PowerShell in order to dump credentials in my environment.",
"Events" : [
{
"Source":"Sysmon",
"EventId":"10",
"Field":"GrantedAccess",
"Details":"0x1010, 0x1410, 0x1438, 0x143a, 1418"
},
{
"Source":"Sysmon",
"EventId":"10",
"Field":"SourceImage",
"Details":"powershell.exe"
},
{
"Source":"Sysmon",
"EventId":"10",
"Field":"TargetImage",
"Details":"lsass.exe"
},
{
"Source":"Sysmon",
"EventId":"10",
"Field":"CallTrace",
"Details":"ntdll.dll+[a-zA-Z0-9]{1,}|\\KERNELBASE.dll+[a-zA-Z0-9]{1,}|UNKNOWN([a-zA-Z0-9]{16})"
},
{
"Source":"Sysmon",
"EventId":"7",
"Field":"ImageLoaded",
"Details":"WinSCard.dll, cryptdll.dll, hid.dll, samlib.dll, vaultcli.dll"
}],
"Hunter Notes":"GrantedAccess code 0x1010 is the new permission Mimikatz v.20170327 uses for command \"sekurlsa::logonpasswords\": 0x00000010 = VMRead, 0x00001000 = QueryLimitedInfo, GrantedAccess code 0x1010 is less common than 0x1410. Out of all the Modules that Mimikatz needs to function, the 5 above are the ones with less false positives. WMINet_Utils.dll is optional since it is loaded by scripts developed by PowerSploit and Empire projects (Invoke-Mimikatz.ps1). Look for PowerShell.exe accessing Lsass.exe with a potential CallTrace Pattern: C:\\Windows\\SYSTEM32\\ntdll.dll+[a-zA-Z0-9]{1,}|\\KERNELBASE.dll+[a-zA-Z0-9]{1,}|UNKNOWN([a-zA-Z0-9]{16}). Remember that an attacker can easily run Mimikatz or other credential dumping tool under a different process. This hypothesis is focusing on PowerShell as a process hosting the script. However, you can change this hypothesis to look for other Microsoft signed binaries or any process in the system. The idea is to focus on the patterns of behavior. You could use a stack counting technique to stack all the values of the permissions invoked by processes accessing Lsass.exe. You will have to do some filtering to reduce the number of false positives. You could then group the results with other events such as modules being loaded (EID 7). A time window of 1-2 seconds could help to get to a reasonable number of events for analysis",
"Hunting Techniques Recommended": [
"Grouping",
"Searching",
"Stack Counting"
]
} | json |
{
"type": "service_account",
"project_id": "clonebot-317314",
"private_key_id": "789303933e6538f41838a735ceed9c96c284186f",
"private_key": "-----<KEY>",
"client_email": "<EMAIL>",
"client_id": "115984804762468557499",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/mfc-vzsclr5ivf08izcwx3xbjw2s20%40clonebot-317314.iam.gserviceaccount.com"
}
| json |
Conceptual Study of Derivatives of Microcontroller
16.1 Introduction
In this chapter we are going to study the advanced features provided by the 8051 family microcontrollers.
16.2 One-Time-Programmable (OTP) Feature
The chip is to be packaged by some material, which is called 'encapsulation' and the material used is called as 'encapsulant. There are two types of packages used for the microcontrollers with EPROM control storage, ceramic packages and plastic packages. We are familiar with an EPROM in ceramic package. It has a small window built in for erasing the contents of it. EPROM microcontrollers are also available in plastic packages with no windows. These are referred to as one-time programmable (OTP) packages. The selection of the appropriate option of the package, can have a significant impact on the final application's cost, size and quality.
Plastic encapsulants use an epoxy plotting compound. This is injected around a chip after it has been wired to a lead frame. The lead frame becomes the pins on the package. The lead frame is wired to the chip via very thin aluminium wires which are ultrasonically bonded to both, the chip and the lead frame. After hardening of the encapsulant, the chip is protected from light, moisture and physical damage from the outside world. S
Fig. 16.1 shows OTP plastic and windowed ceramic package.
Plastic encapsulant
(a) OTP plastic package
Fig. 16.1 Chip packaging (16 - 1)
Ceramic encapsulant (b) Windowed ceramic package
Copyrighted material
| english |
Hello and Welcome to CricketCountry’s coverage of the first One-Day International (ODI) of the Chappell-Hadlee Trophy 2016-17 between Australia and New Zealand at Sydney Cricket Ground (SCG) at Sydney. Both New Zealand and Australia lost their previous ODI series. While New Zealand suffered a narrow 3-2 series loss against India, Australia suffered a 5-0 whitewash at the hands of South Africa. However, New Zealand won their recently-concluded Test series against Pakistan, but Australia lost their Test series to South Africa recently. Both teams will look to get off to the best of starts in the three-match ODI series, which begins on Sunday.
Fast bowlers Mitchell Starc and Josh Hazlewood missed Australia’s previous ODI series and will be rearing to go in this one. Australia have also included Pat Cummins and all-rounder Hilton Cartwright in their squad as well. Glenn Maxwell gets a place in the side, after being dropped for the series against Sri Lanka and also South Africa. He has been in the news for the last few days as he said that batting below his skipper Matthew Wade for Victoria diminished his chances of getting a place for the day-night Test against South Africa. Australia have fined him for his remark. The squad otherwise remains unchanged. Skipper Steven Smith and his side will look to exploit home conditions well to get the better of their neighbours.
New Zealand on the other have called up fast bowler Lockie Ferguson. The 25-year-old is known in the domestic circuit for his pace and will look to terrorise the Australian batsmen with that. All-rounder Colin de Grandhomme had an excellent series with both bat and ball in the Test series against Pakistan. He made his ODI debut over four years back and is one of the two all-rounders in the squad after James Neesham. New Zealand will be without their vice-captain Ross Taylor, who ruled himself out as he has to undergo an eye surgery. Taylor, despite his poor vision, scored a match-winning century in the second Test against Pakistan, but has been going through a lean patch in the limited-overs. In his absence the likes of Kane Williamson and Martin Guptill have to shoulder the batting responsibilities.
New Zealand have a fierce bowling attack, just like the Australians. The sight of Tim Southee, Trent Boult and Matt Henry running in at the Australian batsmen will surely be a treat to watch. Todd Astle has been included as the second spinner in the side, Mitchell Santner being first choice. Santner will get preference over Astle, with New Zealand going in with three frontline seamers. Either de Grandhomme or Neesham will be their fast bowling all-rounder.
New Zealand are the current holders of the Chappell-Hadlee Trophy. They defeated Australia the 2-1 the previous time they met in New Zealand earlier this year. Australia would dearly love to have their hands on the trophy at the end of this series.
Australia: Steven Smith (c), David Warner, Adam Zampa, Josh Hazlewood, Aaron Finch, George Bailey, Travis Head, Glenn Maxwell, Mitchell Marsh, Hilton Cartwright, Matthew Wade (wk), James Faulkner, Mitchell Starc, Pat Cummins.
New Zealand: Kane Williamson (c), BJ Watling (wk), Todd Astle, Trent Boult, Colin de Grandhomme, Martin Guptill, Matt Henry, Tom Latham, Colin Munro, Jimmy Neesham, Henry Nicholls, Mitchell Santner, Tim Southee, Lockie Ferguson.
| english |
from django.shortcuts import render,redirect
from django.http import HttpResponse,HttpResponseRedirect
from django.views import generic
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from .models import Character,Comic,Power,CharacterPower,CharacterComic
from django_filters.views import FilterView
from .filters import Marvel_worldFilter,Marvel_comicFilter
from .forms import CharacterForm,PowerForm,ComicForm
from django.urls import reverse,reverse_lazy
def index(request):
return HttpResponse("Hello, world. You're at the marvel world super hero")
class AboutPageView(generic.TemplateView):
template_name = 'marvel_world/about.html'
class HomePageView(generic.TemplateView):
template_name = 'marvel_world/home.html'
@method_decorator(login_required, name='dispatch')
class CharacterListView(generic.ListView):
model = Character
context_object_name = 'characters'
template_name = 'marvel_world/characters.html'
paginate_by = 50
def get_queryset(self):
return Character.objects.all().select_related('alignment','eye_color','skin_color','hair_color','race','gender','publisher').order_by('character_name')
@method_decorator(login_required, name='dispatch')
class CharacterDetailView(generic.DetailView):
model = Character
context_object_name= 'character'
template_name = 'marvel_world/character_information.html'
@method_decorator(login_required, name='dispatch')
class ComicListView(generic.ListView):
model = Comic
context_object_name = 'comics'
template_name = 'marvel_world/comics.html'
paginate_by = 600
def get_queryset(self):
return Comic.objects.all().order_by('comic_name')
@method_decorator(login_required, name='dispatch')
class ComicDetailView(generic.DetailView):
model = Comic
context_object_name= 'comic'
template_name = 'marvel_world/comic_information.html'
@method_decorator(login_required, name='dispatch')
class PowerListView(generic.ListView):
model = Power
context_object_name = 'powers'
template_name = 'marvel_world/super_power.html'
paginate_by = 50
def get_queryset(self):
return Power.objects.all().order_by('power_name')
@method_decorator(login_required, name='dispatch')
class PowerDetailView(generic.DetailView):
model = Power
context_object_name= 'power'
template_name = 'marvel_world/super_power_information.html'
@method_decorator(login_required, name='dispatch')
class CharacterFilterView(FilterView):
filterset_class = Marvel_worldFilter
template_name = 'marvel_world/character_filter.html'
@method_decorator(login_required, name='dispatch')
class ComicFilterView(FilterView):
filterset_class = Marvel_comicFilter
template_name = 'marvel_world/comic_filter.html'
@method_decorator(login_required, name='dispatch')
class CharacterCreateView(generic.View):
model = Character
form_class = CharacterForm
success_message = "Character created successfully"
template_name = 'marvel_world/character_new.html'
# fields = '__all__' <-- superseded by form_class
# success_url = reverse_lazy('heritagesites/site_list')
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def post(self, request):
form = CharacterForm(request.POST)
if form.is_valid():
character = form.save(commit=False)
character.save()
for power in form.cleaned_data['super_power']:
CharacterPower.objects.create(character=character, power=power)
for comic in form.cleaned_data['comics']:
CharacterComic.objects.create(character=character, comic=comic)
return redirect(character) # shortcut to object's get_absolute_url()
# return HttpResponseRedirect(site.get_absolute_url())
return render(request, 'marvel_world/character_new.html', {'form': form})
def get(self, request):
form = CharacterForm()
return render(request, 'marvel_world/character_new.html', {'form': form})
@method_decorator(login_required, name='dispatch')
class PowerCreateView(generic.View):
model = Power
form_class = PowerForm
success_message = "Super power created successfully"
template_name = 'marvel_world/power_new.html'
# fields = '__all__' <-- superseded by form_class
# success_url = reverse_lazy('heritagesites/site_list')
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def post(self, request):
form = PowerForm(request.POST)
if form.is_valid():
power = form.save(commit=False)
power.save()
for character in form.cleaned_data['character']:
CharacterPower.objects.create(character=character, power=power)
return redirect(power) # shortcut to object's get_absolute_url()
# return HttpResponseRedirect(site.get_absolute_url())
return render(request, 'marvel_world/power_new.html', {'form': form})
def get(self, request):
form = PowerForm()
return render(request, 'marvel_world/power_new.html', {'form': form})
@method_decorator(login_required, name='dispatch')
class ComicCreateView(generic.View):
model = Comic
form_class = ComicForm
success_message = "Comic created successfully"
template_name = 'marvel_world/comic_new.html'
# fields = '__all__' <-- superseded by form_class
# success_url = reverse_lazy('heritagesites/site_list')
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def post(self, request):
form = ComicForm(request.POST)
if form.is_valid():
comic = form.save(commit=False)
comic.save()
for character in form.cleaned_data['character']:
CharacterComic.objects.create(character=character, comic=comic)
return redirect(comic) # shortcut to object's get_absolute_url()
# return HttpResponseRedirect(site.get_absolute_url())
return render(request, 'marvel_world/comic_new.html', {'form': form})
def get(self, request):
form = ComicForm()
return render(request, 'marvel_world/comic_new.html', {'form': form})
#class CharacterDetailView(generic.DetailView):model = Characters context_object_name= 'character'template_name='marvel_world/character_information.html'
@method_decorator(login_required, name='dispatch')
class CharacterUpdateView(generic.UpdateView):
model = Character
form_class = CharacterForm
# fields = '__all__' <-- superseded by form_class
context_object_name = 'character'
# pk_url_kwarg = 'site_pk'
success_message = "Character updated successfully"
template_name = 'marvel_world/character_update.html'
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def form_valid(self, form):
character = form.save(commit=False)
# site.updated_by = self.request.user
# site.date_updated = timezone.now()
character.save()
# Current country_area_id values linked to site
old_ids = CharacterPower.objects\
.values_list('power_id', flat=True)\
.filter(character_id=character.character_id)
# New countries list
new_powers = form.cleaned_data['super_power']
# TODO can these loops be refactored?
# New ids
new_ids = []
# Insert new unmatched country entries
for power in new_powers:
new_id = power.power_id
new_ids.append(new_id)
if new_id in old_ids:
continue
else:
CharacterPower.objects \
.create(character=character, power=power)
# Delete old unmatched country entries
for old_id in old_ids:
if old_id in new_ids:
continue
else:
CharacterPower.objects \
.filter(character_id=character.character_id, power_id=old_id) \
.delete()
old_ids1 = CharacterComic.objects\
.values_list('comic_id', flat=True)\
.filter(character_id=character.character_id)
# New countries list
new_comics = form.cleaned_data['comics']
# TODO can these loops be refactored?
# New ids
new_ids1 = []
# Insert new unmatched country entries
for comic in new_comics:
new_id1 = comic.comic_id
new_ids1.append(new_id1)
if new_id1 in old_ids1:
continue
else:
CharacterComic.objects \
.create(character=character, comic=comic)
# Delete old unmatched country entries
for old_id1 in old_ids1:
if old_id1 in new_ids1:
continue
else:
CharacterComic.objects \
.filter(character_id=character.character_id, comic_id=old_id1) \
.delete()
return HttpResponseRedirect(character.get_absolute_url())
@method_decorator(login_required, name='dispatch')
class PowerUpdateView(generic.UpdateView):
model = Power
form_class = PowerForm
# fields = '__all__' <-- superseded by form_class
context_object_name = 'power'
# pk_url_kwarg = 'site_pk'
success_message = "Super power updated successfully"
template_name = 'marvel_world/power_update.html'
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def form_valid(self, form):
power = form.save(commit=False)
# site.updated_by = self.request.user
# site.date_updated = timezone.now()
power.save()
# Current country_area_id values linked to site
old_ids = CharacterPower.objects\
.values_list('character_id', flat=True)\
.filter(power_id=power.power_id)
# New countries list
new_chs = form.cleaned_data['character']
# TODO can these loops be refactored?
# New ids
new_ids = []
# Insert new unmatched country entries
for character in new_chs:
new_id = character.character_id
new_ids.append(new_id)
if new_id in old_ids:
continue
else:
CharacterPower.objects \
.create(character=character, power=power)
# Delete old unmatched country entries
for old_id in old_ids:
if old_id in new_ids:
continue
else:
CharacterPower.objects \
.filter(character_id=old_id, power_id=power.power_id) \
.delete()
return HttpResponseRedirect(power.get_absolute_url())
# return redirect('heritagesites/site_detail', pk=site.pk)
@method_decorator(login_required, name='dispatch')
class ComicUpdateView(generic.UpdateView):
model = Comic
form_class = ComicForm
# fields = '__all__' <-- superseded by form_class
context_object_name = 'comic'
# pk_url_kwarg = 'site_pk'
success_message = "Comic updated successfully"
template_name = 'marvel_world/comic_update.html'
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def form_valid(self, form):
comic = form.save(commit=False)
# site.updated_by = self.request.user
# site.date_updated = timezone.now()
comic.save()
# Current country_area_id values linked to site
old_ids = CharacterComic.objects\
.values_list('character_id', flat=True)\
.filter(comic_id=comic.comic_id)
# New countries list
new_chs = form.cleaned_data['character']
# TODO can these loops be refactored?
# New ids
new_ids = []
# Insert new unmatched country entries
for character in new_chs:
new_id = character.character_id
new_ids.append(new_id)
if new_id in old_ids:
continue
else:
CharacterComic.objects \
.create(character=character, comic=comic)
# Delete old unmatched country entries
for old_id in old_ids:
if old_id in new_ids:
continue
else:
CharacterComic.objects \
.filter(character_id=old_id, comic_id=comic.comic_id) \
.delete()
return HttpResponseRedirect(comic.get_absolute_url())
@method_decorator(login_required, name='dispatch')
class CharacterDeleteView(generic.DeleteView):
model =Character
success_message = "Character deleted successfully"
success_url = reverse_lazy('characters')
context_object_name = 'character'
template_name = 'marvel_world/character_delete.html'
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def delete(self, request, *args, **kwargs):
self.object = self.get_object()
# Delete HeritageSiteJurisdiction entries
CharacterPower.objects \
.filter(character_id=self.object.character_id) \
.delete()
CharacterComic.objects \
.filter(character_id=self.object.character_id) \
.delete()
self.object.delete()
return HttpResponseRedirect(self.get_success_url())
@method_decorator(login_required, name='dispatch')
class PowerDeleteView(generic.DeleteView):
model =Power
success_message = "Super power deleted successfully"
success_url = reverse_lazy('super_power')
context_object_name = 'power'
template_name = 'marvel_world/power_delete.html'
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def delete(self, request, *args, **kwargs):
self.object = self.get_object()
# Delete HeritageSiteJurisdiction entries
CharacterPower.objects \
.filter(power_id=self.object.power_id) \
.delete()
self.object.delete()
return HttpResponseRedirect(self.get_success_url())
@method_decorator(login_required, name='dispatch')
class ComicDeleteView(generic.DeleteView):
model =Comic
success_message = "Comic deleted successfully"
success_url = reverse_lazy('comics')
context_object_name = 'comic'
template_name = 'marvel_world/comic_delete.html'
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
def delete(self, request, *args, **kwargs):
self.object = self.get_object()
# Delete HeritageSiteJurisdiction entries
CharacterComic.objects \
.filter(comic_id=self.object.comic_id) \
.delete()
self.object.delete()
return HttpResponseRedirect(self.get_success_url()) | python |
<gh_stars>0
import * as dree from 'dree';
import * as path from 'path';
import { generate } from '../source/lib/index';
export const testConfig = {
assetsPath: path.join(process.cwd(), 'test', 'test-assets')
};
export function getDirToTest(folder: string): string[] {
return dree
.scan(path.join(testConfig.assetsPath, folder), { depth: 1 })
.children!
.filter(c => c.type == dree.Type.DIRECTORY)
.map(c => c.path);
}
export function getFileNameFromTemplate(templateFileName: string): string {
return templateFileName.replace('.template', '');
}
export function getCorrectFileNameFromTemplate(templateFileName: string): string {
return templateFileName.replace('.template', '.correct');
}
export function getTemplateFilesPath(): { templateFilePaths: string[]; toTestPaths: string[]} {
const templateFilePaths: string[] = [];
const toTestPaths = getDirToTest('generate');
for (const toTestPath of toTestPaths) {
dree.scan(path.join(toTestPath, 'templates'), {}, elem => {
if (/^.*\.template\..*$/.exec(elem.name)) {
templateFilePaths.push(elem.path);
}
});
}
return { templateFilePaths: templateFilePaths, toTestPaths: toTestPaths };
}
export function generateEverything(toTestPaths: string[]): void {
for (const toTestPath of toTestPaths) {
generate(path.join(toTestPath, 'templates'), path.join(toTestPath, 'structure.model.json'), path.join(toTestPath, 'config.model.json'));
}
}
export function removeCodeFormatting(code: string): string {
return code
.split('\n')
.map(l => l.trim())
.join();
}
export interface ReferenceCode {
almostempty: { [key: string]: string };
tests: { [key: string]: { [key: string]: string } };
}
| typescript |
<filename>src/java/MCview/Atom.java
package MCview;
import java.util.*;
import java.awt.*;
public class Atom {
double x;
double y;
double z;
int number;
String name;
String resName;
int resNumber;
int type;
Color color;
String chain;
public Atom(StringTokenizer str) {
this.number = (new Integer(str.nextToken())).intValue();
this.name = str.nextToken();
this.resName = str.nextToken();
String tmpstr = new String();
try {
tmpstr = str.nextToken();
this.resNumber = (new Integer(tmpstr).intValue());
this.chain = "A";
this.color = Color.green;
} catch(NumberFormatException e) {
this.chain = tmpstr;
if (tmpstr.equals("A")) {
this.color = new Color((float)Math.random(),(float)Math.random(),(float)Math.random());
} else {
this.color = Color.red;
}
this.resNumber = (new Integer(str.nextToken()).intValue());
}
this.x = (double)(new Double(str.nextToken()).floatValue());
this.y = (double)(new Double(str.nextToken()).floatValue());
this.z = (double)(new Double(str.nextToken()).floatValue());
}
public void setColor(Color col) {
this.color = col;
}
}
| java |
<filename>tweets/14659.json
{
"body": "§ 5. BUT TO RETURN TO THE CONSIDERATION OF TRUTH; WE MUST, I SAY, OBSERVE TWO SORTS OF PROPOSITIONS THAT WE ARE CAPABLE OF MAKING.",
"next": "https://raw.githubusercontent.com/CAPSELOCKE/CAPSELOCKE/master/tweets/14660.json"
} | json |
<filename>S/Style_noun.json
{
"word": "Style",
"definitions": [
"A particular procedure by which something is done; a manner or way.",
"A way of painting, writing, composing, building, etc., characteristic of a particular period, place, person, or movement.",
"A way of using language.",
"One's usual way of behaving or approaching situations.",
"An official or legal title.",
"A distinctive appearance, typically determined by the principles according to which something is designed.",
"A particular design of clothing.",
"A way of arranging the hair.",
"Fashionable elegance and sophistication.",
"A confident, effortless manner or technique.",
"(in a flower) a narrow, typically elongated extension of the ovary, bearing the stigma.",
"(in an invertebrate) a small, slender pointed appendage; a stylet."
],
"parts-of-speech": "Noun"
} | json |
#!/usr/bin/env python3
import json
import os
import sys
from cryptojwt import as_unicode
from cryptojwt.jws.jws import factory
from fedservice.entity_statement.collect import verify_self_signed_signature
from fedservice.entity_statement.collect import Collector
from pygments import highlight
from pygments.formatters.terminal import TerminalFormatter
from pygments.lexers.data import JsonLexer
from fedservice import create_federation_entity
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-k', "--insecure", action='store_true')
parser.add_argument('-t', "--trusted_roots")
parser.add_argument('-e', dest='entity_id')
parser.add_argument('-c', dest='config', action='store_true')
parser.add_argument('-s', dest='sub', action='store_true')
parser.add_argument('-a', dest='fed_api')
args = parser.parse_args()
kwargs = {}
if args.insecure:
kwargs['insecure'] = True
if args.trusted_roots:
kwargs['trust_anchors'] = args.trusted_roots
else:
kwargs["trust_anchors"] = {}
_collector = Collector(**kwargs)
_info = None
if args.config:
_jws = _collector.get_configuration_information(args.entity_id)
entity_statement = verify_self_signed_signature(_jws)
json_str = json.dumps(entity_statement, indent=2)
print(highlight(json_str, JsonLexer(), TerminalFormatter()))
if args.sub:
_info = _collector.get_entity_statement(args.fed_api, args.entity_id, args.sub)
| python |
<reponame>swilliams/gatsblog
{"data":{"site":{"siteMetadata":{"title":"A Blog","author":"<NAME>"}},"markdownRemark":null},"pageContext":{"slug":"/2009/10/31/if-i-were-a-competitor-to-atandt-and-the-ipho/index.html/","previous":{"fields":{"slug":"/2009/10/19/worship-at-high-school-ministry/"},"frontmatter":{"title":"Worship at High School Ministry"}},"next":{"fields":{"slug":"/2009/11/03/on-dreamweaver-and-other-magic-html-editors/index.html/"},"frontmatter":{"title":"On Dreamweaver (and other 'magic' HTML editors)"}}}} | json |
{"word":"custom","definition":"1. Frequent repetition of the same act; way of acting common to many; ordinary manner; habitual practice; usage; method of doing or living. And teach customs which are not lawful. Acts xvi. 21. Moved beyong his custom, Gama said. Tennyson. A custom More honored in the breach than the observance. Shak. 2. Habitual buying of goods; practice of frequenting, as a shop, manufactory, etc., for making purchases or giving orders; business support. Let him have your custom, but not your votes. Addison. 3. (Law) Long-established practice, considered as unwritten law, and resting for authority on long consent; usage. See Usage, and Prescription. Note: Usage is a fact. Custom is a law. There can be no custom without usage, though there may be usage without custom. Wharton. 4. Familiar aquaintance; familiarity. [Obs.] Age can not wither her, nor custom stale Her infinite variety. Shak. Custom of merchants, a system or code of customs by which affairs of commerce are regulated. -- General customs, those which extend over a state or kingdom. -- Particular customs, those which are limited to a city or district; as, the customs of London. Syn. -- Practice; fashion. See Habit, and Usage.\n\n1. To make familiar; to accustom. [Obs.] Gray. 2. To supply with customers. [Obs.] Bacon.\n\nTo have a custom. [Obs.] On a bridge he custometh to fight. Spenser.\n\n1 the customary toll,tax, or tribute. Render, therefore, to all their dues: tribute to whom tribute is due; custom to whom custom. Rom. xiii. 7. 2. pl. Duties or tolls imposed by law on commodities, imported or exported.\n\nTo pay the customs of. [Obs.] Marlowe."} | json |
"We do not do great things, only small things with great love," Mother Teresa was often heard saying. Her supreme acts of love and simple but profound thoughts have given her a place in history that is coveted by many but achieved by very few. She often drew inspiration to do great things even from those she served.
Once, on learning that a woman and her two children had not eaten for two days, Mother took them some food. On receiving the bowl, the woman left the room and returned shortly with the bowl half empty. Smiling she explained, "Mother, my neighbour with her children is in a worse plight and I know that nobody has brought them food. " This, according to Mother, was one of the most touching experiences of her life. If Mother is considered a saint today, it is because she met many a little saint along the way.
Mother had often heard the prayer of Saint Francis of Assisi, "It is in giving that we receive, in pardoning that we are pardoned and in dying that we are born to eternal life. " The differencebetween this feeble saint and the millions who have heard the words of St Francis or Jesus Christ, Lord Krishna or Prophet Mohammed is that she translated into action what she heard and believed in. For her, faith and religion was not a matter of pious platitudes.
If she opposed abortion, it was not because she was blind to the misery of the teeming millions but the belief that life was a gift from God and nobody had a right to destroy it. She was convinced that to kill a defenseless baby in the womb was not a solution to the problems of this world, but to replenish it with love and more love.
As a Catholic, Mother had the privilege of knowing and loving Jesus. He was her obsession. Through the hungry she fed Him; in the leprosy patients she dressed His wounds; she sheltered Him in destitutes and prostitutes; consoled Him in AIDS victims. In her relationship with Jesus she learnt how He interacted with people of all classes and ethnic origins. In His divinity He displayed a distinct humanity, one whichembraced everyone who was in need of compassion. This was the cue for Mother and so every human person, regardless of caste, creed or colour was welcomed into the temples of the Missionaries of Charity. Hence she could confidently claim, "We have absolutely no difficulty having to work with many faiths. We treat all people as children of God. They are our brothers and sisters. "
Such a faith in no way relativised her own. Her emphasis on Jesus and Mary was the fruit of her faith and she firmly held, "I love all religions but I am in love with my own. If people become better Hindus, better Buddhists by our acts of love, then there is something else growing there. They come closer to God…" She is known to have gone with her sisters and cleaned a mosque in war-torn Beirut. When religion returned to her motherland, Albania, at the end of the communist regime, she again opened a mosque there. Starting a Home at Shivala Ghats on the bank of the Ganges was no less sacred to her. So when a Hindu or a Muslim diedthere, the last rites were performed according to their own religion.
Mother often started her speech by saying, "A family that prays together stays together. " She was not advocating that this prayer should be addressed to Jesus or that only Christians could pray. In fact, a few days before her samadhi she wrote, "Our deep, deep gratitude to God, for the gift of these 50 years of Independence must be our prayer; it must be our strong resolution that we, the people of India, will be one heart full of love in the Heart of God. Let us be a holy nation. Let us together make our country something beautiful for God". | english |
Washington, Sep 2 NASA and American space infrastructure developerAxiom Space have signed a pact for the second private astronaut mission to the International Space Station, to take place in the second quarter of 2023.
The spaceflight, designated as Axiom Mission 2 (Ax-2), will launch from NASA's Kennedy Space Center in Florida and travel to the space station.
Once docked, the Axiom astronauts are scheduled to spend 10 days aboard the orbiting laboratory.
"With each new step forward, we are working together with commercial space companies and growing the economy in low-Earth orbit," said Phil McAlister, director of commercial space at NASA Headquarters.
"In addition to expanding access to orbit for more people, we are also hoping these private astronaut missions will help the industry learn and develop the skillset to conduct such missions," he added.
NASA and Axiom mission planners will coordinate in-orbit activities for the private astronauts to conduct in coordination with space station crew members and flight controllers on the ground, the space agency said in a statement.
"Axiom continues to fund and fly private astronaut missions to the International Space Station to build our expertise and attract new customers in preparation for the launch of our space station, Axiom Station," said Derek Hassmann, Axiom's chief of Mission Integration and Operations.
The Ax-2 crew members will train for their flight with NASA, international partners, and SpaceX, which Axiom has contracted as launch provider for transportation to and from the space station.
In December 2021, NASA announced the selection of Axiom Space for negotiations for the second private astronaut mission. | english |
/**
* Copyright 2020 Alibaba Group Holding Limited.
*
* 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.alibaba.maxgraph.v2.frontend.compiler.tree;
import com.alibaba.maxgraph.proto.v2.LogicalCompare;
import com.alibaba.maxgraph.proto.v2.OperatorType;
import com.alibaba.maxgraph.v2.common.frontend.api.schema.GraphSchema;
import com.alibaba.maxgraph.v2.common.frontend.api.schema.SchemaElement;
import com.alibaba.maxgraph.v2.common.frontend.api.schema.VertexType;
import com.alibaba.maxgraph.v2.common.util.PkHasher;
import com.alibaba.maxgraph.v2.frontend.compiler.logical.LogicalEdge;
import com.alibaba.maxgraph.v2.frontend.compiler.logical.LogicalSubQueryPlan;
import com.alibaba.maxgraph.v2.frontend.compiler.logical.edge.EdgeShuffleType;
import com.alibaba.maxgraph.v2.frontend.compiler.logical.function.ProcessorFilterFunction;
import com.alibaba.maxgraph.v2.frontend.compiler.optimizer.ContextManager;
import com.alibaba.maxgraph.v2.frontend.compiler.tree.addition.ExtendPropLocalNode;
import com.alibaba.maxgraph.v2.frontend.compiler.tree.value.ValueType;
import com.alibaba.maxgraph.v2.frontend.compiler.tree.value.VertexValueType;
import com.alibaba.maxgraph.v2.frontend.compiler.utils.CompilerUtils;
import com.alibaba.maxgraph.v2.frontend.compiler.utils.SchemaUtils;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.tinkerpop.gremlin.process.traversal.Compare;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversal.step.util.HasContainer;
import org.apache.tinkerpop.gremlin.structure.T;
import java.util.List;
import java.util.Map;
import static com.google.common.base.Preconditions.checkNotNull;
public class HasTreeNode extends UnaryTreeNode implements ExtendPropLocalNode {
private List<HasContainer> hasContainerList;
public HasTreeNode(TreeNode input, List<HasContainer> hasContainerList, GraphSchema schema) {
super(input, NodeType.FILTER, schema);
checkNotNull(hasContainerList, "has container can't be null");
optimizeContainerList(hasContainerList);
}
private void optimizeContainerList(List<HasContainer> hasContainerList) {
this.hasContainerList = Lists.newArrayList();
HasContainer filterLabel = null;
for (HasContainer hasContainer : hasContainerList) {
if (hasContainer.getPredicate() != null &&
hasContainer.getBiPredicate() == Compare.eq &&
StringUtils.equals(hasContainer.getKey(), T.label.getAccessor())) {
try {
schema.getSchemaElement(hasContainer.getValue().toString());
filterLabel = hasContainer;
} catch (Exception ignored) {
}
}
}
if (null != filterLabel) {
String vertexLabel = filterLabel.getValue().toString();
SchemaElement element = schema.getSchemaElement(vertexLabel);
if (element instanceof VertexType) {
VertexType vertexType = (VertexType) element;
Map<Integer, HasContainer> pkContainerList = Maps.newHashMap();
for (HasContainer hasContainer : hasContainerList) {
if (hasContainer.getPredicate() != null &&
hasContainer.getBiPredicate() == Compare.eq &&
SchemaUtils.checkPropExist(hasContainer.getKey(), schema)) {
int propId = SchemaUtils.getPropId(hasContainer.getKey(), schema);
if (SchemaUtils.isPropPrimaryKey(propId, schema, vertexType)) {
pkContainerList.put(propId, hasContainer);
}
}
}
List<Integer> primaryIdList = SchemaUtils.getVertexPrimaryKeyList(vertexType);
if (ListUtils.isEqualList(primaryIdList, pkContainerList.keySet())) {
hasContainerList.remove(filterLabel);
hasContainerList.removeAll(pkContainerList.values());
List<String> pkValueList = Lists.newArrayList();
for (Integer pkPropId : primaryIdList) {
pkValueList.add(pkContainerList.get(pkPropId).getValue().toString());
}
PkHasher pkHasher = new PkHasher();
long vertexId = pkHasher.hash(vertexType.getLabelId(), pkValueList);
HasContainer vertexIdContainer = new HasContainer(T.id.getAccessor(), P.eq(vertexId));
this.hasContainerList.add(vertexIdContainer);
}
}
}
this.hasContainerList.addAll(hasContainerList);
}
public List<HasContainer> getHasContainerList() {
return hasContainerList;
}
@Override
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {
List<LogicalCompare> logicalCompareList = Lists.newArrayList();
hasContainerList.forEach(v -> logicalCompareList.add(CompilerUtils.parseLogicalCompare(v, schema, contextManager.getTreeNodeLabelManager().getLabelIndexList(), getInputNode().getOutputValueType() instanceof VertexValueType)));
ProcessorFilterFunction filterFunction = new ProcessorFilterFunction(
logicalCompareList.size() == 1 && logicalCompareList.get(0).getPropId() == 0 ? OperatorType.FILTER : OperatorType.HAS);
filterFunction.getLogicalCompareList().addAll(logicalCompareList);
boolean filterExchangeFlag = false;
for (HasContainer hasContainer : this.hasContainerList) {
if (SchemaUtils.checkPropExist(hasContainer.getKey(), schema)) {
filterExchangeFlag = true;
break;
}
}
if (filterExchangeFlag) {
return parseSingleUnaryVertex(contextManager.getVertexIdManager(), contextManager.getTreeNodeLabelManager(), filterFunction, contextManager);
} else {
return parseSingleUnaryVertex(contextManager.getVertexIdManager(), contextManager.getTreeNodeLabelManager(), filterFunction, contextManager, new LogicalEdge(EdgeShuffleType.FORWARD));
}
}
@Override
public boolean isPropLocalFlag() {
return true;
}
@Override
public ValueType getOutputValueType() {
return getInputNode().getOutputValueType();
}
}
| java |
{
"type": "minecraft:smelting",
"ingredient": {
"item": "poulpoindustries:tin_dust"
},
"result": "poulpoindustries:tin_ingot",
"experience": 0.2,
"cookingtime": 200
} | json |
{"myNotes":{"noteId":"0","content":"","isStatus":"","zan":""},"notes":[{"noteId":"42391","userName":"考试必过鸭","userFaces":"http://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/android/1605860006682.jpg","zan":"4","content":"超音速阶段的压缩波 激波 shock wave","isStatus":"0","addtime":"2020/11/21 17:28","isZan":"0"},{"noteId":"62833","userName":"Life l","userFaces":"https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eptB2HVEkgViamoEiaMnibNAia7ypzibu5GKzQxZ2t7jMxFcekY89G0nwnvgJ0Crl3iaQkvWbFM7wicB7khg/132","zan":"1","content":"超音速压缩变成激波","isStatus":"0","addtime":"2021/03/08 09:55","isZan":"0"},{"noteId":"116063","userName":"玛卡巴卡","userFaces":"http://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/android/1631114515070.jpg","zan":"0","content":"超音速压缩变激波","isStatus":"0","addtime":"2021/09/13 21:28","isZan":"0"},{"noteId":"110603","userName":"&小人物智Ga","userFaces":"http://thirdwx.qlogo.cn/mmopen/vi_32/ibvUd1VYI013HFiaNoTUqxWuG6SuCXLNpf60wyKVtaJZdiahxhd2qU1bibPjU1mJSuj0IDOYRdFl7h6RzG7IIIrT9g/132","zan":"0","content":"超音速的压缩,激波shock wave","isStatus":"0","addtime":"2021/09/02 19:47","isZan":"0"},{"noteId":"98526","userName":"世界和平","userFaces":"https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqLcf2EuvxH9COGQtCcl02sm8icSsmSjxvYtHE3CoP5cZg0qETFLl3PQibBFNAG7f6H7uFFZB2e3JbA/132","zan":"0","content":"超音速被压缩 激波shock wave","isStatus":"0","addtime":"2021/07/03 14:57","isZan":"0"},{"noteId":"85303","userName":"被拖进度了","userFaces":"https://thirdwx.qlogo.cn/mmopen/vi_32/zepKrLr4h5lBNsKxDuGw98Bicb9PlZZZ27e9y7TwmoOkdBzbRU4ibCtJ354NPpnqHSu0IvS7uziaQIQIJld6WhXjw/132","zan":"0","content":"激波是突然的压缩","isStatus":"0","addtime":"2021/05/08 15:05","isZan":"0"},{"noteId":"81892","userName":"无情","userFaces":"https://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/iOS_image_userFace/1618752414_FC927395-9122-4664-AED3-9243E1500EC9.jpg","zan":"0","content":"突然压缩 就是激波","isStatus":"0","addtime":"2021/04/25 10:45","isZan":"0"},{"noteId":"73787","userName":"","userFaces":"","zan":"0","content":"超音速阶段的压缩波 shock wave","isStatus":"0","addtime":"2021/04/03 13:48","isZan":"0"},{"noteId":"70838","userName":"好好过","userFaces":"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKewCpkwV8mmco1TsIunWVcYFkGvTbyXT9TL6QJhQTtQZhRpmROZDK0umOJy4UC0Hx7NvoDOtt9icg/132","zan":"0","content":"超音速压缩。 激波\nsuddenly \nshockwave","isStatus":"0","addtime":"2021/03/24 23:08","isZan":"0"},{"noteId":"62139","userName":"","userFaces":"/static/web/images/touxiang2.jpg","zan":"0","content":"超音速突然被压缩有激波","isStatus":"0","addtime":"2021/03/06 22:57","isZan":"0"},{"noteId":"58173","userName":"肥行学员","userFaces":"http://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/android/1612288063807.jpg","zan":"0","content":"超音速压缩有激波","isStatus":"0","addtime":"2021/02/13 16:01","isZan":"0"},{"noteId":"51178","userName":"祖师爷佑我","userFaces":"http://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/android/1606810476292.jpg","zan":"0","content":"超音速压缩有激波","isStatus":"0","addtime":"2020/12/16 15:25","isZan":"0"},{"noteId":"40088","userName":"考试必过!!!","userFaces":"https://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/iOS_image_userFace/1612624579_FEAC6D0F-8845-4729-B012-C91F189ED394.jpg","zan":"0","content":"超音速压缩-激波\n超音速压缩-激波","isStatus":"0","addtime":"2020/11/12 09:46","isZan":"0"},{"noteId":"39268","userName":"佬肥必过","userFaces":"https://kaolafeixing-oss.oss-cn-beijing.aliyuncs.com/iOS_image_userFace/1599856514_27986F0A-C3AE-4A0E-A51F-15D4A1875918.jpg","zan":"0","content":"phenomenon 现象","isStatus":"0","addtime":"2020/11/08 21:34","isZan":"0"},{"noteId":"34471","userName":"","userFaces":"","zan":"0","content":"这里是aka刘波把你的激波放进油锅","isStatus":"0","addtime":"2020/10/19 00:13","isZan":"0"},{"noteId":"13729","userName":"152****0877","userFaces":"","zan":"0","content":"sudden compression突然压缩,选shockwave","isStatus":"0","addtime":"2020/08/14 08:41","isZan":"0"},{"noteId":"781","userName":"' 是殿红阿","userFaces":"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJxMdPmmYjQwvvpftNrZ1kbUShXQQnTsMGzicZUEWMGs9ibItnQS7CMRh7nia7rtxKCkPomnAIQKFJrQ/132","zan":"0","content":"激波 速度减小","isStatus":"0","addtime":"2020/06/24 09:39","isZan":"0"}]} | json |
<reponame>sciences-u-lyon/twitter-like
{
"tweets": [
{
"id": 1,
"avatar": "img/cooper.jpg",
"fullname": "Cooper",
"username": "cooper",
"text": "Stay stuned for Black Mirror season 4 on Friday, December 29!"
},
{
"id": 2,
"avatar": "img/walter-white.jpg",
"fullname": "<NAME>",
"username": "heisenberg",
"text": "I watched Jane die. I was there. And I watched her die. I watched her overdose and choke to death. I could have saved her. But I didn't."
},
{
"id": 3,
"avatar": "img/daenerys-targaryen.jpg",
"fullname": "<NAME>",
"username": "khaleesi",
"text": "When my dragons are grown, we will take back what was stolen from me and destroy those who wronged me! We will lay waste to armies and burn cities to the ground!"
},
{
"id": 4,
"avatar": "img/jessica-jones.jpg",
"fullname": "<NAME>",
"username": "jessicajones",
"text": "They say everyone's born a hero. But if you let it, life will push you over the line until you're the villain. Problem is, you don't always know that you've crossed that line. Maybe it's enough that the world thinks I'm a hero."
},
{
"id": 5,
"avatar": "img/eleven.jpg",
"fullname": "11",
"username": "eleven",
"text": "FRIENDS DON’T LIE."
},
{
"id": 6,
"avatar": "img/rick-grimes.jpg",
"fullname": "<NAME>",
"username": "rickgrimes",
"text": "This is how we survive: we tell ourselves we are the walking dead."
}
]
}
| json |
{
"out": [
"/lib/python3.8/site-packages/openEMS/__init__.py",
"/lib/python3.8/site-packages/openEMS/__pycache__/__init__.cpython-38.pyc",
"/lib/python3.8/site-packages/openEMS/__pycache__/automesh.cpython-38.pyc",
"/lib/python3.8/site-packages/openEMS/__pycache__/nf2ff.cpython-38.pyc",
"/lib/python3.8/site-packages/openEMS/__pycache__/physical_constants.cpython-38.pyc",
"/lib/python3.8/site-packages/openEMS/__pycache__/ports.cpython-38.pyc",
"/lib/python3.8/site-packages/openEMS/__pycache__/utilities.cpython-38.pyc",
"/lib/python3.8/site-packages/openEMS/_nf2ff.cpython-38-x86_64-linux-gnu.so",
"/lib/python3.8/site-packages/openEMS/_nf2ff.pxd",
"/lib/python3.8/site-packages/openEMS/automesh.py",
"/lib/python3.8/site-packages/openEMS/nf2ff.py",
"/lib/python3.8/site-packages/openEMS/openEMS.cpython-38-x86_64-linux-gnu.so",
"/lib/python3.8/site-packages/openEMS/openEMS.pxd",
"/lib/python3.8/site-packages/openEMS/physical_constants.py",
"/lib/python3.8/site-packages/openEMS/ports.py",
"/lib/python3.8/site-packages/openEMS/utilities.py",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/INSTALLER",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/METADATA",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/RECORD",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/REQUESTED",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/WHEEL",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/direct_url.json",
"/lib/python3.8/site-packages/openEMS-0.0.33.dist-info/top_level.txt",
"/nix-support/propagated-build-inputs"
]
} | json |
interface WheelData {
option: string;
style: {
backgroundColor?: string;
textColor?: string;
};
}
export const getRotationDegrees = (
prizeNumber: number,
numberOfPrizes: number
) => {
const degreesPerPrize = 360 / numberOfPrizes;
const initialRotation = 43 + degreesPerPrize / 2;
const randomDifference = (-1 + Math.random() * 2) * degreesPerPrize * 0.35;
const prizeRotation =
degreesPerPrize * (numberOfPrizes - prizeNumber) -
initialRotation +
randomDifference;
return numberOfPrizes - prizeNumber > numberOfPrizes / 2
? -360 + prizeRotation
: prizeRotation;
};
export const clamp = (min: number, max: number, val: number) =>
Math.min(Math.max(min, +val), max);
| typescript |
Joshna Chinappa stunned Malaysian legend Nicol David in the $107,000 Women’s Black Ball Squash Open with a suberb win on Monday. Joshna who won with a scoreline of 11-8, 11-6, 12-10 sailed into the last 16 of the PSA world tour gold event.
This was just the third time the Indian has beaten David, coming on the heels of her Asian Games triumph in August last year.
The Indian started on a strong note and wrapped the first two games quickly before the Malaysian great put up a resolute fight in the third. The contest was pretty much a close affair but Joshna build on the momentum to cap of a stunning victory.
Joshna will now lock horns with sixth seeded Sarah-Jane Perry of England on Tuesday.
| english |
Latest News (You need to double-check/verify this info yourself)
JCO 3.12.2022 is Cancelled.
COMPOSITION: One AC-2 Tier, 4 AC-3 Tier, 11 Sleeper Class, 6 General Second Class including 2 Guard’s brake vans.
Important Note: This website NEVER solicits for Money or Donations. Please beware of anyone requesting/demanding money on behalf of IRI. Thanks. Disclaimer:
with the Government-run site of Indian Railways. This site does NOT claim 100% accuracy of fast-changing Rail Information. YOU are responsible for independently confirming the validity of information through other sources.
| english |
{
"name": "allmighty-autocomplete",
"homepage": "https://github.com/maetolay/allmighty-autocomplete/",
"authors": [
"<NAME> <<EMAIL>>"
],
"license": "MIT",
"main": [
"./script/autocomplete.js",
"./style/autocomplete.css"
],
"dependencies": {
"angular-filter": "~0.5.3"
}
} | json |
Mumbai, Jun 10: Bharat Sanchar Nigam Limited on Monday announced a 40-50 per cent reduction in STD charges of cellular services under various plans.
It also announced to slash the call charges of landline services by 50 per cent.
Under the landline services, STD rates have been reduced from Rs 2. 40 to 1. 20 paise per minute to all networks in general and 'sulabh' plan.
"The intra-circle call charges, to BSNL network and inter circle call charges to all the networks, has also been reduced by 50 per cent," BSNL CMD Kuldeep Goyal said.
Roaming charges under prepaid and postpaid services have also been revised. | english |
<gh_stars>1-10
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Busca textual com JurisPsql • JurisPsql</title>
<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous">
<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script><!-- sticky kit --><script src="https://cdnjs.cloudflare.com/ajax/libs/sticky-kit/1.1.3/sticky-kit.min.js" integrity="sha256-c4Rlo1ZozqTPE2RLuvbusY3+SU1pQaJC0TjuhygMipw=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script><meta property="og:title" content="Busca textual com JurisPsql">
<meta property="og:description" content="">
<meta property="og:image" content="https://jjesusfilho.github.io/JurisPsql/logo.png">
<meta name="twitter:card" content="summary">
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container template-article">
<header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">JurisPsql</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.0.0.9102</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../reference/index.html">Reference</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
Articles
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="../articles/text_search.html">Busca textual com JurisPsql</a>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/jjesusfilho/JurisPsql">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->
</header><div class="row">
<div class="col-md-9 contents">
<div class="page-header toc-ignore">
<h1>Busca textual com JurisPsql</h1>
<small class="dont-index">Source: <a href="https://github.com/jjesusfilho/JurisPsql/blob/master/vignettes/text_search.Rmd"><code>vignettes/text_search.Rmd</code></a></small>
<div class="hidden name"><code>text_search.Rmd</code></div>
</div>
<div id="introducao" class="section level2">
<h2 class="hasAnchor">
<a href="#introducao" class="anchor"></a>Introdução</h2>
<p>Pesquisa de texto completo (ou apenas pesquisa de texto) permite identificar documentos em linguagem natural que satisfaçam uma consulta e, opcionalmente, classificá-los por relevância para a consulta. O tipo de pesquisa mais comum é encontrar todos os documentos que contêm termos de consulta e retorná-los em ordem de semelhança com a consulta. Noções de consulta e similaridade são muito flexíveis e se ajustam a aplicações específicas. A forma mais simples pesquisa toma em conta a consulta como um conjunto de palavras e a similaridade como a frequência de palavras consultadas no documento.</p>
<p>Buscas de palavras ou frases em textos têm se beneficiado de técnicas como expressões regulares (regex) e de busca fonética. No entanto, essas técnicas possuem limitações conhecidas:</p>
<ul>
<li><p>Elas não fazem uso de todas as categorias linguísticas. A busca fonética leva em conta somente uma categoria linguística, a fonética. Por sua vez, expressões regulares usam critérios heurísticos, os quais não podem ser extrapolados para além do corpus em consideração.</p></li>
<li><p>Elas não ordenam os resultados da busca com base na similaridade da busca, o que os tornam inefetivos quando milhares de textos são submetidos à busca.</p></li>
<li><p>Elas tendem a ser lentas vez que a busca é realizada no próprio texto, não em um índice.</p></li>
</ul>
<p>A busca textual, por sua vez, toma em conta as propriedades linguísticas do idioma a fim de otimizar os resultados da busca. Para tanto, ela recorre ao processamento de linguagem natural (NLP na sigla em inglês). Familiaridade com conceitos-chave de NLP é importante para saber como pre-processar os textos para tornar busca relevante:</p>
<ul>
<li><p>Index invertido.</p></li>
<li><p>Stopwords</p></li>
<li><p>Lexema. Um lexema é uma string, assim como um token, mas foi normalizado de modo que diferentes formas da mesma palavra são feitas da mesma forma. Por exemplo, a normalização quase sempre inclui letras maiúsculas em minúsculas e geralmente envolve a remoção de sufixos (como s ou es em inglês).</p></li>
<li><p>Lógica fuzzy</p></li>
<li><p>Similaridade</p></li>
<li><p>Stemming</p></li>
<li><p>Lemmanization</p></li>
<li><p>Tokenização</p></li>
</ul>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<div id="tocnav">
<h2 class="hasAnchor">
<a href="#tocnav" class="anchor"></a>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#introducao">Introdução</a></li>
</ul>
</div>
</div>
</div>
<footer><div class="copyright">
<p>Developed by <NAME>.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.3.0.</p>
</div>
</footer>
</div>
</body>
</html>
| html |
Barcelona defender Gerard Pique's close friend and streamer Ibai Llanos has stated that the defender is coping well after splitting with his long-time partner and pop star Shakira this month.
Llanos has also claimed that the 35-year-old's off-field troubles are not hampering his preparations for the 2022-23 season. The defender's friend was quoted as saying the following (via Los 40):
"The press has talked a lot, but now he's preparing for the season with FC Barcelona and he's doing well. Everything's fine."
Gerard Pique and Shakira first met each other prior to the 2010 FIFA World Cup on the set of a music video. Their 11-year old relationship has now ended after the Barcelona star was accused of infidelity. But the cheating rumors have since been quashed.
Recently, Shakira's ex-brother-in-law Roberto Garcia threw light on what had gone wrong in the marriage. He said that some ill-fated financial dealings between the couple led to their marriage falling apart.
Interestingly, the Spaniard was in the news recently after he was pictured with a Chelsea bag at Wimbledon. According to reports, the veteran footballer bought Chelsea merchandise for his children who are fans of Thomas Tuchel's side.
Gerard Pique has already had a difficult summer following the 2021-22 season after splitting up with pop star Shakira. However, he could also have a difficult time on the pitch with Barcelona.
The Spaniard had an injury-hit season last time around, which only saw him make 27 appearances in La Liga. The centre-back missed the last four games of the season due to a muscular injury.
Things could get even more difficult for the former Spanish international. Barcelona are in the market for a new centre-back this summer.
According to Spanish outlet SPORT, the Catalan giants are looking to sign Sevilla defender Jules Kounde in the ongoing transfer window. The Blaugrana are also expected to announce the arrival of Danish defender Andreas Christensen on a free transfer.
These signings could see Pique dropping down the pecking order at the Camp Nou. The Catalan giants already have two young defenders in the form of Eric Garcia and Ronald Araujo.
Despite his age and uncertainty over regular first-team football, Pique still has a contract with the La Liga side until 2024.
| english |
Chief of Army Staff General Manoj Mukund Naravane on Tuesday inducted into the Army various indigenously developed specialised military vehicles and an Ultra Long Range Observation System at a ceremony held in Pune on Tuesday.
The Army Chief, accompanied by Vice Chief of Army Staff Lt Gen Manoj Pande, is on a two-day visit to Pune. At a function organised at the Bombay Engineer Group (BEG) and Centre on Tuesday, the Army Chief inducted the first set of indigenously developed Infantry Protected Mobility Vehicles (IPMVs), including the Quick Reaction Fighting Vehicle (QRFV) and the Ultra Long Range Observation System developed by Tata Advanced System Limited (TASL), and Monocoque Hull Multi Role Mine Protected Armoured Vehicle developed by Bharat Forge.
“The COAS appreciated Tata and Bharat Forge for their commitment in strengthening the Atmanirbhar Bharat initiative of Government of India and continued engagement with the Indian Army for the past decades. The induction of these indigenously-developed systems by TASL and Bharat Forge will greatly enhance the operational capabilities of Indian Army in future conflicts,” read a press statement from the Indian Army.
The IPMVs have been developed and manufactured at TASL’s Pune facility. These vehicles have been built on the strategic 8×8 Wheeled Armoured Platform indigenously designed and developed by TASL, along with the Vehicles Research and Development Establishment , an Ahmednagar- based facility of the DRDO. | english |
<reponame>ajwhite/iPhone-Receipt-Drawer<filename>Resources/ui/DevWindow.js
function ApplicationWindow(){
var win = Ti.UI.createWindow({
title: 'Dev Tools',
backgroundColor:"#fff"
});
var view = Ti.UI.createView({
left:10, right:10, top:10
});
var dumpDB = Ti.UI.createButton({
title: 'Dump DB',
top: 10,
left: 20, right: 20,
height: 30
});
dumpDB.addEventListener('click', function(){
var db = require('dal/receipts');
var alert = Ti.UI.createAlertDialog({
title: "DB Dump",
message: "Database Dumped"
});
if (db.dumpDB()){
alert.show();
}
});
view.add(dumpDB);
var installDB = Ti.UI.createButton({
title: 'Recreate DB',
top: 50,
left: 20, right: 20,
height: 30
});
installDB.addEventListener('click', function(){
var receipts = require('dal/receipts');
var categories = require('dal/categories');
var alert = Ti.UI.createAlertDialog({
title: 'Creating DB',
message: 'Creation complete'
});
categories.install();
receipts.install();
alert.show();
});
view.add(installDB);
var testButton = Ti.UI.createButton({
title: 'Test button',
top: 90,
left: 20, right:20,
height:30
});
testButton.addEventListener('click', function(){
var receipts = require('dal/receipts');
receipts.getReceiptGroupList();
});
view.add(testButton);
win.add(view);
return win;
}
module.exports = ApplicationWindow; | javascript |
Kundapur: Electrical and Electronics student forum ‘Sparkling Electrical 2016’ was inaugurated at Moodlakatte institute of technology Kundapura on August 27.
Sunil Kumar of VI Solutions Bangalore inaugurated the Electrical and Electronics student forum ‘Sparkling Electrical 2016’ by lighting the lamp.
Dr. Mohan Das Bhat principal of the college in his presidential message said that students to come out with innovative projects which will help the society at large.
Professor Satish S Amsadi, HOD of the E&E Dept briefed the students of the opportunity in the Electrical & Electronics field.
Sachin Karkera welcomed the guests, Newly elected president of forum Harish M gave the roadmap of association activity planned for the current academic year.
A technical talk on Labview was conducted by Mr. Sunil kumar of VI Solutions, Bangalore.
Darshan conducted the program and vote of thanks was given by Vikram shenoy. Secretary Sukshita Shetty, all committee members, faculty members and students were present.
| english |
New Delhi, March 22 (IANS) Vishal Malhotra essayed the role of a middle-aged man in the ‘Mauka Mauka’ cricket commercial, but he is not too keen on sporting the salt-and-pepper look for a TV show.
The actor has featured in films like “1920 London” and “Ragini MMS 2”, but he is best known for playing a Pakistani cricket fan in the ‘Mauka Mauka’ commercials.
After playing a middle-aged man in the advertisement, is the young actor open to doing more mature roles?
“It was an ad. Ad is a different thing. It was the journey of a man from being a teenager to a middle-aged man. Had it been directly about a middle-aged guy, I guess I wouldn’t have done it.
“But when you talk about TV, there is some hesitation to take up mature roles. It’s better to play your age group because of people’s mindset. The last project of an actor is considered (for the next)…the look, the character, it stays for some time,” Vishal told IANS.
He is now seen as a suave businessman on the Sony Entertainment Television show “Yeh Pyaar Nahi Toh Kya Hai”.
“I am acting as the elder brother of Anushka Reddy (Palak Jain). He is one of the most richest guys. If my onscreen father is Dhirubhai Ambani, then my character is Mukesh Ambani,” he said.
Vishal said his character is a powerful one who “screws up” a lot.
“He gets into problems and to get out of them, he uses power. At the back of his mind, he knows that no one can hurt him. He is in his own world and is the boss. He has grey shades,” he said.
He also joked that his character is always suited up and probably sleeps in suits as well. “Even when he goes to the washroom, he needs a waistcoat with him,” quipped the actor.
Going by his sense of humour, is he interested in doing comedy?
“I love doing comedy. It is totally about timing. Scripted is different… you know the base but timing is what makes it funny. Making people laugh is the most difficult thing to do. When you have to do emotional scenes, you just have to use some glycerin and show some attitude. That everyone does,” he said.
But comedy isn’t very easy.
“I did ‘TV, Biwi aur Main’ (comedy show), but it couldn’t work on a large scale. A sitcom was also about to go on air with me as the lead, but last minute it got scrapped,” said Vishal.
International online casino Casino Days has published a report sharing their internal data on what types and brands of devices are used to play on the platform by users from the South Asian region.
Such aggregate data analyses allow the operator to optimise their website for the brands and models of devices people are actually using.
The insights gained through the research also help Casino Days tailor their services based on the better understanding of their clients and their needs.
The primary data samples analysed by Casino Days reveal that mobile connections dominate the market in South Asia and are responsible for a whopping 96.6% of gaming sessions, while computers and tablets have negligible shares of 2.9% and 0.5% respectively.
The authors of the study point out that historically, playing online casino was exclusively done on computers, and attribute thе major shift to mobile that has unfolded over time to the wide spread of cheaper smartphones and mobile data plans in South Asia.
“Some of the reasons behind this massive difference in device type are affordability, technical advantages, as well as cheaper and more obtainable internet plans for mobiles than those for computers,” the researchers comment.
Chinese brands Xiaomi and Vivo were used by 21.9% and 20.79% of Casino Days players from South Asia respectively, and together with the positioned in third place with a 18.1% share South Korean brand Samsung dominate the market among real money gamers in the region.
Cupertino, California-based Apple is way down in seventh with a user share of just 2.29%, overshadowed by Chinese brands Realme (11.43%), OPPO (11.23%), and OnePlus (4.07%).
Huawei is at the very bottom of the chart with a tiny share just below the single percent mark, trailing behind mobile devices by Motorola, Google, and Infinix.
The data on actual phone usage provided by Casino Days, even though limited to the gaming parts of the population of South Asia, paints a different picture from global statistics on smartphone shipments by vendors.
Apple and Samsung have been sharing the worldwide lead for over a decade, while current regional leader Xiaomi secured their third position globally just a couple of years ago.
The shifted market share patterns of the world’s top smartphone brands in South Asia observed by the Casino Days research paper reveal a striking dominance of Android devices at the expense of iOS-powered phones.
On the global level, Android enjoys a comfortable lead with a sizable 68.79% share which grows to nearly 79% when we look at the whole continent of Asia. The data on South Asian real money gaming communities suggests that Android’s dominance grows even higher and is north of the 90% mark.
Among the major factors behind these figures, the authors of the study point to the relative affordability of and greater availability of Android devices in the region, especially when manufactured locally in countries like India and Vietnam.
“And, with influencers and tech reviews putting emphasis on Android devices, the choice of mobile phone brand and OS becomes easy; Android has a much wider range of products and caters to the Asian online casino market in ways that Apple can’t due to technical limitations,” the researchers add.
The far better integration achieved by Google Pay compared to its counterpart Apple Pay has also played a crucial role in shaping the existing smartphone market trends.
| english |
#[macro_export]
macro_rules! test_file {
($name:ident, $path:literal, $func:ident ( $($args:literal),* ) => $expected:literal) => {
#[test]
fn $name() {
use std::io::Read;
let args = wabi::args!($($args),*);
let func_name = stringify!($func);
let expected_value = WasmResult::from(Value::from($expected));
let mut runtime = Runtime::default();
let mut data = Vec::new();
let mut file = std::fs::File::open($path).expect(&format!("Unable to create runtime from `{}` for test: `{}`", $path, stringify!($name)));
file.read_to_end(&mut data).unwrap();
runtime.add_module(None, &data).unwrap();
// let mut runtime = ModuleInstance::from_file($path).expect(&format!("Unable to create runtime from `{}` for test: `{}`", $path, stringify!($name)));
let result = runtime.invoke(func_name, &args).expect(&format!("Error executing `{}` for test: {}", func_name, stringify!($name)));
assert_eq!(expected_value, result)
}
};
}
use wabi::runtime::Runtime;
use wabi::types::{Value, WasmResult};
test_file!(add, "../examples/add.wasm", add(1_i32, 1_i32) => 2_i32);
test_file!(factorial, "../examples/fact.wasm", factorial(10_i64) => 3628800_i64);
test_file!(fib_bench, "../examples/fib_bench.wasm", fib(10_i32) => 55_i32);
test_file!(mem_check, "../examples/mem_check.wasm", mem_check(0_i32) => 30_i32);
test_file!(small_test_fizz, "../examples/small_test.wasm", fizz() => 2_i32);
test_file!(sum_easy, "../examples/sum_easy.wasm", sum(10_i32) => 55_i32);
test_file!(sum_hard, "../examples/sum_hard.wasm", sum(10_i32) => 55_i32);
| rust |
The ‘Saranda’ literally means a forest of seven hundred small hills is also known as the largest Sal Forest in Asia, situated in West Singhbhum district of Jharkhand. Approximately, 10,000 Adivasi families with the population of 1 lakh 25 thousand Adivasis live in the forest. The Adivasis depend on agriculture, forest produces and livestock for their livelihood. The forest is full of Iron-Ore therefore; there was always clash between the community and the business interest, which created space for the Maoist. Consequently, today the Maoists rule the vicinity. The Jharkhand police and the paramilitary forces have been carrying on series of joint operations against the Maoists. The “Operation Anaconda” was the last in the queue carried out in the Saranda forest from 1st to 31st of August 2011, led to rampant human rights violations of the Adivasis.
An emerging regional Human Rights Organization the “Jharkhand Human Rights Movement” (JHRM) exposed the rampant human rights violation in the Saranda forest with the support of the regional and national media. The JHRM also sent the complaint of the human rights violation to the National Human Rights Commission (NHRC) and other competent authorities. The General Secretary of JHRM, Gladson Dungdung had also raised the issue in the regional consultation of the NHRC held in Kolkata on September 13, 2011 and pleaded the NHRC to send an investigation team to Saranda Forest. The NHRC accepted the plea and sent a five-member investigation team headed by DIG Mamta Singh along with DSP Mr. KHC Rao, DSP K.S. Bansal, Inspector Rajbir Sigh and Inspector Rajesh Kumar. Since, the Jharkhand Human Rights Movement (JHRM) is the main complainer in the case therefore the NHRC team had asked the JHRM team to present in the spot with required documents and witnesses. The JHRM team comprising of its Chairperson Mr. Sunil Minj, General Secretary Mr. Gladson Dungdung, member Mr. Sushil Barla, Mr. Biju Toppo and Dayal Kujur visited the Saranda Forest for submission and to facilitate the investigation.
The district police and the administration of West Singbhum district were given responsibility to organize the NHRC visit to Saranda Forest due to the security reasons. Since, the DIG of Kolhan Mr. Naveen Kumar, SP of Chaibasa Mr. Arun Kumar and other police officers were involved in killing, torture and exploitation of the Adivasis in Saranda Forest therefore they attempted to manipulate the NHRC’s visit. Firstly, they tried to cancel the visit of NHRC by giving them wrong information about heavy rain and flood in Saranda Forest. And when the JHRM team cleared it to the NHRC and visit was ensured, the police and administration changed the rout chart prepared by the JHRM and misguided the NHRC team. They organized the visit in a manner to make sure that the investigation team does not reach to the most affected villages. For instance, they cut off the name of ‘Tirilposi’ village in route chart, which is one of the most affected villages. They also deployed heavy security and asked the team members to walk in the forest.
Hence, the NHRC team members could only able to visit Karampada, Jombaiburu, Tholkobad, Baliba, Digh and Samtha villages. Though the team members could not visit two most affected villages – Tirilposi and Bitkilsoy suggested by the JHRM but they recorded testimony of most of the victims with the support of the JHRM. The JHRM team visited to Karampada, Jombaiburu, Tholkobad, Gundijora, Kudliba, Baliba, Tirilposi, Bitkilsoy, Samtha and Digha and monitored and also assisted the NHRC team in the investigation.
Major Findings:
· The ‘operation Anaconda’ was carried out jointly by the Jharkhand police and the paramilitary forces in Saranda Forest in the month of August, 2011. During the operation, 25 villages (of Saranda Forest division comes under Manohapur and Noamundi development blocks and Chhotanagra, Kiriburu and Jaraikela police stations) – Tholkobad, Gundijora, Tirilposi, Baliba, Bitkilsoy, Digha, Samtha, Nayagaon, Hatnaburu, Karampada, Jombaiburu, Kulaiburu, Ponga, Holonguli, Kudliba, Bahada, Kumdi, Sonapi, Hedeburu, Tetrighat, Ratamati, Kaliyaposi, Jharbeda, Reda and Bhalulata were seized by the forces for a month. Approximately, 500 Adivasis were brutally tortured by the security forces and 15,000 were directly affected of the police atrocities and 125,000 Adivasis are still denied basic services and facilities i.e. health, education, drinking water, road and electricity, etc.
· The security forces ate-up, mixed and spoiled food-grains (1501 kg rice, 66100 kg paddy, 744 kg Bazra and 50 kg Maize) and also destroyed harvest. They also ate-up 942 pieces chicken and 114 pieces goat and 7 pieces sheep. The security forces also broken door and destroyed houses. They ate-up edible materials of three private ration shops (two in Tirilposi and one in Balibal village) and also destroyed them. They also destroyed most of the utensils (made of steel and silver) and seized the bronze utensils, traditional weapons, axes, clothes and agriculture equipments to the camps to show that they have recovered those from the Maoist camps.
· According to the FIR filed in Chhotanagra police station on June 30, 2011, Mangal Honhanga S/o – late – Darmo Honhanga resident of Baliba village comes under Chhotanagra police station in West Singhbhum district of Jharkhand was an innocent villager and the police had taken him to the forest with other 12 villagers to assist them in the operation and he was killed in the crossfire took place between Security Forces and the Maoists. However, the villagers rubbished it. According to eye-witnesses – Mr. Lando Deogam and Mr. Tasu Sido, the Jawans had shot dead Mangal Honhanga and crossfire hadn’t take place in the forest that day. According to the officer-in-charge of Sonua Police station, Rajesh Kujur who was also part of the operation, has given statements to the Executive Magistrate (Chakradharpur) Mr. Gyanendra Kumar stating that the CRPF Assistant Commandant Shambhu Kumar Biswas had shot dead Mangal Honhanga in the Saranda Forest on June 30, 2011 and the top cops had coined it as result of the crossfire to save the CRPF and Police Jawans. The Assistant SP and SDPO Mr. Ajay Linda, who was also the part of operation, had coined it as a case of crossfire in his report under the pressure of SP Arun Kumar and DIG Naveen Kumar. The top cops had also gone one step ahead; by promoting Mr. Ajay Linda as the Superintendent of Police (SP) of Jamshedpur rural within a month of the incident with the clear intention to bury the case.
· In another case of killing of Adivasi Soma Guria (identity undisclosed) the FIR filed by the police in Chhotanagra police station on August 21, 2011 states that Soma Guria was a member of the CPI-Maoist whom the police had arrested nearby Baliba village during the search operation and taken him to the forest in search of the Maoist camp, where he was killed in the crossfire. According to the eye-witnesses, there were no cases of crossfire in this case too. According to villager Sunia Honhanga, Soma Guria was severely beaten by the security forces in Baliba village in front of the villagers. Consequently, he had fell down and become unconscious. In the evening the Jawans dragged him toward the forest, which led to his death. When he died the Jawans fired on him to coin it as a case of the crossfire to save themselves. The fact is Soma Guria was killed in the police custody therefore; the responsibility must be fixed on them.
· 30 year-old Sukhmi Bankira W/o – Shree Khujuri Guria resident of Trilposi village was repeatedly gang raped by the security forces for a week in the second week of August, 2011. She said that the COBRA Jawans had captured her house for more than a week and she was living with them and also cooking for them. However, she does not want to talk on the case of sexual exploitation. According to the villagers and her husband Shree Khujuria Guria, Sukhmi Bankira was raped by 5 Jawans for a week. Since, her son was arrested and sent to Jail in allegation of being a Maoist therefore the assumption is, perhaps, she fears about her son therefore she does not want to disclose about the gang rape though she had told her husband Shree Khujuria Guria about the incident when he had come to village in holiday on August 14, 2011. In another case, the Jawans had attempted to rape Muni Guria W/o-Shree Opil Guria resident of Baliba village on June 29, 2011 in her house. She was rescued by her aunty. The victim Mrs. Muni Guria has given testimony to the investigation team of the NHRC, JHRM and Media persons as well.
· 74 year-old Tupa Honhanga was severely beaten by the security forces on August 3, 2011. After JHRM’s intervention, the Secretary of Health (Govt. of Jharkhand) Mrs. Aradhana Patnaik had assured for his treatment but despite that Tupa was not admitted to Hospital. Finally, the family members admitted him to Sail Hospital at Kiriburu on 9 September, 2011. He was lying on the bed for more than a month. Interestingly, injury was not recorded in the medical report and it is mentioned as he has been suffering from the tuberculosis. This was done with the clear intention to save the cops.
· According to the press release of the Jharkhand Police, 33 Adivasis of Saranda were arrested and sent to jail during the ‘Operation Anaconda’. However, the police have no proof against 13 villagers except alleging them as merely active members of the CPI-Maoist. The police alleged that 13 are active members, 7 are PMS, 1 RPC, 1 SDS, 3 members of fighter group and 1 member of woman group and 7 are arms suppliers. Interestingly, 29 of them are the age of below 35 and secondly, all 33 villagers were booked under the UAPA, Arms Act and 17 CLA Act. How is it possible? It is clear that most of arrested persons are innocent villagers and police have victimized them to merely show the results of the anti-naxal operations.
· The security forces destroyed land entitlement papers, ration cards, education certificates, voter identity cards and job cards in Tholkobad, Gundijora, Baliba, Tirilposi and Bitkilsoy villages.
· Schools were closed and mid-day-meal was also suspended in 25 villages during the anti-Naxal operations. A para-teacher of Baliba Primary School Mr. Haris Mahto and the president of village education committee Mr. Suleman Topno were arrested after alleging them for helping the Maoists. The Jawans ate-up food-grain of the mid-day meal of Baliba, Tirilposi and Tholkobad. The force also captured kirana shop (private ration shop) of Mr. Pator Gagrai S/o – late Markan Gagrai, who is also the president of Village Education Committee and used to supply food grain under the midday meal for Primary School, Tirilposi. The police threatened him for killing if he comes to village. The Security forces had captured the Primary School of Tholkobad and destroyed books, boxes and science kits. The Jawans severely beaten para-teacher Oliver Barla (Tholkobad School) and also destroyed utensils, land patta and voter card of Binodini Purty, who is convener of the Mid-day Meal Committee (Tholkobad). Consequently, teachers stopped going to school and the schools were closed and mid-day meal was denied to the children of 25 villages along with Tholkobad, Baliba, Tirilposi. The construction works of two new school buildings were stopped at Baliba and Tirilposi villages as the police have arrested VEC head Suleman Topno and running behind Pator Gagrai the VEC head of Tirilposi. The right to education and food were completely denied to children of Saranda Forest during the anti-Naxal operations. The schools are still closed in many villages i.e. Tholkobad, Gundijora, Tirilposi, Bitkilsoy and Kudliba. There is no Anganbri centre in many villages and the High schools also lacking in the range of 30 to 50 kilometers in the Forest.
· There is no health facilities available in the range of 30 to 50 kilometers in Saranda Forest, hence the villagers depend either of Jholachap doctor (untrained medicine practitioners) or traditional medicine practitioners for the treatment. The National Rural Health Mission has completely failed in Saranda Region.
· The security forces had created livelihood crisis in the villages, terrorized the villagers, tortured, raped and killed them. As a result, the Adivasis of Tholkobad, Gundijori, Tirilposi, Bitkilsoy and Baliba had deserted their villages for a month in August 2011 during the “Operation Anaconda”. The youth of 25 villages have migrated to elsewhere in fear of the police atrocities.
· The basic facilities – education, health, drinking water, road and electricity have denied to 125000 Adivasis of Saranda in the name of Naxalites and it has become a distance dream for them. The villagers are also not benefited from the livelihood programmes like MNREGA and Welfare schemes like Housing, Old Age Pension, etc.
· The police and the security forces had not allowed the entry of the media persons and other outsiders in the villages as they had barricaded 25 villages, exploited villagers and committed rampant human rights violation therefore they were afraid of being exposed. For instance, the forces had burnt three houses of Tirilposi village in the month May 2011 but no one knows except the villagers. The Media persons were also not allowed to enter into the villages on the first day of investigation by the NHRC. However, after the intervention of the JHRM, the media and other stake holders were involved in the investigation. This is a self explanatory of violation of the freedom of expression by the district police and the security forces.
· According to the villagers, they feed, shelter and help the Maoists, and also obey their orders in fear of their lives. If they deny, the Maoists exploit them in the night and when the security forces come to the villages in the day, they torture them alleging as their supporters and sympathizers. The villagers are exploited from both the parties. Hence, they want to get rid of atrocities of both the parties. They want to live with peace and prosperous in Saranda Forest.
· The circumstantial evidences suggest that the anti-naxal operations have a clear mining interest. For instance, a China company “Electro Steel” has been given mining lease of “Dinsumburu mines”, which is situated near Baliba and Kudliba villages, where the security forces committed rampant human rights violation. Similarly, 17 mining companies including Mittal, Tata, Jindal have been given mining leases in Saranda Forest therefore, the center and state governments want to clear the land through the anti-naxal operations. The Adivasis are not yet given land entitlement under the Forest Rights Act 2006 though they are eligible for it and secondly, the land entitlement and other papers of 4 revenue villages were also destroyed by the security forces so that they would not be able to claim their rights over the land they have been cultivating for years. Hence, the mining companies would comfortably acquire the forest and environment clearance for mining.
- A murder case under the section 302 of IPC should be filed against the CRPF Assistant Commandant Mr. Shambhu Kumar Biswas, for killing innocent villager Mangal Honhanga in the Saranda Forest and, he should be dismissed, arrested and sent to jail immediately.
- A case should also be filed against SDPO Mr. Ajay Linda, SP Mr. Arun Kumar and DIG Mr. Naveen Kumar for coining the brutal murder as a result of the crossfire. They should be dismissed immediately and sent to jail for their involvement in the brutal murder of innocent villager Mangal Honhanga.
- A CBI inquiry should be established on the cases of brutal killing of Manga Honhanga and Soma Guria, and also on the police atrocities against Adivasis in Saranda Forest.
- A compensation package of Rs. 10 lakh, 1 job and security should be provided to both the families of Mangal Honhanga and Soma Guria.
- An independent committee (comprising of one retired High Court judged, one retired IAS Officer, one retired IPS officer, one senior Journalist, one Human Right Activist, one Social Activist and one Political Activist) should be constituted for the proper assessment of the affected villages and the villagers should be given adequate compensation against the loss of their food-grain, livestock and house-hold things, etc.
- The basic services and facilities i.e. Education, Health, Drinking water, Road and Electricity should be provided to the villagers immediately.
- The Adivasis of Saranda Forest should be given land entitlement immediately under the Forest Rights Act 2006 and all the forest villages should be converted into the revenue villages and community rights should be also ensured to them under the FRA 2006.
- An independent Authority should be constituted for the Saranda Region for assessment, monitoring and implementation of the development projects (education, health, road, electricity and irrigation), livelihood programmes (MNREGA) and Welfare Schemes (Housing, Old Age Pension, scholarship, etc).
- The Constitutional Provisions for the 5th Schedule Area and PESA Act 1996 should be enforced properly in the Saranda Forest. Hence, the police and security forces should not enter into the villages without prior permission from the traditional heads (Mundas and Mankis) and they should also verify with them about the arrested persons before sending them to jail. The villagers must be taken into consideration by the police and security forces before any kind of anti-Naxal operation in Saranda to protect the rights of the villagers.
- The new mining leases of Iron-Ore given to all the corporate houses in Saranda Forest should be cancelled immediately as it is a clear violation of the Adivasis’ rights under Forest Rights Act 2006, PESA Act 1996 and Chotanagpur Tenancy Act 1908.
(General Secretary)
Jharkhand Human Rights Movement (JHRM), Ranchi.
| english |
{
"id": 135767,
"info": {
"name": "No ClearType",
"description": "Стиль для корректного отображения шрифтов при выключенном \"ClearType\" и сглаживании шрифтов, в условиях отсутствия функции \"Disable DirectWrite\" \r\nДействует аналогично функции браузера FireFox, глобально заменяя шрифты используемые на страницах, шрифтами оговоренными в этом стиле.",
"additionalInfo": "Я думаю многие раньше использовали настройку chrome://flags \"Disable DirectWrite\" в Chrome'подобных браузерах, но в новых версиях её нет, а без неё при отключённом ClearType и сглаживании неровностей экранных шрифтов (кто боролся с ClearType-ом, тот знает зачем это всё нужно) обычные шрифты на страничках очень часто выглядят кривыми и неравномерными. За основу этого стиля была взята идея из браузера FireFox, с возможностью заменять шрифты используемые на страницах, шрифтами которые использует сам браузер, и выдрав кусок стиля созданного для \"Вконтакте\"(VK.com) был создан этот миниатюрный стиль использующий заранее оговоренный набор шрифтов который действует глобально на шрифты использующиеся на всех открытых страницах.\r\n Есть несколько шрифтов которые этот стиль исправить не способен и наблюдаются искажения позиционирования элементов, но даже в таком виде результат весьма неплох, если конечно вы готовы смириться с тем что теперь у вас везде будут одинаковые шрифты. :)",
"format": "uso",
"category": "global",
"createdAt": "2016-11-28T19:50:07.000Z",
"updatedAt": "2019-07-20T14:54:10.000Z",
"license": "NO-REDISTRIBUTION",
"author": {
"id": 350818,
"name": "jakill02"
}
},
"stats": {
"installs": {
"total": 120,
"weekly": 0
}
},
"screenshots": {
"main": {
"name": "135767_after.jpeg",
"archived": true
},
"additional": [
{
"name": "135767_additional_23363.jpeg",
"archived": true
}
]
},
"discussions": {
"stats": {
"discussionsCount": 0,
"commentsCount": 0
},
"data": []
},
"style": {
"css": "/*шрифты без сглаживания*/\r\n\r\nbody { \r\nfont-family: tahoma, arial, verdana, sans-serif, Lucida Sans, Consolas, Courier New, Segoe UI, Trebuchet MS, Roboto !important;\r\n}\r\n"
}
} | json |
Veteran Maharashtra leader Sharad Pawar today put out a clarification as an old letter in which he -- as Union Agriculture Minister -- had sought reforms in the farm sector to bring in more private participation was called out by the ruling BJP.
Sharad Pawar had written to Chief Ministers like Sheila Dikshit (Delhi) and Shivraj Chouhan (Madhya Pradesh) asking them to amend the Agricultural Produce Marketing Committee (APMC) Act in their states, BJP leaders pointed out, as the letter was circulated online.
"I had said that APMC needs some reforms. The APMC Act should continue but with reforms. There is no doubt that I had written the letter. But their three Acts does not even mention APMC. They are just trying to divert the attention. There is no need to give importance," Sharad Pawar said.
The Nationalist Congress Party (NCP) chief said a few opposition parties would take a collective stand and convey it to President Ram Nath Kovind.
"Tomorrow five-six people from different political parties are going to sit, discuss and take a collective stand. . . We have a 5 pm appointment tomorrow with the President. We will present our collective stand before him," Mr Pawar said.
Mr Pawar's NCP, the Congress and many other opposition parties have backed the protests against three new laws that farmers fear will take away their earnings and leave them at the mercy of big corporates. The parties also backed the nationwide Bharat Bandh called today.
The BJP has accused Mr Pawar and the Congress of double standards.
At a press conference, Shivraj Chouhan read out paras of a letter that he said was written by Mr Pawar in 2011: "There is a need to amend APMC Act on lines of model APMC Act to encourage private sector investment in marketing, infrastructure and providing alternate competitive marketing channels in the overall interest of farmers, consumers and agriculture trade. "
Union Minister Ravi Shankar Prasad said: "Sharad Pawar is also opposing the new farm laws. But when he was agriculture minister, he wrote to all Chief Ministers for 'private sector participation' in market infrastructure. "
"The opposition parties are opposing the Narendra Modi government for the sake of opposition, forgetting their own work in the past. In its 2019 poll manifesto, Congress promised to repeal the APMC Act and make trade of agriculture produce, including export, free from all restrictions," Mr Prasad said.
Farmers have been protesting on different borders of Delhi since November 26 against the three new laws the government says are aimed at reforms -- Farmers' Produce Trade and Commerce (Promotion and Facilitation) Act, the Farmers (Empowerment and Protection) Agreement on Price Assurance and Farm Services Act, and the Essential Commodities (Amendment) Act.
Talks between the government and farmers have failed to end the deadlock.
Agriculture markets are governed by Agricultural Produce Market Committee (APMC) laws enacted by the state governments. Farmers can sell their produce at the APMC or state-run markets, at minimum guaranteed prices.
Farmers say since the central law can't alter the APMCs under the state laws, the new laws seek to create a parallel marketplace and legally insulate the new markets from the purview of state. | english |
The seventeen-member squad announced for the eight ODI matches against Australia and New Zealand is very much along expected lines. Almost all the players select themselves. The squad has a strong core which can form a strong playing eleven. It also has back up players for almost every position, except for the all-rounders.
KL Rahul is there as a back-up opening batsman behind Rohit Sharma and Shikhar Dhawan. There are enough pace bowlers to choose from, so that if there is some concern with someone with regards to form or fitness, there is a ready replacement.
Similarly, there are enough middle order batsmen to choose from, and an extra wicket-keeper batsman in Dinesh Karthik. However, there are only two all-rounders who can stake a claim for a spot in the XI, a pace-bowling all-rounder and a spin-bowling one, Hardik Pandya being the former and Kedar Jadhav the latter.
In case of injury to either of them, there is no one to else in the squad to fall back on. The closest to a Kedar Jadhav in the selected Indian squad is Ravindra Jadeja. However, he is more of a bowler and does not come close to Jadhav in batsmanship. Moreover, the success of Kuldeep and Chahal have all but fixed the spinners' slots.
Jadeja also might not find as much success on Australian pitches, with wrist-spinners clearly being the better option.
Jadhav’s primary role in India’s ODI eleven is that of a canny middle order batsman who can bowl a tidy spell and can occasionally be a partnership breaker, and Jadeja will at best be an inadequate replacement for him. In Jadhav’s absence, the Indian think tank usually goes for a batsman as a replacement, weakening India’s batting in the process.
Even more acute is the problem when it comes to having a back-up for India’s pace-bowling all-rounder, Hardik Pandya. There is absolutely no one in the Indian squad who can replace him in the playing eleven. Though this speaks volumes about Pandya’s importance in the Indian ODI team, the thought of him sitting out due to injury is a scary prospect.
Unfortunately for India, both these all-rounders have been injury-prone. Over-dependence on them, and not grooming back-ups may come back to haunt them, not just in the short term in the series against Australia and New Zealand, but also in the upcoming ICC World Cup, which is just a few months away.
| english |
package sign
import (
"fmt"
"io/ioutil"
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestFetchContract(t *testing.T) {
checkFetchResult(t, "01", false, "Hello")
}
func TestFetchContractWrongUUID(t *testing.T) {
checkFetchResult(t, "02", true, "")
}
func checkFetchResult(t *testing.T, uuid string, errExpected bool, content string) {
file, _ := ioutil.TempFile("", "")
defer func() { _ = os.Remove(file.Name()) }()
err := FetchContract("password", uuid, file.Name())
if errExpected {
assert.NotEqual(t, nil, err)
} else {
assert.Equal(t, nil, err)
}
data, _ := ioutil.ReadFile(file.Name())
assert.Equal(t, content, fmt.Sprintf("%s", data))
}
| go |
It seems that all of us need that kind of watch.
In his book, Blink, Malcolm Gladwell wrote about a relationship and friendship expert who could estimate the success potential of a married couple. He stated that the success of the marriage is determined by the interaction and communication between each other. What sign did he see that a marriage could experience a problem? Words that do not edify each other.
If someone treats his partner with negative words, their relationship will usually fail. To be valued, you need to know how to value other people. To be respected, you need to sincerely respect others. When we look down on someone, we see him as a victim and not a person.
How is our communication in the family, be it in the relationship between husband and wife or with our children? Let us build a family filled with constructive words that build and strengthen each other. If we can do this, our family surely will be happier.
Prayer: Lord, teach us how to use our words to edify and strengthen one another. Let our words impart love and new enthusiasm. Amen.
| english |
#include "simulation/ElementCommon.h"
int Element_BIZR_update(UPDATE_FUNC_ARGS);
int Element_BIZR_graphics(GRAPHICS_FUNC_ARGS);
void Element::Element_BIZRG()
{
Identifier = "DEFAULT_PT_BIZRG";
Name = "BIZG";
Colour = PIXPACK(0x00FFBB);
MenuVisible = 1;
MenuSection = SC_CRACKER2;
Enabled = 1;
Advection = 1.0f;
AirDrag = 0.01f * CFDS;
AirLoss = 0.99f;
Loss = 0.30f;
Collision = -0.1f;
Gravity = 0.0f;
Diffusion = 2.75f;
HotAir = 0.000f * CFDS;
Falldown = 0;
Flammable = 0;
Explosive = 0;
Meltable = 0;
Hardness = 1;
Weight = 1;
DefaultProperties.temp = R_TEMP - 200.0f + 273.15f;
HeatConduct = 42;
Description = "Bizarre gas.";
Properties = TYPE_GAS;
LowPressure = IPL;
LowPressureTransition = NT;
HighPressure = IPH;
HighPressureTransition = NT;
LowTemperature = ITL;
LowTemperatureTransition = NT;
HighTemperature = 100.0f;
HighTemperatureTransition = PT_BIZR;
DefaultProperties.ctype = 0x47FFFF;
Update = &Element_BIZR_update;
Graphics = &Element_BIZR_graphics;
}
| cpp |
<gh_stars>10-100
{"template":{"small":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/1.0","medium":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/2.0","large":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/3.0"},"channels":{"rapid":{"title":"RAPID","channel_id":43791203,"link":"http://twitch.tv/rapid","desc":null,"plans":{"$4.99":"189952","$9.99":"189953","$24.99":"189954"},"id":"rapid","first_seen":"2017-06-29 11:55:04","badge":null,"badge_starting":null,"badge_3m":null,"badge_6m":null,"badge_12m":null,"badge_24m":null,"badges":null,"bits_badges":null,"cheermote1":null,"cheermote100":null,"cheermote1000":null,"cheermote5000":null,"cheermote10000":null,"set":189952,"emotes":[{"code":"rapidFist","image_id":216535,"set":189952},{"code":"rapidDragon","image_id":216591,"set":189954},{"code":"rapidIF","image_id":216575,"set":189953}]}}}
| json |
<gh_stars>1-10
#pragma once
// Esdiel
#include <Esdiel/Core.hpp>
// C++
#include <type_traits>
namespace esd
{
///
template <typename Enum>
constexpr auto AsUnderlying(Enum e)
{
return static_cast<std::underlying_type_t<Enum>>(e);
}
}
| cpp |
{
"id": 117226,
"name": "DesigningSL: Dark (Nova)",
"description": "A dark theme for \"DesigningSL\", a popular SL (game) blog.",
"user": {
"id": 46647,
"name": "Novadestin",
"email": "<PASSWORD>",
"paypal_email": "<EMAIL>",
"homepage": "http://www.wiccananime.com",
"about": "Hello everyone! \r\n\r\nI suffer from photophobia and use Stylish to alleviate some of my eye strain due to the horrid black on white \"standard\" of the web. After noticing that many of the sites I use regularly didn't have any dark styles (or any styles at all for that matter), I decided to upload my own for any other sufferers (or just anyone else who likes a darker look) to use. \r\n\r\nHowever, I am in no way an expert. I am aware that most of my styles are far from perfect, but they work for what I use them for. I learned a lot of what I know from just looking at other people's styles I've used in the past; as such, everyone is welcome to make whatever changes are needed to my styles to suit their own usage/tastes (if you need help, just ask).\r\n\r\nThanks to everyone who has contributed to this great utility, and eternal thanks to Stylish for being exactly what lets me enjoy the web!\r\n\r\nPS. I use the FT DeepDark theme and styles for Firefox by Steva/Sr21, so my dark color scheme is similar to that (although I make mine a touch darker). If you want different colors, everything should be easily changeable.",
"license": "publicdomain"
},
"updated": "2016-08-11T03:39:46.000Z",
"weekly_install_count": 0,
"total_install_count": 44,
"rating": null,
"after_screenshot_name": "https://userstyles.org/auto_style_screenshots/117226-after.png?r=1570953699",
"obsoleting_style_id": null,
"obsoleting_style_name": null,
"obsolete": 0,
"admin_delete_reason_id": null,
"obsoletion_message": null,
"screenshots": null,
"license": null,
"created": "2015-08-02T06:11:26.000Z",
"category": "site",
"raw_subcategory": "designingsl",
"subcategory": "designingsl",
"additional_info": null,
"style_tags": [],
"css": "@namespace url(http://www.w3.org/1999/xhtml);\r\n\r\n@-moz-document domain(\"designingsl.com\") {\r\n\r\nhtml, body, .sticky-wrapper\r\n{color: white !important;\r\nbackground: #111 !important;}\r\n \r\na\r\n{color: #00adee !important;}\r\n \r\nh1, h2, h3, h4, h5, h6\r\n{color: white !important;} \r\n \r\naside#php_widget-2, aside#php_widget-3, aside#meta-2, aside#googleplus-badge-2, aside#facebook-likebox-2, aside#execphp-2, div.sharedaddy, #corncurl-cont, #corncurl-bg, #corncurl-peel, #corncurl-small-img, .nav-search, #execphp-3, #sidebar-footer, .site-footer \r\n{display: none !important;} \r\n\r\n.post-content, .widget-area, .ai1ec-agenda-widget-view .ai1ec-date, .entry-summary div, .entry-content div, .single .hentry\r\n{color: white !important;\r\nbackground: #222 !important;} \r\n \r\n.nav-previous, .nav-next\r\n{color: white !important;\r\nbackground: #222 !important;\r\nbox-shadow: none !important;} \r\n \r\n.widget-area, .hentry .post-content, .single .hentry\r\n{border: 1px solid #00adee !important;} \r\n \r\n.site-branding, .main-navigation li\r\n{padding: 30px 10px 20px 10px !important;} \r\n \r\n.site-content\r\n{margin-top: 0px !important;}\r\n \r\n#undefined-sticky-wrapper\r\n{height: 170px !important;} \r\n \r\n.home-wrapper\r\n{margin-top: -40px !important;} \r\n \r\n}",
"discussions": [],
"discussionsCount": 0,
"commentsCount": 0,
"userjs_url": "/styles/userjs/117226/designingsl-dark-nova.user.js",
"style_settings": []
} | json |
# SOLUTION 1
# Tandem Bicycle
# Complexity
# Average: Time: O(n log(n)) | Space: O(1)
# Worst: Time: O(n^2) | Space:
# Greedy Algorith, sorting the input
# 1. Pair ther maximum value and minimum value
# 2. Pair the maxium value with the maximum value
# STEPS:
# Reverse an array is O(n)
# Sort array in place
# Reverse 2ND array
# QUESTIONS:
# Am I allowed to use the built in method to reverse the list.
def tandemmBicycle(redShirtSpeeds, blueShirtSpeeds, fastest):
redShirtSpeeds.sort()
blueShirtSpeeds.sort()
if not fastest:
reverseArrayInPlace(redShirtSpeeds)
totalSpeed = 0
for idx in range(len(redShirtSpeeds)):
rider1 = redShirtSpeeds[idx]
rider2 = blueShirtSpeeds[len(blueShirtSpeeds) - idx - 1]
totalSpeed += max(rider1, rider2)
return totalSpeed
def reverseArrayInPlace(array):
start = 0
end = len(array) = 1
while start < end:
array[start], array[end] = array[end], array[start]
start += 1
end -1
| python |
import { Logger } from "pino";
import { JsonRpcPayload } from "@walletconnect/jsonrpc-types";
import { IClient } from "./client";
export declare namespace CryptoTypes {
export interface Participant {
publicKey: string;
}
export interface KeyPair {
privateKey: string;
publicKey: string;
}
export interface EncryptionKeys {
sharedKey: string;
publicKey: string;
iv?: string;
}
export interface EncryptParams extends EncryptionKeys {
message: string;
}
export interface DecryptParams {
sharedKey: string;
encrypted: string;
}
}
export abstract class IKeyChain {
public abstract keychain: Map<string, string>;
public abstract name: string;
public abstract readonly context: string;
constructor(public client: IClient, public logger: Logger) {}
public abstract init(): Promise<void>;
public abstract has(tag: string, opts?: any): Promise<boolean>;
public abstract set(tag: string, key: string, opts?: any): Promise<void>;
public abstract get(tag: string, opts?: any): Promise<string>;
public abstract del(tag: string, opts?: any): Promise<void>;
}
export abstract class ICrypto {
public abstract name: string;
public abstract readonly context: string;
public abstract keychain: IKeyChain;
constructor(public client: IClient, public logger: Logger, keychain?: IKeyChain) {}
public abstract init(): Promise<void>;
public abstract hasKeys(tag: string): Promise<boolean>;
public abstract generateKeyPair(): Promise<string>;
public abstract generateSharedKey(
self: CryptoTypes.Participant,
peer: CryptoTypes.Participant,
overrideTopic?: string,
): Promise<string>;
public abstract encrypt(topic: string, message: string): Promise<string>;
public abstract decrypt(topic: string, encrypted: string): Promise<string>;
public abstract encode(topic: string, payload: JsonRpcPayload): Promise<string>;
public abstract decode(topic: string, encrypted: string): Promise<JsonRpcPayload>;
}
| typescript |
After a one-day series where his bowlers gave him little chance of being certain of anything, M. S. Dhoni was pleased with a victory that he could see coming from a distance. Despite Australia's early assault, he said he did not feel the urge to bring his spinners on, knowing they would be hard to attack with the field back.
“I was pretty sure about what I wanted to do,” Dhoni said after India’s win in the second T20I here on Friday.
Dhoni said he was pleased with Yuvraj’s effort with the ball. “Well, the strength of the pie-chucker is his bowling, you know! You need more individuals who can do more than one job on the field. It just adds to the strength of the side,” he said.
Australia made six changes, with three players making their T20 debuts. These games, it seems, are an opportunity for the selectors to experiment ahead of the World T20. “India has been a settled team for a long time. Six changes [in the Australian team] provides more challenges. The selectors are trying to find what their best-15 and the best team for the World Cup is,” Shane Watson said.
“It’s certainly changed a bit from the days when they had Virender Sehwag, my old mate Rahul Dravid and V. V. S. Laxman running around there! ” he quipped. | english |
Facebook is extending its ban on hate speech to prohibit the promotion and support of white nationalism and white separatism. The company previously allowed such material even though it has long banned white supremacists. The social network said Wednesday that it didn’t apply the ban previously to expressions of white nationalism because it linked such expressions with broader concepts of nationalism and separatism — such as American pride or Basque separatism (which are still allowed).
But civil rights groups and academics called this view “misguided” and have long pressured the company to change its stance. Facebook said it concluded after months of “conversations” with them that white nationalism and separatism cannot be meaningfully separated from white supremacy and organized hate groups.
Critics have “raised these issues to the highest levels at Facebook (and held) a number of working meetings with their staff as we’ve tried to get them to the right place”, said Kristen Clarke, president and executive director of the Lawyers’ Committee for Civil Rights Under Law, a Washington DC-based legal advocacy group.
Though Facebook Inc. said it has been working on the change for three months, it comes less than two weeks after Facebook received widespread criticism after the suspect in shootings at two New Zealand mosques that killed 50 people was able to broadcast the massacre on live video on Facebook. Also on Wednesday, a man convicted on state murder charges in a deadly car attack at a white nationalist rally in Charlottesville, Virginia, pleaded guilty to federal hate crime charges. The bloodshed in 2017 prompted tech companies to take a firmer stand against accounts used to promote hate and violence.
But apparently not enough. Now, Facebook is trying to do more. As part of Wednesday’s change, people who search for terms associated with white supremacy on Facebook will be directed to a group called Life After Hate, which was founded by former extremists who want to help people leave the violent far-right.
Clarke called the idea that white supremacism is different than white nationalism or white separatism a misguided “distinction without a difference”.
She said the New Zealand attack was a “powerful reminder about why we need the tech sector to do more to stamp out the conduct and activity of violent white supremacists”.
Rashad Robinson, the president of Color of Change, says the racial justice group warned Facebook to the growing dangers of white nationalists on its platform years ago and that he was glad to see Wednesday’s announcement.
“Facebook’s update should move Twitter, YouTube, and Amazon to act urgently to stem the growth of white nationalist ideologies, which find space on platforms to spread the violent ideas and rhetoric that inspired the tragic attacks witnessed in Charlottesville, Pittsburgh, and now Christchurch,” he said.
Twitter does not currently ban white nationalists or white separatists, though its hateful conduct policy forbids the promotion of violence or threats against people on the basis of race, gender, religion and other protected categories. It also bans the use of “hateful images or symbols” in profile or header images. YouTube also bans hate speech and says it removes content promoting violence or hatred on the basis of these categories. Amazon has an “offensive products” policy that does not allow the promotion or glorification of hatred, racial violence or sexual or religious intolerance. The three companies did not immediately respond to messages for comment on Wednesday.
Madihha Ahussain, a special counsel for anti-Muslim bigotry at the nonprofit Muslim Advocates, said what’s needed now is more information on how Facebook will define white nationalist content — and how it will enforce its new rules.
“Now, the question is: how will Facebook interpret and enforce this new policy to prevent another tragedy like the Christchurch mosque attacks? ” she said. | english |
export const SELECT_COURSE = 'SELECT_COURSE';
export const UNSELECT_COURSE = 'UNSELECT_COURSE';
export const FETCH_COURSE_SUCCESS = 'FETCH_COURSE_SUCCESS';
| javascript |
Written Answers
Cotton Production
APRIL 19, 1993 [English]
5112. SHRI MAHENDRA KUMAR SINGH THAKUR:
SHRI KADAMBUR M.R.
Will the Minister of AGRICULTURE be pleased to state:
(a) the target fixed by the Government for cotton production during the year 199394; and
(b) the major plant protection scheme formulated to protect the cotton crop form "Ball-Rot" and other major diseases which affected the cotton crop in Tamil Nadu recently? ;
THE MINISTER OF STATE IN THE MINISTRY OF NON-CONVENTIONAL ENERGY SOURCES AND MINISTER OF STATE IN THE MINISTRY OF AGRICULTURE (SHRI S. KRISHNA KUMAR): (a) The Ministry of Agriculture has proposed 11.5 million bales as production target of cotton for 1993-94.
(b) The Government of India is Implementing the Centrally Sponsored Scheme of Intensive Cotton Development Programme in important cotton growing states including Tamil Nadu. Under the scheme, besides other developmental activities, the provision of financial assistance has been made for supply of plant protection chemicals and equipments to the farmers to protect cotton crop from pests and diseases. During 1992-93 incidence of diseases in Tamil Nadu was reported in low intensity.
Written Answers 740
Assistance from Sugar Development: Fund to Sugar Mills in Andhra Pradesh
5113. SHRI BOLLA BULLI RAMAIAH: DR. RAMKRISHNA KUSMARIA:
Will the Minister of FOOD be pleased to state:
(a) whether the Government have provided any assistance out of the Sugar Development Fund to the sugar mills in Andhra Pradesh;
(b) if so, details thereof during the last two years;
(c) whether the fund has been fully utilised by the sugar mills in Andhra Pradesh; and
(d) the names of the sugar mills which are proposed to be developed out of the said fund during the ensuing year?
THE MINISTER OF STATE OF THE MINISTRY OF FOOD (SHRI KALP NATH RAI): (a) Yes, Sir.
(b) and (c). A statement showing the names of sugar undertakings which have been sanctioned loans from the Sugar Development Fund for sugarcane development and for modernisation/ rehabilitation of plant & machinery, alongwith the amounts disbursed to them during the year 1991-92 & 1992-93 is given below.
(d) Applications in respect of the following sugar undertakings in Andhra Pradesh have been received for grant of loans form Sugar Development Fund:
741 Written Answers
CHAITRA 29, 1915 (SAKA)
Cane Development:
Written Answers 742
Name of the Mill
M/s The Nizamabad Cooperative Sugar Factory Limited, Sarangapur, District: Nizamabad, Andhra Pradesh 503 186
M/s Sri Sarvaraya Sugars Ltd., PO. Chelluru District: East Godavari, Andhra Pradesh 533 261
| english |
First discussed in ancient Hindu texts and studied for thousands of years in numerous spiritual traditions, including acupuncture, meditation, and yoga, chakras are the power centers connecting your physical body and the world of energy. By tapping into the power of your chakras, you can live a healthier, balanced, and more abundant life.
Athena Perrakis, leading metaphysical teacher and creator of the world's largest online metaphysical resource website, SageGoddess.com, has created a modern guide to the ancient practice of working with the chakras. Unlike most other guides, which only address the seven body chakras, The Chakra Handbook addresses the nine major chakras you can tap into to balance, heal, and manifest. This guide explains how and why different crystals, aromatherapy, essential oils, and sacred plants help to support each chakra.
Each chapter of The Chakra Handbook also includes magical exercises for accessing the energy of each chakra, including meditations, journal exercises, and working with goddesses and spirit guides. Readers will even learn how to create a dedicated chakra altar, a mandala, chakra-specific incense blends, as well as other inspired projects. Lavishly photographed and illustrated, this guide promises to be an essential volume for beginners and experienced energy workers alike.
| english |
This week I had two meetings with CEOs of companies we've recently invested in where the question of "what is an ideal board meeting" came up. I'm writing an entire book on it calledStartup Boards: Reinventing the Board of Directors to Better Support the Entrepreneur so it's easy for me to define my ideal board meeting at this point since my head is pretty deep into it intellectually.
One of the things I always suggest to CEOs is that they be an outside director for one company that is not their own. I don't care how big or small the company is, whether or not I have an involvement in the company, or if the CEO knows the entrepreneurs involved. I'm much more interested in the CEO having the experience of being a board member for someone else's company.
Being CEO of a fast growing startup is a tough job. There are awesome days, dismal days, and lots of in-between days. I've never been in a startup that was a straight line of progress over time and I've never worked with a CEO who didn't regularly learn new things, have stuff not work, and go through stretches of huge uncertainty and struggle.
Given that I am no longer a CEO (although I was once – for seven years) I don't feel the pressure of being CEO. As a result I've spent a lot of the past 17 years being able to provide perspective for the CEOs I work with. Even when I'm deeply invested in the company, I can be emotionally and functionally detached from the pressure and dynamics of what the CEO is going through on a daily basis while still understanding the issues since I've had the experience.
Now, imagine you are a CEO of a fast growing startup. Wouldn't it be awesome to be able to spend a small amount of your time in that same emotional and functional detachment for someone else's company? Not only would it stretch some new muscles for you, it'd give you a much broader perspective on how "the job of a CEO" works. You might have new empathy for a CEO, which could include self-empathy (since you are also a CEO) – which is a tough concept for some, but is fundamentally about understanding yourself better, especially when you are under emotional distress of some sort. You'd have empathy for other board members and would either appreciate your own board members more, or learn tools and approaches to develop a more effective relationship with them, or decide you need different ones.
There are lots of other subtle benefits. You'll extend your network. You'll view a company from a different vantage point. You'll be on the other side of the financing discussions (a board member, rather than the CEO). You'll understand "fiduciary responsibility" more deeply. You'll have a peer relationship with another CEO that you have a vested interest in that crosses over to a board – CEO relationship. You'll get exposed to new management styles. You'll experience different conflicts that you won't have the same type of pressure from. The list goes on and on.
I usually recommend only one outside board. Not two, not three – just one. Any more than one is too many – as an active CEO you just won't have time to be serious and deliberate about it. While you might feel like you have capacity for more, your company needs your attention first. There are exceptions, especially with serial entrepreneurs who have a unique relationship with an investor where it's a deeper, collaborative relationship across multiple companies (I have a few of these), but generally one is plenty.
I don't count non-profit boards in this mix. Do as much non-profit stuff as you want. The dynamics, incentives, motivations, and things you'll learn and experience are totally different. That's not what this is about.
If you are a CEO of a startup company and you aren't on one other board as an outside director, think hard about doing it. And, if you are in my world and aren't on an outside board, holler if you want my help getting you connected up with some folks.
(Brad has been an early stage investor and entrepreneur for over 20 years and is currently a managing director at Foundry Group.)
| english |
/**
* @file StandardPlotFormat.hpp
* @author Yi-Mu "<NAME>"
* @brief Definition of all standardized plotting related classes.
*/
#ifndef USERUTILS_PLOTUTILS_SDPFORMAT_HPP
#define USERUTILS_PLOTUTILS_SDPFORMAT_HPP
#ifdef CMSSW_GIT_HASH
#include "UserUtils/Common/interface/RapidJson.hpp"
#include "UserUtils/MathUtils/interface/Measurement/Measurement.hpp"
#include "UserUtils/PlotUtils/interface/Pad1D.hpp"
#else
#include "UserUtils/Common/RapidJson.hpp"
#include "UserUtils/MathUtils/Measurement/Measurement.hpp"
#include "UserUtils/PlotUtils/Pad1D.hpp"
#endif
#include "TFile.h"
#include "TH1D.h"
#include "TH2D.h"
#include <memory>
namespace usr {
namespace plt {
namespace fmt {
/**
* @addtogroup StandardizedPlot
* @{
*/
class Process;
class ProcessGroup;
class Uncertainty;
class IOSetting;
class HistRequest;
class BatchRequest;
/**
* @class Process
* @brief Constainer of a single process information.
*/
class Process
{
public:
friend ProcessGroup;
friend BatchRequest;
std::string name;
std::string latex_name;
std::string generator;
std::string cross_section_source;
usr::Measurement cross_section;
std::string file;
std::string color;
std::string key_prefix;
double scale;
double effective_luminosity;
unsigned run_range_min;
unsigned run_range_max;
float transparency;
private:
Process( const usr::JSONMap& map, const BatchRequest* parent );
TFile* _file;
const BatchRequest* parent;
void OpenFile();
inline const BatchRequest&
Parent() const {return *parent;}
bool CheckKey( const std::string& ) const;
std::string MakeKey( const std::string& ) const;
TH1D* GetNormalizedClone( const std::string& ) const;
TH1D* GetScaledClone( const std::string&, const double ) const;
TH1D* GetClone( const std::string& ) const;
TH2D* Get2DClone( const std::string& ) const;
};
/**
* @class ProcessGroup
* @brief Container for a group of processes that will share a common display
* information
*/
class ProcessGroup : public std::vector<Process>
{
public:
friend BatchRequest;
std::string name;
std::string latex_name;
std::string color;
bool is_data;
private:
ProcessGroup();
ProcessGroup( const usr::JSONMap& map, const BatchRequest* parent );
};
/**
* @class HistRequest
* @brief Container for a histogram request
*/
class HistRequest
{
public:
friend BatchRequest;
std::string name;
std::string xaxis;
std::string units;
std::string yaxis;
std::string filekey;
std::string type;
bool logy;
private:
HistRequest( const usr::JSONMap& map );
};
/**
* @class Uncertainty
* @brief Container for an uncertainty
*/
class Uncertainty
{
public:
friend BatchRequest;
std::string name;
std::string key;
usr::Measurement norm_uncertainty;
private:
Uncertainty( const usr::JSONMap& map );
};
/**
* @class IOSetting
* @brief Definition of a custom io settings
*/
class IOSetting
{
public:
friend BatchRequest;
std::string input_prefix;
std::string key_prefix;
std::string output_prefix;
std::string output_postfix;
private:
IOSetting( const usr::JSONMap& map );
IOSetting();
};
/**
* @class BatchRequest
* @brief Class defining a request to run some standardized plotting routine.
*/
class BatchRequest
{
public:
std::vector<HistRequest> histlist;
std::vector<ProcessGroup> background;
ProcessGroup data;
std::vector<Process> signallist;
std::vector<Uncertainty> uncertainties;
BatchRequest( const std::string& jsonfile );
BatchRequest( const std::vector<std::string>& jsonfiles );
BatchRequest( const usr::JSONMap& map );
void GeneratePlots();
void GenerateSampleComparePlot();
void GenerateSimulationTable( std::ostream& stream ) const;
void GenerateSimulationSummary( std::ostream& stream ) const;
void GenerateDataTable( std::ostream& ) const;
void Generate2DComaprePlot();
void UpdateInputPrefix( const std::string& );
void UpdateKeyPrefix( const std::string& );
void UpdateOutputPrefix( const std::string& );
void UpdateoutputPostfix( const std::string& );
private:
friend Process;
void initialize( const usr::JSONMap& map );
IOSetting iosetting;
// Temporary variables for generating plots:
std::vector<std::unique_ptr<TH1D> > _background_stack;
std::unique_ptr<TH1D> _background_stat;
std::unique_ptr<TH1D> _background_sys;
std::unique_ptr<TH1D> _data_hist;
double _total_luminosity;
void GenerateBackgroundObjects( const HistRequest& );
void GenerateData( const HistRequest& );
void PlotOnPad( const HistRequest& histrequest, Pad1D& pad );
};
/** @} */
}// fmt
}// plt
}// usr
#endif
| cpp |
.main {
margin-left: 200px; /* Same as the width of the sidenav */
font-size: 14px; /* Increased text to enable scrolling */
padding: 0px 10px;
}
.main_data {
margin-left: 20px;
} | css |
<gh_stars>10-100
{% extends "campaign/base.html" %}
{% load i18n %}
{% block content %}
<h1>{% trans "Subscribe to our newsletter" %}</h1>
{% ifequal action "subscribe" %}
{% if success %}
<p>{% trans "You successfully subscribed to our newsletter." %}</p>
{% else %}
<p>{% trans "Something went wrong and we could not subscribe you." %} </p>
{% endif %}
{% endifequal %}
<form action="" method="post">
{{ form.as_p }}
<p><input type="submit" value="{% trans "subscribe" %}"/></p>
</form>
{% endblock %} | html |
Veer is Amrita Rao and RJ Anmol's first child and the new parents have been embracing parenthood and learning great deal about parenting with each passing day.
Amrita Rao and husband RJ Anmol were blessed with a baby boy on November 1 last year. The actress delivered the baby in the morning and Anmol was with her in the operation theatre all through the delivery. This is Amrita and Anmol's first child and the new parents have been embracing parenthood and learning great deal about parenting with each passing day. And it seems like Amrita and Anmol are setting a great precedent by normalising breastfeeding in their latest post.
In a picture shared by Anmol, Amrita can be seen breastfeeding her baby son Veer. Proud husband called the moment his most beautiful sight that he gets every day. "Amrita Feeding Veer is the Most Beautiful Sight for Me Every Day...its so Surreal, So Magical... almost Godly ! ? Its the Toughest Duty - All Night, All Day & She does it with a Smile on her face... to see Mother & Baby bond in a different way... I Salute You, I Salute My Mother & EVERY MOTHER on this Planet ... ?? Why wait for Mother’s Day, I Say," he wrote on Instagram.
Amrita and Anmol recently introduced their newborn to the world by sharing an adorable picture on Instagram. In the picture, Amrita and Anmol can be seen lovingly looking at their baby son Veer who seems to have just woken up from his sleep. "Our World, Our Happiness #Veer," Anmol had written on Instagram.
Earlier, Anmol had shared a picture which showed Amrita and Anmol's hands holding a small fist. "Hello World... Meet Our Son #Veer. He is lookin at his 1st BroFist frm YOU !!! Seek Your Blessings," reads the post.
After the delivery, the couple made the announcement with a statement that read, "Amrita Rao and RJ Anmol welcomed a baby boy this morning. Both the mother and baby are healthy and doing well. The family is ecstatic and both Amrita and RJ Anmol thank everyone for their wishes and blessings," a statement issued by the couple's publicist said."
Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series.
Click to join us on Facebook, Twitter, Youtube and Instagram.
Also follow us on Facebook Messenger for latest updates.
| english |
Guillermo "Mito" Pereira Hinke, a professional golfer from Chile, was born on March 31, 1995. He plays in the LIV Golf League. Pereira joined the 2016 PGA Tour Latinoamerica after turning pro in the second half of 2015.
Pereira had a three-shot lead at the 2022 PGA Championship but finished at 6-under par. He bogeyed and missed a birdie putt, tying him for third place with Justin Thomas.
Pereira has been named to the international team for the Presidents Cup in 2022. He played in three games, two of which he lost and one of which he tied. Pereira joined LIV Golf in February 2023 and plays for the Torque GC team alongside team leader Joaquin Niemann.
He just put on a tremendous performance at the Greenbrier event, finishing in second place with a final score of 193 and 17 strokes under par on August 6, 2023. He earned a total of $2,250,000 during the tournament, with $750,000 earned individually.
Pereira finished the Bedminster tournament on August 13, 2023, tied for 18th place with a total score of 214, 1 stroke over par. He earned $240,000 from the tournament.
Pereira is a Ping staff player who has a full set of the company's clubs. The first club he uses is a Ping G430 Max driver with a 10.5-degree loft and a Graphite Design Tour AD DI 6 X shaft. The G430 line is Ping's most recent line, and the LST model has a brand-new "CarbonFly crown."
The lighter material reduces the center of gravity, resulting in a lower launch with less spin and a longer range. Due to the fact that carbon is a lighter material, it removes bulk from the club's crown and enables it to be placed elsewhere.
Additionally, Pereira uses a Ping G425 SFT three-wood and a G425 Max seven-wood with respective lofts of 15.5 and 20.5 degrees. The most forgiving fairway wood in the G425 series, the Max model, is incredibly simple to hit.
In contrast to the steel face insert used in the G410 models, the G425 Max has a one-piece face, which has boosted ball speeds over the face by up to 1.5 mph—a substantial improvement in a Ping evolutionary model.
Ping removed the turbulents that dominated the crown of the G410 fairway wood and replaced them with a straightforward, elegant three-dot system. This is excellent for reliably aligning the ball in the middle of the face. He has Graphite Design Tour AD DI 8 X shafts on both of his fairway woods.
The next set of irons he utilizes is a set of Ping iBlades, which range in size from four to nine irons. Additionally, they have shafts that are True Temper Dynamic Gold Tour Issue X100.
They were released in 2016 and are thought to be excellent in every performance category that professional golfers value: distance control, workability, a soft feel, and forgiveness thrown in for good measure.
Pereira uses four Ping Glide 4.0 wedges with lofts of 46, 52, 56, and 60 degrees. They were quite simple to spin the ball with, and the ball sat to attention more quickly than with most new wedges, even when striking shots that came off somewhat hotter and lower than anticipated.
They also have a stunning appearance, particularly when worn with the more traditional teardrop-shaped soles that are offered in three of the four sole variants. Additionally, it sports the standard Ping Hydropearl 2.0 chrome coating, which improves looks and decreases brightness while also preventing flyers from the rough in wet circumstances.
The last club Pereira has in his bag is a Dale Anser-designed Ping PLD. Everything about it, even the absence of alignment lines, is unique. It was crafted from 303-forged stainless steel and polished with a matte black hue.
Currently, Pereira plays with a Titleist Pro V1 golf ball. The design experienced a number of important improvements with its biennial upgrade, including the 2.0 ZG Process Core's newly reformulated 2.0 ZG Process Core, which was adopted with more regard for distance.
In order to maximize distance and flying consistency, there were numerous experiments and tests, and the number of dimples increased from 352 to 388. For increased greenside spin and control, the cover itself is also constructed of a new, softer urethane elastomer.
Q. What driver does Mito Pereira use?
A. Mito Pereira uses a Ping G430 LST driver with a 10.5-degree loft and a Graphite Design Tour AD DI 6 X shaft.
A. Mito Pereira uses a Ping G430 LST driver with a 10.5-degree loft and a Graphite Design Tour AD DI 6 X shaft.
Q. What fairway woods does Mito Pereira carry?
A. Mito Pereira carries a Ping G425 SFT three-wood (15.5 degrees) and a Ping G425 Max seven-wood (20.5 degrees).
A. Mito Pereira carries a Ping G425 SFT three-wood (15.5 degrees) and a Ping G425 Max seven-wood (20.5 degrees).
Q. Which irons does Mito Pereira play with?
A. Mito Pereira plays with Ping iBlade irons ranging from 4 to 9, all equipped with True Temper Dynamic Gold Tour Issue X100 shafts.
A. Mito Pereira plays with Ping iBlade irons ranging from 4 to 9, all equipped with True Temper Dynamic Gold Tour Issue X100 shafts.
Q. What type of golf ball does Mito Pereira use?
A. Mito Pereira plays with the Titleist Pro V1 golf ball.
A. Mito Pereira plays with the Titleist Pro V1 golf ball.
Q. When did Mito Pereira join the LIV Golf League?
Mito Pereira joined the LIV Golf League in February 2023.
Mito Pereira joined the LIV Golf League in February 2023.
| english |
<gh_stars>0
//
//
// FreeList
//
//
package tos.system;
import java.util.*;
import java.io.*;
/** This class encapsulates the list of free data blocks, maintained
* both on disk and in memory.
* <p>The on-disk version consists of a fixed-size array of bytes,
* each byte set to 1 if it is free and 0 if it is used. When a
* virtual disk is started, all locations in the array with values
* set to 0 are placed in a <code>java.util.Stack</code> object.
* Allocations and deallocations of space are made from this stack.
* <p>For maximum reliability, every change to the free
* list from an allocation or deallocation is written to disk
* at once.
*/
class FreeList
{
/** Used blocks. */
static byte USED = 0;
/** Free blocks. */
static byte FREE = 1;
/** Stack containing free blocks. */
protected Stack stack = new Stack();
/** Number of available data blocks. */
int numblocks;
/** Location of the free list in the disk file. */
int freeliststart;
/** Disk file. */
FileStore file;
/** Constructor.
* @param superblock Superblock of the disk.
* @param file Physical file of the disk.
*/
public FreeList(Superblock superblock, FileStore file)
{
numblocks = superblock.numblocks;
freeliststart = superblock.freeliststart;
this.file = file;
}
/** Returns <code>true</code> if there are no more free blocks.
* @return <code>true</code> if there are no more free blocks.
*/
boolean empty()
{
return stack.empty();
}
/** Places all blocks in the stack.
* <p>Called only when a disk is being created, this function
* prepares the stack for use by placing every block on the free list.
*/
void initialize()
{
int i;
synchronized (stack) {
for (i=numblocks-1; i>=0; i--)
stack.push(new Integer(i));
}
}
/** Retrieves the free list from disk.
* <p>Traverses the physical disk file in the free list section.
* There is one byte for every data block. Those bytes with values
* set to FREE are pushed into the stack.
* @exception IOException if there is an I/O error.
*/
void retrieve() throws IOException
{
int i;
byte blockused;
synchronized (file) {
long oldpos = file.getFilePointer();
file.seek(freeliststart);
for (i=0; i<numblocks; i++)
{
try {
blockused = file.readByte();
} catch (IOException e) {
throw e;
}
if (blockused==FREE)
synchronized (stack) {
stack.push(new Integer(i));
}
}
file.seek(oldpos);
}
}
/** Writes the entire free list to disk.
* <p>One byte is written to the disk file for every data block.
* @exception IOException if there is an I/O error.
*/
void commit() throws IOException
{
synchronized (file) {
long oldpos = file.getFilePointer();
file.seek(freeliststart);
int i;
byte blockused;
for (i=0; i<numblocks; i++)
{
boolean isthere;
synchronized (stack) {
isthere = stack.contains(new Integer(i));
}
if (isthere)
blockused = FREE;
else
blockused = USED;
file.writeByte(blockused);
}
file.seek(oldpos);
}
}
/** Allocates a new data block.
* <p>The function obtains the number of a free block from the stack
* and writes that block's entry on the on-disk free list as used.
* @return Number of the new block.
* @exception IOException if there is an I/O error.
*/
int allocateSpace() throws IOException
{
int newblock;
synchronized (stack) {
newblock = ((Integer)stack.pop()).intValue();
}
synchronized (file) {
long oldpos = file.getFilePointer();
file.seek(freeliststart+newblock);
file.writeByte(USED);
file.seek(oldpos);
}
return newblock;
}
/** Returns a data block to the free list.
* <p>The function pushes the data block on the stack and writes its
* on-disk free list entry as free.
* @exception IOException if there is an I/O error.
*/
void freeSpace(int oldblock) throws IOException
{
long oldpos = file.getFilePointer();
stack.push(new Integer(oldblock));
file.seek(freeliststart+oldblock);
file.writeByte(FREE);
file.seek(oldpos);
}
}
| java |
tvN held a press conference for Arthdal Chronicles 2 or Arthdal Chronicles: Sword of Aramoon with the main cast of the historical drama. Read ahead to know more.
On September 5, Lee Joon Gi, Shin Se Kyung, Kim Ok Vin, and Jang Dong Gun’s Arthdal Chronicles 2 held a press conference. The drama is a follow-up from the first season and is set eight years after Tagon (Jang Dong Gun) takes over Arthdal as a King. Lee Joon Gi takes over Song Joong Ki as Eunseom and Saya. And, the fans are excited to see him in the double roles. The drama will be out on September 9.
Lee Joon Gi as Eunseom and Saya in Arthdal Chronicles 2:
When asked about joining the drama, Lee Joon Gi said that he was extremely happy when the production team approached him for those roles. He said that he loved the writers’ work and since he loves historical dramas, he wished to join the cast in any capacity. Being given big roles like this was scary for him but, he mentioned he wanted to prove that he would be able to fill in the big shoes. The actor also spoke about the worries he had during filming. He said that he didn’t get much sleep while they were shooting from episodes 1 to 10 because he was getting anxious about doing a good job as Eunseom and Saya.
Lee Joon Gi also confessed that he put his personal life on hold while shooting for the drama. He said that since it was an emotionally draining role, he needed to put all his heart and soul into understanding the characters in the best way he possibly could. The actor extended his gratitude towards the other cast members, the director, the producer, writers, and other staff who helped assimilate into being Eunseom and Saya.
Arthdal Chronicles 2:
The other person who has taken on the role is Shin Se Kyung. She has taken over Kim Ji Won’s role as Tanya. In the teasers, one can see she is now the high priestess and at the highest position after the King and the Queen. Arthdal Chronicles: Sword of Aramoon portrays the fantasy of Arthdal, composed by the proprietor of the sword eight years after Season 1, and the game-changing story of Tagon, Eunseom, Tanya, and Taealha. These four compose various legends in the old place that is known for Arth. The first episode will be released at 9:20 PM KST on September 9th.
NET Worth: ~ 41.7 MN USD (RS 345 cr)
| english |
<gh_stars>10-100
package cmd
import (
"fmt"
"github.com/cbush06/kosher/common"
"github.com/spf13/cobra"
)
type versionCommand struct {
name string
command *cobra.Command
}
func buildVersionCommand() *versionCommand {
return &versionCommand{
name: "version",
command: &cobra.Command{
Use: "version",
Short: "displays the version of Kosher running",
Long: `version displays the version of Kosher running`,
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println(common.CurrentVersion.Version())
return nil
},
},
}
}
func (v *versionCommand) registerWith(cmd *cobra.Command) {
cmd.AddCommand(v.command)
}
| go |
<reponame>paulddrix/tutortracker
{
"email" : "",
"password" : "",
"degree" : "",
"firstName" : "",
"lastName":"",
"phone" : "",
"admin" : ,
"textAlert":,
"idNumber":"",
"scheduledOfficeHours":[],
"monthlyTotalHours":,
"studentsToTutor":[],
"timeSheet":[],
"eligibleCourses":[]
}
| json |
- 2 hrs ago 5 Best Microwave Ovens For Your Kitchen: Deals To Consider As Amazon Sale 2023 Is Nearing!
- Technology Nothing Phone 2 vs Nothing Phone 1: What’s different and should you upgrade?
- Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time!
It is that time of the year when you will see a lot of red hearts and red roses in the city. You will also catch a glimpse of couples not letting go of each other's hands. The day of love, which is around the corner, is going to be different for you if you decide to switch colours from red to green. Have you heard of a green Valentine's day? If you have, then why don't you try to celebrate a Green Valentine's day with your partner this year. It is different and out of the blue as well.
This Valentine's Day, Boldsky has some awesome ideas for you to celebrate Green Valentine's Day if you have decided to go eco friendly. Have you ever given this a thought? The gifts, cards, stuffed animal and plastic roses you gave your partner last year, when generated into waste it all ends up on the landfill. So Valentine's Day is not a very environmentally friendly special occasion, right?
However, the good news is that you can change it into a Green Valentine's Day, making it memorable and all the more special. Here are some of the best green Valentine's day ideas that Boldsky has for you.
Take a look:
To celebrate Green Valentine's Day, make your own paper cards from cardboard or from waste material lying around the house. The best materials to use is cloth! Make a cloth Valentine's Day card for your partner.
Take him/her for a long ride and enjoy the beautiful nature. Cycling is one of the best options! Nothing can be as romantic as a drive with your partner celebrating a Green Valentines day.
Gardening is one of the ways in which you can spend Green Valentine's Day with your partner. You can either gift him/her a sapling and plant it together or you can sow a few fruit seeds in your locality.
Go vegan with chocolates this year. This is one of the best ideas to celebrate Green Valentine's Day with your partner.
One of the best ways to spend this day of love is outside with nature. Make time for the two of you and spend it alone under the sun, in each other's arms.
Welcome your home to a pet. Spread the love you have with each other to a little pet and see the difference it will make in your relationship. This is one of the best Green Valentine's Day gifts for him/her.
One of the most loved ideas for Green Valentine's Day gifts are birth stones. Get a necklace or a ring with his/her birth stone in it.
Spend quality time with each other, communicating and just being in each other's arms. This is the best Green Valentine's Day gift for your relationship.
- wellnessValentine’s Day 2023: Can A Breakup Affect Your Heart Health?
- body careValentine’s Day 2023: Best Self-care Routine To Pamper Yourself!
- skin careChocolate Day 2023: Skincare Benefits Of Chocolate: 3 Ways To Use It! | english |
THE WIRED LIVING ARCHIVE:
DIE FIRST. ASK QUESTIONS LATER.
WIRED: Your alternating-current technology revolutionized electric power almost overnight, but the world is only now catching up with your other ideas. What's the role of invention in today's tech-driven society?
TESLA: It is the most important product of man's creative brain. The ultimate purpose is the complete mastery of mind over the material world, the harnessing of human nature to human needs.
What advice would you give to someone following in your footsteps?
To concentrate all his energies on one single great effort. Let him perceive a single truth, even though he'll be consumed by the sacred fire, and millions of less gifted men can easily follow him. Let him toil day and night with a small chance of achieving and yet be unflinching. It is not as much quantity as quality of work which determines the magnitude of the progress.
And we've seen plenty of progress toward things you predicted, from cosmic rays to subatomic forces. Any sense we're reaching our limits?
Even in the fields most successfully exploited, the ground has only been broken. What has been so far done by electricity is nothing as compared to what the future has in store. It is paradoxical yet true to say that the more we know, the more ignorant we become in the absolute sense, for it is only through enlightenment that we become conscious of our limitations. Precisely one of the most gratifying results of intellectual evolution is the continuous opening up of new and greater prospects.
And that evolution leads where? What are the barriers to getting there?
Of all the frictional resistances, the one that most retards human movement is ignorance, what Buddha called "the greatest evil in the world." The friction which results from ignorance can be reduced only by the spread of knowledge and the unification of the heterogeneous elements of humanity. No effort could be better spent.
So the world will be made a better place by convergence?
A sense of connectedness of the various apparently widely different forces and phenomena we observe is taking possession of our minds, a sense of deeper understanding, which, though not yet quite clear and defined, is keen enough to inspire us with the confidence of vast realizations in the near future.
This same sense of connection could pay off with world peace, you insist, even if it takes a while to get there.
Universal peace as a result of cumulative effort through centuries past might come into existence quickly - not unlike a crystal that suddenly forms in a solution which has been slowly prepared.
Or maybe a liquid crystal display. Will an always-on global network mean the death of distance and the end of war?
The chief cause of war is the vast extent of this planet. The gradual annihilation of distance will put human beings in closer contact and harmonize their views and aspirations.
You once were quite close to Thomas Edison, your mentor, your foe, and another of the modern age's most prolific inventors. What was he like?
I was amazed at this wonderful man who without early advantage or scientific training had accomplished so much. But after working with him day in and day out, I became frustrated. If Edison needed to find a needle in a haystack, he would not stop to reason where the needle might be, but rather would examine every straw, straw after straw like a diligent bee until he found the object of his search. I was almost a sorry witness of his doings, knowing that just a little theory and calculation would have saved him 90 percent of his labor.
At one time you offered to redesign his system.
The manager promised me $50,000 on completion of this task. When I did, and tried to collect, Edison laughed and said it was a joke and that I didn't understand American humor.
You then formed a partnership with another powerful household name - Westinghouse.
George Westinghouse was a man with tremendous potential energy of which only part had taken kinetic form. Like a lion in the forest, he breathed deep and with delight the smoky air of his Pittsburgh factories. Always affable and polite, he stood in marked contrast to the small-minded financiers I had been trying to negotiate with before I met him. Yet, no fiercer adversary could have been found when aroused. Westinghouse welcomed the struggle and never lost confidence. When others would give up in despair, he triumphed.
Particularly in buying your patent that trumped Edison's "commutator."
Westinghouse told me he simply "could not afford to have others own the patents." Mr. Westinghouse recognized that my system, which made the commutator obsolete, was the solution to the problem of distributing power by means of electrical currents.
AC is just one of dozens of inventions credited to you. Another is wireless technology. But you never went commercial with it.
I demonstrated the procedure in my laboratory and in lecture halls before scientists and the public in New York City, Saint Louis, Philadelphia, London, and Paris, and long distance experiments from one end of New York City to another, up the Hudson to West Point and over hundreds of miles at my experimental station in Colorado Springs. I knew my system would work. I had the fundamental patents. So rather than waste time setting up additional demonstrations for the press or public, I simply set my sights on constructing a working wireless transmission tower.
At your Wardenclyffe Tower headquarters on Long Island. What happened?
It was never finished. I thought it would take a year to establish commercially my wireless girdle around the world. Had this been achieved when it was planned, in 1903, the public would have clamored to send their messages to Europe or receive their dispatches from any other corner of the globe.
Wasn't Marconi already ahead of you on this?
Marconi was essentially trying to send pulsed frequencies, Morse code, dots and dashes. But he was using outmoded equipment, and Hertz's outmoded ideas, even if he did pirate my oscillators. Marconi tried to claim priority, but this was overturned in courts around the world.
Now, you wanted to go way beyond mere data transmission - getting rid of power lines altogether and sending electricity through the air from Wardenclyffe.
If a similar tower were placed, say, in England, which was my plan, then energy could be jumped by means of wireless over the Atlantic to that receiving tower. From there the electricity could be transmitted either by means of wireless to the local dwellings or by conventional means, that is, but using wires. Mostly, the idea would be to locate receiving plants at distant places that were not near sources of power, like waterfalls.
You've always been keen on alternative energy.
No matter what we attempt to do, no matter to what fields we turn our efforts, we are dependent on power. We have to evolve means of obtaining energy from stores which are forever inexhaustible, to perfect methods which do not imply consumption and waste of any material whatever. If we use fuel to get our power, we are living on our capital and exhausting it rapidly. This method is barbarous and wantonly wasteful and will have to be stopped in the interest of coming generations.
OK - we've heard that speech before. What do you propose?
A far better way to obtain power would be to avail ourselves of the sun's rays, which beat the Earth incessantly and theoretically supply energy at a rate of over 1 million horsepower per square mile.
Solar? We've got a storage problem there.
That is where the research should be focused.
One focus of your research a century ago was cellular - and your multiple-channel approach works around the current bandwidth crunch.
My world telegraphy system makes use of continuous waves - what have come to be called Tesla currents - from which any number of operations can be derived. I realized that the first problem to overcome was that of interference, so I constructed vacuum tubes which responded to a combination of two or more frequencies. The telautomaton displayed at Madison Square Garden in 1898 was constructed in this fashion. By multiplying frequencies in this manner a virtually unlimited number of non-interfering channels can be created. The key is to combine frequencies.
Primitive forms of artificial intelligence also came from your lab. What will our first true thinking machines look like?
Primitive? I prefer the word fundamental. My plan was to construct an automaton which would have its "own mind," and by this I mean it would be able, independent of any operator, in response to external influences affecting its sensitive organs, to perform a great variety of acts and operations as if it had intelligence. It will be able to obey orders given far in advance, it will be capable of distinguishing between what it ought and ought not to do and of recording impressions which will definitely affect its subsequent actions. Further I do not believe that intelligence is artificial, but rather a property of matter.
Matter is alive?
Even matter called inorganic, believed to be dead, responds to irritants and gives unmistakable evidence of a living principle within. Everything that exists, organic or inorganic, animated or inert, is susceptible to stimulus from the outside.
Tell us more about your work on telautomatons - in other words, robots.
I conceived the idea of constructing such a machine, which would mechanically represent me and which would respond as I do myself, but of course in a much more primitive manner, to external influences. Whether the automaton be of flesh and bone, or wood and steel, it mattered little, provided it could undertake all the duties required of it like an intelligent being. With machines to do the work, man will be that much more free to increase his knowledge and productivity and thereby advance the planet.
Let's talk about longevity. At the tender age of 77, back in 1933, you told The New York Times you expected to live past your 140th birthday.
Really, you know, even now, I'm still a youngster. I've never felt better in my life. In my prime I did not possess the energy I have today. And what is more, in solving problems I use but a small part of the energy I possess for I have learned how to conserve it.
But isn't part of longevity genes, not genius?
I have descended from a people who came from the mountains of Czechoslovakia and Yugoslavia, some who lived past 110, we even had one relative who made it to 129. I began from the start with the plan to outlive each of them. The secret of my own strength and vitality today is that in my youth I led a virtuous life. I have never dissipated this energy. I controlled my passions and appetites to make my dream come true - disciplining myself for a worthwhile life. Since I love my work above all things, it is only natural that I should continue it until I die. I want no vacation. Many are saddened and depressed by the brevity of life, and yet they do so many things to pave the way to an early grave.
So how did you avoid an early demise?
Human energy can be increased by careful attention to health, by substantial food in moderation, by regularity of habits, by adhering to the many precepts and laws of religion and hygiene, by the promotion of marriage, and conscientious attention to children. Laxity of morals is a terrible evil which poisons the body and mind.
What about the more down-to-earth details?
Plenty of exercise. Pure thoughts, abstinence, hard work, an occasional glass of wine, and a strict diet of a product I call factor actus. It's a simple health potion equivalent to the protein value of a dozen eggs, made from 12 vegetables including white leeks, cabbage hearts, flower of cauliflower, white turnips, and lettuce hearts.
Does your busy schedule make time for sleep?
I come from a long-lived family but it is noted for its poor sleepers. Sometimes I doze for an hour or so. Occasionally, however once every four or five months I may sleep for four or five hours. Then I awaken virtually charged with energy like a battery.
What about your "electric baths"? Describe exactly happens during an electric bath.
I step aboard a special platform which can transmits millions of volts through my body. This is at a very low power, but very high frequency, as much as 80 million oscillations a second. The electricity, for the most part, travels around the surface throwing off unwanted molecules with extreme vigor. While the same voltage would cause a piece of metal to explode apart, local effects can be produced which interfere with malignant growths, thereby breaking down cancer cells.
Is that how your cured Mark Twain?
I had another device, an oscillating platform that stimulates powerfully the peristaltic movements which propel foodstuffs through the alimentary channels. Called mechanical therapy, this device relieves those who suffer from dyspepsia, stomach troubles, constipation, flatulence, and other disturbances. My great friend Mark Twain came to my laboratory in the worst shape suffering from a variety of distressing and dangerous ailments, but in less than two months upon my platform, he regained his old vigor and ability to enjoy life to its fullest extent.
Who else frequented your laboratory?
Immortals all. You, of course, enjoy another kind of immortality - you live every time we plug in an electric device. Do you ever despair at not seeing all of your ideas realized?
The scientific man does not aim at an immediate result. He does not expect that his advanced ideas will be readily taken up. His work is like that of a planter - for the future. His duty is to lay foundation of those who are to come and point the way.
| english |
<reponame>madve2/ng-lightning<gh_stars>100-1000
{
"title": "Progress Bar",
"examples": {
"basic": "Basic Usage"
},
"lds": "progress-bar"
}
| json |
{"attackers":[{"character_id":977120884,"corporation_id":1000107,"damage_done":2957,"final_blow":true,"security_status":1,"ship_type_id":593,"weapon_type_id":2456},{"character_id":2113808966,"corporation_id":98556199,"damage_done":1176,"security_status":-0.1,"weapon_type_id":8091}],"killmail_id":71243066,"killmail_time":"2018-07-14T09:38:03-07:00","solar_system_id":30045338,"victim":{"alliance_id":99007389,"character_id":94174832,"corporation_id":98511774,"damage_taken":4133,"items":[{"flag":93,"item_type_id":31586,"quantity_destroyed":1},{"flag":30,"item_type_id":24471,"quantity_destroyed":32},{"flag":28,"item_type_id":10631,"quantity_dropped":1},{"flag":5,"item_type_id":24473,"quantity_destroyed":800},{"flag":20,"item_type_id":4027,"quantity_destroyed":1},{"flag":11,"item_type_id":11309,"quantity_destroyed":1},{"flag":29,"item_type_id":24471,"quantity_destroyed":32},{"flag":22,"item_type_id":5443,"quantity_destroyed":1},{"flag":5,"item_type_id":24475,"quantity_destroyed":800},{"flag":30,"item_type_id":10631,"quantity_dropped":1},{"flag":28,"item_type_id":24471,"quantity_destroyed":32},{"flag":19,"item_type_id":6001,"quantity_destroyed":1},{"flag":92,"item_type_id":31620,"quantity_destroyed":1},{"flag":5,"item_type_id":24471,"quantity_destroyed":600},{"flag":12,"item_type_id":22291,"quantity_destroyed":1},{"flag":27,"item_type_id":24471,"quantity_dropped":32},{"flag":29,"item_type_id":10631,"quantity_dropped":1},{"flag":5,"item_type_id":2817,"quantity_dropped":704},{"flag":27,"item_type_id":10631,"quantity_destroyed":1},{"flag":21,"item_type_id":4027,"quantity_destroyed":1}],"position":{"x":2.954900264983958e+11,"y":-7.89381094184458e+10,"z":1.9403243095485764e+11},"ship_type_id":602}} | json |
/*
* Copyright 2014 <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.
*/
package org.nioreactor;
/**
* Status of an I/O reactor.
* <p>
* Created by ribeirux on 8/10/14.
*/
public enum ReactorStatus {
/**
* The reactor is inactive / has not been started
*/
INACTIVE,
/**
* The reactor is active / processing I/O events.
*/
ACTIVE,
/**
* The reactor is shutting down.
*/
SHUTTING_DOWN,
/**
* The reactor has shut down.
*/
SHUT_DOWN
}
| java |
Our editors will review what you’ve submitted and determine whether to revise the article.
- Related Topics:
What is the ship of Theseus?
Is the ship of Theseus still the same ship?
Why is it called the ship of Theseus?
Why is the ship of Theseus important?
ship of Theseus, in the history of Western philosophy, an ancient paradox regarding identity and change across time. Mentioned by Plutarch and later modified by Thomas Hobbes, the ship of Theseus has spawned a variety of theories of identity within modern and contemporary metaphysics.
Discussions of the ship of Theseus are typically framed in terms of two kinds of identity, descriptive (or qualitative) and numerical, and a principle of identity associated with the early modern philosopher Gottfried Wilhelm Leibniz, known as the principle of the indiscernibility of identicals, or Leibniz’s law (see identity of indiscernibles). Descriptive identity is a relation that obtains between two or more distinct things that share all of the same (nonrelational) properties or qualities. One might say, for example, that the room in which G.W.F. Hegel lectured was identical to the room in which Arthur Schopenhauer lectured, meaning that the rooms existed in different places or times but were in every other respect exact duplicates of each other. Numerical identity is a relation that obtains between a thing and itself—i.e., a relation that each thing has to itself and to no other thing. (In statements of numerical identity, however, the self-identical thing is typically referred to by two or more different names or descriptions: e.g., “Mark Twain is identical to Samuel Clemens.”) Thus, the room in which Hegel lectured would be identical in the numerical sense to the room in which Schopenhauer lectured only if the two philosophers had lectured in one and the same room.
The original problem of the ship of Theseus (the legendary Attic hero who slew the Minotaur of Crete) was described by Plutarch in his “Life of Theseus”:
The ship wherein Theseus...returned [from Crete] had thirty oars, and was preserved by the Athenians down even to the time of Demetrius Phalereus [died c. 280 bce], for they took away the old planks as they decayed, putting in new and stronger timber in their place, insomuch that this ship became a standing example among the philosophers, for the logical question as to things that grow; one side holding that the ship remained the same, and the other contending that it was not the same.
The version of the problem presented by Hobbes (in his work De Corpore) introduces a complication by supposing that the old planks of the ship are preserved and put together “in the same order” to construct another ship. This modern version has been variously formulated; one way of posing it is the following. A newly constructed ship, made entirely of wooden planks, is named the Ariadne (after the daughter of King Minos who helped Theseus escape after he slew the Minotaur) and put to sea. While the ship is sailing, the planks of which it is constructed are replaced (gradually and one at a time) by new planks, each replacement plank being descriptively identical with the plank it replaces. The original planks are taken ashore and stored in Piraeus (the port of ancient Athens). After all the planks have been replaced, the ship constructed entirely of the replacement planks is still sailing in the Aegean Sea (the Aegean ship). The old planks are then assembled in a dry dock in Piraeus to form a new ship (the Piraean ship). The planks that constitute the Piraean ship are arranged exactly as they were when they first constituted the Ariadne. By Leibniz’s law (and common sense), the Aegean ship and the Piraean ship are not the same ship. But which (if either) is the same ship as the Ariadne? The problem of the ship of Theseus is the problem of finding the right answer to that question.
One might argue that the Aegean ship is the Ariadne, because a ship does not cease to exist when only one of its constituent planks is replaced; hence, during the gradual replacement of its planks, there was no point at which the Ariadne ceased to be the ship it originally was. But one could also argue that the Piraean ship is the Ariadne, because the Piraean ship and the Ariadne (at the first moment of its existence) are composed of exactly the same planks arranged in exactly the same way. Note that one could not argue that both the Aegean ship and the Piraean ship are the Ariadne, because that would entail, by the principle of the transitivity of identity (if a = b and b = c, then a = c), that the Aegean ship and the Piraean ship are numerically identical to each other.
Various possible solutions to the problem of the ship of Theseus involve replacing or augmenting the conventional notion of numerical identity with new relations (see below). To be plausible, however, any solution that retains the conventional notion must be consistent with Leibniz’s law.
A problem similar to that of the ship of Theseus has been pointed out by philosophical critics of various Christian theological doctrines, particularly those of the Trinity, the Incarnation, and the Eucharist. Many philosophers have held, for example, that the doctrine of the Trinity (the unity in one Godhead of the Father, the Son, and the Holy Spirit) violates the principle of the transitivity of identity, since it implies, for example, that the Father and the Son are identical to God but not identical to each other.
In response to such criticism, the English Roman Catholic philosopher Peter Geach (1916–2013) proposed a radical solution that appears to have application beyond the theological problem regarding the transitivity of identity. According to Geach, there is no such thing as numerical identity; there are, instead, many relations of the form “is the same F as,” where “F” is a sortal term designating a kind of thing (e.g., “human being,” “animal,” “living organism,” “plank,” “ship,” “material object,” and so on). Geach maintained that no rule of logic licenses an inference from “x is the same F as y” to “x is the same G as y” if “F” and “G” represent logically independent sortal terms. Accordingly, as far as logic is concerned, it is perfectly possible for there to be entities x and y such that: (1) x is the same F as y, but (2) x is not the same G as y. Geach’s theory would thus permit one to reformulate the Trinitarian implication above as follows: (1) the Father is the same God as the Son (i.e., the Father and the Son are both God), but (2) the Father is not the same person as the Son. Geach’s theory is characterized as the view that identity is relative to a sortal term or simply as the theory of relative identity.
As indicated above, the theory of relative identity might be applied to problem of the ship of Theseus and other problems of identity across time. Thus, regarding the ship of Theseus, one might propose the following: (1) since there is no such relation as numerical identity, the question of whether the Ariadne is the Aegean ship or the Piraean ship is meaningless; (2) the Ariadne, the Aegean ship, and the Piraean ship are all ships and all material things; (3) the Ariadne and the Aegean ship are the same ship but not the same material thing; and (4) the Ariadne and the Piraean ship are the same material thing but not the same ship.
Other proposed solutions to the problem of the ship of Theseus and related puzzles have incorporated new relations based on theories of material constitution, on a presumed distinction between “strict” and “loose” identity, and on the notion of “temporal parts” (see metaphysics: Persistence through time), among other approaches.
| english |
A 140-year-old Patek Philippe pocket watch, custom-ordered by Tata Group founder Jamsetji Nusserwanji Tata, will be auctioned in Hong Kong on November 28 for an estimated $10,000-$20,000.
The 18k pink gold timepiece was gifted by the father of the Indian industry to English architect James Morris in 1890 in recognition of his work on the Tata family mansion, Esplanade House, in Mumbai. Encased in a leather presentation box decorated with the architect’s monogram, the engraving on the back of the watch carries a dedication to Morris, in recognition of his “professional skill and of the care and attention devoted by him”.
The watch was manufactured in 1876.
The watch will be auctioned by Phillips, the Hong Kong-based global platform for buying and selling 20th and 21st century art and design. In a chat with The Hindu , Thomas Perazzi the Head of Watches, Asia, at Phillips talks about the timepiece and the process to auction it.
Mr. Perazzi is responsible for securing and selling consignments, and developing a network of top collectors for fine watches in Asia. He was formerly the Geneva-based head of the European watch department at Christie’s, and has served as the deputy director for the European market at Sotheby’s, and as head of the Italian watch department for Antiquorum.
The Patek Philippe timepiece to be auctioned is a ‘repeating chronograph hunter case presentation watch’. What does this mean, horologically?
A repeater is a complication in a mechanical watch that chimes the time on demand by activating a slide-piece. [Its] origins can be traced back to the end of the 17th century. The first examples of striking watches were ‘dumb’ repeaters, which struck the time on the inside of the case, producing a muffled sound [that] could only be detected if the watch was held in the hand. Over time, a bell, usually attached to the inner back cover of the watch, was introduced for the hammer to strike, and the first chiming watches were born. Evolution brought forth watches that not only chimed the hours, but also the quarters, half-quarters and five-minute repeaters, like the present one. The first examples of five-minute repeaters appeared in the mid-18th century.
At the end of the 18th century, A. L. Breguet designed a mechanism that would strike the hours, quarters and minutes, replacing the bell by a set of coiled wire gongs, thereby reducing space and providing different tones. Over 100 unique components must be combined to create a five-minute repeating mechanism, with each component manufactured to extremely exact tolerances. Integrating a five-minute repeater into a pocket watch takes incredible skill, but fitting one inside a wristwatch adds several magnitudes of intricacy, as the comparatively small case requires the further miniaturisation of what are already extremely small parts. Today, five-minute repeaters, one of the most complex repeater mechanisms, are sought after by fine collectors as rare masterpieces of precision mechanical engineering.
How is the price of a historic fine watch arrived at, broadly?
Providing estimates for such an important, rare and exquisite timepiece is always a big challenge even for the most experienced watch specialist. We believe that fewer than one million Patek Philippe watches have been manufactured since the company’s foundation. That’s fewer than some very high-end Swiss manufacturers produce in a year. Patek Philippe production is so detailed that it takes nine months to make its time-only watches, and more than two years to produce some of the more highly complicated timepieces. The real beauty of a Patek Philippe design lives in its movements. Every component is hand-finished, which might seem an excessive detail considering that it can be admired only when [the case is opened]. The design, artistry and craftsmanship balanced in a Patek Philippe is just timeless.
What might this watch have cost at the time of purchasing it?
We don’t have records of Patek Philippe’s retail prices at that time. We can merely compare it to a present minute repeater price, which is over $300,000.
Could you trace the history of this watch’s ownership from the time it was presented to Morris to the time it reached this auction?
Unfortunately, we are not able to track the full story of the present watch. We know that it has been preciously kept in wise collector’s safe for few decades.
In the technical and brand hierarchy of fine watches, how would you rate this particular watch, without looking into its historical and sentimental value?
[On a scale of] one to 10, my [rating] would be a beautiful eight. | english |
package ecs
//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.
//
// Code generated by Alibaba Cloud SDK Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/CRORCR/alibaba-cloud-sdk-go/sdk/requests"
"github.com/CRORCR/alibaba-cloud-sdk-go/sdk/responses"
)
// ModifyAutoProvisioningGroup invokes the ecs.ModifyAutoProvisioningGroup API synchronously
// api document: https://help.aliyun.com/api/ecs/modifyautoprovisioninggroup.html
func (client *Client) ModifyAutoProvisioningGroup(request *ModifyAutoProvisioningGroupRequest) (response *ModifyAutoProvisioningGroupResponse, err error) {
response = CreateModifyAutoProvisioningGroupResponse()
err = client.DoAction(request, response)
return
}
// ModifyAutoProvisioningGroupWithChan invokes the ecs.ModifyAutoProvisioningGroup API asynchronously
// api document: https://help.aliyun.com/api/ecs/modifyautoprovisioninggroup.html
// asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (client *Client) ModifyAutoProvisioningGroupWithChan(request *ModifyAutoProvisioningGroupRequest) (<-chan *ModifyAutoProvisioningGroupResponse, <-chan error) {
responseChan := make(chan *ModifyAutoProvisioningGroupResponse, 1)
errChan := make(chan error, 1)
err := client.AddAsyncTask(func() {
defer close(responseChan)
defer close(errChan)
response, err := client.ModifyAutoProvisioningGroup(request)
if err != nil {
errChan <- err
} else {
responseChan <- response
}
})
if err != nil {
errChan <- err
close(responseChan)
close(errChan)
}
return responseChan, errChan
}
// ModifyAutoProvisioningGroupWithCallback invokes the ecs.ModifyAutoProvisioningGroup API asynchronously
// api document: https://help.aliyun.com/api/ecs/modifyautoprovisioninggroup.html
// asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (client *Client) ModifyAutoProvisioningGroupWithCallback(request *ModifyAutoProvisioningGroupRequest, callback func(response *ModifyAutoProvisioningGroupResponse, err error)) <-chan int {
result := make(chan int, 1)
err := client.AddAsyncTask(func() {
var response *ModifyAutoProvisioningGroupResponse
var err error
defer close(result)
response, err = client.ModifyAutoProvisioningGroup(request)
callback(response, err)
result <- 1
})
if err != nil {
defer close(result)
callback(nil, err)
result <- 0
}
return result
}
// ModifyAutoProvisioningGroupRequest is the request struct for api ModifyAutoProvisioningGroup
type ModifyAutoProvisioningGroupRequest struct {
*requests.RpcRequest
ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"`
DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"`
ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"`
ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
OwnerAccount string `position:"Query" name:"OwnerAccount"`
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"`
PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"`
TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"`
SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"`
MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"`
AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"`
}
// ModifyAutoProvisioningGroupResponse is the response struct for api ModifyAutoProvisioningGroup
type ModifyAutoProvisioningGroupResponse struct {
*responses.BaseResponse
RequestId string `json:"RequestId" xml:"RequestId"`
}
// CreateModifyAutoProvisioningGroupRequest creates a request to invoke ModifyAutoProvisioningGroup API
func CreateModifyAutoProvisioningGroupRequest() (request *ModifyAutoProvisioningGroupRequest) {
request = &ModifyAutoProvisioningGroupRequest{
RpcRequest: &requests.RpcRequest{},
}
request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoProvisioningGroup", "ecs", "openAPI")
request.Method = requests.POST
return
}
// CreateModifyAutoProvisioningGroupResponse creates a response to parse from ModifyAutoProvisioningGroup response
func CreateModifyAutoProvisioningGroupResponse() (response *ModifyAutoProvisioningGroupResponse) {
response = &ModifyAutoProvisioningGroupResponse{
BaseResponse: &responses.BaseResponse{},
}
return
}
| go |
<filename>amasel-mws-lib/src/main/java/co/amasel/client/reports/ManageReportSchedule.java
package co.amasel.client.reports;
import io.vertx.core.Future;
import co.amasel.client.common.AmaselClientException;
import co.amasel.client.common.AmaselClientBase;
import co.amasel.client.common.MwsApiResponse;
import co.amasel.client.reports.MethodMap;
import co.amasel.model.reports.*;
public class ManageReportSchedule {
protected AmaselClientBase client;
public ManageReportSchedule(AmaselClientBase client) {
this.client = client;
}
public Future<MwsApiResponse> invoke(ManageReportScheduleRequest request) throws AmaselClientException {
return client.invoke(MethodMap.ManageReportSchedule, request);
}
}
| java |
Students of East West University and police engaged in several chases and counter chases in Aftabnagar in the capital on Monday at around 12:00pm.
Police fired teargas at the students at the time.
The students took position at the gate and on the street in front of the university in the morning where they scuffled with the police.
Members of police retaliated, chased and fired teargas when the students started throwing brickbats at them. The students then took shelter in Jahurul Islam City of the area.
This Prothom Alo correspondent found several youths were accompanying the police, carrying sticks. They joined the police in chasing the students inside Jahurul Islam City until filing this report.
Police were seen firing teargas and moving with armoured vehicles towards the students. | english |
<filename>CSE-217/Sources/Submission 2/lab6/InfixToPostfix/InfixToPostfix.cpp
// Last edit: Jul 29, 2021, 18:32:54 IST
// codefactor minor changes
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Stack{
int top;
unsigned capacity;
int* array;
};
struct Stack* createStack( unsigned capacity ){
struct Stack* stack = (struct Stack*) malloc(sizeof(struct Stack));
if (!stack)
return NULL;
stack->top = -1;
stack->capacity = capacity;
stack->array = (int*) malloc(stack->capacity * sizeof(int));
if (!stack->array)
return NULL;
return stack;
}
int isEmpty(struct Stack* stack){
return stack->top == -1 ;
}
char peek(struct Stack* stack){
return stack->array[stack->top];
}
char pop(struct Stack* stack){
if (!isEmpty(stack))
return stack->array[stack->top--] ;
return '$';
}
void push(struct Stack* stack, char op){
stack->array[++stack->top] = op;
}
int isOperand(char ch){
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
}
int Prec(char ch){
switch (ch){
case '+':
case '-':
return 1;
case '*':
case '/':
return 2;
case '^':
return 3;
}
return -1;
}
int infixToPostfix(char* exp){
int i, k;
struct Stack* stack = createStack(strlen(exp));
if(!stack)
return -1 ;
for (i = 0, k = -1; exp[i]; ++i){
if (isOperand(exp[i]))
exp[++k] = exp[i];
else if (exp[i] == '(')
push(stack, exp[i]);
else if (exp[i] == ')'){
while (!isEmpty(stack) && peek(stack) != '(')
exp[++k] = pop(stack);
if (!isEmpty(stack) && peek(stack) != '(')
return -1;
else
pop(stack);
}
else{
while (!isEmpty(stack) && Prec(exp[i]) <= Prec(peek(stack)))
exp[++k] = pop(stack);
push(stack, exp[i]);
}
}
while (!isEmpty(stack))
exp[++k] = pop(stack );
exp[++k] = '\0';
printf( "%sn", exp );
}
int main(){
char exp[] = "a+b*(c^d-e)^(f+g*h)-i";
infixToPostfix(exp);
return 0;
}
| cpp |
<gh_stars>0
{
"name": "codeclimate-standard",
"description": "Standard is an opinionated wrapper around RuboCop with no configuration necessary.",
"maintainer": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"languages" : ["Ruby"],
"version": "0.6.0b",
"spec_version": "0.3.1"
}
| json |
import { loginActionsCreators, registerActionsCreators, qrScannerActionsCreators} from '../../../src/reducers/authentification/authActions';
import * as navigationActionsCreators from '../../../src/reducers/navigation/navigationActions'
describe('Navigation reducer tests', () => {
it('redirect to registerScreen test from LoginScreen', () => {
const routeName = 'RegisterScreen';
const expected = { type: "Navigation/NAVIGATE", routeName: routeName };
const result = loginActionsCreators.navigateToRegisterScreen();
expect(result).toEqual(expected);
});
it('redirect to LoginScreen test from RegisterScreen', () => {
const routeName = 'LoginScreen';
const expected = {actions: [{ routeName: "LoginScreen", type: "Navigation/NAVIGATE"}], index: 0, key: undefined, type: "Navigation/RESET"};
const result = registerActionsCreators.redirectToLoginScreen();
expect(result).toEqual(expected);
});
it('redirect to MainScreen test from LoginScreen', () => {
const routeName = 'MainScreen';
const expected = {actions: [{ routeName: "MainScreen", type: "Navigation/NAVIGATE"}], index: 0, key: undefined, type: "Navigation/RESET"};
const result = loginActionsCreators.redirectToMainScreen();
expect(result).toEqual(expected);
});
it('redirect to AuthFailureScreen test from LoginScreen', () => {
const routeName = 'AuthFailureInfoScreen';
const expected = { type: "Navigation/NAVIGATE", routeName: routeName };
const result = loginActionsCreators.redirectToAuthFailureScreen();
expect(result).toEqual(expected);
});
it('redirect to AuthFailureScreen test from RegisterScreen', () => {
const routeName = 'AuthFailureInfoScreen';
const expected = { type: "Navigation/NAVIGATE", routeName: routeName };
const result = registerActionsCreators.redirectToAuthFailureScreen();
expect(result).toEqual(expected);
});
it('redirect to RegisterSuccessScreen test from RegisterScreen', () => {
const routeName = 'RegisterSuccessInfoScreen';
const mnemonic = 'mnemonic';
const expected = { type: "Navigation/NAVIGATE", routeName: routeName };
const result = registerActionsCreators.redirectToRegisterSuccessScreen();
expect(result).toEqual(expected);
});
it('redirect to LoginScreen test with navigationActions', () => {
const routeName = 'RegisterSuccessInfoScreen';
const expected = {actions: [{ routeName: "LoginScreen", type: "Navigation/NAVIGATE"}], index: 0, key: undefined, type: "Navigation/RESET"};
const result = navigationActionsCreators.redirectToLoginScreen();
expect(result).toEqual(expected);
});
it('redirect to MainScreen test with navigationActions', () => {
const routeName = 'RegisterSuccessInfoScreen';
const expected = {actions: [{ routeName: "MainScreen", type: "Navigation/NAVIGATE"}], index: 0, key: undefined, type: "Navigation/RESET"};
const result = navigationActionsCreators.redirectToMainScreen();
expect(result).toEqual(expected);
});
it('redirect to OnBoardingScreen with navigationActions ', () => {
const routeName = 'RegisterSuccessInfoScreen';
const expected = {actions: [{ routeName: "OnBoardingScreen", type: "Navigation/NAVIGATE"}], index: 0, key: undefined, type: "Navigation/RESET"};
const result = navigationActionsCreators.redirectToOnBoardingScreen();
expect(result).toEqual(expected);
});
});
| javascript |
import path from "path";
import meta from "../builtins/meta.js";
import StringWithGraph from "../framework/StringWithGraph.js";
const defaultLoaders = {
".css": loadText,
".htm": loadText,
".html": loadText,
".js": loadText,
".json": loadText,
".meta": loadMetaGraph,
".md": loadText,
".ori": loadOrigamiTemplate,
".txt": loadText,
".xhtml": loadText,
".yml": loadText,
".yaml": loadText,
};
export default function FileLoadersTransform(Base) {
return class FileLoaders extends Base {
constructor(...args) {
super(...args);
this.loaders = defaultLoaders;
}
async get(key) {
let value = await super.get(key);
if (
(typeof value === "string" || value instanceof Buffer) &&
typeof key === "string"
) {
const extname = path.extname(key).toLowerCase();
const loader = this.loaders[extname];
if (loader) {
value = await loader.call(this, value);
}
}
return value;
}
};
}
async function loadMetaGraph(buffer) {
const yaml = loadText(buffer);
const graph = await meta.call(this, yaml);
return new StringWithGraph(yaml, graph);
}
async function loadOrigamiTemplate(buffer) {
const { default: OrigamiTemplate } = await import(
"../framework/OrigamiTemplate.js"
);
return new OrigamiTemplate(loadText(buffer), this);
}
function loadText(buffer) {
return buffer instanceof Buffer ? String(buffer) : buffer;
}
| javascript |
<reponame>kindunq/DunqGram<filename>dunqgram/notify/admin.py<gh_stars>1-10
from django.contrib import admin
from . import models
# Register your models here.
@admin.register(models.Notify)
class NotifyAdmin(admin.ModelAdmin):
list_display = (
'creator',
'to',
'notify_type',
)
| python |
<gh_stars>1-10
""" Regroup reaction into KO or EC
"""
import argparse
from pandas import DataFrame
import numpy as np
import metgem.default
from metgem.default import default_map
from metgem.utils import align_dataframe
import pandas as pd
def run():
parser = argparse.ArgumentParser(
description="Regroup AGORA's reaction into EC/KO",
usage="metgem regroup -i input.tsv -g ec/ko -o output.tsv",
)
parser.add_argument(
"-i",
"--input",
type=argparse.FileType("r"),
required=True,
help="Reaction table from markp",
)
parser.add_argument("-g", "--group", type=str, required=True, help="{ec, ko}")
parser.add_argument(
"-o",
"--output",
type=argparse.FileType("w"),
required=True,
help="File name for output table",
)
args = parser.parse_args()
# Load input
functiontab = pd.read_csv(args.input, sep="\t", header=0, index_col=0)
# Load table
if args.group not in ["ec", "ko"]:
raise ValueError("This function grouper is not available")
f2g = read_grouper(default_map[args.group.upper()])
samplegroup = function2group(functiontab, f2g)
# round number
samplegroup = samplegroup.round(5)
samplegroup.to_csv(args.output, sep="\t")
def read_grouper(fh):
"""Read file contains information of reaction -> functional group"""
df = pd.read_csv(fh, sep="\t", header=0)
df.columns = ["reaction", "group"]
# use pivot table to ensure that one reaction -> many functional would be transform correctly
df["value"] = 1
pivotdf = df.pivot(index="reaction", columns="group", values="value").fillna(0)
return pivotdf
def function2group(reaction_tab, f2gtab) -> DataFrame:
"""Group reactions into other functional group (EC, KO)
Args:
reaction_tab (DataFrame): reaction/sample
f2gtab (DataFrame): reaction/group
"""
g2ftab = f2gtab.transpose()
reaction_tab_a, g2ftab_a = align_dataframe(reaction_tab, g2ftab)
return g2ftab_a.dot(reaction_tab_a)
def function2group_strat(reaction_tab, f2gtab) -> DataFrame:
"""Group reaction into other functional group, but with stratified (means list all bacteria involve)"""
common_idx = reaction_tab.index.intersection(f2gtab.index)
# Reshape both values to be compatible with each other
expanda = reaction_tab.values.repeat(len(f2gtab.columns), axis=0)
f2gtab_tf = f2gtab.reindex(common_idx).stack().to_frame()
result = pd.DataFrame(
expanda * (f2gtab_tf.values),
index=f2gtab_tf.index,
columns=reaction_tab.columns,
)
return result | python |
<reponame>hpcc-systems/website-antlr3<gh_stars>0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [antlr-interest] Simple expression grammar
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:antlr-interest%40antlr.org?Subject=Re:%20%5Bantlr-interest%5D%20Simple%20expression%20grammar&In-Reply-To=%3C482C7BE9.9000206%40gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="028210.html">
<LINK REL="Next" HREF="028215.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[antlr-interest] Simple expression grammar</H1>
<B><NAME></B>
<A HREF="mailto:antlr-interest%40antlr.org?Subject=Re:%20%5Bantlr-interest%5D%20Simple%20expression%20grammar&In-Reply-To=%3C482C7BE9.9000206%40gmail.com%3E"
TITLE="[antlr-interest] Simple expression grammar"><EMAIL> at <EMAIL>
</A><BR>
<I>Thu May 15 11:07:37 PDT 2008</I>
<P><UL>
<LI>Previous message: <A HREF="028210.html">[antlr-interest] Simple expression grammar
</A></li>
<LI>Next message: <A HREF="028215.html">[antlr-interest] Simple expression grammar
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#28212">[ date ]</a>
<a href="thread.html#28212">[ thread ]</a>
<a href="subject.html#28212">[ subject ]</a>
<a href="author.html#28212">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>>><i> OK I have written my grammar for boolean expressions mentioned earlier
</I>>><i> (like ( (a>=3 || b<=5)&& c>=4 ) ).
</I>>><i>
</I>>><i> But my grammar accept also expressions like "abc def ght" and many other
</I>>><i> strange constructions
</I>><i>
</I>><i> I think it is only accepting that because you have used:
</I>><i>
</I>><i> logical_or_expression+
</I>><i>
</I>><i> Remove the + and it will only accept a single logical expression. this
</I>><i> code accepts abc def ght as 3 separate logical_or_expressions.
</I>
I have tried it but ... when I remove '+' it will not parse correctly
expression like "x>=4 || b<=5 && d<=5" . It will parse only 'x'
Thanks
<NAME>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="028210.html">[antlr-interest] Simple expression grammar
</A></li>
<LI>Next message: <A HREF="028215.html">[antlr-interest] Simple expression grammar
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#28212">[ date ]</a>
<a href="thread.html#28212">[ thread ]</a>
<a href="subject.html#28212">[ subject ]</a>
<a href="author.html#28212">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://www.antlr.org/mailman/listinfo/antlr-interest">More information about the antlr-interest
mailing list</a><br>
</body></html>
| html |
var map = new maptalks.Map('map', {
center: [-0.113049,51.498568],
zoom: 14,
baseLayer: new maptalks.TileLayer('base', {
// crossOrigin : 'anonymous', // required if renderer is canvas
// renderer : 'canvas',
urlTemplate: '$(urlTemplate)',
subdomains: $(subdomains),
attribution: '$(attribution)'
})
});
new maptalks.VectorLayer('v', new maptalks.Marker(map.getCenter()))
.addTo(map);
// Export map to an image
// External image(tiles, marker images) hosts need to support CORS
function save() {
var data = map.toDataURL({
'mimeType' : 'image/jpeg', // or 'image/png'
'save' : true, // to pop a save dialog
'fileName' : 'map' // file name
});
}
| javascript |
Microsoft CEO Satya Nadella revealed that the company has committed a big mistake by assuming Personal Computer will continue to reign supreme forever. He particularly feels the IT Gaint has failed to anticipate the smart phone revolution.
Satya Nadella: "One big mistake was to presume PC will remain as the hub for everything and all the time. Today, The high volume device is the six-inch phone".
The India-Born CEO opined to assume Smart Phone is the future is committing the same mistake again. He believes Microsoft should be on the hunt to figure out what's the next bend in the curve. "I just don't want to build another phone. That would be madness," he told.
Microsoft has set 3 ambitions for itself: i) Personal Computing; ii) Reinvention of productivity and Business process; iii) Building an intelligent cloud platform. | english |
.home-categori{
background-color: #FFFFFF;
/* padding-bottom: 6rem; */
text-align: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
overflow: hidden;
margin-top: 15px;
}
.img-all-w{
width: 100%;
}
.inner-text{
padding: 1.5rem 2.4rem 0;
}
.des-cat{
font-family: fantasy;
padding: 12px 4px;
font-size: 16px;
text-align: left;
font-weight: 100;
line-height: 1.2;
/* color: #000; */
}
.hov{
position: absolute;
z-index: 1;
box-shadow: 1px 9px 11px #48484863;
transition-delay: 1s;
transition-duration: 1s;
animation-delay: 1s;
animation-duration: 1s;
}
.social-i{
background: #ff9a87;
padding: 10px 13px;
margin: 3px 5px;
border-radius: 100%;
color: #000;
}
.blogsub{
background: #ffe1e1;
margin: 0;
padding: 35px 6px 20px 11px;
box-shadow: 1px 1px 4px 1px #c3c3c35c;
}
.liked{
color: #ef8872;
}
.form-inline {
display: block !important;
}
.titHome{
margin: 1% 0 3%;
color: #fff;
border-bottom: solid 2px #e6474e;
padding-bottom: 10px;
width: 50%;
}
.textHome{
color: #000;
font-size: 20px;
text-align: justify;
line-height: 1.3;
}
.textTt{
font-size: 25px;
color: #ffffff;
background: #7568AB;
padding: 14px 4px;
}
.seccat{
/* background: #fee7b5;
background: -moz-linear-gradient(to bottom, #fee7b5 0%,#fe93a0 50%,#fdb77b 100%);
background: -webkit-linear-gradient(to bottom, #fee7b5 0%,#fe93a0 50%,#fdb77b 100%);
background: linear-gradient(to bottom, #fee7b5 0%,#fe93a0 50%,#fdb77b 100%); */
background: #7468abd6;
background: -moz-linear-gradient(to bottom, #7468abd6 0%,#fad0c4 100%);
background: -webkit-linear-gradient(to bottom, #7468abd6 0%,#fad0c4 100%);
background: linear-gradient(to bottom, #7468abd6 0%,#fad0c4 100%);v
}
.bgDeg{
background: #7468abd6;
background: -moz-linear-gradient(to bottom, #7468abd6 0%,#fad0c4 100%);
background: -webkit-linear-gradient(to bottom, #7468abd6 0%,#fad0c4 100%);
background: linear-gradient(to bottom, #7468abd6 0%,#fad0c4 100%);v
}
.lasthist{
padding: 8px 4px;
background: #fad0c487;
border-radius: 5px;
box-shadow: -21.213px 21.213px 30px 0px rgba(158, 158, 158, 0.3);
}
.singleBlog{
background: #f5cbc3;
border-radius: 5px;
color: #fff;
margin-left: 15px;
}
.titsingleblog{
text-align: center;
margin: 0 0 15px 0;
}
.likesandcomm{
color: #b097bb;
font-weight: 900;
}
.desNot{
}
.social-head{
padding: 0 !important;
margin: 0 !important;
height: 0 !important;
background: #fff ;
}
.social-head:hover{
background: #fff ;
}
.brdCont{
border: solid 1px #f5f5f5;
padding: 11px 15px;
padding-bottom: 30px;
text-align: justify;
background: #fff;
box-shadow: 1px 1px 4px 1px #c3c3c35c;
border-radius: 4px;
color: #636363;
word-break: break-word;
}
.night{
background: #1d1d1d;
color: #aaa;
}
.colobg{
background: #d7b4bf;
}
.parag{
text-align: center;
}
@media only screen and (max-width: 600px) {
.parag{
text-align: justify;
}
}
| css |
After Pakistan bowlers restricted West Indies to 124 for eight, Ahmed Shehzad led the chase with a brisk fifty to complete the chase in 19 overs with seven wickets in hand in the fourth Twenty20 International in Trinidad, thereby sealing the series 3-1.
Pakistan won the toss and elected to field first. Chadwick Walton (40) and Evein Lewis (7) started the innings positively scoring 27 runs in the first 16 deliveries but Imad Wasim (1-25) had the latter caught at square leg.
Shoaib Malik dropped Walton in the fourth over and the wicket-keeper batsman responded with two more sixes to help West Indies reach 42 for one in the powerplay.
Just as Walton was upping the ante, Shadab Khan (2-16) provided the breakthrough when he had him caught at long on and at the halfway mark, the home side were placed 59 for two.
Despite, back-to-back sixes from Marlon Samuels (22), Hasan Ali (2-12) kept things under control for Pakistan with the wickets of Jason Mohammed (1) and Lendl Simmons (1) with the second dismissal being a run out. And soon, Ali also castled Samuels to leave West Indies reeling at 73 for five. In the process, he also bowled two maiden overs to dent the run rate for West Indies.
A late surge from skipper Carlos Brathwaite (37 not out) took West Indies to 124 for eight in their 20 overs.
Shehzad (53) and Kamran Akmal (20) scored six boundaries and a six between them in the powerplay to take the score to 39 for naught.
Samuels (1-11) provided the breakthrough after Akmal chipped one to midwicket but Shehzad and Babar Azam (38) stitched a 70 run stand between them to put Pakistan to course of victory.
Shehzad fell immediately on reaching his fifty when he was castled by Kesrick Williams (2-16), who also had Azam caught in his next delivery which came off a different over. Malik (9 not out) and Sarfraz Ahmed (3 not out) ensured there were no further hiccups as they completed the chase in 19 overs.
Shadab was named the player of the series while Ali bagged the player of the match award.
| english |
<gh_stars>0
//var nombre = localStorage.setItem("Nombre", "marcos");
//var apellido = localStorage.setItem("Apellido", "venteo");
//alert(localStorage.getItem("Apellido"));
//Object JSON
//var alumnos = {'marcos' : '1234' , 'joan' : '4567'};
// var supermario:number = document.getElementById("SuperMario").value;
// var mariokart:number = document.getElementById("MarioKart").value;
// var supersmash:number = document.getElementById("SuperSmash").value;
var carro =
{
0:
{
producto : "New Super Mario Bros. U Deluxe",
precio : "80"
},
1: {
producto : "Mario Kart 8",
precio : "60"
},
2: {
producto : "Super Smash Bros",
precio : "70"
}
}
function añadir(numero)
{
var productos = JSON.parse(localStorage.getItem('productos')) || [];
var anade =
{
nombre : carro[numero].producto,
precio : carro[numero].precio
}
productos.push(anade);
localStorage.setItem('productos', JSON.stringify(productos));
enseñarcarro();
}
function enseñarcarro()
{
var a = JSON.parse(localStorage.getItem('productos'));
var content = "";
for (var i = 0; i < a.length; i++) {
content += '<div class="col-3 ml-2 mr-2 mt-5">';
content += '<h3 class="text-center mt-2">' + a[i].nombre + '</h3>';
content += '<p class="text-center mt-2">' + a[i].precio + '€</p>';
content += '<div class="text-center">';
content += '</div>';
content += '</div>';
}
document.getElementById("carro").innerHTML = content;
}
window.onload = function ()
{
enseñarcarro();
}
//console.log(marcos);
//alert(JSON.stringify(marcos));
//alert(JSON.stringify(alumnos));
//Guarda el objeto en la base de datos
// localStorage.setItem('key', JSON.stringify(carro));
// //Recupera el objeto de la base de datos
// var a = (JSON.parse(localStorage.getItem('key')));
// for(var i = 0; i < a.cliente.length; i++)
// {
// alert(a.cliente[0].productos[i].producto);
// }
} | typescript |
Update: We asked Amazon whether fully custom design printing will ever be added to its 3D printing store, and a spokesperson responded that the company is "always looking for ways to improve the shopping experience and increase the selection of items for customers."
The spokesperson continued: "We plan to grow the new 3D Printed Products store and we are evaluating several approaches to better serve end-customers, and our Sellers that are also our customers. Stay tuned!"
Even if you don't "get" 3D printing, you can still take advantage, thanks to a new Amazon store opening today.
The bookseller opened the Amazon 3D Printing Store with no bombast, and now customers can order their own 3D-printed knickknacks straight from Amazon.com.
Products are being offered by a wide variety of 3D-printing companies and range from phone cases and dog tags to jewelry, home goods and bobbleheads.
Users can customize certain aspects of these goods, often including color, size, shape, and more, but unfortunately Amazon's 3D printing store doesn't currently accept original designs from shoppers.
But enterprising would-be 3D printing enthusiasts aren't totally out of luck, as the new Amazon store also lets users order their own 3D printers, parts, equipment, software and guides.
And besides, companies like Shapeways already offer that service, so Amazon at least has some competition.
"From futuristic fashion accessories to home decor, this is your source for the gear you need to shop the future," the site says.
It continues: "3D printing is considered the future of print and manufacturing, and is set to dramatically change the way we buy and produce products in the future."
That much seems certain at this point.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Michael Rougeau is a former freelance news writer for TechRadar. Studying at Goldsmiths, University of London, and Northeastern University, Michael has bylines at Kotaku, 1UP, G4, Complex Magazine, Digital Trends, GamesRadar, GameSpot, IFC, Animal New York, @Gamer, Inside the Magic, Comic Book Resources, Zap2It, TabTimes, GameZone, Cheat Code Central, Gameshark, Gameranx, The Industry, Debonair Mag, Kombo, and others.
Micheal also spent time as the Games Editor for Playboy.com, and was the managing editor at GameSpot before becoming an Animal Care Manager for Wags and Walks.
| english |
{
"name": "classify_PN_cells",
"description": "Classification of cells to positive or negative",
"container-image": {
"image": "mizjaggy18/s_classify_pn_cells",
"type": "singularity"
},
"command-line": "echo [CYTOMINE_HOST] [CYTOMINE_PUBLIC_KEY] [CYTOMINE_PRIVATE_KEY] [CYTOMINE_ID_PROJECT] [CYTOMINE_ID_SOFTWARE] [CYTOMINE_ID_IMAGES] [CYTOMINE_ID_CELL_TERM] [CYTOMINE_ID_ANNOTATION_JOB] [CYTOMINE_ID_USER_JOB] [CYTOMINE_ID_POSITIVE_TERM] [CYTOMINE_ID_NEGATIVE_TERM]",
"inputs": [
{
"id": "cytomine_host",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine host",
"set-by-server": true,
"optional": false,
"type": "String"
},
{
"id": "cytomine_public_key",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine public key",
"set-by-server": true,
"optional": false,
"type": "String"
},
{
"id": "cytomine_private_key",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine private key",
"set-by-server": true,
"optional": false,
"type": "String"
},
{
"id": "cytomine_id_project",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine project ID",
"set-by-server": true,
"optional": false,
"type": "Number"
},
{
"id": "cytomine_id_software",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine software ID",
"set-by-server": true,
"optional": false,
"type": "Number"
},
{
"id": "cytomine_id_images",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine Image IDs",
"description": "Images on which to classify objects",
"optional": false,
"type": "ListDomain",
"uri": "/api/project/$currentProject$/imageinstance.json",
"uri-print-attribute": "instanceFilename",
"uri-sort-attribute": "created"
},
{
"id": "cytomine_id_cell_term",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine cell term ID",
"description": "Ontology term ID for the cells that will be classified into P or N",
"optional": false,
"type": "Domain",
"uri": "/api/ontology/$currentOntology$/term.json",
"uri-print-attribute": "name",
"uri-sort-attribute": "name"
},
{
"id": "cytomine_id_annotation_job",
"description": "Job ID of CellDetect Stardist analysis which annotations to be classified",
"set-by-server": false,
"value-key": "[@ID]",
"optional": false,
"type": "Domain",
"uri": "/api/job.json?project=$currentProject$",
"uri-sort-attribute": "softwareDate",
"uri-print-attribute": "softwareName",
"command-line-flag": "--@id"
},
{
"id": "cytomine_id_user_job",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine User ID for the Annotation Job",
"description": "User ID of CellDetect Stardist job analysis",
"optional": false,
"type": "ListDomain",
"uri": "/api/user_job.json?project=$currentProject$",
"uri-print-attribute": "username"
},
{
"id": "cytomine_id_positive_term",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine positive cell term ID",
"description": "Ontology term ID for the cells that will be classified as Positive",
"optional": false,
"type": "Domain",
"uri": "/api/ontology/$currentOntology$/term.json",
"uri-print-attribute": "name",
"uri-sort-attribute": "name"
},
{
"id": "cytomine_id_negative_term",
"value-key": "[@ID]",
"command-line-flag": "--@id",
"name": "Cytomine negative cell term ID",
"description": "Ontology term ID for the cells that will be classified as Negative",
"optional": false,
"type": "Domain",
"uri": "/api/ontology/$currentOntology$/term.json",
"uri-print-attribute": "name",
"uri-sort-attribute": "name"
}
],
"schema-version": "cytomine-0.1"
}
| json |
/*
* Copyright 2011-2013, by <NAME> and Contributors.
*
* This file is part of la4j project (http://la4j.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Contributor(s): -
*
*/
package org.la4j.decomposition;
import org.junit.Test;
import org.la4j.LinearAlgebra;
public class QRDecompositorTest extends AbstractDecompositorTest {
@Override
public LinearAlgebra.DecompositorFactory decompositorFactory() {
return LinearAlgebra.QR;
}
@Test
public void testDecompose_1x1() {
double[][] input = new double[][]{
{15.0}
};
double[][][] output = new double[][][]{
{
{-1.0}
},
{
{-15.0}
}
};
performTest(input, output);
}
@Test
public void testDecompose_2x2() {
double[][] input = new double[][]{
{5.0, 10.0},
{70.0, 11.0}
};
double[][][] output = new double[][][]{
{
{-0.071, 0.997},
{-0.997, -0.071}
},
{
{-70.178, -11.685},
{0.0, 9.191}
}
};
performTest(input, output);
}
@Test
public void testDecompose_4x1() {
double[][] input = new double[][]{
{8.0},
{2.0},
{-10.0},
{54.0}
};
double[][][] output = new double[][][]{
{
{-0.144},
{-0.036},
{0.180},
{-0.972}
},
{
{-55.534}
}
};
performTest(input, output);
}
@Test
public void testDecompose_3x2() {
double[][] input = new double[][]{
{65.0, 4.0},
{9.0, 12.0},
{32.0, 42.0}
};
double[][][] output = new double[][][]{
{
{-0.890, 0.455},
{-0.123, -0.246},
{-0.438, -0.856}
},
{
{-73.007, -23.450},
{0.000, -37.069}
}
};
performTest(input, output);
}
@Test
public void testDecompose_3x3() {
double[][] input = new double[][]{
{-8.0, 0.0, 0.0},
{0.0, -4.0, -6.0},
{0.0, 0.0, -2.0}
};
double[][][] output = new double[][][]{
{
{-1.0, 0.0, 0.0},
{0.0, -1.0, 0.0},
{0.0, 0.0, -1.0}
},
{
{8.0, 0.0, 0.0},
{0.0, 4.0, 6.0},
{0.0, 0.0, 2.0}
}
};
performTest(input, output);
}
@Test
public void testDecompose_3x3_2() {
double[][] input = new double[][]{
{-2.0, 6.0, 14.0},
{-10.0, -9.0, 6.0},
{12.0, 16.0, 100.0}
};
double[][][] output = new double[][][]{
{
{-0.127, 0.920, 0.371},
{-0.635, 0.212, -0.743},
{0.762, 0.330, -0.557}
},
{
{15.748, 17.145, 70.612},
{0.0, 8.891, 47.167},
{0.0, 0.0, -54.966}
}
};
performTest(input, output);
}
@Test
public void testDecompose_4x3() {
double[][] input = new double[][]{
{51.0, 4.0, 19.0},
{7.0, 17.0, 77.0},
{5.0, 6.0, 7.0},
{100.0, 1.0, -10.0}
};
double[][][] output = new double[][][]{
{
{-0.453, -0.121, 0.364},
{-0.062, -0.928, 0.236},
{-0.044, -0.323, -0.887},
{-0.888, 0.143, -0.158}
},
{
{-112.583, -4.024, -4.823},
{0.0, -18.050, -77.428},
{0.0, 0.0, 20.509}
}
};
performTest(input, output);
}
@Test
public void testDecompose_5x5() {
double[][] input = new double[][]{
{14.0, 66.0, 11.0, 4.0, 61.0},
{10.0, 22.0, 54.0, -1.0, 1.0},
{-19.0, 26.0, 4.0, 44.0, 14.0},
{87.0, -1.0, 34.0, 29.0, -2.0},
{18.0, 43.0, 51.0, 39.0, 16.0}
};
double[][][] output = new double[][][]{
{
{-0.151, -0.754, -0.520, 0.358, 0.097},
{-0.108, -0.242, 0.739, 0.388, 0.483},
{0.205, -0.342, -0.001, -0.771, 0.496},
{-0.941, 0.173, -0.088, -0.211, 0.180},
{-0.195, -0.475, 0.419, -0.287, -0.692}
},
{
{-92.466, -14.459, -48.602, -26.334, -7.700},
{0.0, -84.599, -41.067, -31.363, -58.992},
{0.0, 0.0, 52.549, 10.907, -24.128},
{0.0, 0.0, 0.0, -50.189, 7.268},
{0.0, 0.0, 0.0, 0.0, 1.908}
}
};
performTest(input, output);
}
}
| java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.