text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
<filename>magic_driver_control/scripts/driver_controller.py
#!/usr/bin/env python
"""
This node talks directly to the pololu driver
It takes in PID control effort and maps it to commands for the pololu driver
"""
from __future__ import division
import rospy
from std_msgs.msg import Float64, Int8MultiArray
DRIVE_PUB_INDEX = 0
YAW_PUB_INDEX = 1
SIDE_IR_THRESH = 10
FRONT_IR_THRESH = 21
DOORWAY_THRESH = 5
DOORWAY_IGNORES = 250
class DriverControl:
def __init__(self):
rospy.Subscriber("yaw/control_effort", Float64, self.yaw_ce_callback)
rospy.Subscriber("drive/control_effort", Float64, self.drive_ce_callback)
rospy.Subscriber("distance", Float64, self.side_dist_callback)
rospy.Subscriber("front_distance", Float64, self.front_dist_callback)
self.pololu_pub = rospy.Publisher('move_setpoints', Int8MultiArray, queue_size=5)
self.drive = 0
self.yaw = 0
self.side_distance = 5
self.front_distance = 100
rospy.loginfo("Driver Controller Initialized")
self.doorway = False
self.doorway_count = 0
def front_dist_callback(self, msg):
self.front_distance = msg.data
def side_dist_callback(self,msg):
self.side_distance = msg.data
def drive_ce_callback(self, msg):
self.drive = msg.data
# conversions... if sm we probably don't need to convert
self.publish_cmd()
def yaw_ce_callback(self, msg):
"""
This comes in the form of around 3???
Map it to something between -100 and 100?
"""
self.yaw = -msg.data
# conversions...
self.publish_cmd()
def publish_cmd(self):
"""
Sends a command to the pololu
"""
yaw = self.yaw
if self.doorway:
self.doorway_count -= 1
if self.doorway_count < 0:
rospy.logwarn("Leaving Doorway")
self.doorway = False
else:
rospy.logwarn("Doorway")
yaw = 0
elif self.side_distance > SIDE_IR_THRESH and self.front_distance > FRONT_IR_THRESH:
self.doorway_count += 1
if self.doorway_count > DOORWAY_THRESH:
self.doorway = True
self.doorway_count = DOORWAY_IGNORES
else:
self.doorway_count = 0
data = []
data.append(int(self.drive))
data.append(int(yaw))
msg = Int8MultiArray(); msg.data = data
self.pololu_pub.publish(msg)
def main():
rospy.init_node("driver_controller")
dc = DriverControl()
rospy.spin()
if __name__ == "__main__":
main()
|
python
|
{
/* ===========
Install Plugins:
ESLint
Prettier - Code formatter
stylelint
Live Server
=========== */
"editor.formatOnSave": true,
"[typescript]": {
"editor.formatOnSave": false
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
},
"files.autoSave": "off"
}
|
json
|
<filename>MLS.Agent.Tests/package.json
{
"name": "mls-agent-results",
"description": "Package to verify if the agent and the simulator in the client are in sync",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"*.approved.json"
],
"scripts": {
"build": "tsc"
},
"repository": {
"type": "git",
"url": "https://msazure.visualstudio.com/DefaultCollection/One/_git/MLS-Agent"
},
"author": "MLS-Dev",
"license": "ISC",
"dependencies": {
"@types/node": "^10.12.12"
}
}
|
json
|
<filename>ItemPipes/config.json
{
"DebugMode": true,
"UltraDebugMode": false,
"ItemSending": true,
"IOPipeStatePopup": true
}
|
json
|
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package auth
import (
"github.com/Unknwon/macaron"
"github.com/macaron-contrib/binding"
)
type AdminEditUserForm struct {
FullName string `form:"fullname" binding:"MaxSize(100)"`
Email string `binding:"Required;Email;MaxSize(254)"`
Password string `binding:"OmitEmpty;MinSize(6);MaxSize(255)"`
Website string `binding:"MaxSize(50)"`
Location string `binding:"MaxSize(50)"`
Avatar string `binding:"Required;Email;MaxSize(50)"`
Active bool
Admin bool
AllowGitHook bool
LoginType int
}
func (f *AdminEditUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
|
go
|
<filename>cli/src/generate/prepare_grammar/expand_repeats.rs
use super::ExtractedSyntaxGrammar;
use crate::generate::grammars::{Variable, VariableType};
use crate::generate::rules::{Rule, Symbol};
use std::collections::HashMap;
use std::mem;
struct Expander {
variable_name: String,
repeat_count_in_variable: usize,
preceding_symbol_count: usize,
auxiliary_variables: Vec<Variable>,
existing_repeats: HashMap<Rule, Symbol>,
}
impl Expander {
fn expand_variable(&mut self, index: usize, variable: &mut Variable) -> bool {
self.variable_name.clear();
self.variable_name.push_str(&variable.name);
self.repeat_count_in_variable = 0;
let mut rule = Rule::Blank;
mem::swap(&mut rule, &mut variable.rule);
// In the special case of a hidden variable with a repetition at its top level,
// convert that rule itself into a binary tree structure instead of introducing
// another auxiliary rule.
if let (VariableType::Hidden, Rule::Repeat(repeated_content)) = (variable.kind, &rule) {
let inner_rule = self.expand_rule(&repeated_content);
variable.rule = self.wrap_rule_in_binary_tree(Symbol::non_terminal(index), inner_rule);
variable.kind = VariableType::Auxiliary;
return true;
}
variable.rule = self.expand_rule(&rule);
false
}
fn expand_rule(&mut self, rule: &Rule) -> Rule {
match rule {
// For choices, sequences, and metadata, descend into the child rules,
// replacing any nested repetitions.
Rule::Choice(elements) => Rule::Choice(
elements
.iter()
.map(|element| self.expand_rule(element))
.collect(),
),
Rule::Seq(elements) => Rule::Seq(
elements
.iter()
.map(|element| self.expand_rule(element))
.collect(),
),
Rule::Metadata { rule, params } => Rule::Metadata {
rule: Box::new(self.expand_rule(rule)),
params: params.clone(),
},
// For repetitions, introduce an auxiliary rule that contains the the
// repeated content, but can also contain a recursive binary tree structure.
Rule::Repeat(content) => {
let inner_rule = self.expand_rule(content);
if let Some(existing_symbol) = self.existing_repeats.get(&inner_rule) {
return Rule::Symbol(*existing_symbol);
}
self.repeat_count_in_variable += 1;
let rule_name = format!(
"{}_repeat{}",
self.variable_name, self.repeat_count_in_variable
);
let repeat_symbol = Symbol::non_terminal(
self.preceding_symbol_count + self.auxiliary_variables.len(),
);
self.existing_repeats
.insert(inner_rule.clone(), repeat_symbol);
self.auxiliary_variables.push(Variable {
name: rule_name,
kind: VariableType::Auxiliary,
rule: self.wrap_rule_in_binary_tree(repeat_symbol, inner_rule),
});
Rule::Symbol(repeat_symbol)
}
// For primitive rules, don't change anything.
_ => rule.clone(),
}
}
fn wrap_rule_in_binary_tree(&self, symbol: Symbol, rule: Rule) -> Rule {
Rule::choice(vec![
Rule::Seq(vec![Rule::Symbol(symbol), Rule::Symbol(symbol)]),
rule,
])
}
}
pub(super) fn expand_repeats(mut grammar: ExtractedSyntaxGrammar) -> ExtractedSyntaxGrammar {
let mut expander = Expander {
variable_name: String::new(),
repeat_count_in_variable: 0,
preceding_symbol_count: grammar.variables.len(),
auxiliary_variables: Vec::new(),
existing_repeats: HashMap::new(),
};
for (i, mut variable) in grammar.variables.iter_mut().enumerate() {
let expanded_top_level_repetition = expander.expand_variable(i, &mut variable);
// If a hidden variable had a top-level repetition and it was converted to
// a recursive rule, then it can't be inlined.
if expanded_top_level_repetition {
grammar
.variables_to_inline
.retain(|symbol| *symbol != Symbol::non_terminal(i));
}
}
grammar
.variables
.extend(expander.auxiliary_variables.into_iter());
grammar
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_basic_repeat_expansion() {
// Repeats nested inside of sequences and choices are expanded.
let grammar = expand_repeats(build_grammar(vec![Variable::named(
"rule0",
Rule::seq(vec![
Rule::terminal(10),
Rule::choice(vec![
Rule::repeat(Rule::terminal(11)),
Rule::repeat(Rule::terminal(12)),
]),
Rule::terminal(13),
]),
)]));
assert_eq!(
grammar.variables,
vec![
Variable::named(
"rule0",
Rule::seq(vec![
Rule::terminal(10),
Rule::choice(vec![Rule::non_terminal(1), Rule::non_terminal(2),]),
Rule::terminal(13),
])
),
Variable::auxiliary(
"rule0_repeat1",
Rule::choice(vec![
Rule::seq(vec![Rule::non_terminal(1), Rule::non_terminal(1),]),
Rule::terminal(11),
])
),
Variable::auxiliary(
"rule0_repeat2",
Rule::choice(vec![
Rule::seq(vec![Rule::non_terminal(2), Rule::non_terminal(2),]),
Rule::terminal(12),
])
),
]
);
}
#[test]
fn test_repeat_deduplication() {
// Terminal 4 appears inside of a repeat in three different places.
let grammar = expand_repeats(build_grammar(vec![
Variable::named(
"rule0",
Rule::choice(vec![
Rule::seq(vec![Rule::terminal(1), Rule::repeat(Rule::terminal(4))]),
Rule::seq(vec![Rule::terminal(2), Rule::repeat(Rule::terminal(4))]),
]),
),
Variable::named(
"rule1",
Rule::seq(vec![Rule::terminal(3), Rule::repeat(Rule::terminal(4))]),
),
]));
// Only one auxiliary rule is created for repeating terminal 4.
assert_eq!(
grammar.variables,
vec![
Variable::named(
"rule0",
Rule::choice(vec![
Rule::seq(vec![Rule::terminal(1), Rule::non_terminal(2)]),
Rule::seq(vec![Rule::terminal(2), Rule::non_terminal(2)]),
])
),
Variable::named(
"rule1",
Rule::seq(vec![Rule::terminal(3), Rule::non_terminal(2),])
),
Variable::auxiliary(
"rule0_repeat1",
Rule::choice(vec![
Rule::seq(vec![Rule::non_terminal(2), Rule::non_terminal(2),]),
Rule::terminal(4),
])
)
]
);
}
#[test]
fn test_expansion_of_nested_repeats() {
let grammar = expand_repeats(build_grammar(vec![Variable::named(
"rule0",
Rule::seq(vec![
Rule::terminal(10),
Rule::repeat(Rule::seq(vec![
Rule::terminal(11),
Rule::repeat(Rule::terminal(12)),
])),
]),
)]));
assert_eq!(
grammar.variables,
vec![
Variable::named(
"rule0",
Rule::seq(vec![Rule::terminal(10), Rule::non_terminal(2),])
),
Variable::auxiliary(
"rule0_repeat1",
Rule::choice(vec![
Rule::seq(vec![Rule::non_terminal(1), Rule::non_terminal(1),]),
Rule::terminal(12),
])
),
Variable::auxiliary(
"rule0_repeat2",
Rule::choice(vec![
Rule::seq(vec![Rule::non_terminal(2), Rule::non_terminal(2),]),
Rule::seq(vec![Rule::terminal(11), Rule::non_terminal(1),]),
])
),
]
);
}
#[test]
fn test_expansion_of_repeats_at_top_of_hidden_rules() {
let grammar = expand_repeats(build_grammar(vec![
Variable::named("rule0", Rule::non_terminal(1)),
Variable::hidden(
"_rule1",
Rule::repeat(Rule::choice(vec![Rule::terminal(11), Rule::terminal(12)])),
),
]));
assert_eq!(
grammar.variables,
vec![
Variable::named("rule0", Rule::non_terminal(1),),
Variable::auxiliary(
"_rule1",
Rule::choice(vec![
Rule::seq(vec![Rule::non_terminal(1), Rule::non_terminal(1)]),
Rule::terminal(11),
Rule::terminal(12),
]),
),
]
);
}
fn build_grammar(variables: Vec<Variable>) -> ExtractedSyntaxGrammar {
ExtractedSyntaxGrammar {
variables,
..Default::default()
}
}
}
|
rust
|
<reponame>binu-alexander/thevachanonlineproject<gh_stars>1-10
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>יחזקאל 37 (WLC)</title>
<link href="../../../build/mobile.css" rel="stylesheet" />
<script src="../../../build/mobile.js"></script>
</head>
<body dir="rtl" class="section-document">
<div class="header"><div class="nav">
<a class="name" href="EK.html">Westminster Leningrad Codex</a><a class="location" href="EK.html">יחזקאל 37</a><a class="prev" href="EK36.html"><</a>
<a class="home" href="index.html">=</a>
<a class="next" href="EK38.html">></a>
</div></div>
<div class="section chapter EK EK37 heb_wlc heb " dir="rtl" lang="he" data-id="EK37" data-nextid="EK38" data-previd="EK36"><br>
<div class="c">37</div>
<div class="p">
<span class="v-num v-1">1</span><span class="v EK37_1" data-id="EK37_1">
<l s="H1961">הָיְתָ֣ה</l>
<l s="H5921">עָלַי֮</l>
<l s="H3027">יַד</l>־<l s="H3068">יְהוָה֒</l>
<l s="H3318">וַיּוֹצִאֵ֤נִי</l>
<l s="H7307">בְר֙וּחַ֙</l>
<l s="H3068">יְהוָ֔ה</l>
<l s="H5117">וַיְנִיחֵ֖נִי</l>
<l s="H8432">בְּת֣וֹךְ</l>
<l s="H1237">הַבִּקְעָ֑ה</l>
<l s="H1931">וְהִ֖יא</l>
<l s="H4392">מְלֵאָ֥ה</l>
<l s="H6106">עֲצָמֽוֹת</l>׃
</span>
<span class="v-num v-2">2</span><span class="v EK37_2" data-id="EK37_2">
<l s="H5674">וְהֶעֱבִירַ֥נִי</l>
<l s="H5921">עֲלֵיהֶ֖ם</l>
<l s="H5439">סָבִ֣יב</l>
׀
<l s="H5439">סָבִ֑יב</l>
<l s="H2009">וְהִנֵּ֨ה</l>
<l s="H7227">רַבּ֤וֹת</l>
<l s="H3966">מְאֹד֙</l>
<l s="H5921">עַל</l>־<l s="H6440">פְּנֵ֣י</l>
<l s="H1237">הַבִּקְעָ֔ה</l>
<l s="H2009">וְהִנֵּ֖ה</l>
<l s="H3002">יְבֵשׁ֥וֹת</l>
<l s="H3966">מְאֹֽד</l>׃
</span>
<span class="v-num v-3">3</span><span class="v EK37_3" data-id="EK37_3">
<l s="H559">וַיֹּ֣אמֶר</l>
<l s="H413">אֵלַ֔י</l>
<l s="H1121">בֶּן</l>־<l s="H120">אָדָ֕ם</l>
<l s="H2421">הֲתִחְיֶ֖ינָה</l>
<l s="H6106">הָעֲצָמ֣וֹת</l>
<l s="H428">הָאֵ֑לֶּה</l>
<l s="H559">וָאֹמַ֕ר</l>
<l s="H136">אֲדֹנָ֥י</l>
<l s="H3069">יְהוִ֖ה</l>
<l s="H859">אַתָּ֥ה</l>
<l s="H3045">יָדָֽעְתָּ</l>׃
</span>
<span class="v-num v-4">4</span><span class="v EK37_4" data-id="EK37_4">
<l s="H559">וַיֹּ֣אמֶר</l>
<l s="H413">אֵלַ֔י</l>
<l s="H5012">הִנָּבֵ֖א</l>
<l s="H5921">עַל</l>־<l s="H6106">הָעֲצָמ֣וֹת</l>
<l s="H428">הָאֵ֑לֶּה</l>
<l s="H559">וְאָמַרְתָּ֣</l>
<l s="H413">אֲלֵיהֶ֔ם</l>
<l s="H6106">הָעֲצָמוֹת֙</l>
<l s="H3002">הַיְבֵשׁ֔וֹת</l>
<l s="H8085">שִׁמְע֖וּ</l>
<l s="H1697">דְּבַר</l>־<l s="H3068">יְהוָֽה</l>׃
</span>
<span class="v-num v-5">5</span><span class="v EK37_5" data-id="EK37_5">
<l s="H3541">כֹּ֤ה</l>
<l s="H559">אָמַר֙</l>
<l s="H136">אֲדֹנָ֣י</l>
<l s="H3069">יְהוִ֔ה</l>
<l s="H6106">לָעֲצָמ֖וֹת</l>
<l s="H428">הָאֵ֑לֶּה</l>
<l s="H2009">הִנֵּ֨ה</l>
<l s="H589">אֲנִ֜י</l>
<l s="H935">מֵבִ֥יא</l>
<l s="H">בָכֶ֛ם</l>
<l s="H7307">ר֖וּחַ</l>
<l s="H2421">וִחְיִיתֶֽם</l>׃
</span>
<span class="v-num v-6">6</span><span class="v EK37_6" data-id="EK37_6">
<l s="H5414">וְנָתַתִּי֩</l>
<l s="H5921">עֲלֵיכֶ֨ם</l>
<l s="H1517">גִּדִ֜ים</l>
<l s="H5927">וְֽהַעֲלֵתִ֧י</l>
<l s="H5921">עֲלֵיכֶ֣ם</l>
<l s="H1320">בָּשָׂ֗ר</l>
<l s="H7159">וְקָרַמְתִּ֤י</l>
<l s="H5921">עֲלֵיכֶם֙</l>
<l s="H5785">ע֔וֹר</l>
<l s="H5414">וְנָתַתִּ֥י</l>
<l s="H">בָכֶ֛ם</l>
<l s="H7307">ר֖וּחַ</l>
<l s="H2421">וִחְיִיתֶ֑ם</l>
<l s="H3045">וִידַעְתֶּ֖ם</l>
<l s="H3588">כִּֽי</l>־<l s="H589">אֲנִ֥י</l>
<l s="H3068">יְהוָֽה</l>׃
</span>
<span class="v-num v-7">7</span><span class="v EK37_7" data-id="EK37_7">
<l s="H5012">וְנִבֵּ֖אתִי</l>
<l s="H834">כַּאֲשֶׁ֣ר</l>
<l s="H6680">צֻוֵּ֑יתִי</l>
<l s="H1961">וַֽיְהִי</l>־<l s="H6963">ק֤וֹל</l>
<l s="H5012">כְּהִנָּֽבְאִי֙</l>
<l s="H2009">וְהִנֵּה</l>־<l s="H7494">רַ֔עַשׁ</l>
<l s="H7126">וַתִּקְרְב֣וּ</l>
<l s="H6106">עֲצָמ֔וֹת</l>
<l s="H6106">עֶ֖צֶם</l>
<l s="H413">אֶל</l>־<l s="H6106">עַצְמֽוֹ</l>׃
</span>
<span class="v-num v-8">8</span><span class="v EK37_8" data-id="EK37_8">
<l s="H7200">וְרָאִ֜יתִי</l>
<l s="H2009">וְהִנֵּֽה</l>־<l s="H5921">עֲלֵיהֶ֤ם</l>
<l s="H1517">גִּדִים֙</l>
<l s="H1320">וּבָשָׂ֣ר</l>
<l s="H5927">עָלָ֔ה</l>
<l s="H7159">וַיִּקְרַ֧ם</l>
<l s="H5921">עֲלֵיהֶ֛ם</l>
<l s="H5785">ע֖וֹר</l>
<l s="H4605">מִלְמָ֑עְלָה</l>
<l s="H7307">וְר֖וּחַ</l>
<l s="H369">אֵ֥ין</l>
<l s="H">בָּהֶֽם</l>׃
</span>
<span class="v-num v-9">9</span><span class="v EK37_9" data-id="EK37_9">
<l s="H559">וַיֹּ֣אמֶר</l>
<l s="H413">אֵלַ֔י</l>
<l s="H5012">הִנָּבֵ֖א</l>
<l s="H413">אֶל</l>־<l s="H7307">הָר֑וּחַ</l>
<l s="H5012">הִנָּבֵ֣א</l>
<l s="H1121">בֶן</l>־<l s="H120">אָ֠דָם</l>
<l s="H559">וְאָמַרְתָּ֨</l>
<l s="H413">אֶל</l>־<l s="H7307">הָר֜וּחַ</l>
<l s="H3541">כֹּֽה</l>־<l s="H559">אָמַ֣ר</l>
׀
<l s="H136">אֲדֹנָ֣י</l>
<l s="H3069">יְהוִ֗ה</l>
<l s="H702">מֵאַרְבַּ֤ע</l>
<l s="H7307">רוּחוֹת֙</l>
<l s="H935">בֹּ֣אִי</l>
<l s="H7307">הָר֔וּחַ</l>
<l s="H5301">וּפְחִ֛י</l>
<l s="H2026">בַּהֲרוּגִ֥ים</l>
<l s="H428">הָאֵ֖לֶּה</l>
<l s="H2421">וְיִֽחְיֽוּ</l>׃
</span>
<span class="v-num v-10">10</span><span class="v EK37_10" data-id="EK37_10">
<l s="H5012">וְהִנַּבֵּ֖אתִי</l>
<l s="H834">כַּאֲשֶׁ֣ר</l>
<l s="H6680">צִוָּ֑נִי</l>
<l s="H935">וַתָּבוֹא֩</l>
<l s="H">בָהֶ֨ם</l>
<l s="H7307">הָר֜וּחַ</l>
<l s="H2421">וַיִּֽחְי֗וּ</l>
<l s="H5975">וַיַּֽעַמְדוּ֙</l>
<l s="H5921">עַל</l>־<l s="H7272">רַגְלֵיהֶ֔ם</l>
<l s="H2428">חַ֖יִל</l>
<l s="H1419">גָּד֥וֹל</l>
<l s="H3966">מְאֹד</l>־<l s="H3966">מְאֹֽד</l>׃
ס
</span>
<span class="v-num v-11">11</span><span class="v EK37_11" data-id="EK37_11">
<l s="H559">וַיֹּאמֶר֮</l>
<l s="H413">אֵלַי֒</l>
<l s="H1121">בֶּן</l>־<l s="H120">אָדָ֕ם</l>
<l s="H6106">הָעֲצָמ֣וֹת</l>
<l s="H428">הָאֵ֔לֶּה</l>
<l s="H3605">כָּל</l>־<l s="H1004">בֵּ֥ית</l>
<l s="H3478">יִשְׂרָאֵ֖ל</l>
<l s="H1992">הֵ֑מָּה</l>
<l s="H2009">הִנֵּ֣ה</l>
<l s="H559">אֹמְרִ֗ים</l>
<l s="H3001">יָבְשׁ֧וּ</l>
<l s="H6106">עַצְמוֹתֵ֛ינוּ</l>
<l s="H6">וְאָבְדָ֥ה</l>
<l s="H8615">תִקְוָתֵ֖נוּ</l>
<l s="H1504">נִגְזַ֥רְנוּ</l>
<l s="H">לָֽנוּ</l>׃
</span>
<span class="v-num v-12">12</span><span class="v EK37_12" data-id="EK37_12">
<l s="H3651">לָכֵן֩</l>
<l s="H5012">הִנָּבֵ֨א</l>
<l s="H559">וְאָמַרְתָּ֜</l>
<l s="H413">אֲלֵיהֶ֗ם</l>
<l s="H3541">כֹּֽה</l>־<l s="H559">אָמַר֮</l>
<l s="H136">אֲדֹנָ֣י</l>
<l s="H3069">יְהוִה֒</l>
<l s="H2009">הִנֵּה֩</l>
<l s="H589">אֲנִ֨י</l>
<l s="H6605">פֹתֵ֜חַ</l>
<l s="H853">אֶת</l>־<l s="H6913">קִבְרֽוֹתֵיכֶ֗ם</l>
<l s="H5927">וְהַעֲלֵיתִ֥י</l>
<l s="H853">אֶתְכֶ֛ם</l>
<l s="H6913">מִקִּבְרוֹתֵיכֶ֖ם</l>
<l s="H5971">עַמִּ֑י</l>
<l s="H935">וְהֵבֵאתִ֥י</l>
<l s="H853">אֶתְכֶ֖ם</l>
<l s="H413">אֶל</l>־<l s="H127">אַדְמַ֥ת</l>
<l s="H3478">יִשְׂרָאֵֽל</l>׃
ס
</span>
<span class="v-num v-13">13</span><span class="v EK37_13" data-id="EK37_13">
<l s="H3045">וִֽידַעְתֶּ֖ם</l>
<l s="H3588">כִּֽי</l>־<l s="H589">אֲנִ֣י</l>
<l s="H3068">יְהוָ֑ה</l>
<l s="H6605">בְּפִתְחִ֣י</l>
<l s="H853">אֶת</l>־<l s="H6913">קִבְרֽוֹתֵיכֶ֗ם</l>
<l s="H5927">וּבְהַעֲלוֹתִ֥י</l>
<l s="H853">אֶתְכֶ֛ם</l>
<l s="H6913">מִקִּבְרוֹתֵיכֶ֖ם</l>
<l s="H5971">עַמִּֽי</l>׃
</span>
<span class="v-num v-14">14</span><span class="v EK37_14" data-id="EK37_14">
<l s="H5414">וְנָתַתִּ֨י</l>
<l s="H7307">רוּחִ֤י</l>
<l s="H">בָכֶם֙</l>
<l s="H2421">וִחְיִיתֶ֔ם</l>
<l s="H3240">וְהִנַּחְתִּ֥י</l>
<l s="H853">אֶתְכֶ֖ם</l>
<l s="H5921">עַל</l>־<l s="H127">אַדְמַתְכֶ֑ם</l>
<l s="H3045">וִידַעְתֶּ֞ם</l>
<l s="H3588">כִּי</l>־<l s="H589">אֲנִ֧י</l>
<l s="H3068">יְהוָ֛ה</l>
<l s="H1696">דִּבַּ֥רְתִּי</l>
<l s="H6213">וְעָשִׂ֖יתִי</l>
<l s="H5002">נְאֻם</l>־<l s="H3068">יְהוָֽה</l>׃
פ
</span>
<span class="v-num v-15">15</span><span class="v EK37_15" data-id="EK37_15">
<l s="H1961">וַיְהִ֥י</l>
<l s="H1697">דְבַר</l>־<l s="H3068">יְהוָ֖ה</l>
<l s="H413">אֵלַ֥י</l>
<l s="H559">לֵאמֹֽר</l>׃
</span>
<span class="v-num v-16">16</span><span class="v EK37_16" data-id="EK37_16">
<l s="H859">וְאַתָּ֣ה</l>
<l s="H1121">בֶן</l>־<l s="H120">אָדָ֗ם</l>
<l s="H3947">קַח</l>־<l s="H">לְךָ֙</l>
<l s="H6086">עֵ֣ץ</l>
<l s="H259">אֶחָ֔ד</l>
<l s="H3789">וּכְתֹ֤ב</l>
<l s="H5921">עָלָיו֙</l>
<l s="H3063">לִֽיהוּדָ֔ה</l>
<l s="H1121">וְלִבְנֵ֥י</l>
<l s="H3478">יִשְׂרָאֵ֖ל</l>
<l s="H2270">חברו</l>
<l s="H3947">וּלְקַח֙</l>
<l s="H6086">עֵ֣ץ</l>
<l s="H259">אֶחָ֔ד</l>
<l s="H3789">וּכְת֣וֹב</l>
<l s="H5921">עָלָ֗יו</l>
<l s="H3130">לְיוֹסֵף֙</l>
<l s="H6086">עֵ֣ץ</l>
<l s="H669">אֶפְרַ֔יִם</l>
<l s="H3605">וְכָל</l>־<l s="H1004">בֵּ֥ית</l>
<l s="H3478">יִשְׂרָאֵ֖ל</l>
<l s="H2270">חברו</l>׃
</span>
<span class="v-num v-17">17</span><span class="v EK37_17" data-id="EK37_17">
<l s="H7126">וְקָרַ֨ב</l>
<l s="H853">אֹתָ֜ם</l>
<l s="H259">אֶחָ֧ד</l>
<l s="H413">אֶל</l>־<l s="H259">אֶחָ֛ד</l>
<l s="H">לְךָ֖</l>
<l s="H6086">לְעֵ֣ץ</l>
<l s="H259">אֶחָ֑ד</l>
<l s="H1961">וְהָי֥וּ</l>
<l s="H259">לַאֲחָדִ֖ים</l>
<l s="H3027">בְּיָדֶֽךָ</l>׃
</span>
<span class="v-num v-18">18</span><span class="v EK37_18" data-id="EK37_18">
<l s="H834">וְכַֽאֲשֶׁר֙</l>
<l s="H559">יֹאמְר֣וּ</l>
<l s="H413">אֵלֶ֔יךָ</l>
<l s="H1121">בְּנֵ֥י</l>
<l s="H5971">עַמְּךָ֖</l>
<l s="H559">לֵאמֹ֑ר</l>
<l s="H3808">הֲלֽוֹא</l>־<l s="H5046">תַגִּ֥יד</l>
<l s="H">לָ֖נוּ</l>
<l s="H4100">מָה</l>־<l s="H428">אֵ֥לֶּה</l>
<l s="H">לָּֽךְ</l>׃
</span>
<span class="v-num v-19">19</span><span class="v EK37_19" data-id="EK37_19">
<l s="H1696">דַּבֵּ֣ר</l>
<l s="H413">אֲלֵהֶ֗ם</l>
<l s="H3541">כֹּֽה</l>־<l s="H559">אָמַר֮</l>
<l s="H136">אֲדֹנָ֣י</l>
<l s="H3069">יְהוִה֒</l>
<l s="H2009">הִנֵּה֩</l>
<l s="H589">אֲנִ֨י</l>
<l s="H3947">לֹקֵ֜חַ</l>
<l s="H853">אֶת</l>־<l s="H6086">עֵ֤ץ</l>
<l s="H3130">יוֹסֵף֙</l>
<l s="H834">אֲשֶׁ֣ר</l>
<l s="H3027">בְּיַד</l>־<l s="H669">אֶפְרַ֔יִם</l>
<l s="H7626">וְשִׁבְטֵ֥י</l>
<l s="H3478">יִשְׂרָאֵ֖ל</l>
<l s="H2270">חברו</l>
<l s="H5414">וְנָתַתִּי֩</l>
<l s="H853">אוֹתָ֨ם</l>
<l s="H5921">עָלָ֜יו</l>
<l s="H854">אֶת</l>־<l s="H6086">עֵ֣ץ</l>
<l s="H3063">יְהוּדָ֗ה</l>
<l s="H6213">וַֽעֲשִׂיתִם֙</l>
<l s="H6086">לְעֵ֣ץ</l>
<l s="H259">אֶחָ֔ד</l>
<l s="H1961">וְהָי֥וּ</l>
<l s="H259">אֶחָ֖ד</l>
<l s="H3027">בְּיָדִֽי</l>׃
</span>
<span class="v-num v-20">20</span><span class="v EK37_20" data-id="EK37_20">
<l s="H1961">וְהָי֨וּ</l>
<l s="H6086">הָעֵצִ֜ים</l>
<l s="H834">אֲֽשֶׁר</l>־<l s="H3789">תִּכְתֹּ֧ב</l>
<l s="H5921">עֲלֵיהֶ֛ם</l>
<l s="H3027">בְּיָדְךָ֖</l>
<l s="H5869">לְעֵינֵיהֶֽם</l>׃
</span>
<span class="v-num v-21">21</span><span class="v EK37_21" data-id="EK37_21">
<l s="H1696">וְדַבֵּ֣ר</l>
<l s="H413">אֲלֵיהֶ֗ם</l>
<l s="H3541">כֹּֽה</l>־<l s="H559">אָמַר֮</l>
<l s="H136">אֲדֹנָ֣י</l>
<l s="H3069">יְהוִה֒</l>
<l s="H2009">הִנֵּ֨ה</l>
<l s="H589">אֲנִ֤י</l>
<l s="H3947">לֹקֵ֙חַ֙</l>
<l s="H853">אֶת</l>־<l s="H1121">בְּנֵ֣י</l>
<l s="H3478">יִשְׂרָאֵ֔ל</l>
<l s="H996">מִבֵּ֥ין</l>
<l s="H1471">הַגּוֹיִ֖ם</l>
<l s="H834">אֲשֶׁ֣ר</l>
<l s="H1980">הָֽלְכוּ</l>־<l s="H8033">שָׁ֑ם</l>
<l s="H6908">וְקִבַּצְתִּ֤י</l>
<l s="H853">אֹתָם֙</l>
<l s="H5439">מִסָּבִ֔יב</l>
<l s="H935">וְהֵבֵאתִ֥י</l>
<l s="H853">אוֹתָ֖ם</l>
<l s="H413">אֶל</l>־<l s="H127">אַדְמָתָֽם</l>׃
</span>
<span class="v-num v-22">22</span><span class="v EK37_22" data-id="EK37_22">
<l s="H6213">וְעָשִׂ֣יתִי</l>
<l s="H853">אֹ֠תָם</l>
<l s="H1471">לְג֨וֹי</l>
<l s="H259">אֶחָ֤ד</l>
<l s="H776">בָּאָ֙רֶץ֙</l>
<l s="H2022">בְּהָרֵ֣י</l>
<l s="H3478">יִשְׂרָאֵ֔ל</l>
<l s="H4428">וּמֶ֧לֶךְ</l>
<l s="H259">אֶחָ֛ד</l>
<l s="H1961">יִֽהְיֶ֥ה</l>
<l s="H3605">לְכֻלָּ֖ם</l>
<l s="H4428">לְמֶ֑לֶךְ</l>
<l s="H3808">וְלֹ֤א</l>
<l s="H1961">יהיה</l>
־<l s="H1961">עוֹד֙</l>
<l s="H8147">לִשְׁנֵ֣י</l>
<l s="H1471">גוֹיִ֔ם</l>
<l s="H3808">וְלֹ֨א</l>
<l s="H2673">יֵחָ֥צוּ</l>
<l s="H5750">ע֛וֹד</l>
<l s="H8147">לִשְׁתֵּ֥י</l>
<l s="H4467">מַמְלָכ֖וֹת</l>
<l s="H5750">עֽוֹד</l>׃
</span>
<span class="v-num v-23">23</span><span class="v EK37_23" data-id="EK37_23">
<l s="H3808">וְלֹ֧א</l>
<l s="H2930">יִֽטַמְּא֣וּ</l>
<l s="H5750">ע֗וֹד</l>
<l s="H1544">בְּגִלּֽוּלֵיהֶם֙</l>
<l s="H8251">וּבְשִׁקּ֣וּצֵיהֶ֔ם</l>
<l s="H3605">וּבְכֹ֖ל</l>
<l s="H6588">פִּשְׁעֵיהֶ֑ם</l>
<l s="H3467">וְהוֹשַׁעְתִּ֣י</l>
<l s="H853">אֹתָ֗ם</l>
<l s="H3605">מִכֹּ֤ל</l>
<l s="H4186">מוֹשְׁבֹֽתֵיהֶם֙</l>
<l s="H834">אֲשֶׁ֣ר</l>
<l s="H2398">חָטְא֣וּ</l>
<l s="H">בָהֶ֔ם</l>
<l s="H2891">וְטִהַרְתִּ֤י</l>
<l s="H853">אוֹתָם֙</l>
<l s="H1961">וְהָיוּ</l>־<l s="H">לִ֣י</l>
<l s="H5971">לְעָ֔ם</l>
<l s="H589">וַאֲנִ֕י</l>
<l s="H1961">אֶהְיֶ֥ה</l>
<l s="H">לָהֶ֖ם</l>
<l s="H430">לֵאלֹהִֽים</l>׃
</span>
<span class="v-num v-24">24</span><span class="v EK37_24" data-id="EK37_24">
<l s="H5650">וְעַבְדִּ֤י</l>
<l s="H1732">דָוִד֙</l>
<l s="H4428">מֶ֣לֶךְ</l>
<l s="H5921">עֲלֵיהֶ֔ם</l>
<l s="H7462">וְרוֹעֶ֥ה</l>
<l s="H259">אֶחָ֖ד</l>
<l s="H1961">יִהְיֶ֣ה</l>
<l s="H3605">לְכֻלָּ֑ם</l>
<l s="H4941">וּבְמִשְׁפָּטַ֣י</l>
<l s="H3212">יֵלֵ֔כוּ</l>
<l s="H2708">וְחֻקֹּתַ֥י</l>
<l s="H8104">יִשְׁמְר֖וּ</l>
<l s="H6213">וְעָשׂ֥וּ</l>
<l s="H853">אוֹתָֽם</l>׃
</span>
<span class="v-num v-25">25</span><span class="v EK37_25" data-id="EK37_25">
<l s="H3427">וְיָשְׁב֣וּ</l>
<l s="H5921">עַל</l>־<l s="H776">הָאָ֗רֶץ</l>
<l s="H834">אֲשֶׁ֤ר</l>
<l s="H5414">נָתַ֙תִּי֙</l>
<l s="H5650">לְעַבְדִּ֣י</l>
<l s="H3290">לְיַֽעֲקֹ֔ב</l>
<l s="H834">אֲשֶׁ֥ר</l>
<l s="H3427">יָֽשְׁבוּ</l>־<l s="H">בָ֖הּ</l>
<l s="H1">אֲבֽוֹתֵיכֶ֑ם</l>
<l s="H3427">וְיָשְׁב֣וּ</l>
<l s="H5921">עָלֶ֡יהָ</l>
<l s="H1992">הֵ֠מָּה</l>
<l s="H1121">וּבְנֵיהֶ֞ם</l>
<l s="H1121">וּבְנֵ֤י</l>
<l s="H1121">בְנֵיהֶם֙</l>
<l s="H5704">עַד</l>־<l s="H5769">עוֹלָ֔ם</l>
<l s="H1732">וְדָוִ֣ד</l>
<l s="H5650">עַבְדִּ֔י</l>
<l s="H5387">נָשִׂ֥יא</l>
<l s="H">לָהֶ֖ם</l>
<l s="H5769">לְעוֹלָֽם</l>׃
</span>
<span class="v-num v-26">26</span><span class="v EK37_26" data-id="EK37_26">
<l s="H3772">וְכָרַתִּ֤י</l>
<l s="H">לָהֶם֙</l>
<l s="H1285">בְּרִ֣ית</l>
<l s="H7965">שָׁל֔וֹם</l>
<l s="H1285">בְּרִ֥ית</l>
<l s="H5769">עוֹלָ֖ם</l>
<l s="H1961">יִהְיֶ֣ה</l>
<l s="H854">אוֹתָ֑ם</l>
<l s="H5414">וּנְתַתִּים֙</l>
<l s="H7235">וְהִרְבֵּיתִ֣י</l>
<l s="H853">אוֹתָ֔ם</l>
<l s="H5414">וְנָתַתִּ֧י</l>
<l s="H853">אֶת</l>־<l s="H4720">מִקְדָּשִׁ֛י</l>
<l s="H8432">בְּתוֹכָ֖ם</l>
<l s="H5769">לְעוֹלָֽם</l>׃
</span>
<span class="v-num v-27">27</span><span class="v EK37_27" data-id="EK37_27">
<l s="H1961">וְהָיָ֤ה</l>
<l s="H4908">מִשְׁכָּנִי֙</l>
<l s="H5921">עֲלֵיהֶ֔ם</l>
<l s="H1961">וְהָיִ֥יתִי</l>
<l s="H">לָהֶ֖ם</l>
<l s="H430">לֵֽאלֹהִ֑ים</l>
<l s="H1992">וְהֵ֖מָּה</l>
<l s="H1961">יִֽהְיוּ</l>־<l s="H">לִ֥י</l>
<l s="H5971">לְעָֽם</l>׃
</span>
<span class="v-num v-28">28</span><span class="v EK37_28" data-id="EK37_28">
<l s="H3045">וְיָֽדְעוּ֙</l>
<l s="H1471">הַגּוֹיִ֔ם</l>
<l s="H3588">כִּ֚י</l>
<l s="H589">אֲנִ֣י</l>
<l s="H3068">יְהוָ֔ה</l>
<l s="H6942">מְקַדֵּ֖שׁ</l>
<l s="H853">אֶת</l>־<l s="H3478">יִשְׂרָאֵ֑ל</l>
<l s="H1961">בִּהְי֧וֹת</l>
<l s="H4720">מִקְדָּשִׁ֛י</l>
<l s="H8432">בְּתוֹכָ֖ם</l>
<l s="H5769">לְעוֹלָֽם</l>׃
ס
</span>
</div>
</div><br>
<div class="footer"><div class="nav">
<a class="prev" href="EK36.html"><</a>
<a class="home" href="index.html">=</a>
<a class="next" href="EK38.html">></a>
</div></div>
</body>
</html>
|
html
|
New Delhi: The Network of Women in Media, India (NWMI) along with many eminent personalities and journalists have expressed concerns over the rising trend of “powerful men seeking gag orders on the media” in sexual assault and harassment cases.
In a detailed statement, the signatories have made examples of situations where such gagging has occurred. The signatories refer to the latest instance where the accused obtained a gag order on any media coverage by a trial court in the alleged abduction and assault of a woman actor in Kerala. Hearings on the case are currently underway in Ernakulam trial court.
The trial commenced in-camera in January 2020. In March, the accused obtained a gag order from the court against the media’s coverage of the case. In September, he filed a petition in the same court against 10 media houses for allegedly violating the gag order – the hearings in this matter, too, are currently ongoing, the statement noted.
This pattern of seeking gag orders against reportage in such cases by the accused has now become a trend, said the statement, which cited other examples of powerful men across fields obtaining such gag orders.
“We stand in solidarity with survivors of sexual harassment and assault. While prioritising the privacy and dignity of survivors above all else, we believe that responsible reporting of broad facts in rape trials is in the interests of justice,” the group said.
When sexual harassment allegations against BJP MP Tejasvi Surya surfaced on social media in March 2019, he obtained a temporary injunction from a Bengaluru sessions court banning 49 media outlets from publishing anything “defamatory” or “derogatory” against him. The following month, the Karnataka high court set aside the injunction.
In July 2020, the Delhi high court lifted its 2017 gag order restraining publication of articles and comments on sexual harassment allegations against Mumbai-based venture capitalist Mahesh Murthy. In 2014, the Delhi high court had issued a gag order on publication and telecast of a law intern’s sexual harassment complaint against a former Supreme Court judge.
Earlier this year, an ad-interim injunction was passed by a court in New Delhi directing several publications to take down articles about sexual harassment complaints against a sitting Rajya Sabha MP’s son, while he himself pursued a defamation suit against one of his accusers as well as various media platforms that ran the story.
“In the context of rape in particular, a trend where the accused seeks to prevent media from covering trials presents a unique challenge for media reportage,” notes the statement.
According to news reports, the petition filed by the Malayalam actor argues that “the continued illegal act of publishing matters in relation to the in-camera proceedings in this case” are calculated to injure his reputation and violate his fundamental right to fair trial.
The choice of words in the petition underlines the irony of the situation: Section 327(2) of the CrPC mandates that rape inquiries and trials should be conducted in-camera; and Section 327(3) mandates that it is unlawful to print or publish any matter related to in-camera proceedings without the court’s previous permission.
“These provisions cannot be invoked by accused persons to silence the media or women survivors…Anonymity is given by law to a woman survivor, and not to hide the misdeeds of a male accused,” NWIM says.
These legal provisions were introduced in India with the intention of safeguarding the identity and privacy of survivors in a society that tends to shame women who have faced sexual assault and harassment. They were not introduced to protect the reputation of a person accused of committing an offence of rape, their statement reads.
The statement also makes a case for the intimidation of witnesses through the use of gag orders.
“Clearly, there can be no public opinion if there is no information in the public realm. We believe this is why powerful accused are increasingly trying to suppress the social media and news media, in a scenario where most systems are already weighted heavily in their favour,” NWMI said in the statement.
“We appreciate the vigilance of courts against irresponsible journalism, but urge that responsible, sensitive reporting of basic facts such as witnesses not turning up, witnesses retracting previous statements, hostile behaviour of the accused against the survivor and so on, should be allowed in the public interest and in the interests of the victim/survivor,” the group said.
The full list of signatories is below:
|
english
|
1 Bakwetu, nimi zibisa kuti evengeli ini ba mi wambili imuba tambuli ni ku zimana. 2 Kayo evangeli njimi haza heba muibika kakuti niba imhi, heba nimu wondisa che ziho manzwi aniba kutazi kwenu, chikuna bulyo intumelo yenu kaina intuso. 3 Kakuti, matangilo, zimwi za butokwa zini ba tambuli: Kuti Jesu aba tu fwili bakeñicha zibi zetu, kakuya cha mañolo, 4 kuti aba zikwa, imi aba buswa che zuba lya butatu cha kuya cha mañolo. 5 Mukuti aba boneki kwa Cefasi, niku balutwana bena ikumi niyenke, 6 Cwale aba bonahali ku chicaba china myanda yilikana iyanza cheyo inako. Bamwi kubali basi hala, bamwi cibaba lali. 7 Cwale cha libonahaza kwa James, mi ni kuba Apositola. 8 Ku ma manimani, cha libonahaza kwangu, sina mwana yaba zalwa che nako ifosahele. 9 Njeme nimunini ku ba Apositola mi kani lukeli ku sumpwa Muapositola, kakuli niba nyandisi ikeleke ye Ireeza. 10 Kono ka chisemo che Ireeza njeme chili icho, mi chisemo chakwe kwangu kana niba chi hewa kusena intuso. Mukuti, niba sebezi cheziho ku hita bamwi. imi kana ibali njeme. Kono chisemo che Ireeza china kwangu. 11 Heba ime kapa abo chitu kutaza niku zumina. 12 Linu ku lutwa kuti krisite aba buki fubafu, cwale cinzi bamwi haba kanana kuti kakwina kubuswa ku bafu? 13 Kono heba kakwina kubuswa kubafu, cwale nji kuti ni Jesu kana aba buki kubafu, 14 Imi heba Jesu kana aba buki, cwale inkutazo zetu kazina intuso. mi ni ntumelo yenu kaina intuso. 15 Imi tu wanika kuti tu mpanki za mapa kuamana ni Ireeza. Mukuti tuba paki kuti Ireeza aba busi Jesu, kanti kana aba mubusi, 16 Heba kuti bafu kena babuswa, mini Jesu kana aba buswa kubafu. 17 Kambe Jesu kana aba buswa, intumelo yenu kaina intuso, imi musina mucibi. 18 Abo baba fwi ni Jesu baba fwilili, 19 Haiba tusepete jesu mubuhalo bwetu bu mana, tumaibite ku hita bonse ba fwile. 20 Kono krisite aba buswa kuba fwile ceyo inako, nji chichelo che ntazi kuba fwile. 21 Sina ifu hali bezi cha muntu, imi ka muntu kubuswa kubezi chefu. 22 Kono cha Adama bonse baba fwi, mi hape bonse ka bahale. 23 Muntu ni muntu ka buke che nako yakwe: Kirisite, chililo che ntanzi, imi nabo ba wanika kwa Krisite kabeze ba buswe hete na keze. 24 Imi kaibe nji mamanimani, Krisite hete na tambike mubuso kwe Ireeza Tayo. Njinako yete na manise milao, mubuso ne nguzu, 25 Kono u swanela ku busa kuhita zila zakwe chiza ba mwi konde lya matende akwe. 26 Chila cha mamanimani ku ku maniswa ifu. 27 Kono,”Iye cha bika zintu zonse mwi konde lya matende akwe”, Kono hachi wamba kuti” aba biki zintu zonse”, imi zintu zonse ziba bikwa mwi konde lyakwe, ku zuweka iye ka balwa mwa teni. 28 Imi zintu zonse chiza bikwa mwi konde lyakwe, imi ni mwana kabikwe mu mata akwe. Ilikuti Ireeza abe wa zintu zonse kubantu bonse. 29 Kapa ka tende nji abo ba ba kolobezwa kubafu? Heba bafu kete ni ba buswe, heba bafu kaba buki chi haba kolobezwa? 30 Imi chinzi neswe hatu hala mubukabo inako yonse? 31 Ni wamba buniti bakwetu, sina hanina ibaka lya kulitemba kenu kwa Jesu Krisite Simwine wetu, nicho, kuti nina mwi fu izuba ne zuba, 32 Chinzi cini wana ku muntu, heba kuti niba lwi ni zibatana mwa Efese kamukwa wa bantu fela, heba kuti bafu kete niba buke? Cwale tulye niku nywa, kakuti lye izona katufwe. 33 Kanji mulicengi, kuti itwayelano imbi zi sinya mukwa mulotu, 34 Mulilekule! Mi muhale cha ku luka! Imi kanji mutendi chibi. sina bamwi kwenu habasena inzibo ye Ireeza. Nimi wambila izo kuti muswabe. 35 Kono zumwi mwa ka wambe, “Bafu babuswa ka mubili wina buti? 36 Kubula ingana kwako! Ili kuli cho byala kachi woli ku mena konji hacifwa. 37 Imi cho byala kanji wona mubili wete ube, kono u byala imbuto isa zwete. Iwola kwiza ka buloto kapa chimwi chintu. 38 Kono Ireeza kahe mubili kaku keta, mi ke mbuto ni mbuto ka mubili wayo, 39 Inyama zonse kazi swani, kono inyama ya bantu ingi, ni imwi nyama ya zinyolozi, imwi nyama ya zizuni, imwi inyama yenswi. 40 Hape kwina mibili ya kwi wulu, ne mibili ya hansi. Kono ikanya yo mubili wo kwi wulu ungi, ni kanya ya mubili wa hansi ingi. 41 Kwina ikanya yonke ye zuba, ni kanya ya mwezi, ni kanya ye nkani. Kono inkani ne nkani i chinchana kwi kanya. 42 Niku buka kwa bafu kakube bulyo. Mubili u byalwa ni usa boli, imi kau buke nosa boli, imbuto isana iba byalwa hande kai bukile mwi kanya. 43 Kai byalwe ni ifokwele; mi kaibuke ne nguzu. 44 Iba byalwa ka mubili wina bulyo; mi kau buke mumubili wa luhuho. Heba kwina mubili bulyo, mi kwina mubili wa luhuho. 45 Imi kuñoletwe kuti, “Mukwame we ntanzi Adama aba bi mubili u hala. Adama wa mamanimani aba hi luhuho lwa buhalo. 46 Kono luhuho kena luba kezi lwe ntanzi kono che nyama, chichilila che nyama. 47 Mukwame we ntanzi wa hansi, aba bumbwa he longo. Mukwame wa bubeli uzwa kwi wulu. 48 Mwe kalile wa hansi, ni bahansi mube kalile. Mi mwe kalile we kwiwulu, niba kwiwulu mube kalile. 49 Sina hatu zabele chiswaniso che longo, mutu zabale bulyo ni chiswaniso ca kwiwulu. 50 Linu ni cho kuti, bakwetu, malaha ni nyama kazi woli ku muna mubuso we Ireeza. Mi chi bola kachi woli ku muna chisa boli. 51 Mubone nimi wambila indaba yiba patitwe: Tubonse kete ni tufwe, kono tubonse katu sanduke. 52 Tubonse katu sanduke chaku koba kwe liinso, che mpeta ya mamanimani. Impeta kazi lile, mi bafwile kaba buswe ku bafu. 53 Mi chi bola ci zwate kusa bola, mi cifwa chi zwate kusa fwa. 54 Chi bola keyo inako muchi zwate chisa boli, mi chifwa chi zwate kusafwa, mi kaku tendahale kenzwi ku ñoletwe kuti, imi ifu liba minwa niku shila. 55 Iwe ifu ku shila kwako kwinahi? Iwe ifu, chihaiso chako chinahi? 56 Chihaiso chefu chibi, mi inguzu ze chibi mulao. 57 Kono tumela kwe Ireeza yaba tuhi ku tula kwa Simwine Jesu Krisite! 58 Cwale bakwetu, mukole kanji munyanganiswa. Mi mukole mumisebezi ya Simwine, ni mwizi kuti misebezi yenu kwa Simwine ina intuso.
|
english
|
<reponame>lofung/Achilles-demo
{"PREVALENCE_BY_GENDER_AGE_YEAR":{"TRELLIS_NAME":[],"SERIES_NAME":[],"X_CALENDAR_YEAR":[],"Y_PREVALENCE_1000PP":[]},"PREVALENCE_BY_MONTH":{"X_CALENDAR_MONTH":[],"Y_PREVALENCE_1000PP":[]},"CONDITIONS_BY_TYPE":{"CONCEPT_NAME":"Observation recorded from EHR","COUNT_VALUE":113},"AGE_AT_FIRST_DIAGNOSIS":{"CATEGORY":["MALE","FEMALE"],"MIN_VALUE":[1,0],"P10_VALUE":[2,8],"P25_VALUE":[6,30],"MEDIAN_VALUE":[20,55],"P75_VALUE":[52,68],"P90_VALUE":[64,76],"MAX_VALUE":[84,93]}}
|
json
|
The issue of special and differential treatment (S&D) has resurfaced in a contentious manner in the WTO negotiations as the US started redefining the rules of the game again. This was possible to an extent because Jair Bolsonaro, the President of Brazil, agreed to forgo S&D treatment at the WTO during his March 19-20 visit to the US. S&D treatment has been one of the cardinal principles of WTO functioning to keep the developing and developed countries under one roof and to sustain the interest of developing countries in multilateralism.
Since the inception of GATT, the rules of multilateral trade policy regime haven’t adequately addressed the needs and concerns of developing countries. The adjustment costs borne by these countries in adapting to a changed environment have been disproportionately high. As a result, developing countries argue that taking on multilateral commitments and obligations would be difficult as they are currently in different stages of economic, financial and technological developments. Leaders of these countries further insist that special advantages and flexibilities may be provided to them so that they are in a position to adopt appropriate national policies to support their trade regime. This, in essence, came to be known as S&D provisions.
However, the concept and interpretation of S&D provisions have changed over the years. From GATT to Uruguay Round (UR) to the establishment of the WTO in 1995, S&D provisions have undergone dramatic changes. Prior to the UR, the focus of S&D treatment was to recognise the special problem of development faced by developing countries and offer necessary flexibilities to pursue policy options appropriate for industrialisation and economic development, whereas in the UR it was geared towards recognising the special problems that developing countries may face in the implementation and signing the agreement as a single undertaking. Such a shift in focus tends to provide limited policy flexibilities for developing and least developed countries (LDCs) to negotiate on crucial issues such as agriculture, NAMA and services.
During the Doha Round of negotiations, the issue of S&D gained prominence as it had a direct bearing on the overall development dimension of developing countries. It was realised that to empower developing countries, it is important to strengthen S&D provisions. Member countries in the Doha Declaration agreed that all S&D treatment provisions should be reviewed with a view to strengthening them and making them more precise, effective and operational.
However, negotiations on S&D provisions for so many decades have led to serious differentiation between developed and developing countries, as it has become difficult to identify and assess countries with ‘developing-developed’ status as S&D provisions were primarily meant only for developing countries. According to these, it is only the developing countries that need to be benefiting from the system.
Currently, the US, under the leadership of Donald Trump, feels that many developing countries are taking the advantage of the provisions and the system because the way they have declared themselves as developing countries under self-declaration and self-selection is not correct, rather it’s mischievous or misleading. Trump is of the view that some developing countries have become major players in global markets in their own right. Their exports have grown to equate almost half of total world exports, with a group of largest developing countries accounting for some three-quarters of that share. Thus, the US believes such developing countries should be declared as ‘developed countries’ instead of them being called ‘developing’.
The US, in an attempt to redefine S&D provisions, has proposed to limit WTO’s practice of allowing countries to self-declare their developing status in order to receive special treatment. The US expects all large players—advanced or emerging—to play by the same rules. China, India and others have reiterated that their self-declaration is appropriate in the WTO context, highlighting the importance of S&D treatment for development. They argue that holding a high share in world trade doesn’t necessarily make a country ‘developed’. China, India and others rebut that per capita indicators have priority when assessing development levels, and it’s not the share in global trade beyond certain percentage points that can disqualify them to be termed as ‘self-selection or self-declaration developing country’.
Yet, in practice, the issue of heterogeneity across developing member countries and differentiation is seen. Implementation of the WTO Trade Facilitation Agreement (TFA) has witnessed significant differentiation as countries self-determine their need for transition periods and technical assistance. Nine developing members have notified their readiness to immediately implement all of their obligations, and 30 others—including Brazil and China—immediately implemented more than 75% of their commitments. Taiwan has also recently decided to give up S&D provisions.
This possibly convinces the US to take a fresh look at revisiting the terms and conditions of S&D provisions. To bridge the developed-developing country dichotomy among WTO members, a combination of actions may be considered. Countries can follow Taiwan’s example—and now Brazil’s—and not claim differentiated treatment, without the need to first declare themselves as ‘developed’. However, developing member countries argue technical assistance and capacity-building support for development and reform in developing economies is essential for success, and is in the interest of both the recipients and providers of assistance.
|
english
|
{
"id": 90239,
"name": "人大校花入住Google(google.com)",
"description": "人大校花入住Google首页",
"user": {
"id": 196170,
"name": "谦哥",
"email": "<PASSWORD>",
"paypal_email": "<EMAIL>",
"homepage": "http://www.justidea.cn",
"about": null,
"license": "publicdomain"
},
"updated": "2013-07-08T03:04:36.000Z",
"weekly_install_count": 0,
"total_install_count": 181,
"rating": null,
"after_screenshot_name": "https://userstyles.org/style_screenshots/90239_after.jpeg?r=1589270581",
"obsoleting_style_id": null,
"obsoleting_style_name": null,
"obsolete": 0,
"admin_delete_reason_id": null,
"obsoletion_message": null,
"screenshots": null,
"license": null,
"created": "2013-07-08T03:04:36.000Z",
"category": "site",
"raw_subcategory": null,
"subcategory": null,
"additional_info": "v1.0",
"style_tags": [],
"css": "@-moz-document regexp(\"https?://www\\\\.google(\\\\.com?)?(\\\\.[a-z][a-z])?/(|webhp\\\\?.*)\") {\r\nbody#gsr \r\n {\r\n background:url(http://justidea.oss.aliyuncs.com/1372303432180.jpg) !important;\r\n background-size: cover !important;\r\n }\r\n #gbg6 #gbi4t, #gbg4 #gbgs4d, #prm-pt, #ftby, #ftby a:visited, #prm-pt a, .ftl, #footer a {\r\n color: gainsboro !important;\r\n }\r\n #hplogo\r\n {\r\n display: none !important;\r\n }\r\n #lga\r\n {\r\n background-image: url(\"http://upload.wikimedia.org/wikipedia/commons/d/d5/Transparent_google_logo.png\") !important;\r\n background-position: center 111px !important;\r\n background-repeat: no-repeat !important;\r\n background-size: 275px 95px !important;\r\n }\r\n #mw, #cnt\r\n {\r\n background: white !important;\r\n }\r\n#footer{\r\n background: rgba(0, 0, 0, 0.4) !important;\r\n min-height: 18px !important;\r\n}\r\n#footer > div {\r\n\tborder-top:0 !important;\r\n\tpadding: 3px 0 2px !important;\r\n}\r\n}",
"discussions": [],
"discussionsCount": 0,
"commentsCount": 0,
"userjs_url": "/styles/userjs/90239/google-google-com.user.js",
"style_settings": []
}
|
json
|
<gh_stars>0
import fire
from paddle.custom_types import AnyPath
from paddle.inspection import inspect_dataset
def inspect_catalyst_dataset(subset: str, data_root: AnyPath = "data/complete"):
inspect_dataset(
subset=subset,
data_root=data_root,
do_display_box=False,
do_display_label=False,
do_display_score=False,
score_threshold=0.5,
)
if __name__ == "__main__":
fire.Fire(inspect_catalyst_dataset)
|
python
|
<reponame>Sourav4yogi/Python<filename>guessgame.py
import random
print('\tGuess the Number from 1 to 10 in 3 attempts')
num=random.randint(1,10)
def guess():
global g
g=int(input('Guess the number\n'))
return g
count=[]
g=None
guess()
while True:
if g==num and len(count)<=3:
print('You win\n')
break
elif g>num:
count.append(g)
if len(count)<3:
print('Try lower\n')
guess()
else:
print('You ran out of chances')
break
else:
count.append(g)
if len(count)<3:
print('Try higher\n')
guess()
else:
print('You ran out of chances')
break
|
python
|
import { Logger } from "@serverless-devs/core";
type LogColor =
| "black"
| "red"
| "green"
| "yellow"
| "blue"
| "magenta"
| "cyan"
| "white"
| "whiteBright"
| "gray";
export default class ComponentLogger {
static CONTENT = "COMPONENT";
static setContent(content) {
ComponentLogger.CONTENT = content;
}
static log(m, color?: LogColor) {
Logger.log(m, color);
}
static info(m) {
Logger.info(ComponentLogger.CONTENT, m);
}
static debug(m) {
Logger.debug(ComponentLogger.CONTENT, m);
}
static error(m) {
Logger.error(ComponentLogger.CONTENT, m);
}
static warning(m) {
Logger.warn(ComponentLogger.CONTENT, m);
}
static success(m) {
Logger.log(m, "green");
}
}
|
typescript
|
The “gum” is made from birch pitch, according to researchers, and was once chewed by the Stone Age woman. Birch pitch is a substance made by heating birch bark. Researchers successfully extracted a complete human genome from the birch pitch, which was found in Southern Denmark.
"It is amazing to have gotten a complete ancient human genome from anything other than bone," project leader Hannes Schroeder, an associate professor at the University of Copenhagen’s Globe Institute, said in a statement. "What is more, we also retrieved DNA from oral microbes and several important human pathogens, which makes this a very valuable source of ancient DNA, especially for time periods where we have no human remains. "
DNA analysis revealed that the birch pitch was chewed by a female, who is described as genetically closer to hunter-gatherers from mainland Europe than the inhabitants of Scandinavia at that time. Researchers believe that the woman likely had dark skin, dark hair and blue eyes.
Armed with this information, an artist’s impression of the woman, dubbed "Lola," was created.
Scientists also found DNA that could be related to the Epstein-Barr virus, underlining how items such as the Stone Age "chewing gum" could offer insight into the development of human pathogens.
“It can help us understand how pathogens have evolved and spread over time, and what makes them particularly virulent in a given environment,” Schroeder said. "At the same time, it may help predict how a pathogen will behave in the future, and how it might be contained or eradicated. "
A study on the research is published in the journal Nature Communications.
Scientific and technological advances offer a fascinating glimpse into the past. In 2017, for example, experts in Scotland used 3D-technology to reconstruct the face of an 18th century "witch. "
|
english
|
<gh_stars>0
{
"name": "login",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"wx-common": {
"version": "file:../common/wx-common"
}
}
}
|
json
|
<reponame>boosolar/puncss
/* prefix:'' bg:black acc:Pink color:Blue color2:Teal color3:Amber */
.color-50.hr,
.color-50 > .hr, .color-100.hr,
.color-100 > .hr, .color-200.hr,
.color-200 > .hr, .color-300.hr,
.color-300 > .hr, .color-400.hr,
.color-400 > .hr, .color-500.hr,
.color-500 > .hr, .color2-50.hr,
.color2-50 > .hr, .color2-100.hr,
.color2-100 > .hr, .color2-200.hr,
.color2-200 > .hr, .color2-300.hr,
.color2-300 > .hr, .color2-400.hr,
.color2-400 > .hr, .color3-50.hr,
.color3-50 > .hr, .color3-100.hr,
.color3-100 > .hr, .color3-200.hr,
.color3-200 > .hr, .color3-300.hr,
.color3-300 > .hr, .color3-400.hr,
.color3-400 > .hr, .color3-500.hr,
.color3-500 > .hr, .color3-600.hr,
.color3-600 > .hr, .color3-700.hr,
.color3-700 > .hr, .color3-800.hr,
.color3-800 > .hr, .color3-900.hr,
.color3-900 > .hr, .color-a1.hr,
.color-a1 > .hr, .color-a2.hr,
.color-a2 > .hr, .hr, .color-600.hr,
.color-600 > .hr, .color-700.hr,
.color-700 > .hr, .color-800.hr,
.color-800 > .hr, .color-900.hr,
.color-900 > .hr, .color2-500.hr,
.color2-500 > .hr, .color2-600.hr,
.color2-600 > .hr, .color2-700.hr,
.color2-700 > .hr, .color2-800.hr,
.color2-800 > .hr, .color2-900.hr,
.color2-900 > .hr, .color-a3.hr,
.color-a3 > .hr, .color-a4.hr,
.color-a4 > .hr {
height: 1em;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 100%; }
.color-50.hr::before,
.color-50 > .hr::before, .color-100.hr::before,
.color-100 > .hr::before, .color-200.hr::before,
.color-200 > .hr::before, .color-300.hr::before,
.color-300 > .hr::before, .color-400.hr::before,
.color-400 > .hr::before, .color-500.hr::before,
.color-500 > .hr::before, .color2-50.hr::before,
.color2-50 > .hr::before, .color2-100.hr::before,
.color2-100 > .hr::before, .color2-200.hr::before,
.color2-200 > .hr::before, .color2-300.hr::before,
.color2-300 > .hr::before, .color2-400.hr::before,
.color2-400 > .hr::before, .color3-50.hr::before,
.color3-50 > .hr::before, .color3-100.hr::before,
.color3-100 > .hr::before, .color3-200.hr::before,
.color3-200 > .hr::before, .color3-300.hr::before,
.color3-300 > .hr::before, .color3-400.hr::before,
.color3-400 > .hr::before, .color3-500.hr::before,
.color3-500 > .hr::before, .color3-600.hr::before,
.color3-600 > .hr::before, .color3-700.hr::before,
.color3-700 > .hr::before, .color3-800.hr::before,
.color3-800 > .hr::before, .color3-900.hr::before,
.color3-900 > .hr::before, .color-a1.hr::before,
.color-a1 > .hr::before, .color-a2.hr::before,
.color-a2 > .hr::before, .hr::before, .color-600.hr::before,
.color-600 > .hr::before, .color-700.hr::before,
.color-700 > .hr::before, .color-800.hr::before,
.color-800 > .hr::before, .color-900.hr::before,
.color-900 > .hr::before, .color2-500.hr::before,
.color2-500 > .hr::before, .color2-600.hr::before,
.color2-600 > .hr::before, .color2-700.hr::before,
.color2-700 > .hr::before, .color2-800.hr::before,
.color2-800 > .hr::before, .color2-900.hr::before,
.color2-900 > .hr::before, .color-a3.hr::before,
.color-a3 > .hr::before, .color-a4.hr::before,
.color-a4 > .hr::before {
content: "";
position: absolute;
width: 100%;
height: 0.0625em; }
.color-50.txt1-bg,
.color-50 > .txt1-bg, .color-100.txt1-bg,
.color-100 > .txt1-bg, .color-200.txt1-bg,
.color-200 > .txt1-bg, .color-300.txt1-bg,
.color-300 > .txt1-bg, .color-400.txt1-bg,
.color-400 > .txt1-bg, .color-500.txt1-bg,
.color-500 > .txt1-bg, .color2-50.txt1-bg,
.color2-50 > .txt1-bg, .color2-100.txt1-bg,
.color2-100 > .txt1-bg, .color2-200.txt1-bg,
.color2-200 > .txt1-bg, .color2-300.txt1-bg,
.color2-300 > .txt1-bg, .color2-400.txt1-bg,
.color2-400 > .txt1-bg, .color3-50.txt1-bg,
.color3-50 > .txt1-bg, .color3-100.txt1-bg,
.color3-100 > .txt1-bg, .color3-200.txt1-bg,
.color3-200 > .txt1-bg, .color3-300.txt1-bg,
.color3-300 > .txt1-bg, .color3-400.txt1-bg,
.color3-400 > .txt1-bg, .color3-500.txt1-bg,
.color3-500 > .txt1-bg, .color3-600.txt1-bg,
.color3-600 > .txt1-bg, .color3-700.txt1-bg,
.color3-700 > .txt1-bg, .color3-800.txt1-bg,
.color3-800 > .txt1-bg, .color3-900.txt1-bg,
.color3-900 > .txt1-bg, .color-a1.txt1-bg,
.color-a1 > .txt1-bg, .color-a2.txt1-bg,
.color-a2 > .txt1-bg {
background-color: rgba(0, 0, 0, 0.87); }
.color-50.txt2-bg,
.color-50 > .txt2-bg, .color-100.txt2-bg,
.color-100 > .txt2-bg, .color-200.txt2-bg,
.color-200 > .txt2-bg, .color-300.txt2-bg,
.color-300 > .txt2-bg, .color-400.txt2-bg,
.color-400 > .txt2-bg, .color-500.txt2-bg,
.color-500 > .txt2-bg, .color2-50.txt2-bg,
.color2-50 > .txt2-bg, .color2-100.txt2-bg,
.color2-100 > .txt2-bg, .color2-200.txt2-bg,
.color2-200 > .txt2-bg, .color2-300.txt2-bg,
.color2-300 > .txt2-bg, .color2-400.txt2-bg,
.color2-400 > .txt2-bg, .color3-50.txt2-bg,
.color3-50 > .txt2-bg, .color3-100.txt2-bg,
.color3-100 > .txt2-bg, .color3-200.txt2-bg,
.color3-200 > .txt2-bg, .color3-300.txt2-bg,
.color3-300 > .txt2-bg, .color3-400.txt2-bg,
.color3-400 > .txt2-bg, .color3-500.txt2-bg,
.color3-500 > .txt2-bg, .color3-600.txt2-bg,
.color3-600 > .txt2-bg, .color3-700.txt2-bg,
.color3-700 > .txt2-bg, .color3-800.txt2-bg,
.color3-800 > .txt2-bg, .color3-900.txt2-bg,
.color3-900 > .txt2-bg, .color-a1.txt2-bg,
.color-a1 > .txt2-bg, .color-a2.txt2-bg,
.color-a2 > .txt2-bg {
background-color: rgba(0, 0, 0, 0.54); }
.color-50.txt3-bg,
.color-50 > .txt3-bg, .color-100.txt3-bg,
.color-100 > .txt3-bg, .color-200.txt3-bg,
.color-200 > .txt3-bg, .color-300.txt3-bg,
.color-300 > .txt3-bg, .color-400.txt3-bg,
.color-400 > .txt3-bg, .color-500.txt3-bg,
.color-500 > .txt3-bg, .color2-50.txt3-bg,
.color2-50 > .txt3-bg, .color2-100.txt3-bg,
.color2-100 > .txt3-bg, .color2-200.txt3-bg,
.color2-200 > .txt3-bg, .color2-300.txt3-bg,
.color2-300 > .txt3-bg, .color2-400.txt3-bg,
.color2-400 > .txt3-bg, .color3-50.txt3-bg,
.color3-50 > .txt3-bg, .color3-100.txt3-bg,
.color3-100 > .txt3-bg, .color3-200.txt3-bg,
.color3-200 > .txt3-bg, .color3-300.txt3-bg,
.color3-300 > .txt3-bg, .color3-400.txt3-bg,
.color3-400 > .txt3-bg, .color3-500.txt3-bg,
.color3-500 > .txt3-bg, .color3-600.txt3-bg,
.color3-600 > .txt3-bg, .color3-700.txt3-bg,
.color3-700 > .txt3-bg, .color3-800.txt3-bg,
.color3-800 > .txt3-bg, .color3-900.txt3-bg,
.color3-900 > .txt3-bg, .color-a1.txt3-bg,
.color-a1 > .txt3-bg, .color-a2.txt3-bg,
.color-a2 > .txt3-bg {
background-color: rgba(0, 0, 0, 0.26); }
.color-50.icon-bg,
.color-50 > .icon-bg, .color-100.icon-bg,
.color-100 > .icon-bg, .color-200.icon-bg,
.color-200 > .icon-bg, .color-300.icon-bg,
.color-300 > .icon-bg, .color-400.icon-bg,
.color-400 > .icon-bg, .color-500.icon-bg,
.color-500 > .icon-bg, .color2-50.icon-bg,
.color2-50 > .icon-bg, .color2-100.icon-bg,
.color2-100 > .icon-bg, .color2-200.icon-bg,
.color2-200 > .icon-bg, .color2-300.icon-bg,
.color2-300 > .icon-bg, .color2-400.icon-bg,
.color2-400 > .icon-bg, .color3-50.icon-bg,
.color3-50 > .icon-bg, .color3-100.icon-bg,
.color3-100 > .icon-bg, .color3-200.icon-bg,
.color3-200 > .icon-bg, .color3-300.icon-bg,
.color3-300 > .icon-bg, .color3-400.icon-bg,
.color3-400 > .icon-bg, .color3-500.icon-bg,
.color3-500 > .icon-bg, .color3-600.icon-bg,
.color3-600 > .icon-bg, .color3-700.icon-bg,
.color3-700 > .icon-bg, .color3-800.icon-bg,
.color3-800 > .icon-bg, .color3-900.icon-bg,
.color3-900 > .icon-bg, .color-a1.icon-bg,
.color-a1 > .icon-bg, .color-a2.icon-bg,
.color-a2 > .icon-bg {
background-color: rgba(0, 0, 0, 0.54); }
.color-50, .color-50.txt1,
.color-50 > .txt1, .color-100, .color-100.txt1,
.color-100 > .txt1, .color-200, .color-200.txt1,
.color-200 > .txt1, .color-300, .color-300.txt1,
.color-300 > .txt1, .color-400, .color-400.txt1,
.color-400 > .txt1, .color-500, .color-500.txt1,
.color-500 > .txt1, .color2-50, .color2-50.txt1,
.color2-50 > .txt1, .color2-100, .color2-100.txt1,
.color2-100 > .txt1, .color2-200, .color2-200.txt1,
.color2-200 > .txt1, .color2-300, .color2-300.txt1,
.color2-300 > .txt1, .color2-400, .color2-400.txt1,
.color2-400 > .txt1, .color3-50, .color3-50.txt1,
.color3-50 > .txt1, .color3-100, .color3-100.txt1,
.color3-100 > .txt1, .color3-200, .color3-200.txt1,
.color3-200 > .txt1, .color3-300, .color3-300.txt1,
.color3-300 > .txt1, .color3-400, .color3-400.txt1,
.color3-400 > .txt1, .color3-500, .color3-500.txt1,
.color3-500 > .txt1, .color3-600, .color3-600.txt1,
.color3-600 > .txt1, .color3-700, .color3-700.txt1,
.color3-700 > .txt1, .color3-800, .color3-800.txt1,
.color3-800 > .txt1, .color3-900, .color3-900.txt1,
.color3-900 > .txt1, .color-a1, .color-a1.txt1,
.color-a1 > .txt1, .color-a2, .color-a2.txt1,
.color-a2 > .txt1, .info-bg, .warning-bg {
color: rgba(0, 0, 0, 0.87); }
.color-50.txt2,
.color-50 > .txt2, .color-100.txt2,
.color-100 > .txt2, .color-200.txt2,
.color-200 > .txt2, .color-300.txt2,
.color-300 > .txt2, .color-400.txt2,
.color-400 > .txt2, .color-500.txt2,
.color-500 > .txt2, .color2-50.txt2,
.color2-50 > .txt2, .color2-100.txt2,
.color2-100 > .txt2, .color2-200.txt2,
.color2-200 > .txt2, .color2-300.txt2,
.color2-300 > .txt2, .color2-400.txt2,
.color2-400 > .txt2, .color3-50.txt2,
.color3-50 > .txt2, .color3-100.txt2,
.color3-100 > .txt2, .color3-200.txt2,
.color3-200 > .txt2, .color3-300.txt2,
.color3-300 > .txt2, .color3-400.txt2,
.color3-400 > .txt2, .color3-500.txt2,
.color3-500 > .txt2, .color3-600.txt2,
.color3-600 > .txt2, .color3-700.txt2,
.color3-700 > .txt2, .color3-800.txt2,
.color3-800 > .txt2, .color3-900.txt2,
.color3-900 > .txt2, .color-a1.txt2,
.color-a1 > .txt2, .color-a2.txt2,
.color-a2 > .txt2 {
color: rgba(0, 0, 0, 0.54); }
.color-50.txt3,
.color-50 > .txt3, .color-100.txt3,
.color-100 > .txt3, .color-200.txt3,
.color-200 > .txt3, .color-300.txt3,
.color-300 > .txt3, .color-400.txt3,
.color-400 > .txt3, .color-500.txt3,
.color-500 > .txt3, .color2-50.txt3,
.color2-50 > .txt3, .color2-100.txt3,
.color2-100 > .txt3, .color2-200.txt3,
.color2-200 > .txt3, .color2-300.txt3,
.color2-300 > .txt3, .color2-400.txt3,
.color2-400 > .txt3, .color3-50.txt3,
.color3-50 > .txt3, .color3-100.txt3,
.color3-100 > .txt3, .color3-200.txt3,
.color3-200 > .txt3, .color3-300.txt3,
.color3-300 > .txt3, .color3-400.txt3,
.color3-400 > .txt3, .color3-500.txt3,
.color3-500 > .txt3, .color3-600.txt3,
.color3-600 > .txt3, .color3-700.txt3,
.color3-700 > .txt3, .color3-800.txt3,
.color3-800 > .txt3, .color3-900.txt3,
.color3-900 > .txt3, .color-a1.txt3,
.color-a1 > .txt3, .color-a2.txt3,
.color-a2 > .txt3 {
color: rgba(0, 0, 0, 0.26); }
.color-50.icon,
.color-50 > .icon, .color-100.icon,
.color-100 > .icon, .color-200.icon,
.color-200 > .icon, .color-300.icon,
.color-300 > .icon, .color-400.icon,
.color-400 > .icon, .color-500.icon,
.color-500 > .icon, .color2-50.icon,
.color2-50 > .icon, .color2-100.icon,
.color2-100 > .icon, .color2-200.icon,
.color2-200 > .icon, .color2-300.icon,
.color2-300 > .icon, .color2-400.icon,
.color2-400 > .icon, .color3-50.icon,
.color3-50 > .icon, .color3-100.icon,
.color3-100 > .icon, .color3-200.icon,
.color3-200 > .icon, .color3-300.icon,
.color3-300 > .icon, .color3-400.icon,
.color3-400 > .icon, .color3-500.icon,
.color3-500 > .icon, .color3-600.icon,
.color3-600 > .icon, .color3-700.icon,
.color3-700 > .icon, .color3-800.icon,
.color3-800 > .icon, .color3-900.icon,
.color3-900 > .icon, .color-a1.icon,
.color-a1 > .icon, .color-a2.icon,
.color-a2 > .icon {
color: rgba(0, 0, 0, 0.54); }
.color-50.hr::before,
.color-50 > .hr::before, .color-100.hr::before,
.color-100 > .hr::before, .color-200.hr::before,
.color-200 > .hr::before, .color-300.hr::before,
.color-300 > .hr::before, .color-400.hr::before,
.color-400 > .hr::before, .color-500.hr::before,
.color-500 > .hr::before, .color2-50.hr::before,
.color2-50 > .hr::before, .color2-100.hr::before,
.color2-100 > .hr::before, .color2-200.hr::before,
.color2-200 > .hr::before, .color2-300.hr::before,
.color2-300 > .hr::before, .color2-400.hr::before,
.color2-400 > .hr::before, .color3-50.hr::before,
.color3-50 > .hr::before, .color3-100.hr::before,
.color3-100 > .hr::before, .color3-200.hr::before,
.color3-200 > .hr::before, .color3-300.hr::before,
.color3-300 > .hr::before, .color3-400.hr::before,
.color3-400 > .hr::before, .color3-500.hr::before,
.color3-500 > .hr::before, .color3-600.hr::before,
.color3-600 > .hr::before, .color3-700.hr::before,
.color3-700 > .hr::before, .color3-800.hr::before,
.color3-800 > .hr::before, .color3-900.hr::before,
.color3-900 > .hr::before, .color-a1.hr::before,
.color-a1 > .hr::before, .color-a2.hr::before,
.color-a2 > .hr::before {
background-color: rgba(0, 0, 0, 0.12); }
.color-50.hr-border,
.color-50 > .hr-border, .color-100.hr-border,
.color-100 > .hr-border, .color-200.hr-border,
.color-200 > .hr-border, .color-300.hr-border,
.color-300 > .hr-border, .color-400.hr-border,
.color-400 > .hr-border, .color-500.hr-border,
.color-500 > .hr-border, .color2-50.hr-border,
.color2-50 > .hr-border, .color2-100.hr-border,
.color2-100 > .hr-border, .color2-200.hr-border,
.color2-200 > .hr-border, .color2-300.hr-border,
.color2-300 > .hr-border, .color2-400.hr-border,
.color2-400 > .hr-border, .color3-50.hr-border,
.color3-50 > .hr-border, .color3-100.hr-border,
.color3-100 > .hr-border, .color3-200.hr-border,
.color3-200 > .hr-border, .color3-300.hr-border,
.color3-300 > .hr-border, .color3-400.hr-border,
.color3-400 > .hr-border, .color3-500.hr-border,
.color3-500 > .hr-border, .color3-600.hr-border,
.color3-600 > .hr-border, .color3-700.hr-border,
.color3-700 > .hr-border, .color3-800.hr-border,
.color3-800 > .hr-border, .color3-900.hr-border,
.color3-900 > .hr-border, .color-a1.hr-border,
.color-a1 > .hr-border, .color-a2.hr-border,
.color-a2 > .hr-border {
border-bottom: 0.0625em solid rgba(0, 0, 0, 0.12); }
.txt1-bg, .color-600.txt1-bg,
.color-600 > .txt1-bg, .color-700.txt1-bg,
.color-700 > .txt1-bg, .color-800.txt1-bg,
.color-800 > .txt1-bg, .color-900.txt1-bg,
.color-900 > .txt1-bg, .color2-500.txt1-bg,
.color2-500 > .txt1-bg, .color2-600.txt1-bg,
.color2-600 > .txt1-bg, .color2-700.txt1-bg,
.color2-700 > .txt1-bg, .color2-800.txt1-bg,
.color2-800 > .txt1-bg, .color2-900.txt1-bg,
.color2-900 > .txt1-bg, .color-a3.txt1-bg,
.color-a3 > .txt1-bg, .color-a4.txt1-bg,
.color-a4 > .txt1-bg {
background-color: #ffffff; }
.txt2-bg, .color-600.txt2-bg,
.color-600 > .txt2-bg, .color-700.txt2-bg,
.color-700 > .txt2-bg, .color-800.txt2-bg,
.color-800 > .txt2-bg, .color-900.txt2-bg,
.color-900 > .txt2-bg, .color2-500.txt2-bg,
.color2-500 > .txt2-bg, .color2-600.txt2-bg,
.color2-600 > .txt2-bg, .color2-700.txt2-bg,
.color2-700 > .txt2-bg, .color2-800.txt2-bg,
.color2-800 > .txt2-bg, .color2-900.txt2-bg,
.color2-900 > .txt2-bg, .color-a3.txt2-bg,
.color-a3 > .txt2-bg, .color-a4.txt2-bg,
.color-a4 > .txt2-bg {
background-color: rgba(255, 255, 255, 0.7); }
.txt3-bg, .color-600.txt3-bg,
.color-600 > .txt3-bg, .color-700.txt3-bg,
.color-700 > .txt3-bg, .color-800.txt3-bg,
.color-800 > .txt3-bg, .color-900.txt3-bg,
.color-900 > .txt3-bg, .color2-500.txt3-bg,
.color2-500 > .txt3-bg, .color2-600.txt3-bg,
.color2-600 > .txt3-bg, .color2-700.txt3-bg,
.color2-700 > .txt3-bg, .color2-800.txt3-bg,
.color2-800 > .txt3-bg, .color2-900.txt3-bg,
.color2-900 > .txt3-bg, .color-a3.txt3-bg,
.color-a3 > .txt3-bg, .color-a4.txt3-bg,
.color-a4 > .txt3-bg {
background-color: rgba(255, 255, 255, 0.3); }
.icon-bg, .color-600.icon-bg,
.color-600 > .icon-bg, .color-700.icon-bg,
.color-700 > .icon-bg, .color-800.icon-bg,
.color-800 > .icon-bg, .color-900.icon-bg,
.color-900 > .icon-bg, .color2-500.icon-bg,
.color2-500 > .icon-bg, .color2-600.icon-bg,
.color2-600 > .icon-bg, .color2-700.icon-bg,
.color2-700 > .icon-bg, .color2-800.icon-bg,
.color2-800 > .icon-bg, .color2-900.icon-bg,
.color2-900 > .icon-bg, .color-a3.icon-bg,
.color-a3 > .icon-bg, .color-a4.icon-bg,
.color-a4 > .icon-bg {
background-color: #ffffff; }
.bg,
body, .txt1, .bg3, .bg2, .bg1, .color-600, .color-600.txt1,
.color-600 > .txt1, .color-700, .color-700.txt1,
.color-700 > .txt1, .color-800, .color-800.txt1,
.color-800 > .txt1, .color-900, .color-900.txt1,
.color-900 > .txt1, .color2-500, .color2-500.txt1,
.color2-500 > .txt1, .color2-600, .color2-600.txt1,
.color2-600 > .txt1, .color2-700, .color2-700.txt1,
.color2-700 > .txt1, .color2-800, .color2-800.txt1,
.color2-800 > .txt1, .color2-900, .color2-900.txt1,
.color2-900 > .txt1, .color-a3, .color-a3.txt1,
.color-a3 > .txt1, .color-a4, .color-a4.txt1,
.color-a4 > .txt1, .success-bg, .error-bg {
color: #ffffff; }
.txt2, .color-600.txt2,
.color-600 > .txt2, .color-700.txt2,
.color-700 > .txt2, .color-800.txt2,
.color-800 > .txt2, .color-900.txt2,
.color-900 > .txt2, .color2-500.txt2,
.color2-500 > .txt2, .color2-600.txt2,
.color2-600 > .txt2, .color2-700.txt2,
.color2-700 > .txt2, .color2-800.txt2,
.color2-800 > .txt2, .color2-900.txt2,
.color2-900 > .txt2, .color-a3.txt2,
.color-a3 > .txt2, .color-a4.txt2,
.color-a4 > .txt2 {
color: rgba(255, 255, 255, 0.7); }
.txt3, .color-600.txt3,
.color-600 > .txt3, .color-700.txt3,
.color-700 > .txt3, .color-800.txt3,
.color-800 > .txt3, .color-900.txt3,
.color-900 > .txt3, .color2-500.txt3,
.color2-500 > .txt3, .color2-600.txt3,
.color2-600 > .txt3, .color2-700.txt3,
.color2-700 > .txt3, .color2-800.txt3,
.color2-800 > .txt3, .color2-900.txt3,
.color2-900 > .txt3, .color-a3.txt3,
.color-a3 > .txt3, .color-a4.txt3,
.color-a4 > .txt3 {
color: rgba(255, 255, 255, 0.3); }
.icon, .color-600.icon,
.color-600 > .icon, .color-700.icon,
.color-700 > .icon, .color-800.icon,
.color-800 > .icon, .color-900.icon,
.color-900 > .icon, .color2-500.icon,
.color2-500 > .icon, .color2-600.icon,
.color2-600 > .icon, .color2-700.icon,
.color2-700 > .icon, .color2-800.icon,
.color2-800 > .icon, .color2-900.icon,
.color2-900 > .icon, .color-a3.icon,
.color-a3 > .icon, .color-a4.icon,
.color-a4 > .icon {
color: #ffffff; }
.hr::before, .color-600.hr::before,
.color-600 > .hr::before, .color-700.hr::before,
.color-700 > .hr::before, .color-800.hr::before,
.color-800 > .hr::before, .color-900.hr::before,
.color-900 > .hr::before, .color2-500.hr::before,
.color2-500 > .hr::before, .color2-600.hr::before,
.color2-600 > .hr::before, .color2-700.hr::before,
.color2-700 > .hr::before, .color2-800.hr::before,
.color2-800 > .hr::before, .color2-900.hr::before,
.color2-900 > .hr::before, .color-a3.hr::before,
.color-a3 > .hr::before, .color-a4.hr::before,
.color-a4 > .hr::before {
background-color: rgba(255, 255, 255, 0.12); }
.hr-border, .color-600.hr-border,
.color-600 > .hr-border, .color-700.hr-border,
.color-700 > .hr-border, .color-800.hr-border,
.color-800 > .hr-border, .color-900.hr-border,
.color-900 > .hr-border, .color2-500.hr-border,
.color2-500 > .hr-border, .color2-600.hr-border,
.color2-600 > .hr-border, .color2-700.hr-border,
.color2-700 > .hr-border, .color2-800.hr-border,
.color2-800 > .hr-border, .color2-900.hr-border,
.color2-900 > .hr-border, .color-a3.hr-border,
.color-a3 > .hr-border, .color-a4.hr-border,
.color-a4 > .hr-border {
border-bottom: 0.0625em solid rgba(255, 255, 255, 0.12); }
.bg,
body {
background-color: #303030; }
.bg3 {
background-color: #000000; }
.bg2 {
background-color: #212121; }
.bg1 {
background-color: #424242; }
.bg-txt {
color: #303030; }
.bg3-txt {
color: #000000; }
.bg2-txt {
color: #212121; }
.bg1-txt {
color: #424242; }
.bg-glass {
background-color: transparent; }
.txt-glass {
color: transparent; }
.color-50 {
background-color: #E3F2FD; }
.color-50-txt {
color: #E3F2FD; }
.color-100 {
background-color: #BBDEFB; }
.color-100-txt {
color: #BBDEFB; }
.color-200 {
background-color: #90CAF9; }
.color-200-txt {
color: #90CAF9; }
.color-300 {
background-color: #64B5F6; }
.color-300-txt {
color: #64B5F6; }
.color-400 {
background-color: #42A5F5; }
.color-400-txt {
color: #42A5F5; }
.color-500 {
background-color: #2196F3; }
.color-500-txt {
color: #2196F3; }
.color-600 {
background-color: #1E88E5; }
.color-600-txt {
color: #1E88E5; }
.color-700 {
background-color: #1976D2; }
.color-700-txt {
color: #1976D2; }
.color-800 {
background-color: #1565C0; }
.color-800-txt {
color: #1565C0; }
.color-900 {
background-color: #0D47A1; }
.color-900-txt {
color: #0D47A1; }
.color2-50 {
background-color: #E0F2F1; }
.color2-50-txt {
color: #E0F2F1; }
.color2-100 {
background-color: #B2DFDB; }
.color2-100-txt {
color: #B2DFDB; }
.color2-200 {
background-color: #80CBC4; }
.color2-200-txt {
color: #80CBC4; }
.color2-300 {
background-color: #4DB6AC; }
.color2-300-txt {
color: #4DB6AC; }
.color2-400 {
background-color: #26A69A; }
.color2-400-txt {
color: #26A69A; }
.color2-500 {
background-color: #009688; }
.color2-500-txt {
color: #009688; }
.color2-600 {
background-color: #00897B; }
.color2-600-txt {
color: #00897B; }
.color2-700 {
background-color: #00796B; }
.color2-700-txt {
color: #00796B; }
.color2-800 {
background-color: #00695C; }
.color2-800-txt {
color: #00695C; }
.color2-900 {
background-color: #004D40; }
.color2-900-txt {
color: #004D40; }
.color3-50 {
background-color: #FFF8E1; }
.color3-50-txt {
color: #FFF8E1; }
.color3-100 {
background-color: #FFECB3; }
.color3-100-txt {
color: #FFECB3; }
.color3-200 {
background-color: #FFE082; }
.color3-200-txt {
color: #FFE082; }
.color3-300 {
background-color: #FFD54F; }
.color3-300-txt {
color: #FFD54F; }
.color3-400 {
background-color: #FFCA28; }
.color3-400-txt {
color: #FFCA28; }
.color3-500 {
background-color: #FFC107; }
.color3-500-txt {
color: #FFC107; }
.color3-600 {
background-color: #FFB300; }
.color3-600-txt {
color: #FFB300; }
.color3-700 {
background-color: #FFA000; }
.color3-700-txt {
color: #FFA000; }
.color3-800 {
background-color: #FF8F00; }
.color3-800-txt {
color: #FF8F00; }
.color3-900 {
background-color: #FF6F00; }
.color3-900-txt {
color: #FF6F00; }
.color-a1 {
background-color: #FF80AB; }
.color-a1-txt {
color: #FF80AB; }
.color-a2 {
background-color: #FF4081; }
.color-a2-txt {
color: #FF4081; }
.color-a3 {
background-color: #F50057; }
.color-a3-txt {
color: #F50057; }
.color-a4 {
background-color: #C51162; }
.color-a4-txt {
color: #C51162; }
.info-color, .info-bg, .info-txt, .warning-color, .warning-bg, .warning-txt, .success-color, .success-bg, .success-txt, .error-color, .error-bg, .error-txt {
font-weight: 500; }
.info-color {
background-color: #0099CC;
color: #33b5e5;
border-color: #33b5e5; }
.info-bg {
background-color: #0099CC; }
.info-txt {
color: #0099CC; }
.info-border {
border-color: #33b5e5; }
.warning-color {
background-color: #FF8800;
color: #ffbb33;
border-color: #ffbb33; }
.warning-bg {
background-color: #FF8800; }
.warning-txt {
color: #FF8800; }
.warning-border {
border-color: #ffbb33; }
.success-color {
background-color: #007E33;
color: #00C851;
border-color: #00C851; }
.success-bg {
background-color: #007E33; }
.success-txt {
color: #007E33; }
.success-border {
border-color: #00C851; }
.error-color {
background-color: #CC0000;
color: #ff4444;
border-color: #ff4444; }
.error-bg {
background-color: #CC0000; }
.error-txt {
color: #CC0000; }
.error-border {
border-color: #ff4444; }
|
css
|
Popular internet personality Charlie "MoistCr1TiKaL" has spoken out about Twitch CEO Dan Clancy's recent announcement at TwitchCon 2023 Las Vegas where, during the convention's opening ceremony, the latter announced that streamers can now simultaneously broadcast on competing platforms such as YouTube, Kick, Rumble, and others.
However, there were a few restrictions with respect to this, which include:
- No posting links or directing your community to leave Twitch for other platforms.
- No use of third-party software to combine any form of chats or activities from other platforms for the stream (streamers may use it personally).
- Ensure that streaming on multiple websites does not impede the quality of the stream.
MoistCr1TiKaL discussed this update in a YouTube video titled, Actually Huge Twitch W. According to him, the changes implemented by the Amazon-owned platform are a "game-changer."
He elaborated:
"We are witnessing history. I feel like some of the people that took the first manned airplane flight, where you know what you have just experienced is a game-changer. It's super special, and you are a part of history. That's what I feel right now with this. A very rare instance, where Twitch does something that I can't help but applaud and really appreciate."
In the aforementioned YouTube video, MoistCr1TiKaL claimed simultaneously livestreaming on other platforms while being a Twitch partner was previously "very frowned upon." He went on to say that he had never expected the platform to reconsider:
"It was still very frowned upon. It was more forbidden than human transmutation in Full Metal Alchemist, until today! This was, like, one of the main things I thought Twitch would never ever even consider backing off on. I thought Twitch would always stick to their guns on simul-streaming being against their rules."
The 29-year-old content creator then explained why these changes were such a big deal for streamers:
"Because, if you really stop to think about it - why would they? Twitch is still the number one streaming platform, and now, if streamers have the flexibility to stream their Twitch broadcast to other platforms at the same time, why wouldn't they? There isn't a single reason why anyone on Twitch wouldn't also just stream to YouTube."
He added:
"It's the same content, you just put it to two different places, so it just maximizes your reach and viewership, and it's just an overall net positive to the streamer. But, doesn't really do a whole lot to help out Twitch that much."
MoistCr1TiKaL then announced that he would start streaming on both his official Twitch and YouTube channels at the same time:
"So, obviously, I'm going to start simul-streaming on YouTube and Twitch. I can finally shake the cobwebs off of my old Twitch channel here, which has just been collecting dust."
MoistCr1TiKaL also shared some words of appreciation for Dan Clancy, saying:
"But now, I can do both. It feels great! Like, this is such a huge W move. It cannot be understated just how big of a deal this decision is from Twitch. And, man... absolute hats off to Dan Clancy on this one. F**k yes!"
The YouTube comments section featured over 2,000 comments. Here's a snapshot of some relevant ones:
Several viewers praised Dan Clancy for the recent changes made to Twitch. Popular YouTuber Adam "Tay Zonday" also responded, hoping the platform would reinstate the "Twitch Sings" category.
|
english
|
{
"name": "<NAME> - สัมผัส",
"description": "ลายนามบัตร\nอาจารย์ Yun มีครูอยู่สองประเภท หนึ่งคือเมื่ออยู่บนเวทีแสดง \"ผู้วิจารณ์ฉัน ถือว่าเป็นครู\" และอีกหนึ่งคือ หนังสือคำสัมผัส ที่ต้องใช้เมื่อเขียนบทการแสดง",
"sortorder": 210108,
"source": [
"ได้รับเมื่อระดับความประทับใจของ Yun Jin ถึง Lv.10"
]
}
|
json
|
Even as Defence Minister A. K. Antony on Thursday came out with a fresh statement blaming the Pakistan Army for the killing of five Indian soldiers at the Poonch Line of Control (LoC), Army chief General Bikram Singh has taken his local commanders to task for Tuesday’s ambush.
During a visit to Jammu and Nagota on Wednesday, General Singh is learnt to have given a talking-to to the local brigade commander and the divisional commander and demanded to know how the Standard Operating Procedures were neglected during patrolling along the LoC. Sources indicated that a high-level review of LoC security, as well as punishment for erring Army officials, was on the cards.
Mr. Antony’s revised statement in Parliament reportedly took cognisance of the new inputs provided by the Army chief, who gave a detailed briefing to the Defence Minister on the incident.
Mr. Antony spoke of the involvement of the Pakistan Army’s Special Services Group commandos. He warned Pakistan that neither India’s restraint nor the capacity of its armed forces should be taken for granted.
According to sources, the SSG has been active since 1956 and has seven battalions and three independent commando companies, one of which — Musa company — undertakes amphibious operations. Former Pakistani Army chiefs General Pervez Musharraf and General Mirza Aslam Beg are known to have served in the SSG.
The sources said Indian troops’ patrolling habits were likely to have been kept under surveillance by the Pakistani Army, which often struck when a change of guard was under way in the Indian Army. On this occasion, the 21 Bihar Regiment was being replaced by the Maratha Light Infantry unit.
Tuesday’s ambush suggested that the local unit could have made certain tactical mistakes, said sources. They indicated that the Pakistani Army could have been observing the Indian patrols over the past month and used night-vision devices such as hand-held thermal imagers and sensors.
According to sources, commanders on the ground ought to have anticipated that Pakistan armed forces might use such a change-over period to carry out an attack. “The LoC is highly volatile; it involves 24X7 alertness and vigil. Recent developments in Pakistan also indicate that there is desperation to [inject terrorists into Indian territory]. The way the ambush was planned involving a group of 20 members of special troops, it is possible that their attempt to push in infiltrators has been successful,” a source said.
Pakistan has repeatedly caught India’s local forces on the wrong foot — particularly in sectors such as Rajouri, Poonch, Mendhar and Uri. It would appear that General Singh’s instructions to the ground-level commanders — delivered in the wake of the beheading of an Indian soldier on January 8 — to launch aggressive action within their area of responsibility have not been heeded.
|
english
|
Candidly, an Android app that allows users to click and share pictures and make them disappear from friends' phones after 10 seconds, has raised angel funding from four investors.
"We are running lean and mean at the moment. Since the product is currently in beta, we will use part of the proceeds for test marketing," said Candidly founder Vinay Bharathwaj, a computer engineer and a serial entrepreneur.
He previously co-founded Confluenze Technologies, Mindspaze Educational Solutions, iBrahma Creations and IEF Solutions.
Launched early this year, Candidly allows users to click pictures, doodle on top of them or put their comments on them in voice or text messages, and share them with friends. An interesting feature of this app is that the sharer can make the pictures disappear from his/her friends' mobile phones. It also enables users to doodle, upload voice message or 10-second video over the pictures.
The beta version of the app has already registered over 8,000 downloads so far. The app will soon be going out of beta and the firm is looking to get certain traction before launching the app on other platforms.
The company said that it is currently also working on another feature in the app that helps friends and family collaborate and create a shared photo album on any event. It will also add a feature which helps users to share moments in a much more immersive manner, Bharathwaj noted.
"We have started incorporating the company. As you know, setting up a company is a time-consuming process, and compliance and audit take lots of time. We just want to deliver and concentrate on the product at the moment. We are based out of Chennai and Bangalore. Early next year, we are planning to open our office in Silicon Valley as well," said Bharathwaj.
(Edited by Joby Puthuparampil Johnson)
|
english
|
---
title: "Tutorial de Bootstrap: Aprende Bootstrap 4 en 10 minutos"
subtitle: "¡Después de decadas de lucha, la luz ha llegado! Con este tutorial de Bootstrap, diseñar un sitio web va a ser pan comido. Es absurdo, y casi imposible, pensar en hacer un sitio web sin un framework de CSS como Bootstrap."
cover_local: "../../assets/images/4cc6fa0b-2530-4052-aa7e-8dac03788ac3.png"
textColor: "white"
date: "2020-10-19T16:36:30+00:00"
tags: ["bootstrap"]
status: "published"
---
## Bootstrap viene a arreglar el 90% de los problemas de CSS
Hay una luz al final del túnel y no es Chuck Norris con una linterna. ¡Finalmente alguien arregló CSS! Es una biblioteca hecha por [<NAME>](https://twitter.com/mdo?lang=en) y [<NAME>](https://twitter.com/fat)- personas normales, programadores como tú y como yo, y ¡es genial!
Dos chicos, mientras trabajaban en Twitter, estaban sufriendo los mismos problemas que nosotros con HTML y CSS. Hartos de esta situación (como tú y yo), decidieron crear una **hoja base que puede importarse en cualquier sitio web**. Esto hizo el trabajo de todos los desarrolladores front-end 4 veces más fácil.

Además, Bootstrap te da una gran cantidad de elementos nuevos que vas a querer usar siempre y que actualmente no existen en CSS+HTML: Los componentes de Bootstrap.
## Layouts: Solucionado el modelo de cajas
Uno de los defectos en CSS, es la forma en que funcionan los layouts: trabajar con **float**, **display** y **position** ¡es lo peor! Así es como Bootstrap lo soluciona:
## Ahora todo está dividido en Filas y Columnas
Los creadores de Bootstrap, replicaron el mismo concepto que tienen las `<tables>`, pero en vez de usar tablas usaron `<div>` (contenedores de cajas). Ellos no podían crear sus propias etiquetas en HTML, porque eso requiere una nueva versión de HTML e iba a hacer a Bootstrap incompatible con los navegadores actuales. Las etiquetas debían ser las mismas - por eso decidieron anular el comportamiento que tiene un `<div>` por defecto con las clases.
```html
Esto es una fila: <div class="row">
Esto es una columna: <div class"col–sm–x">
```

Bootstrap ha dividido el ancho de la pantalla en `12 slots` (espacios) - cada uno de ellos con un ancho de fila total de 8.33%. El tamaño de una columna, puede ir de entre 1 y 12 slots o espacios.
Por otro lado, las columnas fueron hechas para vivir dentro de las filas (como pasa entre `<td>` y `<tr>`), siempre necesitas abrir una fila antes de abrir una columna. Todas las columnas en una fila deben sumar un máximo de 12 espacios.

## Nuestro primer ejemplo de diseño:
Tal cual como lo hicimos en el capítulo sobre diseños, vamos a crear una página con dos grandes secciones, una barra lateral a la derecha y un contenido principal a la izquierda:
<iframe width="100%" height="300" src="//jsfiddle.net/BreatheCode/th7uLrow/4/embedded/html,css,result/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder="0"></iframe>
<div align="right"><small><a href="//jsfiddle.net/BreatheCode/th7uLrow/4/embedded/html,css,result/">Click aquí para ver el demo en una ventana nueva</a></small></div>
## Bootstrap es 100% adaptable
Es muy fácil decidir como se verá tu página web en pantallas de diferente tamaño; cuando añades cada columna dentro de las filas, debes asignar una clase con el siguiente formato:
```html
<div class="col–md–x">
```
|**Col** |**md** |**x**
|:---------|:--------|:----|
|Significa que este elemento debe comportarse como una columna de Bootstrap. |Significa que estoy especificando sólo para dispositivos con tamaño de pantalla mediano. |Especifica cuantos espacios quiero que abarque la columna (recuerda que puede abarcar max 12 espacios por fila). |
> :point_up:Bootstrap device sizes: |Smartphones |Big-phone/small-tablet |Tablets |Desktops |Extra-large desktops |
|:----------|:---------------|:-------------|:-----------|:------------|:---------|
| |Nothing |sm |md |lg |xl |
> :point_up: Nota: si no especificas el tamaño de pantalla (ej. usando 'sm', 'md', or 'xl'), el sitio web va a renderizar para teléfonos móviles por defecto.
## Define móvil, tablet y escritorio/sobremesa (Desktop) al mismo tiempo
Vamos a configurar el diseño (usando las clases de columnas xs, sm, md y lg) para estas dos filas en todos los dispositivos al mismo tiempo:

```html
<!-- Apila las columnas en el móvil ocupando el ancho completo y el otro medio ancho -->
<div class="row">
<div class="col-12 col-md-8">.col-12 .col-md-8</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
</div>
<!-- Las columnas comienzan en un 50% de ancho en dispositivos móviles y alcanzan hasta un 33,3% de ancho en el Desktops -->
<div class="row">
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
<div class="col-6 col-md-4">.col-6 .col-md-4</div>
</div>
<!-- Las columnas son siempre del 50% de ancho, en dispositivos móviles y de Desktops -->
<div class="row">
<div class="col-6">.col-6</div>
<div class="col-6">.col-6</div>
</div>
```
## Estructura básica de Bootstrap 4
Ya sabemos sobre el esqueleto basico de HTML5 que todo sitio web debe tener. Ahora solo debes agregar unas lineas en tu esqueleto para hacerlo compatible con Bootstrap:
```html
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
<title>¡Hola, mundo!</title>
</head>
<body>
<h1>¡Hola, mundo!</h1>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
</body>
</html>
```
Recuerda, Bootstrap es solo una hoja de estilos. Es por eso que es muy simple agregarlo a tu sitio web. Utiliza el `<link>` tag para incluir los estilos, y si quieres para usar la etiqueta de javascript `<script>` y así incluir los archivos de javascript de Bootstrap.
La funcionalidad de Javascript en Bootstrap requiere que se incluyean las librerias propias de jQuery y Javascript primero pero no te preocupes por esto aún. Sólo incluye las librerias de JS usando la etiqueta script y más adelante lo entenderás.
> :link: Encuentra aquí [increíbles archivos de Bootstrap para que puedas empezar.](https://getbootstrap.com/docs/4.0/getting-started/introduction/)
## Componentes de Bootstrap 4
HTML es súper básico, sólo tiene un par de etiquetas - ya los sabíamos. Pero cuando revisas la web hoy en día, ves otra cosa… actualmente las páginas web tienen menús, iconos, barras de carga, etc. ¿Dónde están esas etiquetas? ¡Ninguna de ellas está definida en HTML!
Todos los desarrolladores tienen que simular estos elementos adicionales cada vez que crean un sitio web, tienen que hacer todo desde cero y eso toma muchísimo tiempo.
Cuando importas Bootstrap en tu página web, tendrás un nuevo conjunto de componentes a tu disposición. Esta es una pequeña parte de esos elementos:

### Estos son los componentes más usados e importantes de Bootstrap:
#### Barra de navegación o NavBar
Esto es tan popular que se encuentra en el 99% de los menús de todos los sitios web. Normalmente contiene el logo de la compañia y una series de links - dependiendo de la lógica de negocio de la página.
Aquí hay un ejemplo de como se ve un NavBar en un sitio web:

> :link:[**Lee más sobre el "NavBar" aquí**](https://getbootstrap.com/docs/4.0/components/navbar/)
```html
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="#">Website Brand</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">
<a class="btn btn-success">Create a new post</a>
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Settings
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
</div>
</div>
</nav>
```
#### Card
Este es probablemente el componente de Bootstrap más usado, cada sitio web tiene unas cuantas "Card" porque es ideal para listar objetos de una forma bonita. Algunos ejemplos del uso de "Card" pueden ser:
+ La sección de "equipo" de un sitio web donde listas los distintos empleados.
+ Un típico muro de Pinterest.
+ Cualquier historia de una red social como Instagram, Facebook, twitter, etc.
Aquí hay un ejemplo de como puede verse un sitio web con una "Card":

> :link: [**Lee más sobre la "Card" aquí**](https://getbootstrap.com/docs/4.0/components/card/)
```html
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
```
#### El Modal
Todo el mundo odia el modal, es dmuy molesto, ¡siempre pregunta si te quieres incribir a una revista! 🙂
Así es como se ve modal por defecto con Bootstrap.

> :link:[**Lee más sobre el "Modal" aquí**](https://getbootstrap.com/docs/4.0/components/modal/)
```html
div class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">Save changes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
```
> :point_up: Importante! El Modal necesita Javascript para poder funcionar. Recuerda incluir los archivos de Javascript necesarios en el típico esqueleto de Bootstrap: jQuery, Popper and Bootstrap.js
## Lo que realmente necesitas saber sobre Bootstrap
La documentación oficial de Bootstrap es increible!! No necesitamos copiar y pegar todos los post. Por favor visita los siguientes sitios web y enfócate en leer estos temas:
+ [The grid system.](https://getbootstrap.com/docs/4.1/layout/grid/)
+ [Styling Forms.](https://getbootstrap.com/docs/4.1/components/forms/)
+ [List of components available to use on your website.](https://getbootstrap.com/docs/4.1/components/alerts/)
+ [Utilities or Helper classes:](https://getbootstrap.com/docs/4.1/utilities/borders/) Very useful and constantly used classes to do stuff like centering the text, centering a column or container, adding a background, etc.
| :point_up : Versiones de Bootstrap y su descarga:
Bootstrap tiene varias versiones, siempre verifica que estés usando la última versión de Bootstrap en tu proyecto. Aquí podrás encontrar todas las versiones disponibles:[https://getbootstrap.com/docs/versions/](https://getbootstrap.com/docs/versions/).
Te recomendamos que uses el CDN para importar bootstrap en tu archivo HTML, de este modo: [https://www.bootstrapcdn.com/](https://www.bootstrapcdn.com/)
Si estás migrando tu proyecto a nueva versión de Bootstrap, recuerda siempre verificar su documentación.
## <NAME>.
El éxito no llega de la noche a la mañana. Este es tu primer logro. Déjame pregunterte ¿te sientes capaz de usar HTML, CSS, Layouts y Bootstrap? ¡No te mientas!
No más Lecciones sobre este tema - es momento de entregar. Es hora de enfocarse en el proyecto de clase. Recuerda honrar los valores de los desarrolladores. Calma.
<iframe src="https://www.youtube.com/embed/RqHNyyvfafE" frameborder="0" allowfullscreen></iframe>
<div align="right"><small><a href="https://www.youtube.com/embed/RqHNyyvfafE">Click here to open video in new window</a></small></div>
|
markdown
|
[
{
"id": 1022002,
"name": "Ensure to use Optimal Asymmetric Encryption Padding(OAEP) scheme with RSA encryption to avoid sensitive information exposure.",
"href": "AIP/quality-rules/1022002",
"critical": true,
"severity": 20,
"technologyNames": [
"JEE"
]
}
]
|
json
|
Thadam to have a Bollywood remake!
Action hero Arun Vijay had a release last month, with Thadam, which marked his second collaboration with director Magizh Thirumeni after the acclaimed Thadaiyara Thaakka, and the movie also starred Vidya Pradeep, Tanya Hope, Smruthi Venkat and Yogi Babu in important roles.
Revolving around identical characters Ezhil and Kavin played by Arun Vijay, Thadam was all about resolving a murder case finding who among the two is the real killer, and the movie has emerged one of the most profitable Tamil movies of the year.
After reports of the Telugu remake of Thadam set to feature Ram Pothineni, the latest update is that the Bollywood remake rights of Thadam have been acquired by producers Murad Ketani and Ashwin Warde who are producing Kabir Singh, the Hindi remake of Arjun Reddy with Shahid Kapoor. It has been said that Thadam Hindi remake might also have Shahid Kapoor in lead roles.
Follow us on Google News and stay updated with the latest!
|
english
|
from .fontconfig import has_fontconfig, query_fontconfig_database
__all__ = ['find_font', 'query_fontconfig_database']
if not has_fontconfig():
raise OSError(
'This module currently only supports systems using "fontconfig"'
)
def find_font(name, **kwargs):
try:
return query_fontconfig_database(name, **kwargs)[0]['file']
except IndexError:
query = ','.join(f'{k}={v}' for k, v in kwargs.items())
if query:
raise OSError(f'Font "{name}" with properties {query} not found')
else:
raise OSError(f'Font "{name}" not found')
|
python
|
International Yoga Day 2020: Gomukhasana is a Sanskrit word consisting of two words. The first word "go" means "cow" and the second word "mukh" means "mouth". This asana means the mouth of a cow, known as Cow Face Pose. In this posture, the thighs and both hands are thin at one end and wide at the other end, due to which they look like the face of a cow. It is the most popular posture in the category of Hatha Yoga. Gomukhasana is beneficial and very easy to do for women. This asana strengthens the muscles of our shoulders and thighs that help reduce weight. Let us know in detail about the methods of Gomukhasana, its benefits and precautions.
There are many benefits of doing this yoga. Let us know in detail about the benefits of Gomukhasana:
- Asthma: It is an outstanding yoga practice for the lungs and helps in respiratory diseases. It makes the chest firm and increases its capacity by cleaning the lungs. Therefore asthma patients should practise this asana regularly.
- Cervical Spondylitis: By practising this asana, you can get rid of many troubles such as shoulder stiffness, neck pain, and cervical spondylitis.
- Strength of the arms: If you want to strengthen the back and arm muscles, then practice this asana.
- Hip pain relief: If you are suffering from the pain of hips, then practice this asana.
- For the spine: It keeps the spine straight and also makes it strong.
- Haemorrhoids: It is considered a beneficial yoga practise for haemorrhoids.
- Back pain: With its regular practice, you can get relief from the troubles of back pain.
- Liver and kidney: It plays an essential role in keeping your liver and kidney healthy.
- Makes the body flexible: By doing this asana, the body becomes stable and resilient.
- Diabetes: It stimulates your pancreas and helps control diabetes.
How to do Gomukhasana aka Cow Face Pose with Right Technique and Posture?
Here we are giving some easy steps to do this asana, and you can easily do this yoga by following it.
- To do this asana, sit in an open ventilated place in the Sukhasana or cross-legged posture on the mat.
- After this, pull your left leg towards your body and place your right foot on the thighs of the left leg and pull it close to your body.
- Now put your right hand above the shoulder and take as much as you can behind your back by turning the elbow from here.
- Now bend your left hand from the elbow and take it from the side of the stomach to the backside.
- Now stay in this posture for some time and breathe 10-12 times.
- When you feel discomfort in this situation, then you should come back to your initial position. For this, open both your hands and straighten the legs.
For many people, initially, both hips often do not stick to the floor evenly. Because of this, it can be challenging to keep the knees on top of each other, and the spine is not able to straighten correctly. If this happens to you, make a blanket fold under your hips so that both the bones are equal. If you have less flexibility in your shoulders, you may face difficulty holding hands. If this happens, take a small towel, and hold each end with both sides.
- If you have pain in the shoulder, neck, knee, do not do this asana.
- If you are suffering from back pain, then you must consult the doctor before performing this asana.
- If you are pregnant, do not do this asana in the first three months.
- If blood is coming from your haemorrhoids, do not do this asana.
- Do not force if there is difficulty in holding the hand behind the back.
- If there is any problem or pain in the spine, do not do this asana.
|
english
|
{
"minVersion": "0.7.7",
"package": "io.jadon.pigeon.beta.mixin",
"target": "@env(DEFAULT)",
"compatibilityLevel": "JAVA_8",
"mixins": [
"MixinMinecraftServer",
"MixinServerWorld",
"MixinAbstractSaveHandler",
"MixinServerSaveHandler",
"MixinMinecraftClient"
]
}
|
json
|
package com.macro.mall.search.service;
import com.macro.mall.search.domain.EsProduct;
import com.macro.mall.search.domain.EsProductRelatedInfo;
import org.springframework.data.domain.Page;
import java.util.List;
/**
* Product Search Management Service
* Created by macro on 2018/6/19.
*/
public interface EsProductService {
/**
* Import all products from database to ES
*/
int importAll();
/**
* Delete item by id
*/
void delete(Long id);
/**
* Create product based on id
*/
EsProduct create(Long id);
/**
* Delete items in bulk
*/
void delete(List<Long> ids);
/**
* Search for a name or subtitle by keyword
*/
Page<EsProduct> search(String keyword, Integer pageNum, Integer pageSize);
/**
* Compound search by name or subtitle by keyword
*/
Page<EsProduct> search(String keyword, Long brandId, Long productCategoryId, Integer pageNum, Integer pageSize, Integer sort);
/**
* Recommend related products based on product id
*/
Page<EsProduct> recommend(Long id, Integer pageNum, Integer pageSize);
/**
* Get search terms related brands, categories, attributes
*/
EsProductRelatedInfo searchRelatedInfo(String keyword);
}
|
java
|
Exuding confidence that India will achieve the testing capacity of 1 lakh COVID-19 tests per day before May 31, Union Health Minister Harsh Vardhan on Thursday said that the country will reach the mark of 2 million (i.e. 20 lakhs) coronavirus tests today.
“Yesterday we have tested over 90,000 COVID-19 samples. We are continuously increasing our testing capacity. Though we had earlier said that we will increase our testing capacity to 1 lakhs tests per day before May 31, but we will achieve it before the due date. Today, we will reach 2 million tests countrywide,” said Mr Vardhan here at National Centre for Diseases Control (NCDC).
Union Health Minister Mr Vardhan visited NCDC to inaugurate the COVID-19 realtime automated testing machine. NCDC is India’s premier institute for research in epidemiology and communicable disease control.
“Across the country, Indian Council for Medical Research (ICMR) and NCDC have developed over 500 labs for testing COVID-19 samples. I came here to inaugurate Rosch company’s Cobas 6800 machine. It is fully automated and can conduct 800 tests in a day, even if it is not operated in the night. I am dedicating this machine to the nation,” he said.
“In this series, two machines were installed earlier-one in ICMR, Bhuwanesar and one in National Institute of Virology, Pune. The latest is installed here in NCDC. We have ordered more machines and we will deploy these machines in various parts of the country,” he added.
As per the latest update by the Union Ministry of Health and Family Welfare (MoHFW), there are 49,219 active cases in the country while 26,235 patients have been cured and discharged, one migrated, and 2,549 deaths so far.
|
english
|
After working in Africa’s microfinance space for seven years, including at Botswana’s Letshego, Brian Dempsey took a break in 2020 to build Power Financial Wellness, operating out of Kenya.
Dempsey said the launch of Power was informed by the trends he noticed in the micro-lending space, and experience garnered from his stint in the micro-finance sector.
“During my time at the micro-finance institutions I noticed that close to 65% of workers that banked with us would spend all of their money in the first five days of the month. And then they go on to access expensive microcredit [from loan apps], which left them struggling from a financial health perspective,” said Dempsey, Power co-founder and CEO.
“This is what informed the launch of Power. We focus on helping workers access affordable and appropriate financial services,” he said.
Power is now scaling in Kenya, and making an entry in Zambia, backed by $3 million seed funding it has secured in a round led by DOB Equity with participation from Bolt by QED Investors, Quona Capital, Zephyr Acorn and Norrsken Accelerator.
The startup issues partner employees access to short and long-term loans, investment opportunities and insurance products. Unlike other micro lenders who rely on credit reference bureaus to make lending decisions, it only lends to employees and contractors (gig workers) of companies they have on-boarded on their platform, lowering the risk of defaults, and ensuring that borrowers access funds that they can pay back.
The startup has so far on-boarded 75 companies in Kenya, giving it access to more than 40,000 workers, out of which it’s been able to serve 15%.
“We integrate to their payment or payroll system allowing their workforce to download the Power app. We then conduct digital identity checks, and open up our four key services to them,” said Dempsey, who co-founded Power with Chandra Singh in 2020.
“Once we connect into a company, we already know how much the individuals are earning, how long they’ve worked there. We know whether they’re full-time, part-time contractors or gig workers. We connect into the credit bureau in real time to pull information on other facilities they might have in the market. And we use all that information to then provide a unique amount, interest rate and loan tenure for workers,” he said.
Power gives employees the ability to access a percent of their earnings in advance, and long-term loans on its balance sheet, based on their earnings, for 2-3% interest a month. Its platform also allows HR to access, approve or reject employee loan requests.
Individuals are also able to purchase various insurance products, and make repayments over an extended period, which attracts the same interest, giving them access to packages by partner companies that require lump-sum payments.
Besides, those signing up for the investment service are introduced to money-market and pension funds, to which a pre-determined amount from their salaries is invested.
“Basically, it is a deduction at source meaning that everything that we offer to the workers gets deducted from their earnings before it hits their current account,” he said.
The company has so far disbursed more than $1.5 million in loans since launch. It plans to reach 250 companies in Kenya.
Power has also expanded to Zambia, where it plans to be a technology partner instead of an active lender, and has signed a deal with a southern African bank to kick-start its latest strategy.
“In southern Africa, we have a bank partnership in Zambia, Malawi, Mozambique, Botswana and Zimbabwe. We’re starting in Zambia. And what we are trying to look for in our partners is a typical bank that is banking a lot of companies, corporates or SMEs but not really banking a lot of retail consumers but have strategic intent to expand their offering and grow their loan book and deposit-based savings,” he said.
He says they plan to continue partnering with banks leveraging the technology to allow them to offer a new range of services to workers, and completely disrupt the market. Power is also eyeing expansion to at least 10 markets in Africa over the next three years.
|
english
|
import React from 'react';
import { mount } from 'enzyme';
import Item from './Item.jsx';
import Controls from '../Controls/Controls.jsx';
import { PROJECT } from '../../../constants';
import { dataWithColor, dataWithEmptyName } from '../../../asset/mocks/List';
describe('Project component', () => {
const edit = jest.fn();
const cancel = jest.fn();
const save = jest.fn();
const remove = jest.fn();
const onSetCurrentProject = jest.fn();
describe('renders correctly span with isEdit mode disable', () => {
const output = mount((
<Item
type={PROJECT}
data={dataWithColor}
save={save}
remove={remove}
onSetCurrentProject={onSetCurrentProject}
>
<Controls
data={dataWithColor}
isEdit={false}
edit={edit}
save={save}
cancel={cancel}
remove={remove}
/>
</Item>
));
it('renders correctly span', () => {
const li = output.find(`.${PROJECT}-item`);
expect(li.length).toBe(1);
});
describe('change correctly state and check buttons work', () => {
it('change state - isEdit, button - edit', () => {
const button = output.find('.edit');
expect(button.length).toBe(1);
button.simulate('click');
const { isEdit } = output.state();
expect(isEdit).toBe(true);
});
it('change isEdit, value, warning states and button - cancel', () => {
const button = output.find('.cancel');
expect(button.length).toBe(1);
button.simulate('click');
const { isEdit, value, warning } = output.state();
expect(isEdit).toBe(false);
expect(warning).toBe(false);
expect(value).toBe(dataWithColor.name);
});
describe('change isEdit, warning states and button - save', () => {
const button = output.find('.edit');
it('button is exist', () => {
expect(button.length).toBe(1);
});
button.simulate('click');
const buttonSave = output.find('.save');
it('buttonSave is exist', () => {
expect(buttonSave.length).toBe(1);
});
buttonSave.simulate('click');
const { isEdit, value } = output.state();
it('if data.name filled', () => {
expect(save).toBeCalledWith(PROJECT, value, dataWithColor._id);
expect(isEdit).toBe(false);
});
});
describe('button - remove', () => {
const button = output.find('.remove');
it('button is exist', () => {
expect(button.length).toBe(1);
});
button.simulate('click');
it('if data.name filled', () => {
expect(remove).toBeCalledWith(PROJECT, dataWithColor._id);
});
});
});
});
describe('if data.name empty', () => {
const output = mount((
<Item
type={PROJECT}
data={dataWithEmptyName}
save={save}
remove={remove}
onSetCurrentProject={onSetCurrentProject}
>
<Controls
data={dataWithEmptyName}
isEdit={false}
edit={edit}
save={save}
cancel={cancel}
remove={remove}
/>
</Item>
));
const buttonEdit = output.find('.edit');
it('buttonEdit is exist', () => {
expect(buttonEdit.length).toBe(1);
});
buttonEdit.simulate('click');
it('if data.name empty', () => {
const buttonSave = output.find('.save');
expect(buttonSave.length).toBe(1);
buttonSave.simulate('click');
const { warning } = output.state();
expect(warning).toBe(true);
});
});
});
|
javascript
|
{"name":"<NAME>","alt_name":null,"country":"United States","state":"Indiana","address":{"street":"PO Box 108","city":"Hanover","province":"Indiana","postal_code":"47243-0108"},"contact":{"telephone":"+1(812) 866-7000","website":"http:\/\/www.hanover.edu","email":"<EMAIL>","fax":"+1(812) 866-2164"},"funding":"Private","languages":null,"academic_year":null,"accrediting_agency":"North Central Association of Colleges and Schools"}
|
json
|
There has been a furore in our national capital. What is most apparent within the furore is that the politician’s voice has not been heard. Why have our politicians fallen silent? The reason is that they now lack the courage to state their beliefs. Therefore, though I am only an ordinary elected Indian politician, I would like to speak out. Our voice too must be heard and understood on this matter of rape and related issues. The mistrust, outrage, and helplessness of the citizenry is shared by people in my profession — only, for reasons very far from those expressed by the people out in the streets.
The recent outrage of rape in Delhi is shocking, true. As a politician, however, what has shocked me is not the rape but the fact that citizens — vagrants, vandals, and other forms of population to be kept in check — have been allowed to voice a vast outrage over what is, in the end, an everyday incident. Small molestations are an accepted part of our culture: it is natural for boys to tease girls. Naturally, the bigger molestations, such as the present one, are regrettable; it becomes necessary for us to take note. And we do. A white paper is called for, a judicial commission is asked to deliberate on the recommendations of the white paper. A time frame of five years, extendable by a further five if thought necessary, should in no circumstances be exceeded — unless thought necessary. In any case, in the present instance, given the strength of the outcry, our first action must be to contain it. Every politico knows that protest must be allowed in small doses. Protest is, in fact, desirable provided it functions as a simmering kettle, the steam escaping slowly, the water evaporating in time. But when it grows into a pot that boils over, protest is merely evidence of political ineptitude. What has alarmed me to my bones is the idiocy of a regime that has allowed the pot to boil over and spill out. Their failure to anticipate and contain protest threatens the very fundamentals of our system.
Political incompetence of this variety imperils what we as a class have fought for since 1947 — the right to continue from where the British left off. For this we are often thought callous, accused of shutting ourselves off from those who have elected us. The accusation strikes me as odd. For what possible reason could we have stood for an election if not to feel that, when elected, we would have succeeded in removing ourselves from the electorate? And yet has the distance rendered us inhuman? No. At the approach of every fresh election, our humanity is apparent. TV sets, blankets, whatever the unelected happen within reason to want at the time, are distributed. We have also reassured citizens that the politicians overseeing them are properly elected and no longer comprise the white-skinned. I’m sometimes pleasantly surprised by how consoling many among the unelected find it when told the same methods of rule are now not the same thing at all since they are executed exclusively by people of their own kind. It has given the unelected the feeling that they too can join us someday, become us. Such small assurances have been a big help. They have promoted the feeling that we are all part of a great democracy, the Indian dream.
Naturally, it is alarming when our perfected system centred on justice denial shows signs of breaking down. My political hackles rose when it became clear that the Delhi protesters were not to be jailed en masse even on the day that we were buying weapons from Mr. Putin. The magnitude of the national shame was clear. It also became apparent that we are not China: would the Chinese premier have allowed the international image of his country to be besmirched? No. He would have had the protesting rabble rounded up and put in Beijing’s Tihar long before the international guest arrived. One has to be grateful for small mercies: at least Mr. Shinde had the courage to call a spade a spade when he made it clear that the shame to a nation accrues not from everyday incidents of rape but from large protesting mobs visible on its streets.
This takes me to a related point: recognising the protester as a form of virus. Politicians are doctors in the political realm. The citizen is a bacterium, the citizens’ mob is a virus, a protest movement is Japanese encephalitis. Allow the plague to spread and a system of management perfected over long years disintegrates. We inherited certain key ideas from the British and refined them to suit our needs: the white paper, the commission of inquiry, the court adjournment. Where would we be if, after every rape, the rapist were quickly tried and punished? Some of my colleagues might then end up reading this in a non-airconditioned cell instead of a government bungalow. The lynchpin of our rule is a dysfunctional criminal justice system. It has taken us years to ensure that wrongdoing is allowed to flourish — and we are now being asked to dismantle this system! Has the country gone mad?
My final point: ours is a change-resistant country. It is what makes India eternal: we dislike change. Have we changed the caste system? No. Have we given up patriarchy because Rammohan and his friends forced us to give up sati? No. Gandhi, Ambedkar, and Nehru tried to undo the fundamentals of our civilization by saying we must follow the West and become individuals instead of components within a hierarchy. Have we accepted them? No. Our achievement is to have forgotten them. The citizenry is afraid to say this. It requires political courage to say it.
My straightforward and sincere outline of our political reasoning will be drowned by the roar of a roused rabble. But as an ordinary Indian politician, it is nonetheless my duty to make myself heard. The woman raped is not the victim. If the system we have perfected over the years is disturbed, I am the victim.
(Rukun Advani is not an MLA or politician but he’s lived in Delhi and seen enough. )
The lynchpin of our rule is a dysfunctional criminal justice system. It has taken us years to ensure that wrongdoing is allowed to flourish — and we are now being asked to dismantle this system!
|
english
|
package com.sequenceiq.it.cloudbreak.newway.dto;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.core.type.TypeReference;
import com.sequenceiq.cloudbreak.api.endpoint.v4.clustertemplate.requests.ClusterTemplateV4Request;
import com.sequenceiq.cloudbreak.api.endpoint.v4.clustertemplate.responses.ClusterTemplateV4Response;
import com.sequenceiq.it.cloudbreak.newway.context.TestContext;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ClusterTemplateV4TestDto extends AbstractCloudbreakTestDto<ClusterTemplateV4Request, ClusterTemplateV4Response, ClusterTemplateV4TestDto> {
public static final String CLUSTER_TEMPLATE = "CLUSTER_TEMPLATE";
private static final Logger LOGGER = LoggerFactory.getLogger(ClusterTemplateV4TestDto.class);
ClusterTemplateV4TestDto(String newId) {
super(newId);
setRequest(new ClusterTemplateV4Request());
}
ClusterTemplateV4TestDto() {
this(CLUSTER_TEMPLATE);
}
public ClusterTemplateV4TestDto(TestContext testContext) {
super(new ClusterTemplateV4Request(), testContext);
}
public ClusterTemplateV4TestDto withName(String name) {
getRequest().setName(name);
setName(name);
return this;
}
public ClusterTemplateV4TestDto withDescription(String description) {
getRequest().setDescription(description);
return this;
}
private static class MapTypeReference extends TypeReference<Map<String, Object>> {
}
}
|
java
|
<reponame>ShuoHe97/CS239-Final-Project
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of the distribution and at
// http://projectchrono.org/license-chrono.txt.
//
// =============================================================================
// Authors: <NAME>
// =============================================================================
//
//
// =============================================================================
#include "chrono_sensor/filters/ChFilterSaveXYZRGB.h"
#include "chrono_sensor/ChSensor.h"
namespace chrono {
namespace sensor {
CH_SENSOR_API ChFilterSaveXYZRGB::ChFilterSaveXYZRGB(std::string data_path) : ChFilter("") {
m_path = data_path;
}
CH_SENSOR_API ChFilterSaveXYZRGB::~ChFilterSaveXYZRGB() {}
CH_SENSOR_API void ChFilterSaveXYZRGB::Apply(std::shared_ptr<ChSensor> pSensor,
std::shared_ptr<SensorBuffer>& bufferInOut) {
std::shared_ptr<SensorOptixBuffer> pOptix = std::dynamic_pointer_cast<SensorOptixBuffer>(bufferInOut);
pOptix->Buffer->map();
pOptix->Buffer->unmap();
}
} // namespace sensor
} // namespace chrono
|
cpp
|
package org.osmdroid.samplefragments.tilesources;
import org.osmdroid.tileprovider.tilesource.OnlineTileSourceBase;
import org.osmdroid.util.MapTileIndex;
/**
* sample custom tile source
* Created by alex on 6/20/16.
*/
public class USGSTileSource extends OnlineTileSourceBase {
public USGSTileSource() {
this("USGS Topo", 0, 18, 256, "",
new String[]{"http://basemap.nationalmap.gov/ArcGIS/rest/services/USGSTopo/MapServer/tile/"});
}
/**
* Constructor
*
* @param aName a human-friendly name for this tile source
* @param aZoomMinLevel the minimum zoom level this tile source can provide
* @param aZoomMaxLevel the maximum zoom level this tile source can provide
* @param aTileSizePixels the tile size in pixels this tile source provides
* @param aImageFilenameEnding the file name extension used when constructing the filename
* @param aBaseUrl the base url(s) of the tile server used when constructing the url to download the tiles
*/
public USGSTileSource(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, String[] aBaseUrl) {
super(aName, aZoomMinLevel, aZoomMaxLevel, aTileSizePixels, aImageFilenameEnding, aBaseUrl, "USGS");
}
@Override
public String getTileURLString(final long pMapTileIndex) {
return getBaseUrl() + MapTileIndex.getZoom(pMapTileIndex) + "/" + MapTileIndex.getY(pMapTileIndex) + "/" + MapTileIndex.getX(pMapTileIndex)
+ mImageFilenameEnding;
}
}
|
java
|
{% extends "base.html" %}
{% set uplink = url_for('index') %}
{% set uplink_help = "Startseite" %}
{% block title %}Zeugnisart{% endblock %}
{% block content %}
<p>Notenzeugnisse können für ganze Klassen zu den Halbjahren oder für
einzelne Schüler zu beliebigen Zeitpunkten erstellt werden.
</p>
<p>Wählen Sie hier die Art Zeugnis, die es zu erstellen gilt:
</p>
<ul class="modules">
<li><a href="{{url_for('bp_grades.term', termn=1)}}">Halbjahreszeugnisse</a></li>
<li><a href="{{url_for('bp_grades.term', termn=2)}}">Jahresendzeugnisse</a></li>
<li><a href="{{url_for('bp_grades.klasses')}}">Einzelzeugnisse</a></li>
</ul>
{% endblock %}
|
html
|
guru, (Sanskrit: “venerable”) in Hinduism, a personal spiritual teacher or guide. From at least the mid-1st millennium bce, when the Upanishads (speculative commentaries on the Vedas, the revealed scriptures of Hinduism) were composed, India has stressed the importance of the tutorial method in religious instruction. In the educational system of ancient India, knowledge of the Vedas was personally transmitted through oral teachings from the guru to his pupil (pupils were always male in that period). Classically, the pupil lived at the home of his guru and served him with obedience and devotion.
Later, with the rise of the bhakti movement, which stressed devotion to a personalized deity, the guru was venerated as the leader or founder of any of a number of sects (many of which now included women and some of which had women gurus). The guru was also considered to be the living embodiment of the spiritual truth professed by the sect and thus was identified with the deity. In at least one sect, the Vallabhacharya, the devotee was instructed to offer mind, body, and property to the guru. The tradition of willing service and obedience to the guru is still observed. The guru is frequently treated with the same respect paid the deity during worship, and the guru’s birthday is celebrated by his followers as a festival day.
Religious self-instruction is considered inefficacious. It is the guru who prescribes spiritual disciplines and who, at the time of initiation, instructs the student in the use of the mantra (sacred formula) to assist in meditation. The example of the guru who, though human, has achieved spiritual enlightenment leads the devotee to discover the same potentialities within himself.
|
english
|
package com.bigdata.datashops.model.pojo.job;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bigdata.datashops.model.pojo.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.extern.jackson.Jacksonized;
@EqualsAndHashCode(callSuper = true)
@Data
@Jacksonized
@NoArgsConstructor
@TableName(value = "t_job_instance")
public class JobInstance extends BaseModel implements Comparable<JobInstance> {
private Integer projectId;
private Integer jobId;
private String maskId;
private String instanceId;
/**
* job instance type, graph、job
* {@link com.bigdata.datashops.model.enums.JobInstanceType}
*/
private int type;
/**
* job instance state
* {@link com.bigdata.datashops.model.enums.RunState}
*/
private Integer state;
/**
* 0 delete 1 normal
*/
private Integer status;
private String operator;
private Integer version;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date submitTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date startTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date endTime;
/**
* 基准时间,依赖及指定数据时间用
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date bizTime;
/**
* 数据时间,执行SQL对应输出的数据时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date dataTime;
/**
* 动态依赖数组,只保留还未成功的作业,全部成功后该字段为空
* 为防止频繁查库后续可依赖外部缓存
*/
private String dynamicDependency;
// /**
// * 依赖的图或节点,数组,逗号分隔
// * example: id|offset,12|0,12|-3,13|1
// */
// private String preDependency;
//
// /**
// * 下游依赖节点,数组,逗号分隔
// */
// private String postDependency;
/**
* 依赖的上游
* example: [{"maskId": "1-1-210304112627065", "version": "1", "bizTime":"2021-08-10 10:00:00"}]
*/
private String upstreamVertex;
/**
* 下游
*/
private String downstreamVertex;
private String extension;
private String host;
private String appId;
@TableField(exist = false)
private Job job;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(getId());
sb.append(", maskId=").append(maskId);
sb.append(", status=").append(status);
sb.append(", startTime=").append(startTime);
sb.append(", stopTime=").append(endTime);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
@Override
public int compareTo(JobInstance o) {
if (o != null) {
if (this.job.getPriority().equals(o.getJob().getPriority())) {
return this.createTime.after(o.createTime) ? 1 : -1;
}
return this.job.getPriority().compareTo(o.getJob().getPriority());
}
return 0;
}
}
|
java
|
<gh_stars>0
import argparse
import logging
import os
import numpy as np
import torch
from torch.autograd import Variable
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve, auc
import utils
import model.detnet as net
plt.rcParams.update({'font.size': 15, 'figure.figsize': (10, 6)})
parser = argparse.ArgumentParser()
parser.add_argument('--data_dir', default='data/preprocessed_binary/test', \
help="Directory containing test dataset")
parser.add_argument('--test_dir', default='tests/detect2', \
help="Directory containing params.json")
parser.add_argument('--restore_file', default='best', \
help="name of the file in --test_dir containing weights to load")
def evaluate(model, true, cond, out, loss_fn, acc, test_dir):
"""Use trained model to generate ROC curve and magnitude distribution plots
Args:
model: the feedforward network
true: the true galaxy magnitudes used as inputs
cond: the observing conditions used as inputs
out: ground truth observed galaxy magnitudes
loss_fn: the loss function
acc: accuracy function
test_dir: the directory to save the plots to
"""
model.eval()
predout = model(cond, true).squeeze().data.cpu()
loss = loss_fn(predout, out).item()
out = out.numpy()
pred = (predout>=0.5).int().numpy()
accuracy = acc(pred, out)
fpr, tpr, _ = roc_curve(out, predout, pos_label=1)
roc_auc = auc(fpr, tpr)
r = -2.5*np.log10(true[pred==1][:,1].numpy())+30
i = -2.5*np.log10(true[pred==1][:,2].numpy())+30
z = -2.5*np.log10(true[pred==1][:,3].numpy())+30
plt.figure()
plt.plot(fpr, tpr, lw=2, label='AUC = {:.2f}'.format(roc_auc))
plt.xlim([0.0, 1.0])
plt.ylim([0.0, 1.0])
plt.xlabel('False Positive Rate')
plt.ylabel('True Positive Rate')
plt.title('Detection ROC Curve')
plt.legend(loc='best')
plt.grid(True)
plt.savefig(os.path.join(test_dir,'detroc.png'))
plt.figure()
plt.hist2d(i, r-i, bins=100, range=[[20, 25], [-2, 2]])
plt.xlabel('$i_\mathrm{true}$')
plt.ylabel('$(r-i)_\mathrm{true}$')
plt.clim(0,2500)
plt.colorbar()
plt.savefig(os.path.join(test_dir,'ri_i_t.png'))
plt.figure()
plt.hist2d(i-z, r-i, bins=100, range=[[-2, 2], [-2, 2]])
plt.xlabel('$(i-z)_\mathrm{true}$')
plt.ylabel('$(r-i)_\mathrm{true}$')
plt.clim(0,20000)
plt.colorbar()
plt.savefig(os.path.join(test_dir,'ri_iz_t.png'))
logging.info("- Test metrics : loss = {}; accuracy = {}; \
roc_auc = {}".format(loss, accuracy, roc_auc))
return
if __name__ == '__main__':
args = parser.parse_args()
json_path = os.path.join(args.test_dir, 'params.json')
assert os.path.isfile(json_path), "No json configuration \
file found at {}".format(json_path)
params = utils.Params(json_path)
params.cuda = torch.cuda.is_available()
utils.set_logger(os.path.join(args.test_dir, 'test.log'))
logging.info("Loading the test dataset...")
true = Variable(torch.load(os.path.join(args.data_dir,'true.pth')))
cond = Variable(torch.load(os.path.join(args.data_dir,'cond.pth')))
out = torch.load(os.path.join(args.data_dir,'out.pth'))
if params.cuda:
true, cond = true.cuda(non_blocking=True), cond.cuda(non_blocking=True)
logging.info("- done.")
model = net.DetectionNet(params).cuda() if params.cuda else net.DetectionNet(params)
logging.info(model)
loss_fn = net.loss_fn
acc = net.accuracy
logging.info("Starting evaluation...")
utils.load_checkpoint(os.path.join(args.test_dir, args.restore_file + '.pth.tar'), model)
evaluate(model, true, cond, out, loss_fn, acc, args.test_dir)
|
python
|
Most of us would agree that skincare of self-care. It is about taking care of the skin topically and ensuring that we feed it with necessary ingredients that are good for the healthy repairing of cells. There are mainly four skin types but one of the most challenging ones is oily skin or acne-prone skin. It is also quite sensitive and so, one has to be cautious while applying any product over it.
Most of the time, a majority of market products do not suit oily or acne-prone skin as the ingredients are just not fit or the formula is not suited well. However, having a proper skincare routine is important to consistently keep the skin youthful and glowing. One of the main steps of a routine is the application of serum, which is great at infusing specific minerals and vitamins in the deep layers of the skin.
Serums are thinner in consistency which helps them penetrate to the dermis and actually trigger cells to the desired change. There are several types of serums and one can always choose which serum works best for their skin. Each serum caters to a specific need of a skin type, therefore, one may not necessarily need a vitamin C serum if one doesn’t need to.
If you have oily skin, then take a look at some of the serums that are actually good for your skin and won’t cause harm.
Hydrating serums give the skin extra moisture. Those with oily skin, have excess oil and less water, therefore hydrating can help to reduce the excess sebum production. Some main ingredients of hydrating serums are hyaluronic acid, glycerin, aloe vera, and snail mucin.
Antioxidant serums get rid of free radicals from the skin that cause aging. Those with oily, acne-prone skin are susceptible to UV rays and free radicals. Antioxidant serums reduce the damage caused by external factors. Some common ingredients in an antioxidant serum are vitamin C, niacinamide, retinoids, vitamin E, ferulic acid, green tea, etc.
Brightening serums focus on boosting the radiance of the skin and fade dark spots caused by acne and hyperpigmentation. The ingredients in a brightening serum prevent melanin transfer and remove dead pigmented cells. They contain light-reflecting particles. Some common ingredients are vitamin C, niacinamide, alpha arbutin, kojic acid, tranexamic acid, and others.
Pre-minimizing serums reduce the appearance of large pores on the skin. These pores get bigger due to excess of sebum that over time become blackheads. Pores get congested and stretched out. The ingredients, like niacinamide, salicylic acid, mushroom extract, in these serums loosen clogs and decrease sebum secretion.
Calming serums soothe the skin of redness, allergy, or irritation. Usually, those with acne-prone skin can easily get irritated easily which weakens the skin barrier. The ingredients in a calming serum seal up the cracks between skin cells. Niacinamide, ceramides, Centella Asiatica extract, and others can work wonders on sensitive skin.
Disclaimer: Tips and suggestions mentioned in the article are for general information purpose only and should not be construed as professional medical advice. Always consult your doctor or a dietician before starting any fitness programme or making any changes to your diet.
|
english
|
<filename>src/app/api/models/contact-info-basic-data.ts
/* tslint:disable */
import { Address } from './address';
import { CustomFieldDetailed } from './custom-field-detailed';
import { PasswordInput } from './password-input';
import { PhoneConfiguration } from './phone-configuration';
import { User } from './user';
/**
* Contains data shared by both ContactInfoDataForNew and ContactInfoDataForEdit
*/
export interface ContactInfoBasicData {
/**
* The available user addresses, which can be referenced by id
*/
addresses?: Array<Address>;
/**
* If a confirmation password is used, contains the definitions on how to request that password from the user. This confirmation password is required when performing sensible actions. Sometimes this is dynamic, for example, the confirmation might be configured to be used only once per session, or operations like payments may have a limit per day to be without confirmation (pinless).
*/
confirmationPasswordInput?: PasswordInput;
/**
* The additional contact information custom fields
*/
customFields?: Array<CustomFieldDetailed>;
phoneConfiguration?: PhoneConfiguration;
/**
* The user which owns the contact info
*/
user?: User;
}
|
typescript
|
<gh_stars>1-10
{"created_at": "Wed Feb 27 13:39:57 +0000 2019", "id": 1100752400586035200, "id_str": "1100752400586035200", "full_text": "@BJP4India @narendramodi Prime Minister like <NAME> can never meet India@ @narendramodi @myogiadityanath @ChouhanShivraj @BJP4India @BJP4UP the great pm \ud83d\ude4f", "truncated": false, "display_text_range": [25, 161], "entities": {"hashtags": [], "symbols": [], "user_mentions": [{"screen_name": "BJP4India", "name": "BJP", "id": 207809313, "id_str": "207809313", "indices": [0, 10]}, {"screen_name": "narendramodi", "name": "<NAME>", "id": 18839785, "id_str": "18839785", "indices": [11, 24]}, {"screen_name": "narendramodi", "name": "<NAME>", "id": 18839785, "id_str": "18839785", "indices": [81, 94]}, {"screen_name": "myogiadityanath", "name": "<NAME>", "id": 3437532637, "id_str": "3437532637", "indices": [95, 111]}, {"screen_name": "ChouhanShivraj", "name": "<NAME>", "id": 1251083774, "id_str": "1251083774", "indices": [112, 127]}, {"screen_name": "BJP4India", "name": "BJP", "id": 207809313, "id_str": "207809313", "indices": [128, 138]}, {"screen_name": "BJP4UP", "name": "<NAME>", "id": 2220938808, "id_str": "2220938808", "indices": [139, 146]}], "urls": []}, "metadata": {"iso_language_code": "en", "result_type": "recent"}, "source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>", "in_reply_to_status_id": 1100321245474639872, "in_reply_to_status_id_str": "1100321245474639872", "in_reply_to_user_id": 207809313, "in_reply_to_user_id_str": "207809313", "in_reply_to_screen_name": "BJP4India", "user": {"id": 1080735314438549504, "id_str": "1080735314438549504", "name": "@harishankar Hiloriya", "screen_name": "HarishankarHil3", "location": "Mandsaur, India", "description": "https://t.co/kJqp0eO05E\u2026\n\ud83d\ude4f\u091c\u092f \u0936\u094d\u0930\u0940 \u0930\u093e\u092e \ud83d\ude4f\n \ud83d\ude4f\u0930\u093e\u0937\u094d\u091f\u094d\u0930\u0940\u092f \u0938\u094d\u0935\u092f\u0902\u0938\u0947\u0935\u0915 \u0938\u0902\u0918 (RSS)\ud83d\ude4f", "url": "https://t.co/o9KCYPTfcT", "entities": {"url": {"urls": [{"url": "https://t.co/o9KCYPTfcT", "expanded_url": "https://instagram.com/harishankarhiloriya", "display_url": "instagram.com/harishankarhil\u2026", "indices": [0, 23]}]}, "description": {"urls": [{"url": "https://t.co/kJqp0eO05E", "expanded_url": "http://facebook.com/harishankar.hi", "display_url": "facebook.com/harishankar.hi", "indices": [0, 23]}]}}, "protected": false, "followers_count": 33, "friends_count": 54, "listed_count": 0, "created_at": "Thu Jan 03 07:59:12 +0000 2019", "favourites_count": 1859, "utc_offset": null, "time_zone": null, "geo_enabled": true, "verified": false, "statuses_count": 154, "lang": "en", "contributors_enabled": false, "is_translator": false, "is_translation_enabled": false, "profile_background_color": "F5F8FA", "profile_background_image_url": null, "profile_background_image_url_https": null, "profile_background_tile": false, "profile_image_url": "http://pbs.twimg.com/profile_images/1096268642130452481/Wz4N-xQQ_normal.jpg", "profile_image_url_https": "https://pbs.twimg.com/profile_images/1096268642130452481/Wz4N-xQQ_normal.jpg", "profile_banner_url": "https://pbs.twimg.com/profile_banners/1080735314438549504/1550496794", "profile_link_color": "1DA1F2", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": true, "has_extended_profile": true, "default_profile": true, "default_profile_image": false, "following": false, "follow_request_sent": false, "notifications": false, "translator_type": "none"}, "geo": null, "coordinates": null, "place": null, "contributors": null, "is_quote_status": false, "retweet_count": 0, "favorite_count": 1, "favorited": false, "retweeted": false, "lang": "en"}
|
json
|
KATHMANDU: A grand festival was organized at Indradaha or Siddha Pokhari based in Dudhpati of Bhaktapur today. A large number of people thronged Siddha Pokhari to observe the festival organised on the day of Purnima, the full moon day in the month of Bhadau as per the lunar calendar.
The festival began with taking an idol of Hindu God Indra to the Siddha Pokhari from Indrayani Dho Chhe based in Khauma of Bhaktapur municipality on Friday evening. The idol of the god Indra was placed on a wooden chariot and taken around the city before carrying it to the Siddha Pokhari.
A Deepawali (lighting of butter lamps) was held on a Friday evening. The festival will conclude this evening after taking the idol back to Dho Chhe.
The festival symbolizes a myth dating back to the Dwarpara Yuga, one of four ages, when the God Krishna lifted the Gobardhan hill on the tip of his finger to save people from a powerful hailstorm and rainfall brought down by the God Indra enraged by cow herders as a punishment to them.
According to local historian Purushottam Lochan Shrestha, Indradev who earned fame as the most powerful crown prince in Nepal Sambat 218 had built the pond.
|
english
|
116/7 (17. 0 ov)
119/4 (16. 1 ov)
172/7 (20. 0 ov)
157 (20. 0 ov)
India could take the field in orange colours against Afghanistan whose jersey is also predominantly blue. In the rest of the game, India will wear blue as usual.
South Africa are in desperate need of a victory on Wednesday after their two defeats.
On a dry Ageas Bowl surface, India could play Ravindra Jadeja and Vijay Shankar.
For Tendulkar, who was part of two of three finals that India played, the change of rules makes it difficult to compare generations.
Dope control official took the pacer for conducting a test during the team’s practice session at the Rose Bowl stadium in Southampton.
India will kick off their World Cup 2019 campaign on June 5 as they take on South Africa in Southampton.
When the Indian management did not send a member of the squad, as per earlier communication, the travelling media politely declined the BCCI's offer.
McCullum hoped that New Zealand will ride their luck and make it to the semifinals of the World Cup 2019.
Former England captain Nasser Hussain sees Sourav Ganguly as the man who changed Indian cricket.
|
english
|
<filename>server/server.ts
const graphqlHTTP = require('express-graphql')
const schema = require('../graphql/schema')
import { getPosts } from '../medium/api'
import { graphqlParams } from '../typeDefs'
const mediumServer: any = graphqlHTTP(
async (request: any, response: any, graphQLParams: graphqlParams) => ({
schema,
rootValue: await getPosts(graphQLParams),
graphiql: process.env.ENV_VARIABLE === 'production' ? false : true,
pretty: true,
}))
export default mediumServer
|
typescript
|
<reponame>bacora03/YDM-Data
{
"name": "<NAME>",
"number": "71797713",
"is_illegal": false,
"text": "You can send 2 other monsters from your hand to the GY; Special Summon this card from your hand. You can only use this effect of \"Elementsaber Lapauila Mana\" once per turn. Apply the following effect(s) to \"Elementsaber\" and \"Elemental Lord\" monsters you control, depending on the original Attributes of any \"Elementsaber\" monsters sent to the GY to activate this card's effect.\nâ—? EARTH or WIND: Cannot be destroyed by battle.\nâ—? WATER or FIRE: Cannot be destroyed by effects.\nâ—? LIGHT or DARK: Your opponent cannot target it with card effects.",
"type": "Monster",
"is_monster": true,
"is_spell": false,
"is_trap": false,
"species": "Warrior",
"attack": "2400",
"defense": "2100",
"attribute": "LIGHT",
"is_pendulum": false,
"is_xyz": false,
"is_synchro": false,
"is_fusion": false,
"is_link": false,
"is_extra_deck": false,
"monster_types": [
"Effect"
],
"stars": "0"
}
|
json
|
{
"##choices#cmd_key": "cmd1",
"##choices#compile_type": "dynamic",
"##choices#compiler_flags#base_opt": "-O1",
"##choices#compiler_flags#fcprop_registers": "-fno-cprop-registers",
"##choices#compiler_flags#freorder_blocks": "-freorder-blocks",
"##choices#compiler_flags#fsched_spec": "-fno-sched-spec",
"##choices#compiler_flags#fsel_sched_pipelining_outer_loops": "-fsel-sched-pipelining-outer-loops",
"##choices#compiler_flags#ftree_copyrename": "-ftree-copyrename",
"##choices#compiler_flags#ftree_vectorize": "-ftree-vectorize",
"##choices#compiler_flags#funsafe_loop_optimizations": "-fno-unsafe-loop-optimizations",
"##choices#compiler_flags#funswitch_loops": "-fno-unswitch-loops",
"##choices#compiler_flags#param_large_stack_frame_growth": "--param large-stack-frame-growth=697",
"##choices#compiler_flags#param_max_cselib_memory_locations": "--param max-cselib-memory-locations=332",
"##choices#compiler_flags#param_max_sched_region_insns": "--param max-sched-region-insns=185",
"##choices#compiler_flags#param_omega_eliminate_redundant_constraints": "--param omega-eliminate-redundant-constraints=0",
"##choices#compiler_flags#param_omega_max_geqs": "--param omega-max-geqs=266",
"##choices#compiler_flags#param_omega_max_keys": "--param omega-max-keys=289",
"##choices#compiler_flags#param_tracer_min_branch_ratio": "--param tracer-min-branch-ratio=85",
"##choices#data_uoa": "slambench-1.1-cpu",
"##choices#dataset_uoa": "slambench-living-room-traj2-loop-1frame",
"##choices#device_id": "",
"##choices#host_os": "linux-32",
"##choices#module_uoa": "b0ac08fe1d3c2615",
"##choices#repeat": 200,
"##choices#target_os": "linux-32",
"##choices#target_os_bits": "32"
}
|
json
|
<gh_stars>1-10
{"instantclick.js":"<KEY>,"instantclick.min.js":"<KEY>}
|
json
|
Container Corporation of India (Concor) reported a higher than expected Q1FY22 driven by better margins across EXIM and Domestic segment. Domestic EBIT/teu of Rs2,658 appears all time high. Domestic (handling) volumes are up 26% over Q1FY20 and EXIM originating volumes up 4% over Q1FY20 (has further room for improvement as market share loses stabilise).
Valuations have largely shaken off the possibility for higher LLF incidence, while acknowledging higher probability of divestment as well. From here on real progress towards divestment and execution/profitability will drive performance. We maintain HOLD on Concor with a revised target of Rs603/share (Rs563 earlier).
* Margins are higher than expected. EXIM and domestic EBIT/teu witnessed a significant improvement, and the trajectory has outperformed peers. It was partly expected as i) Increase of TKD price got implemented from Apr,’1 ii) increase in volumes leading to operating leverage and iii) Concor offered 50% discount on the empty movement from ports to ICDs and this resulted in 266% additional movement of empties in the first 45 days of Q1FY22 (disclosed in Q4FY21 conference call).
* Resolution of land license fee has removed a key overhang. While Q4FY21 has witnessed high incidence related to LLF, as Concor clears out past dues of IR (including service tax demand and LLF demand on empty running), FY21 (core) LLF has been recorded at Rs5. 17bn. Rs1137. 8mn has been provided as LLF in Q1FY22. The assessment is post handing over of 17 railway terminals. Also management, in the last concall, has guided for signing a long term lease agreement ( for 35 years) with Indian railways for 24 terminals which are still operating on railway land (2 terminals are scheduled to be handed over to IR over the course of FY22/23E). The upfront payment at 99% of the current market value of the land under consideration has been assumed (by us) at ~ Rs70bn. With this upfront payment no further LLF needs to be paid for the next 35 years.
* DFC commissioning will be disproportionately beneficial for Concor. As DFC commissions, Concor is expected to witness i) Market share gains given the largest network of terminals along DFC without any meaningful incremental investment and ii) get all the tailwinds associated with the increasing rail share ( vis-à-vis road) – glimpses of which hare visible in the pandemic.
* Maintain HOLD. There are obvious operating benefits for Concor with commissioning of DFC, and perhaps post divestment profitability/market share can be better balanced towards further stakeholder value creation. The valuation overhang involving LLF seems to have cleared. From here on ‘real’ progress towards divestment and execution/profitability will drive stock performance. We maintain HOLD with a revised target of Rs 603/share.
|
english
|
Kia Rozana 1 Hazar Kamanay Wala Bhi Zakat Day Ga?
کیا روزانہ ایک ہزار کمانے والا بھی زکٰوۃ دے گا؟
Download In:
Kia Committee (BC) Par Bhi Zakat Ho Gi?
Zakat Tuhfa Keh Kar Dena Kia Jhoot Ho Ga?
|
english
|
{% extends "coursereg/base.html" %}
{% block body %}
{% include "coursereg/nav.html" %}
<div class="container" id="maincontainer">
<div class="row top-buffer-1">
<div class="col-md-12">
<h1>Courses</h1>
</div>
</div>
{% if messages %}
{% for message in messages %}
<div class="row top-buffer-1">
<div class="col-md-12">
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
<div class="alert alert-danger" role="alert">{{ message }}</div>
{% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %}
<div class="alert alert-warning" role="alert">{{ message }}</div>
{% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %}
<div class="alert alert-info" role="alert">{{ message }}</div>
{% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %}
<div class="alert alert-success" role="alert">{{ message }}</div>
{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
<div class="row top-buffer-1">
<div class="col-md-12">
<table class="table table-striped">
{% for course in courses %}
<tr>
<td>
{% if course.is_last_grade_date_passed %}
<a class="inactive" href="{% url 'coursereg:instructor_detail' course.id %}">{{ course }}</a>
{% else %}
<a href="{% url 'coursereg:instructor_detail' course.id %}">{{ course }}</a>
{% if course.is_instructor_review_pending %}
<span class="label label-success">new</span>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% if can_faculty_create_courses %}
<div class="row">
<div class="col-md-12">
<a href="{% url 'coursereg:instructor_new_course' %}" class="btn btn-primary">New course</a>
</div>
</div>
{% endif %}
</div>
{% endblock %}
|
html
|
<filename>tests/Unit/DataStructures/DataBox/Test_TagName.cpp<gh_stars>0
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <string>
#include "DataStructures/DataBox/Tag.hpp"
#include "DataStructures/DataBox/TagName.hpp"
#include "Helpers/DataStructures/DataBox/TestTags.hpp"
namespace {
struct NamedSimple : db::SimpleTag {
static std::string name() noexcept { return "NameOfSimple"; }
};
struct NamedBase : db::BaseTag {
static std::string name() noexcept { return "NameOfBase"; }
};
struct NamedSimpleWithBase : TestHelpers::db::Tags::Base, db::SimpleTag {
static std::string name() noexcept { return "NameOfSimpleWithBase"; }
};
struct SimpleWithNamedBase : NamedBase, db::SimpleTag {};
struct NamedSimpleWithNamedBase : NamedBase, db::SimpleTag {
static std::string name() noexcept { return "NameOfSimpleWithNamedBase"; }
};
struct SimpleNamedCompute : TestHelpers::db::Tags::Simple, db::ComputeTag {
static std::string name() noexcept { return "NameOfSimpleCompute"; }
};
struct NamedSimpleNamedCompute : NamedSimple, db::ComputeTag {
static std::string name() noexcept { return "NameOfNamedSimpleCompute"; }
};
struct NamedSimpleCompute : NamedSimple, db::ComputeTag {
using base = NamedSimple;
};
struct SimpleWithBaseNamedCompute : TestHelpers::db::Tags::SimpleWithBase,
db::ComputeTag {
static std::string name() noexcept { return "NameOfSimpleWithBaseCompute"; }
};
struct NamedSimpleWithBaseNamedCompute : NamedSimpleWithBase, db::ComputeTag {
static std::string name() noexcept {
return "NameOfNamedSimpleWithBaseCompute";
}
};
struct NamedSimpleWithBaseCompute : NamedSimpleWithBase, db::ComputeTag {
using base = NamedSimpleWithBase;
};
struct SimpleWithNamedBaseNamedCompute : SimpleWithNamedBase, db::ComputeTag {
static std::string name() noexcept {
return "NameOfSimpleWithNamedBaseCompute";
}
};
struct SimpleWithNamedBaseCompute : SimpleWithNamedBase, db::ComputeTag {
using base = SimpleWithNamedBase;
};
struct NamedSimpleWithNamedBaseNamedCompute : NamedSimpleWithNamedBase,
db::ComputeTag {
static std::string name() noexcept {
return "NameOfNamedSimpleWithNamedBaseCompute";
}
};
struct NamedSimpleWithNamedBaseCompute : NamedSimpleWithNamedBase,
db::ComputeTag {
using base = NamedSimpleWithNamedBase;
};
template <typename Tag>
struct NamedLabel : db::PrefixTag, db::SimpleTag {
using tag = Tag;
static std::string name() noexcept {
return "NameOfLabel(" + db::tag_name<Tag>() + ")";
}
};
template <typename Tag>
struct LabelNamedCompute : TestHelpers::db::Tags::Label<Tag>, db::ComputeTag {
using tag = Tag;
static std::string name() noexcept {
return "NameOfLabelCompute(" + db::tag_name<Tag>() + ")";
}
};
template <typename Tag>
struct NamedLabelCompute : NamedLabel<Tag>, db::ComputeTag {
using base = NamedLabel<Tag>;
using tag = Tag;
};
template <typename Tag>
struct NamedLabelNamedCompute : NamedLabel<Tag>, db::ComputeTag {
using tag = Tag;
static std::string name() noexcept {
return "NameOfNamedLabelCompute(" + db::tag_name<Tag>() + ")";
}
};
} // namespace
SPECTRE_TEST_CASE("Unit.DataStructures.DataBox.TagName",
"[Unit][DataStructures]") {
CHECK(db::tag_name<TestHelpers::db::Tags::Base>() == "Base");
CHECK(db::tag_name<TestHelpers::db::Tags::Simple>() == "Simple");
CHECK(db::tag_name<TestHelpers::db::Tags::SimpleWithBase>() ==
"SimpleWithBase");
CHECK(db::tag_name<TestHelpers::db::Tags::SimpleCompute>() == "Simple");
CHECK(db::tag_name<TestHelpers::db::Tags::SimpleWithBaseCompute>() ==
"SimpleWithBase");
CHECK(db::tag_name<NamedSimple>() == "NameOfSimple");
CHECK(db::tag_name<NamedBase>() == "NameOfBase");
CHECK(db::tag_name<NamedSimpleWithBase>() == "NameOfSimpleWithBase");
CHECK(db::tag_name<SimpleWithNamedBase>() == "NameOfBase");
CHECK(db::tag_name<NamedSimpleWithNamedBase>() ==
"NameOfSimpleWithNamedBase");
CHECK(db::tag_name<SimpleNamedCompute>() == "NameOfSimpleCompute");
CHECK(db::tag_name<NamedSimpleNamedCompute>() == "NameOfNamedSimpleCompute");
CHECK(db::tag_name<NamedSimpleCompute>() == "NameOfSimple");
CHECK(db::tag_name<SimpleWithBaseNamedCompute>() ==
"NameOfSimpleWithBaseCompute");
CHECK(db::tag_name<NamedSimpleWithBaseNamedCompute>() ==
"NameOfNamedSimpleWithBaseCompute");
CHECK(db::tag_name<NamedSimpleWithBaseCompute>() == "NameOfSimpleWithBase");
CHECK(db::tag_name<SimpleWithNamedBaseNamedCompute>() ==
"NameOfSimpleWithNamedBaseCompute");
CHECK(db::tag_name<SimpleWithNamedBaseCompute>() == "NameOfBase");
CHECK(db::tag_name<NamedSimpleWithNamedBaseNamedCompute>() ==
"NameOfNamedSimpleWithNamedBaseCompute");
CHECK(db::tag_name<NamedSimpleWithNamedBaseCompute>() ==
"NameOfSimpleWithNamedBase");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<TestHelpers::db::Tags::Base>>() ==
"Label(Base)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<TestHelpers::db::Tags::Simple>>() ==
"Label(Simple)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<
TestHelpers::db::Tags::SimpleWithBase>>() ==
"Label(SimpleWithBase)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<
TestHelpers::db::Tags::SimpleCompute>>() == "Label(Simple)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<
TestHelpers::db::Tags::SimpleWithBaseCompute>>() ==
"Label(SimpleWithBase)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<NamedSimple>>() ==
"Label(NameOfSimple)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<NamedBase>>() ==
"Label(NameOfBase)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<NamedSimpleWithBase>>() ==
"Label(NameOfSimpleWithBase)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<SimpleWithNamedBase>>() ==
"Label(NameOfBase)");
CHECK(
db::tag_name<TestHelpers::db::Tags::Label<NamedSimpleWithNamedBase>>() ==
"Label(NameOfSimpleWithNamedBase)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<SimpleNamedCompute>>() ==
"Label(NameOfSimpleCompute)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<NamedSimpleNamedCompute>>() ==
"Label(NameOfNamedSimpleCompute)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<NamedSimpleCompute>>() ==
"Label(NameOfSimple)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<SimpleWithBaseNamedCompute>>() ==
"Label(NameOfSimpleWithBaseCompute)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<NamedSimpleWithBaseNamedCompute>>() ==
"Label(NameOfNamedSimpleWithBaseCompute)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<NamedSimpleWithBaseCompute>>() ==
"Label(NameOfSimpleWithBase)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<SimpleWithNamedBaseNamedCompute>>() ==
"Label(NameOfSimpleWithNamedBaseCompute)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<SimpleWithNamedBaseCompute>>() ==
"Label(NameOfBase)");
CHECK(db::tag_name<TestHelpers::db::Tags::Label<
NamedSimpleWithNamedBaseNamedCompute>>() ==
"Label(NameOfNamedSimpleWithNamedBaseCompute)");
CHECK(db::tag_name<
TestHelpers::db::Tags::Label<NamedSimpleWithNamedBaseCompute>>() ==
"Label(NameOfSimpleWithNamedBase)");
CHECK(db::tag_name<NamedLabel<TestHelpers::db::Tags::Simple>>() ==
"NameOfLabel(Simple)");
CHECK(db::tag_name<LabelNamedCompute<TestHelpers::db::Tags::Simple>>() ==
"NameOfLabelCompute(Simple)");
CHECK(db::tag_name<NamedLabelCompute<TestHelpers::db::Tags::Simple>>() ==
"NameOfLabel(Simple)");
CHECK(db::tag_name<NamedLabelNamedCompute<TestHelpers::db::Tags::Simple>>() ==
"NameOfNamedLabelCompute(Simple)");
CHECK(db::tag_name<NamedLabel<NamedSimple>>() == "NameOfLabel(NameOfSimple)");
CHECK(db::tag_name<LabelNamedCompute<NamedSimple>>() ==
"NameOfLabelCompute(NameOfSimple)");
CHECK(db::tag_name<NamedLabelCompute<NamedSimple>>() ==
"NameOfLabel(NameOfSimple)");
CHECK(db::tag_name<NamedLabelNamedCompute<NamedSimple>>() ==
"NameOfNamedLabelCompute(NameOfSimple)");
}
|
cpp
|
Mumbai is home to some of the most popular amusement parks in the country, where families, kids, friends, and couples can enjoy their vacation. These amusement parks of Mumbai allow you to take a day off from monotonous life and experience a thrilling and memorable time with your loved ones. Rides, water parks, snow parks, and so much else are offered here. Essel World, Fantasy World, Adlabs Imagica, Water Kingdom, and Snow World are amongst the best amusement parks in Mumbai, which you can add to your itinerary during the Mumbai trip. Furthermore, you can enjoy a holiday in Mumbai by booking our customizable tour packages and including these water parks. Check out the below details of amusement parks in Mumbai to add fun and thrill to your holiday experience.
Here is the detailed information about famous amusement parks in and around Mumbai:
Popularly known as ‘Indian Disneyland,’ Adlabs Imagica is the biggest theme park in India. This is one of the best amusement parks in Mumbai, where kids, families, friends, and couples can enjoy their Mumbai trip. In addition, people of all ages can enjoy the rides in the amusement park.
The park has six entertainment zones: Europe, Arabia, Asiana, Americana, Jambo, Africa, and India. In these zones, there are numerous attractions, from enthralling and diversified rides. Some popular rides are Rajasaurus River adventure, Mr. India, Scream Machine, Loch Ness Explorers, and Wrath of the Gods. Also, people can enjoy entertaining live performances of B-boying, hip-hop dancing, BMX bike stunting, and magic shows.
- Timings: Monday to Friday: 11:00 AM to 8:00 PM (rides close at 7:00 PM), Saturday to Sunday: 11:00 AM to 9:00 PM (rides close at 8:00 PM)
- Fees:
Located on Gorai Island, Essel World is one of Mumbai's largest and oldest amusement parks. This is a popular place to visit in Mumbai among kids and families. It is a perfect picnic place for adventure and thrill-seekers to enjoy their day. Established in 1986, the Essel World also comprises an Ice Skating Rink, Bowling Alley, Cricket Zone, and other entertainment zones. This is among the must-visit places in Mumbai, and adults can enjoy riding on Shot-N-Drop, Top Spin, Enterprise, Hoola-Loop, Slippery Sultan, Sr-Dodgem, Sr-Telecombat, Thunder, and Cyclone. And for kids, there are numerous fun-filled and completely innovative rides.
- Fees:
- Children (height between 3’3” and 4’6”): INR 500,
- Adult (height above 4’6”): INR 800,
Spread over 12 acres of land, Yazoo Park is one of the famous amusement parks in Mumbai. It is located on the city's outskirts and caters to tourists of all ages. Yazoo Park is perfect for those who wish to enjoy some time away from the hustle-bustle and indulge in thrilling activities. It is the best of both worlds, including water rides and amusement parks. Some of the popular rides are the Ferris wheel and Merry-go-Round. You can go for ziplining and freefall also. Kids' rides range from Dragon Train to the Rifle range and gaming zone, which children can enjoy. The Water Zone offers an exquisite experience where families can enjoy their time. A floating restaurant in Yazoo Park provides a fantastic view and a perfect place to satiate your food craving.
- Fees: INR 599 for unlimited rides, INR 669 for unlimited rides & water zone, & INR 170 for water zone.
The Water Kingdom is Asia's largest theme water park, located 50 km from Mumbai. It is an ideal place to spend time with families and kids. You can indulge in numerous water activities, including modulated slides and a water pool. Goofer Lagoons and The Lagoons are prime attractions in the Water Kingdom for toddlers and children. Other famous adult rides are Rock 'N' Roll Safari, Serpent Safari, and Elephant Safari. In addition, the Lagoon, Atlantic, and Lazy River are popular zones of the water park in which adults can enjoy thrilling activities.
- Fees: The entry ticket rates are exclusive of food and a few paid attractions. However, you do get a booklet with discount coupons on selected restaurants or food items. More often than not, the park has various offers running for groups and school kids. So you can browse for current offers on their official site.
KidZania is an indoor theme park that is inspired by the real world. It offers real-world experience to kids from 2 years to 16 years. There are more than 60 plus fun role-play activities here where kids can enjoy and partake in numerous things. The educational environment of the theme park will help children grow by inspiring, encouraging, and educating them in an interactive environment. From toddlers and kids to adults, there are numerous things to do in KidZania for all age groups of tourists. The significant attractions of KidZania are Turkish Airlines Aviation Academy, Toonz Animation Studio, Radio City Radio Station, Party Hub, Pepperfry Furniture studio, Police and CSI Studio, and Big Bazaar Supermarket.
- Time: Kidzania generally has two working shifts.
The first shift begins from 10:00 AM to 3:00 PM second is scheduled from 3:00 PM to 8:00 PM or 9:00 PM.
- Fees:
- Weekdays (Tuesday to Friday)
- Kindly Note - Prices vary on Weekends and Public Holidays.
Spread over 26 acres of land, Great Escape Water Park is situated in Virar and is one of the hidden gems of Mumbai where adults can enjoy their day. This is a perfect place for grown-ups to laze around and rejuvenate away from the hustle-bustle of daily life. There are numerous adventure rides in the park for kids as well. The major highlights of the water park are 40 feet high slides and sky-high slides. The park also has different swimming pools and a wave pool for adults and kids. The restaurant in the water park complex offers mouthwatering dishes and cuisines along with refreshing mocktails you can enjoy during the rides.
|
english
|
//---------------------------------------------------------------------------
// ImageFile.cpp - implements the drawing API for bgtype = ImageFile
//---------------------------------------------------------------------------
#include "stdafx.h"
#include "Render.h"
#include "Utils.h"
#include "tmutils.h"
#include "rgn.h"
#include "ImageFile.h"
#include "CacheList.h"
#include "DrawHelp.h"
#include "ninegrid2.h"
#include "TmReg.h"
#include "globals.h"
#include "bmpcache.h"
//---------------------------------------------------------------------------
void AdjustSizeMin(SIZE *psz, int ixMin, int iyMin)
{
if (psz->cx < ixMin)
{
psz->cx = ixMin;
}
if (psz->cy < iyMin)
{
psz->cy = iyMin;
}
}
//---------------------------------------------------------------------------
HRESULT CMaxImageFile::PackMaxProperties(CRenderObj *pRender, int iPartId, int iStateId,
OUT int *piMultiDibCount)
{
HRESULT hr = PackProperties(pRender, iPartId, iStateId);
*piMultiDibCount = _iMultiImageCount;
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::PackProperties(CRenderObj *pRender, int iPartId, int iStateId)
{
HRESULT hr = S_OK;
memset(this, 0, sizeof(CImageFile)); // allowed because we have no vtable
_eBgType = BT_IMAGEFILE;
//---- save off partid, stateid for debugging ----
_iSourcePartId = iPartId;
_iSourceStateId = iStateId;
DIBINFO *pdi = &_ImageInfo;
pdi->iMinDpi = 96; // only way this gets set for now
pdi->iDibOffset = pRender->GetValueIndex(iPartId, iStateId, TMT_DIBDATA);
if (pdi->iDibOffset == -1) // not found
pdi->iDibOffset = 0;
//---- image-related fields ----
if (FAILED(pRender->GetInt(iPartId, iStateId, TMT_IMAGECOUNT, &_iImageCount)))
_iImageCount = 1; // default value
if (_iImageCount < 1) // avoid divide by zero problems
_iImageCount = 1;
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_IMAGELAYOUT, (int *)&_eImageLayout)))
_eImageLayout = IL_HORIZONTAL; // default value until we are converted
if (pdi->iDibOffset)
{
//---- compute some fields from bitmap ----
hr = SetImageInfo(pdi, pRender, iPartId, iStateId);
if (FAILED(hr))
goto exit;
}
//---- get MinSize ----
if (FAILED(pRender->GetPosition(iPartId, iStateId, TMT_MINSIZE, (POINT *)&pdi->szMinSize)))
{
pdi->szMinSize.cx = pdi->iSingleWidth;
pdi->szMinSize.cy = pdi->iSingleHeight;
}
else
{
AdjustSizeMin(&pdi->szMinSize, 1, 1);
}
//---- get TrueSizeScalingType ----
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_TRUESIZESCALINGTYPE, (int *)&_eTrueSizeScalingType)))
_eTrueSizeScalingType = TSST_NONE; // default
//---- sizing ----
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_SIZINGTYPE, (int *)&pdi->eSizingType)))
pdi->eSizingType = ST_STRETCH; // default
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_BORDERONLY, &pdi->fBorderOnly)))
pdi->fBorderOnly = FALSE;
if (FAILED(pRender->GetInt(iPartId, iStateId, TMT_TRUESIZESTRETCHMARK, &_iTrueSizeStretchMark)))
_iTrueSizeStretchMark = 0; // default
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_UNIFORMSIZING, &_fUniformSizing)))
_fUniformSizing = FALSE; // default
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_INTEGRALSIZING, &_fIntegralSizing)))
_fIntegralSizing = FALSE; // default
//---- transparency ----
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_TRANSPARENT, &pdi->fTransparent)))
pdi->fTransparent = FALSE;
if (pdi->fTransparent)
{
if (FAILED(pRender->GetColor(iPartId, iStateId, TMT_TRANSPARENTCOLOR, &pdi->crTransparent)))
pdi->crTransparent = DEFAULT_TRANSPARENT_COLOR;
}
//---- MirrorImage ----
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_MIRRORIMAGE, &_fMirrorImage)))
_fMirrorImage = TRUE; // default setting
//---- alignment ----
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_HALIGN, (int *)&_eHAlign)))
_eHAlign = HA_CENTER; // default value
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_VALIGN, (int *)&_eVAlign)))
_eVAlign = VA_CENTER; // default value
//---- for regular or glyph truesize images ----
if (SUCCEEDED(pRender->GetBool(iPartId, iStateId, TMT_BGFILL, &_fBgFill)))
{
//---- get fill color ----
if (FAILED(pRender->GetColor(iPartId, iStateId, TMT_FILLCOLOR, &_crFill)))
_crFill = RGB(255, 255, 255);
}
//---- SizingMargins ----
if (FAILED(pRender->GetMargins(NULL, iPartId, iStateId, TMT_SIZINGMARGINS,
NULL, &_SizingMargins)))
{
_SizingMargins.cxLeftWidth = 0;
_SizingMargins.cxRightWidth = 0;
_SizingMargins.cyTopHeight = 0;
_SizingMargins.cyBottomHeight = 0;
}
//---- ContentMargins ----
if (FAILED(pRender->GetMargins(NULL, iPartId, iStateId, TMT_CONTENTMARGINS,
NULL, &_ContentMargins)))
{
_ContentMargins = _SizingMargins;
}
//---- SourceGrow ----
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_SOURCEGROW, &_fSourceGrow)))
_fSourceGrow = FALSE; // default
//---- SourceShrink ----
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_SOURCESHRINK, &_fSourceShrink)))
_fSourceShrink = FALSE; // default
//---- NormalSize ----
if (FAILED(pRender->GetPosition(iPartId, iStateId, TMT_NORMALSIZE, (POINT *)&_szNormalSize)))
{
_szNormalSize.cx = 60;
_szNormalSize.cy = 30;
}
else
{
AdjustSizeMin(&_szNormalSize, 1, 1);
}
//---- glphytype ----
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_GLYPHTYPE, (int *)&_eGlyphType)))
_eGlyphType = GT_NONE; // default value
if (_eGlyphType == GT_FONTGLYPH)
{
//---- font-based glyphs ----
if (FAILED(pRender->GetFont(NULL, iPartId, iStateId, TMT_GLYPHFONT, FALSE, &_lfGlyphFont)))
goto exit; // required
if (FAILED(pRender->GetColor(iPartId, iStateId, TMT_GLYPHTEXTCOLOR, &_crGlyphTextColor)))
_crGlyphTextColor = RGB(0, 0, 0); // default color
if (FAILED(pRender->GetInt(iPartId, iStateId, TMT_GLYPHINDEX, &_iGlyphIndex)))
_iGlyphIndex = 1; // default index
}
else if (_eGlyphType == GT_IMAGEGLYPH)
{
//---- image-based glyphs ----
pdi = &_GlyphInfo;
pdi->iMinDpi = 96; // only way this gets set for now
pdi->iDibOffset = pRender->GetValueIndex(iPartId, iStateId, TMT_GLYPHDIBDATA);
if (pdi->iDibOffset == -1)
pdi->iDibOffset = 0;
if (pdi->iDibOffset > 0) // found
{
hr = SetImageInfo(pdi, pRender, iPartId, iStateId);
if (FAILED(hr))
goto exit;
}
if (SUCCEEDED(pRender->GetBool(iPartId, iStateId, TMT_GLYPHTRANSPARENT, &pdi->fTransparent)))
{
if (FAILED(pRender->GetColor(iPartId, iStateId, TMT_GLYPHTRANSPARENTCOLOR, &pdi->crTransparent)))
pdi->crTransparent = DEFAULT_TRANSPARENT_COLOR;
}
pdi->eSizingType = ST_TRUESIZE; // glyphs are always true size
pdi->fBorderOnly = FALSE; // glyphs are never borderonly (for now)
}
if (_eGlyphType != GT_NONE)
{
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_GLYPHONLY, &_fGlyphOnly)))
_fGlyphOnly = FALSE;
}
//---- multi files specified? ----
if (FAILED(pRender->GetEnumValue(iPartId, iStateId, TMT_IMAGESELECTTYPE, (int *)&_eImageSelectType)))
_eImageSelectType = IST_NONE;
//---- fill in multi DIBINFO's ----
if (_eImageSelectType != IST_NONE)
{
DIBINFO *pParent;
if (_eGlyphType == GT_IMAGEGLYPH)
{
pParent = &_GlyphInfo;
}
else
{
pParent = &_ImageInfo;
}
for (int i=0; i < MAX_IMAGEFILE_SIZES; i++)
{
//---- get ImageFileN ----
int iDibOffset = pRender->GetValueIndex(iPartId, iStateId, TMT_DIBDATA1 + i);
if (iDibOffset == -1)
break;
_iMultiImageCount++;
DIBINFO *pdi = MultiDibPtr(i);
*pdi = *pParent; // inherit some props from parent
pdi->iDibOffset = iDibOffset;
hr = SetImageInfo(pdi, pRender, iPartId, iStateId);
if (FAILED(hr))
goto exit;
//---- get MinDpiN ----
if (FAILED(pRender->GetInt(iPartId, iStateId, TMT_MINDPI1 + i, &pdi->iMinDpi)))
{
pdi->iMinDpi = 96; // default
}
else
{
//---- ensure value >= 1 ----
if (pdi->iMinDpi < 1)
{
pdi->iMinDpi = 1;
}
}
//---- get MinSizeN ----
if (FAILED(pRender->GetPosition(iPartId, iStateId, TMT_MINSIZE1 + i,
(POINT *)&pdi->szMinSize)))
{
pdi->szMinSize.cx = pdi->iSingleWidth;
pdi->szMinSize.cy = pdi->iSingleHeight;
}
else
{
AdjustSizeMin(&pdi->szMinSize, 1, 1);
}
}
if (_iMultiImageCount > 0)
{
*pParent = *MultiDibPtr(0); // use first multi entry as primary object
}
}
exit:
return hr;
}
//---------------------------------------------------------------------------
BOOL CImageFile::KeyProperty(int iPropId)
{
BOOL fKey = FALSE;
switch (iPropId)
{
case TMT_BGTYPE:
case TMT_TRANSPARENT:
case TMT_AUTOSIZE:
case TMT_BORDERONLY:
case TMT_IMAGECOUNT:
case TMT_ALPHALEVEL:
case TMT_ALPHATHRESHOLD:
case TMT_IMAGEFILE:
case TMT_IMAGEFILE1:
case TMT_IMAGEFILE2:
case TMT_IMAGEFILE3:
case TMT_IMAGEFILE4:
case TMT_IMAGEFILE5:
case TMT_SIZINGMARGINS:
case TMT_CONTENTMARGINS:
case TMT_TRANSPARENTCOLOR:
case TMT_SIZINGTYPE:
case TMT_HALIGN:
case TMT_VALIGN:
case TMT_IMAGELAYOUT:
case TMT_BGFILL:
case TMT_MIRRORIMAGE:
case TMT_TRUESIZESTRETCHMARK:
case TMT_TRUESIZESCALINGTYPE:
case TMT_IMAGESELECTTYPE:
case TMT_UNIFORMSIZING:
case TMT_INTEGRALSIZING:
case TMT_SOURCEGROW:
case TMT_SOURCESHRINK:
case TMT_NORMALSIZE:
case TMT_MINSIZE:
case TMT_MINSIZE1:
case TMT_MINSIZE2:
case TMT_MINSIZE3:
case TMT_MINSIZE4:
case TMT_MINSIZE5:
case TMT_MINDPI1:
case TMT_MINDPI2:
case TMT_MINDPI3:
case TMT_MINDPI4:
case TMT_MINDPI5:
//---- glyph properties ----
case TMT_GLYPHTYPE:
case TMT_GLYPHIMAGEFILE:
case TMT_GLYPHTRANSPARENT:
case TMT_GLYPHTRANSPARENTCOLOR:
case TMT_GLYPHFONT:
case TMT_GLYPHINDEX:
case TMT_GLYPHTEXTCOLOR:
case TMT_GLYPHONLY:
// case TMT_FILLCOLOR: - this prop belongs to BorderFill (we borrow it)
fKey = TRUE;
break;
}
return fKey;
}
//---------------------------------------------------------------------------
DIBINFO *CImageFile::EnumImageFiles(int iIndex)
{
DIBINFO *pdi = NULL;
BOOL fHasGlyph = (_eGlyphType == GT_IMAGEGLYPH);
//---- enum in this order: primary, glyph, multi images ----
if (iIndex == 0)
{
pdi = &_ImageInfo;
}
else if (iIndex == 1)
{
if (fHasGlyph)
pdi = &_GlyphInfo;
}
if (! pdi) // not yet set
{
if (fHasGlyph)
iIndex -= 2;
else
iIndex -= 1;
if (iIndex < _iMultiImageCount)
{
pdi = MultiDibPtr(iIndex);
}
}
return pdi;
}
//---------------------------------------------------------------------------
void CImageFile::DumpProperties(CSimpleFile *pFile, BYTE *pbThemeData, BOOL fFullInfo)
{
if (fFullInfo)
pFile->OutLine(L"Dump of CImageFile at offset=0x%x", (BYTE *)this - pbThemeData);
else
pFile->OutLine(L"Dump of CImageFile");
pFile->OutLine(L" _eBgType=%d", _eBgType);
DIBINFO *pdi = &_ImageInfo;
if (fFullInfo)
{
pFile->OutLine(L" iDibOffset=%d, _iImageCount=%d, _eImageLayout=%d",
pdi->iDibOffset, _iImageCount, _eImageLayout);
}
else
{
pFile->OutLine(L" _iImageCount=%d, _eImageLayout=%d, MinSize=(%d, %d)",
_iImageCount, _eImageLayout, pdi->szMinSize.cx, pdi->szMinSize.cy);
}
pFile->OutLine(L" _iSingleWidth=%d, _iSingleHeight=%d, _fMirrorImage=%d",
pdi->iSingleWidth, pdi->iSingleHeight, _fMirrorImage);
//---- dump multiple image info ----
for (int i=0; i < _iMultiImageCount; i++)
{
DIBINFO *pdi = MultiDibPtr(i);
pFile->OutLine(L" Multi[%d]: sw=%d, sh=%d, diboff=%d, rgnoff=%d",
i, pdi->iSingleWidth, pdi->iSingleHeight,
(pdi->iDibOffset > 0), (pdi->iRgnListOffset > 0));
pFile->OutLine(L" MinDpi=%d, MinSize=(%d, %d)",
pdi->iMinDpi, pdi->szMinSize.cx, pdi->szMinSize.cy);
pFile->OutLine(L" sizetype=%d, bordonly=%d, fTrans=%d, crTrans=0x%x, fAlpha=%d, iAlphaThres=%d",
pdi->eSizingType, pdi->fBorderOnly, pdi->fTransparent, pdi->crTransparent,
pdi->fAlphaChannel, pdi->iAlphaThreshold);
}
pFile->OutLine(L" _eSizingType=%d, _fBorderOnly=%d, _eTrueSizeScalingType=%d",
pdi->eSizingType, pdi->fBorderOnly, _eTrueSizeScalingType);
pFile->OutLine(L" _fTransparent=%d, _crTransparent=0x%08x",
pdi->fTransparent, pdi->crTransparent);
pFile->OutLine(L" _fAlphaChannel=%d, _iAlphaThreshold=%d",
pdi->fAlphaChannel, pdi->iAlphaThreshold);
pFile->OutLine(L" _eHAlign=%d, _eVAlign=%d, _iTrueSizeStretchMark=%d",
_eHAlign, _eVAlign, _iTrueSizeStretchMark);
pFile->OutLine(L" _fUniformSizing=%d, _fIntegralSizing=%d",
_fUniformSizing, _fIntegralSizing);
pFile->OutLine(L" _fBgFill=%d, _crFill=0x%08x",
_fBgFill, _crFill);
pFile->OutLine(L" _fSourceGrow=%d, _fSourceShrink=%d, _szNormalSize=(%d, %d)",
_fSourceGrow, _fSourceShrink, _szNormalSize.cx, _szNormalSize.cy);
pFile->OutLine(L" _SizingMargins=%d, %d, %d, %d",
_SizingMargins.cxLeftWidth, _SizingMargins.cxRightWidth,
_SizingMargins.cyTopHeight, _SizingMargins.cyBottomHeight);
pFile->OutLine(L" _ContentMargins=%d, %d, %d, %d",
_ContentMargins.cxLeftWidth, _ContentMargins.cxRightWidth,
_ContentMargins.cyTopHeight, _ContentMargins.cyBottomHeight);
pFile->OutLine(L" _fFontGlyph=%d, _iGlyphIndex=%d, _crGlyphTextColor=0x%x",
(_eGlyphType==GT_FONTGLYPH), _iGlyphIndex, _crGlyphTextColor);
pFile->OutLine(L" _lfGlyphFont=%s, _fGlyphOnly=%d, _fImageGlyph=%d",
_lfGlyphFont.lfFaceName, _fGlyphOnly, (_eGlyphType==GT_IMAGEGLYPH));
//---- dump glyph properties ----
pdi = &_GlyphInfo;
if (fFullInfo)
{
pFile->OutLine(L" Glyph: iDibOffset=%d, iSingleWidth=%d, iSingleHeight=%d",
pdi->iDibOffset, pdi->iSingleWidth, pdi->iSingleHeight);
}
else
{
pFile->OutLine(L" _iGlyphSingleWidth=%d, _iGlyphSingleHeight=%d",
pdi->iSingleWidth, pdi->iSingleHeight);
}
pFile->OutLine(L" _fGlyphTransparent=%d, _crGlyphTransparent=0x%x, _fGlyphAlpha=%d",
pdi->fTransparent, pdi->crTransparent, pdi->fAlphaChannel);
//pFile->OutLine(L" Glyph: iAlphaThreshold=%d", pdi->iAlphaThreshold);
}
//---------------------------------------------------------------------------
HRESULT CImageFile::SetImageInfo(DIBINFO *pdi, CRenderObj *pRender, int iPartId, int iStateId)
{
HRESULT hr = S_OK;
if (! pRender->_pbThemeData)
{
hr = E_FAIL;
goto exit;
}
TMBITMAPHEADER *pThemeBitmapHeader = NULL;
pThemeBitmapHeader = reinterpret_cast<TMBITMAPHEADER*>(pRender->_pbThemeData + pdi->iDibOffset);
ASSERT(pThemeBitmapHeader->dwSize == TMBITMAPSIZE);
pdi->fAlphaChannel = pThemeBitmapHeader->fTrueAlpha;
if (pdi->fAlphaChannel)
{
if (FAILED(pRender->GetBool(iPartId, iStateId, TMT_ALPHATHRESHOLD, &pdi->iAlphaThreshold)))
pdi->iAlphaThreshold = 255;
}
int iWidth = - 1;
int iHeight = -1;
if (pThemeBitmapHeader->hBitmap)
{
BITMAP bmInfo;
if (GetObject(pThemeBitmapHeader->hBitmap, sizeof(bmInfo), &bmInfo))
{
iWidth = bmInfo.bmWidth;
iHeight = bmInfo.bmHeight;
}
else
{
hr = E_FAIL;
}
}
else
{
BITMAPINFOHEADER* pbmInfo = BITMAPDATA(pThemeBitmapHeader);
if (pbmInfo)
{
iWidth = pbmInfo->biWidth;
iHeight = pbmInfo->biHeight;
}
else
{
hr = E_FAIL;
}
}
//---- get SingleWidth/SingleHeight of bitmap ----
if ((iWidth != -1) && (iHeight != -1))
{
if (_eImageLayout == IL_HORIZONTAL)
{
pdi->iSingleWidth = iWidth / _iImageCount;
pdi->iSingleHeight = iHeight;
}
else // vertical
{
pdi->iSingleWidth = iWidth;
pdi->iSingleHeight = iHeight / _iImageCount;
}
}
exit:
return hr;
}
//---------------------------------------------------------------------------
BOOL CImageFile::HasRegionImageFile(DIBINFO *pdi, int *piMaxState)
{
BOOL fGot = FALSE;
if ((pdi->fTransparent) || (pdi->fAlphaChannel))
{
if (pdi->iDibOffset > 0)
{
fGot = TRUE;
*piMaxState = _iImageCount;
}
}
return fGot;
}
//---------------------------------------------------------------------------
void CImageFile::SetRgnListOffset(DIBINFO *pdi, int iOffset)
{
//---- get offset to the actual jump table ----
pdi->iRgnListOffset = iOffset + ENTRYHDR_SIZE;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::BuildRgnData(DIBINFO *pdi, CRenderObj *pRender, int iStateId, RGNDATA **ppRgnData,
int *piDataLen)
{
RESOURCE HRGN hrgn = NULL;
RESOURCE RGNDATA *pRgnData = NULL;
int iTotalBytes = 0;
int iRectCount;
DWORD len, len2;
HBITMAP hBitmap = NULL;
HRESULT hr = S_OK;
BOOL fStock = FALSE;
if ((! pdi->fAlphaChannel) && (! pdi->fTransparent)) // empty region
goto gotit;
if (pRender->_pbThemeData && pdi->iDibOffset > 0)
{
fStock = ((reinterpret_cast<TMBITMAPHEADER*>(pRender->_pbThemeData + pdi->iDibOffset))->hBitmap != NULL);
}
hr = pRender->GetBitmap(NULL, pdi->iDibOffset, &hBitmap);
if (FAILED(hr))
goto exit;
int iXOffset, iYOffset;
GetOffsets(iStateId, pdi, &iXOffset, &iYOffset);
//---- create a region ----
hr = CreateBitmapRgn(hBitmap, iXOffset, iYOffset, pdi->iSingleWidth, pdi->iSingleHeight,
pdi->fAlphaChannel, pdi->iAlphaThreshold, pdi->crTransparent, 0, &hrgn);
if (FAILED(hr))
{
//---- soft error - author said it was transparent but it wasn't ----
hr = S_OK;
goto gotit;
}
//---- extract region data ----
len = GetRegionData(hrgn, 0, NULL); // get required length
if (! len)
{
hr = MakeErrorLast();
goto exit;
}
iRectCount = len/sizeof(RECT); // # of rects
len += ((sizeof(BYTE)+sizeof(BYTE))*iRectCount); // room for grid id's for each point
iTotalBytes = len + sizeof(RGNDATAHEADER);
pRgnData = (RGNDATA *) new BYTE[iTotalBytes];
len2 = GetRegionData(hrgn, len, pRgnData);
if (! len2)
{
hr = MakeErrorLast();
goto exit;
}
//---- grid-ize the point values within each rect ----
RECT rcImage;
SetRect( &rcImage, 0, 0, pdi->iSingleWidth, pdi->iSingleHeight );
hr = pRender->PrepareRegionDataForScaling(pRgnData, &rcImage, &_SizingMargins);
if (FAILED(hr))
goto exit;
gotit:
*ppRgnData = pRgnData;
*piDataLen = iTotalBytes;
exit:
if (hBitmap && !fStock)
{
pRender->ReturnBitmap(hBitmap);
}
if (hrgn)
DeleteObject(hrgn);
if (FAILED(hr))
{
if (pRgnData)
delete [] pRgnData;
}
return hr;
}
//---------------------------------------------------------------------------
// Helper function for DrawBackgroundDS
void StreamSetSource(BYTE** pvStream, HBITMAP hbmSrc)
{
DS_SETSOURCE* pdsSetSource = (DS_SETSOURCE*)*pvStream;
pdsSetSource->ulCmdID = DS_SETSOURCEID;
pdsSetSource->hbm = HandleToULong(hbmSrc);
*pvStream += sizeof(DS_SETSOURCE);
}
//---------------------------------------------------------------------------
void StreamInit(BYTE** pvStream, HDC hdcDest, HBITMAP hbmSrc, RECTL* prcl)
{
DS_HEADER* pdsHeader = (DS_HEADER*)*pvStream;
pdsHeader->magic = DS_MAGIC;
*pvStream += sizeof(DS_HEADER);
DS_SETTARGET* pdsSetTarget = (DS_SETTARGET*)*pvStream;
pdsSetTarget->ulCmdID = DS_SETTARGETID;
pdsSetTarget->hdc = HandleToULong(hdcDest);
pdsSetTarget->rclDstClip = *prcl;
*pvStream += sizeof(DS_SETTARGET);
StreamSetSource(pvStream, hbmSrc);
}
//---------------------------------------------------------------------------
HBITMAP CreateScaledTempBitmap(HDC hdc, HBITMAP hSrcBitmap, int ixSrcOffset, int iySrcOffset,
int iSrcWidth, int iSrcHeight, int iDestWidth, int iDestHeight)
{
HBITMAP hTempBitmap = NULL;
if (hSrcBitmap) // create a DIB from caller's bitmap (Clipper test program)
{
//---- reuse our bitmap ----
hTempBitmap = g_pBitmapCacheScaled->AcquireBitmap(hdc, iDestWidth, iDestHeight);
if (hTempBitmap)
{
HDC hdcDest = CreateCompatibleDC(hdc);
if (hdcDest)
{
HBITMAP hOldDestBitmap = (HBITMAP)SelectObject(hdcDest, hTempBitmap);
HDC hdcSrc = CreateCompatibleDC(hdc);
if (hdcSrc)
{
SetLayout(hdcSrc, 0);
SetLayout(hdcDest, 0);
HBITMAP hOldSrcBitmap = (HBITMAP) SelectObject(hdcSrc, hSrcBitmap);
int iOldSM = SetStretchBltMode(hdcDest, COLORONCOLOR);
//---- stretch src to dest ----
StretchBlt(hdcDest, 0, 0, iDestWidth, iDestHeight,
hdcSrc, ixSrcOffset, iySrcOffset, iSrcWidth, iSrcHeight,
SRCCOPY);
SetStretchBltMode(hdcDest, iOldSM);
SelectObject(hdcSrc, hOldSrcBitmap);
DeleteDC(hdcSrc);
}
SelectObject(hdcDest, hOldDestBitmap);
DeleteDC(hdcDest);
}
}
}
return hTempBitmap;
}
//---------------------------------------------------------------------------
HBITMAP CreateUnscaledTempBitmap(HDC hdc, HBITMAP hSrcBitmap, int ixSrcOffset, int iySrcOffset,
int iDestWidth, int iDestHeight)
{
HBITMAP hTempBitmap = NULL;
if (hSrcBitmap) // create a DIB from caller's bitmap (Clipper test program)
{
//---- reuse our bitmap ----
hTempBitmap = g_pBitmapCacheUnscaled->AcquireBitmap(hdc, iDestWidth, iDestHeight);
if (hTempBitmap)
{
HDC hdcDest = CreateCompatibleDC(hdc);
if (hdcDest)
{
HBITMAP hOldDestBitmap = (HBITMAP) SelectObject(hdcDest, hTempBitmap);
HDC hdcSrc = CreateCompatibleDC(hdc);
if (hdcSrc)
{
SetLayout(hdcSrc, 0);
SetLayout(hdcDest, 0);
HBITMAP hOldSrcBitmap = (HBITMAP) SelectObject(hdcSrc, hSrcBitmap);
//---- copy src to dest ----
BitBlt(hdcDest, 0, 0, iDestWidth, iDestHeight, hdcSrc, ixSrcOffset, iySrcOffset,
SRCCOPY);
SelectObject(hdcSrc, hOldSrcBitmap);
DeleteDC(hdcSrc);
}
SelectObject(hdcDest, hOldDestBitmap);
DeleteDC(hdcDest);
}
}
}
return hTempBitmap;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::DrawBackgroundDS(DIBINFO *pdi, TMBITMAPHEADER *pThemeBitmapHeader, BOOL fStock,
CRenderObj *pRender, HDC hdc, int iStateId, const RECT *pRect, BOOL fForceStretch,
MARGINS *pmarDest, float xMarginFactor, float yMarginFactor, OPTIONAL const DTBGOPTS *pOptions)
{
//---- bitmaps we may create ----
HBITMAP hBitmapStock = NULL;
HBITMAP hBitmapTempScaled = NULL;
HBITMAP hBitmapTempUnscaled = NULL;
//---- copy of bitmap handle to use ----
HBITMAP hDsBitmap = NULL;
HRESULT hr = S_OK;
int iTempSrcWidth = pdi->iSingleWidth;
int iTempSrcHeight = pdi->iSingleHeight;
int iXOffset, iYOffset;
GetOffsets(iStateId, pdi, &iXOffset, &iYOffset);
if (pThemeBitmapHeader) // get stock bitmap (32 bit format)
{
hr = pRender->GetBitmap(hdc, pdi->iDibOffset, &hBitmapStock);
if (FAILED(hr))
goto exit;
hDsBitmap = hBitmapStock;
}
else // caller passed in bitmap (unknown format)
{
hBitmapTempUnscaled = CreateUnscaledTempBitmap(hdc, pdi->hProcessBitmap, iXOffset, iYOffset,
pdi->iSingleWidth, pdi->iSingleHeight);
if (! hBitmapTempUnscaled)
{
hr = E_FAIL;
goto exit;
}
hDsBitmap = hBitmapTempUnscaled;
//---- src is now just a single image ----
iXOffset = iYOffset = 0;
}
//---- handle scaled margins ----
if ((xMarginFactor != 1) || (yMarginFactor != 1))
{
iTempSrcWidth = int(pdi->iSingleWidth * xMarginFactor);
iTempSrcHeight = int(pdi->iSingleHeight * yMarginFactor);
hBitmapTempScaled = CreateScaledTempBitmap(hdc, hDsBitmap, iXOffset, iYOffset,
pdi->iSingleWidth, pdi->iSingleHeight, iTempSrcWidth, iTempSrcHeight);
if (! hBitmapTempScaled)
{
hr = E_FAIL;
goto exit;
}
hDsBitmap = hBitmapTempScaled;
//---- src is now just a single image ----
iXOffset = iYOffset = 0;
}
if (hDsBitmap)
{
RECTL rclSrc = { iXOffset, iYOffset, iXOffset + iTempSrcWidth, iYOffset + iTempSrcHeight };
RECTL rclDest = { pRect->left, pRect->top, pRect->right, pRect->bottom };
// Flip Dest Rect if someone passed us inverted co-ordinates
if (rclDest.left > rclDest.right)
{
int xTemp = rclDest.left;
rclDest.left = rclDest.right;
rclDest.right = xTemp;
}
if (rclDest.top > rclDest.bottom)
{
int yTemp = rclDest.bottom;
rclDest.bottom = rclDest.top;
rclDest.top = yTemp;
}
DWORD dwOptionFlags = 0;
if (pOptions)
{
dwOptionFlags = pOptions->dwFlags;
}
// Initialize Drawing Stream
BYTE stream[500];
BYTE* pvStreamStart = stream;
BYTE* pvStream = stream;
RECTL rclClip = rclDest;
if (dwOptionFlags & DTBG_CLIPRECT)
{
IntersectRect((LPRECT)&rclClip, (LPRECT)&rclDest, &pOptions->rcClip);
}
StreamInit(&pvStream, hdc, hDsBitmap, &rclClip);
DS_NINEGRID* pvNineGrid = (DS_NINEGRID*)pvStream;
pvNineGrid->ulCmdID = DS_NINEGRIDID;
if ((fForceStretch) || (pdi->eSizingType == ST_STRETCH))
{
pvNineGrid->ngi.flFlags = DSDNG_STRETCH;
}
else if (pdi->eSizingType == ST_TRUESIZE)
{
pvNineGrid->ngi.flFlags = DSDNG_TRUESIZE;
}
else
{
pvNineGrid->ngi.flFlags = DSDNG_TILE;
}
if (pdi->fAlphaChannel)
{
pvNineGrid->ngi.flFlags |= DSDNG_PERPIXELALPHA;
}
else if (pdi->fTransparent)
{
pvNineGrid->ngi.flFlags |= DSDNG_TRANSPARENT;
}
if ((dwOptionFlags & DTBG_MIRRORDC) || (IsMirrored(hdc)))
{
if (_fMirrorImage)
{
pvNineGrid->ngi.flFlags |= DSDNG_MUSTFLIP;
//---- workaround: needed by GdiDrawStream if we don't have a mirrored DC ----
//---- gdi should only look at the DSDNG_MUSTFLIP flag ----
if (! IsMirrored(hdc))
{
int xTemp = rclDest.left;
rclDest.left = rclDest.right;
rclDest.right = xTemp;
}
}
}
pvNineGrid->rclDst = rclDest;
pvNineGrid->rclSrc = rclSrc;
if (pdi->eSizingType == ST_TRUESIZE)
{
pvNineGrid->ngi.ulLeftWidth = 0;
pvNineGrid->ngi.ulRightWidth = 0;
pvNineGrid->ngi.ulTopHeight = 0;
pvNineGrid->ngi.ulBottomHeight = 0;
}
else
{
//---- copy scaled Src margins ----
pvNineGrid->ngi.ulLeftWidth = pmarDest->cxLeftWidth;
pvNineGrid->ngi.ulRightWidth = pmarDest->cxRightWidth;
pvNineGrid->ngi.ulTopHeight = pmarDest->cyTopHeight;
pvNineGrid->ngi.ulBottomHeight = pmarDest->cyBottomHeight;
}
pvNineGrid->ngi.crTransparent = pdi->crTransparent;
pvStream += sizeof(DS_NINEGRID);
GdiDrawStream(hdc, (int)(pvStream - pvStreamStart), (char*) pvStreamStart);
}
else
{
hr = E_FAIL;
}
exit:
//---- clean up temp bitmaps ----
if (hBitmapTempScaled)
{
g_pBitmapCacheScaled->ReturnBitmap();
}
if (hBitmapTempUnscaled)
{
g_pBitmapCacheUnscaled->ReturnBitmap();
}
if ((hBitmapStock) && (! fStock)) // not really stock (was "create on demand")
{
pRender->ReturnBitmap(hBitmapStock);
}
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::DrawBackgroundDNG(DIBINFO *pdi, TMBITMAPHEADER *pThemeBitmapHeader, BOOL fStock, CRenderObj *pRender,
HDC hdc, int iStateId, const RECT *pRect, BOOL fForceStretch,
MARGINS *pmarDest, OPTIONAL const DTBGOPTS *pOptions)
{
HRESULT hr = E_FAIL;
//---- options ----
DWORD dwOptionFlags = 0;
const RECT *pClipRect = NULL;
if (pOptions)
{
dwOptionFlags = pOptions->dwFlags;
if (dwOptionFlags & DTBG_CLIPRECT)
pClipRect = &pOptions->rcClip;
}
int iXOffset, iYOffset;
GetOffsets(iStateId, pdi, &iXOffset, &iYOffset);
DWORD dwFlags = 0;
if (! (dwOptionFlags & DTBG_DRAWSOLID))
{
if (pdi->fTransparent)
{
dwFlags = NGI_TRANS;
}
if (pdi->fAlphaChannel)
{
dwFlags = NGI_ALPHA;
}
}
ULONG* pvSrcBits = NULL;
int iWidth = 0;
int iHeight = 0;
BOOL fFreeBits = FALSE;
if (pThemeBitmapHeader)
{
BITMAPINFOHEADER* pHeader = BITMAPDATA(pThemeBitmapHeader);
if (pHeader && pHeader->biBitCount == 32)
{
pvSrcBits = (ULONG*)DIBDATA(pHeader);
}
iWidth = pHeader->biWidth;
iHeight = pHeader->biHeight;
}
else if (pdi->hProcessBitmap)
{
BITMAP bm;
if (GetObject(pdi->hProcessBitmap, sizeof(bm), &bm))
{
BITMAPINFO bmInfo = {{sizeof(BITMAPINFOHEADER), bm.bmWidth, bm.bmHeight, 1, 32, BI_RGB, 0, 0, 0, 0, 0}, NULL};
pvSrcBits = new DWORD[bm.bmWidth * bm.bmHeight];
if (pvSrcBits)
{
if (GetDIBits(hdc, pdi->hProcessBitmap, 0, bm.bmHeight, pvSrcBits, &bmInfo, DIB_RGB_COLORS))
{
fFreeBits = TRUE;
iWidth = bm.bmWidth;
iHeight = bm.bmHeight;
}
else
{
delete[] pvSrcBits;
pvSrcBits = NULL;
}
}
}
}
if (pvSrcBits)
{
NGIMAGE ngi;
ngi.hbm = NULL;
ngi.iWidth = pdi->iSingleWidth;
ngi.iHeight = pdi->iSingleHeight;
ngi.margin = _SizingMargins;
//ngi.marDest = *pmarDest;
ngi.dwFlags = dwFlags;
ngi.crTrans = pdi->crTransparent;
if (fForceStretch)
ngi.eSize = ST_STRETCH;
else
ngi.eSize = pdi->eSizingType;
DWORD dwDNGFlags = 0;
if ((dwOptionFlags & DTBG_MIRRORDC) || (IsMirrored(hdc)))
{
if (_fMirrorImage)
{
dwDNGFlags |= DNG_MUSTFLIP;
}
}
ngi.iBufWidth = iWidth;
int iDibOffset = (iHeight - iYOffset) - pdi->iSingleHeight;
ngi.pvBits = pvSrcBits + (iDibOffset * ngi.iBufWidth) + iXOffset;
RECT rcDest = *pRect;
if (pdi->fBorderOnly &&
(RECTHEIGHT(&rcDest) > ngi.margin.cyTopHeight + ngi.margin.cyBottomHeight) &&
(RECTWIDTH(&rcDest) > ngi.margin.cxLeftWidth + ngi.margin.cxRightWidth))
{
RECT rcTop = rcDest;
RECT rcLeft = rcDest;
RECT rcBottom = rcDest;
RECT rcRight = rcDest;
rcLeft.top = rcRight.top = rcTop.bottom = rcTop.top + ngi.margin.cyTopHeight;
rcLeft.bottom = rcRight.bottom = rcBottom.top = rcBottom.bottom - ngi.margin.cyBottomHeight;
rcLeft.right = rcLeft.left + ngi.margin.cxLeftWidth;
rcRight.left = rcRight.right - ngi.margin.cxRightWidth;
if (pClipRect)
{
IntersectRect(&rcLeft, pClipRect, &rcLeft);
IntersectRect(&rcTop, pClipRect, &rcTop);
IntersectRect(&rcRight, pClipRect, &rcRight);
IntersectRect(&rcBottom, pClipRect, &rcBottom);
}
hr = DrawNineGrid2(hdc, &ngi, &rcDest, &rcTop, dwDNGFlags);
if (SUCCEEDED(hr))
{
hr = DrawNineGrid2(hdc, &ngi, &rcDest, &rcLeft, dwDNGFlags);
if (SUCCEEDED(hr))
{
hr = DrawNineGrid2(hdc, &ngi, &rcDest, &rcRight, dwDNGFlags);
if (SUCCEEDED(hr))
{
hr = DrawNineGrid2(hdc, &ngi, &rcDest, &rcBottom, dwDNGFlags);
}
}
}
}
else
{
hr = DrawNineGrid2(hdc, &ngi, &rcDest, pClipRect, dwDNGFlags);
}
if (fFreeBits)
{
delete[] pvSrcBits;
}
}
if (FAILED(hr))
{
Log(LOG_ALWAYS, L"DrawBackground FAILED: class=%s, hr=0x%x",
SHARECLASS(pRender), hr);
}
return hr;
}
//---------------------------------------------------------------------------
DIBINFO *CImageFile::SelectCorrectImageFile(CRenderObj *pRender, HDC hdc, OPTIONAL const RECT *prc,
BOOL fForGlyph, OPTIONAL TRUESTRETCHINFO *ptsInfo)
{
DIBINFO *pdiDefault = (fForGlyph) ? &_GlyphInfo : &_ImageInfo;
DIBINFO *pdi = NULL;
BOOL fForceRectSizing = FALSE;
int iWidth = 1;
int iHeight = 1;
//---- do we need a screen dc? ----
BOOL fReleaseDC = FALSE;
if (! hdc)
{
hdc = GetWindowDC(NULL);
if (hdc)
fReleaseDC = TRUE;
}
if (prc)
{
iWidth = WIDTH(*prc);
iHeight = HEIGHT(*prc);
}
//---- see if our clients wants to force a TRUESIZE to stretch ----
if ((fForGlyph) || (_ImageInfo.eSizingType == ST_TRUESIZE))
{
if ((pRender) && (pRender->_dwOtdFlags & OTD_FORCE_RECT_SIZING))
{
fForceRectSizing = TRUE;
}
}
//---- find correct file by DPI or Size ----
if ((fForGlyph) || (_eGlyphType != GT_IMAGEGLYPH)) // match multifiles to reg or glyph
{
BOOL fSizing = FALSE;
BOOL fDpi = FALSE;
if ((fForceRectSizing) || (_eImageSelectType == IST_SIZE) || (_fSourceGrow))
{
if (prc)
fSizing = TRUE;
}
else
{
fDpi = (_eImageSelectType == IST_DPI);
}
if (fDpi) // DPI-based image selection
{
int iMinDestDpi = __min(GetDeviceCaps(hdc, LOGPIXELSX), GetDeviceCaps(hdc, LOGPIXELSY));
//---- search from largest to smallest ----
for (int i=_iMultiImageCount-1; i >= 0; i--)
{
if (MultiDibPtr(i)->iMinDpi <= iMinDestDpi) // got him
{
pdi = MultiDibPtr(i);
break;
}
}
}
else if (fSizing) // Sizing-base image selection
{
if (_iMultiImageCount)
{
//---- search from largest to smallest ----
for (int i=_iMultiImageCount-1; i >= 0; i--)
{
DIBINFO *pdii = MultiDibPtr(i);
if ((pdii->szMinSize.cx <= iWidth) && (pdii->szMinSize.cy <= iHeight))
{
pdi = pdii;
break;
}
}
}
}
}
if (! pdi) // no match found
{
pdi = pdiDefault;
}
//---- determine drawing size of selected file (MultiImage or regular) ----
if (ptsInfo)
{
ptsInfo->fForceStretch = FALSE;
ptsInfo->fFullStretch = FALSE;
ptsInfo->szDrawSize.cx = 0;
ptsInfo->szDrawSize.cy = 0;
//---- this sizing only applies to TRUESIZE images ----
if ((pdi->eSizingType == ST_TRUESIZE) && (_eTrueSizeScalingType != TSST_NONE))
{
if (prc)
{
//---- force an exact stretch match? ----
if ((fForceRectSizing) || (pdi->iSingleWidth > iWidth) || (pdi->iSingleHeight > iHeight))
{
//---- either Forced to stretch by caller or image is too big for dest RECT ----
ptsInfo->fForceStretch = TRUE;
ptsInfo->fFullStretch = TRUE;
ptsInfo->szDrawSize.cx = iWidth;
ptsInfo->szDrawSize.cy = iHeight;
}
}
if (! ptsInfo->fForceStretch) // keep trying..
{
//---- see if image is too small for dest RECT ---
SIZE szTargetSize = {0, 0};
if (_eTrueSizeScalingType == TSST_DPI)
{
int ixDpiDc = GetDeviceCaps(hdc, LOGPIXELSX);
int iyDpiDc = GetDeviceCaps(hdc, LOGPIXELSY);
szTargetSize.cx = MulDiv(pdi->iSingleWidth, ixDpiDc, pdi->iMinDpi);
szTargetSize.cy = MulDiv(pdi->iSingleHeight, iyDpiDc, pdi->iMinDpi);
}
else if ((_eTrueSizeScalingType == TSST_SIZE) && (prc))
{
szTargetSize.cx = MulDiv(pdi->iSingleWidth, iWidth, pdi->szMinSize.cx);
szTargetSize.cy = MulDiv(pdi->iSingleHeight, iHeight, pdi->szMinSize.cy);
}
if (szTargetSize.cx) // was set
{
//---- clip targetsize against dest rect ----
if (prc)
{
szTargetSize.cx = __min(szTargetSize.cx, iWidth);
szTargetSize.cy = __min(szTargetSize.cy, iHeight);
}
int ixPercentExceed = 100*(szTargetSize.cx - pdi->iSingleWidth)/pdi->iSingleWidth;
int iyPercentExceed = 100*(szTargetSize.cy - pdi->iSingleHeight)/pdi->iSingleHeight;
if ((ixPercentExceed >= _iTrueSizeStretchMark) && (iyPercentExceed >= _iTrueSizeStretchMark))
{
ptsInfo->fForceStretch = TRUE;
ptsInfo->szDrawSize = szTargetSize;
}
}
}
}
}
if (! pdi)
{
pdi = pdiDefault;
}
if (fReleaseDC)
{
ReleaseDC(NULL, hdc);
}
return pdi;
}
//---------------------------------------------------------------------------
void CImageFile::GetDrawnImageSize(DIBINFO *pdi, const RECT *pRect, TRUESTRETCHINFO *ptsInfo,
SIZE *pszDraw)
{
//---- szDraw is the size image will be drawn to ----
if (pdi->eSizingType == ST_TRUESIZE)
{
if (ptsInfo->fForceStretch)
{
*pszDraw = ptsInfo->szDrawSize;
//---- integral sizing (stretched truesize only) ----
if ((_fIntegralSizing) && (! ptsInfo->fFullStretch))
{
float flFactX = float(ptsInfo->szDrawSize.cx)/pdi->iSingleWidth;
float flFactY = float(ptsInfo->szDrawSize.cy)/pdi->iSingleHeight;
//---- cast float's to int to get lowest int (vs. rounded) ----
pszDraw->cx = pdi->iSingleWidth * int(flFactX);
pszDraw->cy = pdi->iSingleHeight * int(flFactY);
}
}
else // use original image size
{
pszDraw->cx = pdi->iSingleWidth;
pszDraw->cy = pdi->iSingleHeight;
}
//---- Uniform Sizing ----
if (_fUniformSizing)
{
int iSingleWidth = pdi->iSingleWidth;
int iSingleHeight = pdi->iSingleHeight;
double fact1 = double(pszDraw->cx)/iSingleWidth;
double fact2 = double(pszDraw->cy)/iSingleHeight;
//---- select the smallest factor to use for both dims ----
if (fact1 < fact2)
{
pszDraw->cy = int(iSingleHeight*fact1);
}
else if (fact1 > fact2)
{
pszDraw->cx = int(iSingleWidth*fact2);
}
}
}
else // ST_TILE or ST_STRETCH: pRect determines size
{
if (pRect)
{
pszDraw->cx = WIDTH(*pRect);
pszDraw->cy = HEIGHT(*pRect);
}
else // void function so just return 0
{
pszDraw->cx = 0;
pszDraw->cy = 0;
}
}
}
//---------------------------------------------------------------------------
HRESULT CImageFile::DrawImageInfo(DIBINFO *pdi, CRenderObj *pRender, HDC hdc, int iStateId,
const RECT *pRect, const DTBGOPTS *pOptions, TRUESTRETCHINFO *ptsInfo)
{
HRESULT hr = S_OK;
TMBITMAPHEADER *pThemeBitmapHeader = NULL;
BOOL fStock = FALSE;
RECT rcLocal;
DWORD dwFlags;
SIZE szDraw;
BOOL fRectFilled;
MARGINS marDest;
float xFactor;
float yFactor;
if (pOptions)
dwFlags = pOptions->dwFlags;
else
dwFlags = 0;
//---- validate bitmap header ----
if (! pdi->hProcessBitmap) // regular, section based DIB
{
if (pRender->_pbThemeData && pdi->iDibOffset > 0)
{
pThemeBitmapHeader = reinterpret_cast<TMBITMAPHEADER*>(pRender->_pbThemeData + pdi->iDibOffset);
ASSERT(pThemeBitmapHeader->dwSize == TMBITMAPSIZE);
fStock = (pThemeBitmapHeader->hBitmap != NULL);
}
if (!pRender->IsReady())
{
// Stock bitmaps in section are cleaning, don't try to paint with an old HBITMAP
hr = E_FAIL;
//Log(LOG_TMBITMAP, L"Obsolete theme section: class=%s", SHARECLASS(pRender));
goto exit;
}
if (pThemeBitmapHeader == NULL)
{
hr = E_FAIL;
Log(LOG_ALWAYS, L"No TMBITMAPHEADER: class=%s, hr=0x%x", SHARECLASS(pRender), hr);
goto exit;
}
}
//----- set szDraw to size image will be drawn at ----
GetDrawnImageSize(pdi, pRect, ptsInfo, &szDraw);
rcLocal = *pRect;
fRectFilled = TRUE;
//---- horizontal alignment ----
if (WIDTH(rcLocal) > szDraw.cx)
{
fRectFilled = FALSE;
if (_eHAlign == HA_LEFT)
{
rcLocal.right = rcLocal.left + szDraw.cx;
}
else if (_eHAlign == HA_CENTER)
{
rcLocal.left += (WIDTH(rcLocal) - szDraw.cx) / 2;
rcLocal.right = rcLocal.left + szDraw.cx;
}
else
{
rcLocal.left = rcLocal.right - szDraw.cx;
}
}
//---- vertical alignment ----
if (HEIGHT(rcLocal) > szDraw.cy)
{
fRectFilled = FALSE;
if (_eVAlign == VA_TOP)
{
rcLocal.bottom = rcLocal.top + szDraw.cy;
}
else if (_eVAlign == VA_CENTER)
{
rcLocal.top += (HEIGHT(rcLocal) - szDraw.cy) / 2;
rcLocal.bottom = rcLocal.top + szDraw.cy;
}
else
{
rcLocal.top = rcLocal.bottom - szDraw.cy;
}
}
//---- BgFill ----
if ((! fRectFilled) && (! pdi->fBorderOnly) && (_fBgFill))
{
if (! (dwFlags & DTBG_OMITCONTENT))
{
//---- paint bg ----
HBRUSH hbr = CreateSolidBrush(_crFill);
if (! hbr)
{
hr = GetLastError();
goto exit;
}
FillRect(hdc, pRect, hbr);
DeleteObject(hbr);
}
}
//---- calculate source/margin scaling factors ----
marDest = _SizingMargins;
if (pdi->eSizingType == ST_TRUESIZE) // sizing margins ignored - no scaling needed
{
xFactor = 1;
yFactor = 1;
}
else
{
//---- scale destination sizing margins ----
ScaleMargins(&marDest, hdc, pRender, pdi, &szDraw, &xFactor, &yFactor);
}
#if 1 // keep this in sync with #if in parser.cpp
//---- new GDI drawing ----
hr = DrawBackgroundDS(pdi, pThemeBitmapHeader, fStock, pRender, hdc, iStateId, &rcLocal,
ptsInfo->fForceStretch, &marDest, xFactor, yFactor, pOptions);
#else
//---- old drawing (keep around until DS is burned in) ----
hr = DrawBackgroundDNG(pdi, pThemeBitmapHeader, fStock, pRender, hdc, iStateId, &rcLocal,
ptsInfo->fForceStretch, &marDest, pOptions);
#endif
exit:
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::DrawBackground(CRenderObj *pRender, HDC hdc, int iStateId,
const RECT *pRect, OPTIONAL const DTBGOPTS *pOptions)
{
HRESULT hr = S_OK;
TRUESTRETCHINFO tsInfo;
if (! _fGlyphOnly)
{
DIBINFO *pdi = SelectCorrectImageFile(pRender, hdc, pRect, FALSE, &tsInfo);
//---- draw normal image ----
hr = DrawImageInfo(pdi, pRender, hdc, iStateId, pRect, pOptions, &tsInfo);
}
//---- draw glyph, if needed ----
if (SUCCEEDED(hr) && (_eGlyphType != GT_NONE))
{
RECT rc;
hr = GetBackgroundContentRect(pRender, hdc, pRect, &rc);
if (SUCCEEDED(hr))
{
if (_eGlyphType == GT_FONTGLYPH)
{
hr = DrawFontGlyph(pRender, hdc, &rc, pOptions);
}
else
{
DIBINFO *pdi = SelectCorrectImageFile(pRender, hdc, &rc, TRUE, &tsInfo);
//---- draw glyph image ----
hr = DrawImageInfo(pdi, pRender, hdc, iStateId, &rc, pOptions, &tsInfo);
}
}
}
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::DrawFontGlyph(CRenderObj *pRender, HDC hdc, RECT *prc,
OPTIONAL const DTBGOPTS *pOptions)
{
HRESULT hr = S_OK;
DWORD dwFlags = DT_SINGLELINE;
HFONT hFont = NULL;
HFONT hOldFont = NULL;
COLORREF crOld = 0;
CSaveClipRegion scrOrig;
int iOldMode = 0;
WCHAR szText[2] = { (WCHAR)_iGlyphIndex, 0 };
//---- options ----
DWORD dwOptionFlags = 0;
const RECT *pClipRect = NULL;
if (pOptions)
{
dwOptionFlags = pOptions->dwFlags;
if (dwOptionFlags & DTBG_CLIPRECT)
pClipRect = &pOptions->rcClip;
}
//---- create the font ----
hr = pRender->GetScaledFontHandle(hdc, &_lfGlyphFont, &hFont);
if (FAILED(hr))
goto exit;
//---- make it active ----
hOldFont = (HFONT)SelectObject(hdc, hFont);
if (! hOldFont)
{
hr = MakeErrorLast();
goto exit;
}
//---- set the text color ----
crOld = SetTextColor(hdc, _crGlyphTextColor);
//---- draw text with transparent background ----
iOldMode = SetBkMode(hdc, TRANSPARENT);
//---- set the HORZ alignment flags ----
if (_eHAlign == HA_LEFT)
dwFlags |= DT_LEFT;
else if (_eHAlign == HA_CENTER)
dwFlags |= DT_CENTER;
else
dwFlags |= DT_RIGHT;
//---- set the VERT alignment flags ----
if (_eVAlign == VA_TOP)
dwFlags |= DT_TOP;
else if (_eVAlign == VA_CENTER)
dwFlags |= DT_VCENTER;
else
dwFlags |= DT_BOTTOM;
//---- add clipping ----
if (pClipRect)
{
//---- get previous clipping region (for restoring at end) ----
hr = scrOrig.Save(hdc);
if (FAILED(hr))
goto exit;
//---- add "pClipRect" to the GDI clipping region ----
int iRetVal = IntersectClipRect(hdc, pClipRect->left, pClipRect->top,
pClipRect->right, pClipRect->bottom);
if (iRetVal == ERROR)
{
hr = MakeErrorLast();
goto exit;
}
}
//---- draw the char ----
if (! DrawTextEx(hdc, szText, 1, prc, dwFlags, NULL))
{
hr = MakeErrorLast();
goto exit;
}
exit:
if (pClipRect)
scrOrig.Restore(hdc);
//---- reset the background mode ----
if (iOldMode != TRANSPARENT)
SetBkMode(hdc, iOldMode);
//---- restore text color ----
if (crOld != _crGlyphTextColor)
SetTextColor(hdc, crOld);
//---- restore font ----
if (hOldFont)
SelectObject(hdc, hOldFont);
if (hFont)
pRender->ReturnFontHandle(hFont);
return hr;
}
//---------------------------------------------------------------------------
BOOL CImageFile::IsBackgroundPartiallyTransparent(int iStateId)
{
DIBINFO *pdi = &_ImageInfo; // primary image determines transparency
return ((pdi->fAlphaChannel) || (pdi->fTransparent));
}
//---------------------------------------------------------------------------
HRESULT CImageFile::HitTestBackground(CRenderObj *pRender, OPTIONAL HDC hdc, int iStateId,
DWORD dwHTFlags, const RECT *pRect, HRGN hrgn, POINT ptTest, OUT WORD *pwHitCode)
{
*pwHitCode = HTNOWHERE;
if (! PtInRect(pRect, ptTest))
return S_OK; // nowhere
//---- background might have transparent parts - get its region ----
HRESULT hr = S_OK;
HRGN hrgnBk = NULL;
if( !hrgn && IsBackgroundPartiallyTransparent(iStateId) )
{
hr = GetBackgroundRegion(pRender, hdc, iStateId, pRect, &hrgnBk);
if( SUCCEEDED(hr) )
hrgn = hrgnBk;
}
MARGINS margins;
if( TESTFLAG(dwHTFlags, HTTB_SYSTEMSIZINGMARGINS) &&
TESTFLAG(dwHTFlags, HTTB_RESIZINGBORDER) &&
!TESTFLAG(dwHTFlags, HTTB_SIZINGTEMPLATE) )
{
ZeroMemory( &margins, sizeof(margins) );
int cxBorder = ClassicGetSystemMetrics( SM_CXSIZEFRAME );
int cyBorder = ClassicGetSystemMetrics( SM_CXSIZEFRAME );
if( TESTFLAG(dwHTFlags, HTTB_RESIZINGBORDER_LEFT) )
margins.cxLeftWidth = cxBorder;
if( TESTFLAG(dwHTFlags, HTTB_RESIZINGBORDER_RIGHT) )
margins.cxRightWidth = cxBorder;
if( TESTFLAG(dwHTFlags, HTTB_RESIZINGBORDER_TOP) )
margins.cyTopHeight = cyBorder;
if( TESTFLAG(dwHTFlags, HTTB_RESIZINGBORDER_BOTTOM) )
margins.cyBottomHeight = cyBorder;
}
else
{
hr = GetScaledContentMargins(pRender, hdc, pRect, &margins);
if (FAILED(hr))
goto exit;
}
if( hrgn )
{
// 122013 - we originally delegated to a sophisticated but broken
// resizing area region hit test algorithm for regioned windows,
// but for whistler we'll just do the bounding
// rectangle thang instead.
//*pwHitCode = HitTestRgn( dwHTFlags, pRect, hrgn, margins, ptTest );
RECT rcRgn;
if( GetRgnBox( hrgn, &rcRgn ) )
{
if( TESTFLAG(dwHTFlags, HTTB_SIZINGTEMPLATE) )
{
*pwHitCode = HitTestTemplate( dwHTFlags, &rcRgn, hrgn, margins, ptTest );
}
else
{
*pwHitCode = HitTestRect( dwHTFlags, &rcRgn, margins, ptTest );
}
}
SAFE_DELETE_GDIOBJ(hrgnBk);
}
else
{
*pwHitCode = HitTestRect( dwHTFlags, pRect, margins, ptTest );
}
exit:
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::GetBackgroundRegion(CRenderObj *pRender, OPTIONAL HDC hdc, int iStateId,
const RECT *pRect, HRGN *pRegion)
{
HRESULT hr = S_OK;
RGNDATA *pRgnData;
CMemoryDC hdcMemory;
HRGN hrgn;
int iRgnDataOffset = 0;
MIXEDPTRS u;
DIBINFO *pdi = SelectCorrectImageFile(pRender, hdc, pRect, FALSE);
//---- get rgndata offset ----
if ((pdi->iRgnListOffset) && (pRender->_pbThemeData))
{
u.pb = pRender->_pbThemeData + pdi->iRgnListOffset;
int iMaxState = (*u.pb++) - 1;
if (iStateId > iMaxState)
iStateId = 0;
iRgnDataOffset = u.pi[iStateId];
}
//---- see if it even has a transparent part ----
if (iRgnDataOffset)
{
//---- stretch those puppies & create a new region ----
pRgnData = (RGNDATA *)(pRender->_pbThemeData + iRgnDataOffset
+ sizeof(RGNDATAHDR) + ENTRYHDR_SIZE);
SIZE szSrcImage = {pdi->iSingleWidth, pdi->iSingleHeight};
hr = _ScaleRectsAndCreateRegion(pRgnData, pRect, &_SizingMargins, &szSrcImage, &hrgn);
if (FAILED(hr))
goto exit;
}
else
{
//---- return the bounding rect as the region ----
hrgn = CreateRectRgn(pRect->left, pRect->top,
pRect->right, pRect->bottom);
if (! hrgn)
{
hr = MakeErrorLast();
goto exit;
}
}
*pRegion = hrgn;
exit:
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::GetBackgroundContentRect(CRenderObj *pRender, OPTIONAL HDC hdc,
const RECT *pBoundingRect, RECT *pContentRect)
{
MARGINS margins;
HRESULT hr = GetScaledContentMargins(pRender, hdc, pBoundingRect, &margins);
if (FAILED(hr))
goto exit;
pContentRect->left = pBoundingRect->left + margins.cxLeftWidth;
pContentRect->top = pBoundingRect->top + margins.cyTopHeight;
pContentRect->right = pBoundingRect->right - margins.cxRightWidth;
pContentRect->bottom = pBoundingRect->bottom - margins.cyBottomHeight;
exit:
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::GetBackgroundExtent(CRenderObj *pRender, OPTIONAL HDC hdc,
const RECT *pContentRect, RECT *pExtentRect)
{
MARGINS margins;
HRESULT hr = GetScaledContentMargins(pRender, hdc, pContentRect, &margins);
if (FAILED(hr))
goto exit;
pExtentRect->left = pContentRect->left - margins.cxLeftWidth;
pExtentRect->top = pContentRect->top-+ margins.cyTopHeight;
pExtentRect->right = pContentRect->right + margins.cxRightWidth;
pExtentRect->bottom = pContentRect->bottom + margins.cyBottomHeight;
exit:
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::GetScaledContentMargins(CRenderObj *pRender, OPTIONAL HDC hdc,
OPTIONAL const RECT *prcDest, MARGINS *pMargins)
{
HRESULT hr = S_OK;
*pMargins = _ContentMargins;
//---- now scale the margins ----
SIZE szDraw;
TRUESTRETCHINFO tsInfo;
DIBINFO *pdi = SelectCorrectImageFile(pRender, hdc, prcDest, FALSE, NULL);
GetDrawnImageSize(pdi, prcDest, &tsInfo, &szDraw);
hr = ScaleMargins(pMargins, hdc, pRender, pdi, &szDraw);
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::GetPartSize(CRenderObj *pRender, HDC hdc, OPTIONAL const RECT *prc,
THEMESIZE eSize, SIZE *psz)
{
HRESULT hr = S_OK;
TRUESTRETCHINFO tsInfo;
DIBINFO *pdi = SelectCorrectImageFile(pRender, hdc, prc, FALSE, &tsInfo);
if (eSize == TS_MIN)
{
MARGINS margins;
hr = GetScaledContentMargins(pRender, hdc, prc, &margins);
if (FAILED(hr))
goto exit;
psz->cx = max(1, margins.cxLeftWidth + margins.cxRightWidth);
psz->cy = max(1, margins.cyTopHeight + margins.cyBottomHeight);
}
else if (eSize == TS_TRUE)
{
psz->cx = pdi->iSingleWidth;
psz->cy = pdi->iSingleHeight;
}
else if (eSize == TS_DRAW)
{
GetDrawnImageSize(pdi, prc, &tsInfo, psz);
}
else
{
hr = MakeError32(E_INVALIDARG);
goto exit;
}
exit:
return hr;
}
//---------------------------------------------------------------------------
HRESULT CImageFile::GetBitmap(CRenderObj *pRender, HDC hdc, const RECT *prc, HBITMAP *phBitmap)
{
int iStockDibOffset = pRender->GetValueIndex(_iSourcePartId, _iSourceStateId, TMT_STOCKDIBDATA);
if (iStockDibOffset > 0)
{
return pRender->GetBitmap(NULL, iStockDibOffset, phBitmap);
}
else
{
return E_INVALIDARG;
}
}
//---------------------------------------------------------------------------
void CImageFile::GetOffsets(int iStateId, DIBINFO *pdi, int *piXOffset, int *piYOffset)
{
if (_eImageLayout == IL_HORIZONTAL)
{
//---- iStateId in the image index ----
if ((iStateId <= 0) || (iStateId > _iImageCount))
*piXOffset = 0;
else
*piXOffset = (iStateId-1) * (pdi->iSingleWidth);
*piYOffset = 0;
}
else // vertical
{
//---- iStateId in the image index ----
if ((iStateId <= 0) || (iStateId > _iImageCount))
*piYOffset = 0;
else
*piYOffset = (iStateId-1) * (pdi->iSingleHeight);
*piXOffset = 0;
}
}
//---------------------------------------------------------------------------
HRESULT CImageFile::ScaleMargins(IN OUT MARGINS *pMargins, HDC hdcOrig, CRenderObj *pRender,
DIBINFO *pdi, const SIZE *pszDraw, OPTIONAL float *pfx, OPTIONAL float *pfy)
{
HRESULT hr = S_OK;
COptionalDC hdc(hdcOrig);
BOOL fForceRectSizing = FALSE;
if ((pRender) && (pRender->_dwOtdFlags & OTD_FORCE_RECT_SIZING))
{
fForceRectSizing = TRUE;
}
float xFactor = 1;
float yFactor = 1;
//---- any margins to size? ----
if ((pMargins->cxLeftWidth) || (pMargins->cxRightWidth) || (pMargins->cyBottomHeight)
|| (pMargins->cyTopHeight))
{
if ((pszDraw->cx > 0) && (pszDraw->cy > 0))
{
BOOL fxNeedScale = FALSE;
BOOL fyNeedScale = FALSE;
//---- scale if dest rect is too small in one dimension ----
if ((_fSourceShrink) || (fForceRectSizing))
{
if (pszDraw->cx < pdi->szMinSize.cx)
{
fxNeedScale = TRUE;
}
if (pszDraw->cy < pdi->szMinSize.cy)
{
fyNeedScale = TRUE;
}
}
if ((_fSourceGrow) || (fForceRectSizing))
{
if ((! fxNeedScale) && (! fyNeedScale))
{
//---- calculate our Dest DPI ----
int iDestDpi;
if (fForceRectSizing)
{
iDestDpi = (pRender) ? (pRender->GetDpiOverride()) : 0;
if (! iDestDpi)
{
//---- make up a DPI based on sizes (IE will pass us the actual DPI soon) ----
int ixFakeDpi = MulDiv(pdi->iMinDpi, pszDraw->cx, _szNormalSize.cx);
int iyFakeDpi = MulDiv(pdi->iMinDpi, pszDraw->cy, _szNormalSize.cy);
iDestDpi = (ixFakeDpi + iyFakeDpi)/2;
}
}
else
{
iDestDpi = GetDeviceCaps(hdc, LOGPIXELSX);
}
//---- scale source/margins by Dest DPI ----
if (iDestDpi >= 2*pdi->iMinDpi)
{
xFactor *= iDestDpi/pdi->iMinDpi;
yFactor *= iDestDpi/pdi->iMinDpi;
}
}
}
//---- scale by ratio of our image to draw size ----
if (fxNeedScale)
{
xFactor *= float(pszDraw->cx)/float(_szNormalSize.cx);
}
if (fyNeedScale)
{
yFactor *= float(pszDraw->cy)/float(_szNormalSize.cy);
}
}
//---- use smallest factor for both ----
if (xFactor < yFactor)
{
yFactor = xFactor;
}
else if (yFactor < xFactor)
{
xFactor = yFactor;
}
//---- integer truncation ----
if (xFactor > 1.0)
{
xFactor = float(int(xFactor));
}
if (yFactor > 1.0)
{
yFactor = float(int(yFactor));
}
//---- scale the margin values ----
if (xFactor != 1)
{
pMargins->cxLeftWidth = ROUND(xFactor*pMargins->cxLeftWidth);
pMargins->cxRightWidth = ROUND(xFactor*pMargins->cxRightWidth);
}
if (yFactor != 1)
{
pMargins->cyTopHeight = ROUND(yFactor*pMargins->cyTopHeight);
pMargins->cyBottomHeight = ROUND(yFactor*pMargins->cyBottomHeight);
}
}
//---- return factors to interested callers ----
if (pfx)
{
*pfx = xFactor;
}
if (pfy)
{
*pfy = yFactor;
}
return hr;
}
//---------------------------------------------------------------------------
|
cpp
|
{% extends "layout.html" %}
{% block page_title %}
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="breadcrumbs">
<ol>
<li><a href="index">Service list index</a></li>
<li><a href="">Parent topic</a></li>
<li><a href="">Child topic</a></li>
<li>Child topic</li>
</ol>
</div>
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Short simple service</h1>
<p>Introductory context about the service. These services are small enough to capture on one page.</p>
<div>
<h2 class="blue-box"><a href="">Service overview content page</a></h2>
</div>
<div>
<ol>
<li class="heading-medium">Linear task within short service</li>
<p>Introductory text about task. You must complete these sub-tasks in this order.</p>
<ol>
<li><a href="">Link to content for subtask</a></li>
<li><a href="">Link to content for subtask</a></li>
<li><a href="">Link to content for subtask</a></li>
</ol>
<li class="heading-medium">Linear task within short service</li>
<p>Introductory text about task. You must complete these sub-tasks in any order.</p>
<ul>
<li><a href="">Link to content for subtask</a></li>
<li><a href="">Link to content for subtask</a></li>
<li><a href="">Link to content for subtask</a></li>
</ul>
</ol>
</div>
</div>
<div class="column-third">
<aside class="govuk-related-items" role="complementary">
<h2 class="heading-medium" id="subsection-title">Topic related links</h2>
<nav role="navigation" aria-labelledby="subsection-title">
<a href="#">Link to topic related service</a><br>
<a href="#">Link to topic related content</a><br>
<a href="#" class="bold-xsmall">More <span class="visuallyhidden">in Subsection</span</a>
</nav>
</aside>
</div>
</div>
</span>
</main>
{% endblock %}
|
html
|
{
"variables":[
"event",
"event"
],
"extendORImplementFiles":[
"SWTEventListener"
],
"package":[
"org.eclipse.swt.browser"
],
"import":[
"org.eclipse.swt.internal.SWTEventListener"
],
"methods":[
"hide",
"show"
],
"methodsBody":{
"public void show(WindowEvent event)":{
"methodBody":"",
"comments":"/**\n* This method is called when the window hosting a <code>Browser</code>\n* is requested to be displayed. Application would typically set the\n* location and the size of the {@link org.eclipse.swt.widgets.Shell}\n* that hosts the <code>Browser</code>, if a particular location and size\n* are specified. The application would then open that <code>Shell</code>.\n* <p>\n*\n* <p>The following fields in the <code>WindowEvent</code> apply:\n* <ul>\n* <li>(in) widget the <code>Browser</code> to display\n* <li>(in) location the requested location for the <code>Shell</code>\n* hosting the browser. It is <code>null</code> if no location is set.\n* <li>(in) size the requested size for the <code>Browser</code>.\n* The client area of the <code>Shell</code> hosting the\n* <code>Browser</code> should be large enough to accomodate that size.\n* It is <code>null</code> if no size is set.\n* <li>(in) addressBar <code>true</code> if the <code>Shell</code>\n* hosting the <code>Browser</code> should display an address bar or\n* <code>false</code> otherwise\n* <li>(in) menuBar <code>true</code> if the <code>Shell</code>\n* hosting the <code>Browser</code> should display a menu bar or\n* <code>false</code> otherwise\n* <li>(in) statusBar <code>true</code> if the <code>Shell</code>\n* hosting the <code>Browser</code> should display a status bar or\n* <code>false</code> otherwise\n* <li>(in) toolBar <code>true</code> if the <code>Shell</code>\n* hosting the <code>Browser</code> should display a tool bar or\n* <code>false</code> otherwise\n* </ul>\n*\n* @param event the <code>WindowEvent</code> that specifies the\n* <code>Browser</code> that needs to be displayed\n*\n* @see org.eclipse.swt.widgets.Control#setLocation(org.eclipse.swt.graphics.Point)\n* @see org.eclipse.swt.widgets.Control#setSize(org.eclipse.swt.graphics.Point)\n* @see org.eclipse.swt.widgets.Shell#open()\n*\n* @since 3.0\n*/\n",
"methodName":"public void show(WindowEvent event)"
},
"public void hide(WindowEvent event)":{
"methodBody":"",
"comments":"/**\n* This method is called when the window hosting a <code>Browser</code>\n* is requested to be hidden. Application would typically hide the\n* {@link org.eclipse.swt.widgets.Shell} that hosts the <code>Browser</code>.\n* <p>\n*\n* <p>The following fields in the <code>WindowEvent</code> apply:\n* <ul>\n* <li>(in) widget the <code>Browser</code> that needs to be hidden\n* </ul>\n*\n* @param event the <code>WindowEvent</code> that specifies the\n* <code>Browser</code> that needs to be hidden\n*\n* @see org.eclipse.swt.widgets.Shell#setVisible(boolean)\n*\n* @since 3.0\n*/\n",
"methodName":"public void hide(WindowEvent event)"
}
},
"ClassORInterfaceName":[
"VisibilityWindowListener"
]
}
|
json
|
Facebook today announced Trending, a new section of the News Feed which offers a personalized list of topics that are currently popular or growing in popularity on the social network.
The company has experimented with trending stories and articles in the past, in order to combat Twitter and help its users to discover content that wouldn’t normally surface in their News Feed. In its latest incarnation, each topic has a keyword and a headline that explains why it should be of interest. Facebook has positioned it in the top right-hand corner of the screen and users can review more topics by selecting the ‘See More’ option.
Facebook says the list is personalized, based on topics or pages that you’re interested in, as well as keywords that are trending worldwide.
The feature is rolling out in “select countries” on the web and Facebook says it will begin testing the feature on mobile devices shortly. “As with other features, expect continuous improvements from us over time,” Chris Struhar, engineering manager for Facebook said.
➤ Finding Popular Conversations on Facebook (Via TechCrunch)
Get the most important tech news in your inbox each week.
|
english
|
namespace Ethereum{namespace ABI{
template<class T>
Arguments & Arguments::operator()(const T &val)
{
add(val);
return *this;
}
template<size_t size>
void Arguments::add(const boost::array<unsigned char, size> &val)
{
addFixedVar(_serializer.serializeFixedData(val.data(), val.size()));
}
template<class T, size_t size>
void Arguments::add(const boost::array<T, size> &val)
{
for(typename boost::array<T, size>::iterator it=val.begin(), end=val.end(); it!=end; ++it)
{
addFixedVar(_serializer.serialize(*it));
}
}
template<size_t size>
void Arguments::add(const boost::array<std::string, size> &)
{
throw std::runtime_error("string array is not implemented");
}
template<class T>
void Arguments::add(const std::vector<T> &val)
{
std::string result = _serializer.serialize(uint256_t(val.size()));
for(typename std::vector<T>::iterator it=val.begin(), end=val.end(); it!=end; ++it)
{
result += _serializer.serialize(*it);
}
addDynamicVar(result);
}
}}
|
cpp
|
Feedback (2)
CE-Certification ODM Charging Double Breast Pumps Company Products – DQ-YW008BB Human Milk Product Electric Breast Pump with Massage Mode a Portable Type for All Scene – Dearevery Detail:
• Host or battery charging or power supply requires a specified DC5V power adapteror mobile phone power adapter.
• When the host is not used for a long time, it is recommended to charge once a month.
• If there is a failure in the mainframe, please do not disassemble and repair it.
It mustbe sent to the designated maintenance point of our company for repair orreplacement by professional personnel.
2.It’s “zero backflow” completely, Even if the milk bottle is overturned by accident, the milk will not flow back to the main unit to damage the machine.
6.With big lithium battery 2000mAh allows its use on going out without a power adapter so that mothers can collect milk wherever they are.
9.Automatic simulation: Controlled by a microchip program, it imitates the intermittent breastfeeding of infants.
10.ln galactagogue mode, the intensity can be adjusted to 9 levels, In the massage mode, the intensity can be adjusted in 9 levels to effecctively massage the breast;ln the breastsucking mode the intensity can be adjusted in 9 levels, which imitates the speed of the infant’s sucking rhythm and the size of the infant’s sucking volume.
Product detail pictures:
Related Product Guide:
Our commission would be to serve our customers and clientele with very best excellent and aggressive portable digital products for CE-Certification ODM Charging Double Breast Pumps Company Products – DQ-YW008BB Human Milk Product Electric Breast Pump with Massage Mode a Portable Type for All Scene – Dearevery, The product will supply to all over the world, such as: Greenland, Singapore, Czech, We pursue the management tenet of "Quality is superior, Service is supreme, Reputation is first", and will sincerely create and share success with all clients. We welcome you to contact us for more information and look forward to working with you.
The factory technical staff gave us a lot of good advice in the cooperation process, this is very good, we are very grateful.
|
english
|
import { Injectable } from '@angular/core'
import { Router, ActivatedRoute } from '@angular/router'
import { Promotion } from '@ordercloud/angular-sdk'
import { ResourceCrudService } from '@app-seller/shared/services/resource-crud/resource-crud.service'
import {
HSPromoType,
HSPromoEligibility,
PromotionXp,
MinRequirementType,
HSBogoType,
} from '@app-seller/models/promo-types'
import { CurrentUserService } from '@app-seller/shared/services/current-user/current-user.service'
import { Promotions } from 'ordercloud-javascript-sdk'
import { HSSupplier } from '@ordercloud/headstart-sdk'
@Injectable({
providedIn: 'root',
})
export class PromotionService extends ResourceCrudService<Promotion> {
emptyResource = {
ID: null,
Name: '',
Description: '',
LineItemLevel: false,
Code: '',
RedemptionLimit: null,
RedemptionLimitPerUser: null,
FinePrint: '',
StartDate: '',
ExpirationDate: '',
EligibleExpression: 'true',
ValueExpression: '',
CanCombine: true,
AllowAllBuyers: true,
xp: {
Type: HSPromoType.Percentage,
Value: null,
AppliesTo: HSPromoEligibility.EntireOrder,
ScopeToSupplier: false,
Supplier: null,
SKUs: [],
Automatic: false,
MinReq: {
Type: null,
Int: null,
},
BOGO: {
Type: HSBogoType.Percentage,
Value: null,
BuySKU: {
SKU: null,
Qty: null,
},
GetSKU: {
SKU: null,
Qty: null,
},
},
MaxShipCost: null,
},
}
constructor(
router: Router,
activatedRoute: ActivatedRoute,
currentUserService: CurrentUserService
) {
super(
router,
activatedRoute,
Promotions,
currentUserService,
'/promotions',
'promotions'
)
}
buildEligibleExpression(
safeXp: PromotionXp,
selectedSupplier?: HSSupplier
): string {
let eligibleExpression = ''
const skuArr = safeXp?.SKUs?.map((sku) => `item.ProductID = '${sku}'`)
switch (safeXp?.AppliesTo) {
case HSPromoEligibility.SpecificSupplier:
eligibleExpression = `item.SupplierID = '${selectedSupplier?.ID}'`
break
case HSPromoEligibility.SpecificSKUs:
skuArr.forEach(
(exp, i) =>
(eligibleExpression =
i === 0
? `${eligibleExpression} ${exp}`
: `${eligibleExpression} or ${exp}`)
)
break
default:
// NOTE: The default expression is "true", which will allow the promotion to be applied to any order
// in the platform. This is selected if no eligibilty requirements are defined during the create
// process
eligibleExpression = 'true'
break
}
if (safeXp?.Type === 'BOGO') {
eligibleExpression = this.buildBogoEligibleExpression(safeXp)
}
switch (safeXp?.MinReq?.Type) {
case MinRequirementType.MinPurchase:
if (safeXp?.AppliesTo === HSPromoEligibility.SpecificSupplier) {
eligibleExpression = `${eligibleExpression} and items.total(SupplierID = '${selectedSupplier?.ID}') >= ${safeXp?.MinReq?.Int}`
} else if (safeXp?.AppliesTo === HSPromoEligibility.SpecificSKUs) {
eligibleExpression = `${eligibleExpression} and Order.Subtotal >= ${safeXp?.MinReq?.Int}`
} else {
eligibleExpression = `${eligibleExpression} and Order.Subtotal >= ${safeXp?.MinReq?.Int}`
}
break
case MinRequirementType.MinItemQty:
if (safeXp.AppliesTo === HSPromoEligibility.SpecificSupplier) {
eligibleExpression = `${eligibleExpression} and items.Quantity(SupplierID = '${selectedSupplier?.ID}') >= ${safeXp?.MinReq?.Int}`
} else if (safeXp?.AppliesTo === HSPromoEligibility.SpecificSKUs) {
eligibleExpression = `${eligibleExpression} and Order.LineItemCount >= ${safeXp?.MinReq?.Int}`
} else {
eligibleExpression = `${eligibleExpression} and Order.LineItemCount >= ${safeXp?.MinReq?.Int}`
}
break
}
if (safeXp?.MaxShipCost) {
safeXp?.MinReq?.Type
? (eligibleExpression = `Order.ShippingCost < ${safeXp?.MaxShipCost}`)
: (eligibleExpression = `Order.ShippingCost < ${safeXp?.MaxShipCost}`)
}
return eligibleExpression.trim()
}
buildValueExpression(
safeXp: PromotionXp,
selectedSupplier?: HSSupplier
): string {
let valueExpression = 'Order.Subtotal'
switch (safeXp?.AppliesTo) {
case HSPromoEligibility.SpecificSupplier:
valueExpression = 'item.LineSubtotal'
if (safeXp?.Type === HSPromoType.Percentage) {
valueExpression = `item.LineSubtotal * ${safeXp?.Value / 100}`
}
if (safeXp?.Type === HSPromoType.FixedAmount) {
valueExpression = `${safeXp?.Value} / items.count(SupplierID = '${selectedSupplier?.ID}')`
}
break
case HSPromoEligibility.SpecificSKUs:
if (safeXp?.Type === HSPromoType.Percentage) {
valueExpression = `item.LineSubtotal * ${safeXp?.Value / 100}`
}
if (safeXp?.Type === HSPromoType.FixedAmount) {
valueExpression = `item.Quantity * ${safeXp?.Value}`
}
break
default:
if (safeXp?.Type === HSPromoType.Percentage) {
valueExpression = `items.total(Product.xp.PromotionEligible=\'true\') * ${
safeXp.Value / 100
}`
}
if (safeXp?.Type === HSPromoType.FixedAmount) {
valueExpression = `${safeXp?.Value}`
}
break
}
if (safeXp?.Type === 'FreeShipping') {
valueExpression = 'Order.ShippingCost'
}
if (safeXp?.Type === 'BOGO') {
valueExpression = this.buildBogoValueExpression(safeXp).trim()
}
return valueExpression.trim()
}
buildBogoValueExpression(safeXp: PromotionXp): string {
const buySKU = safeXp?.BOGO?.BuySKU?.SKU
const buyQty = safeXp?.BOGO?.BuySKU?.Qty
const getSKU = safeXp?.BOGO?.GetSKU?.SKU
const getQty = safeXp?.BOGO?.GetSKU?.Qty
const percentOff = safeXp?.BOGO?.Value / 100
const buyAndGetQty = Number(buyQty) + Number(getQty)
let valueExpression: string
if (buySKU === getSKU) {
if (safeXp?.BOGO?.Type === HSBogoType.Percentage) {
valueExpression = `((items.quantity(ProductID='${buySKU}')-(items.quantity(ProductID='${buySKU}')%${buyAndGetQty}))/${buyAndGetQty})*${getQty}*((items.total(ProductID='${getSKU}')/items.quantity(ProductID='${getSKU}')))*${percentOff}`
} else if (safeXp?.BOGO?.Type === HSBogoType.FixedAmount) {
valueExpression = `((items.quantity(ProductID='${buySKU}')-items.quantity(ProductID='${buySKU}')%${buyAndGetQty})/${buyAndGetQty})*${safeXp?.BOGO?.Value}`
}
} else {
if (safeXp?.BOGO?.Type === HSBogoType.Percentage) {
valueExpression = `min(((items.quantity(ProductID='${buySKU}')-((items.quantity(ProductID='${buySKU}')%${buyQty})))/${buyQty})*${getQty},items.quantity(ProductID='${getSKU}')-(items.quantity(ProductID='${getSKU}')%${getQty}))*((items.total(ProductID='${getSKU}'))/items.quantity(ProductID='${getSKU}'))*${percentOff}`
} else if (safeXp?.BOGO?.Type === HSBogoType.FixedAmount) {
valueExpression = `min(((items.quantity(ProductID='${buySKU}')-((items.quantity(ProductID='${buySKU}')%${buyQty})))/${buyQty})*${getQty},items.quantity(ProductID='${getSKU}')-(items.quantity(ProductID='${getSKU}')%${getQty}))/${getQty}*${safeXp?.BOGO?.Value}`
}
}
return valueExpression?.trim()
}
buildBogoEligibleExpression(safeXp: PromotionXp): string {
const buySKU = safeXp?.BOGO?.BuySKU?.SKU
const buySKUQty = safeXp?.BOGO?.BuySKU?.Qty
const getSKU = safeXp?.BOGO?.GetSKU?.SKU
const getSKUQty = safeXp?.BOGO?.GetSKU?.Qty
let eligibleExpression: string
if (buySKU === getSKU) {
eligibleExpression = `items.quantity(ProductID='${buySKU}')>=${
buySKUQty + getSKUQty
}`
} else {
eligibleExpression = `items.quantity(ProductID='${buySKU}')>= ${buySKUQty} and items.quantity(ProductID='${getSKU}')>=${getSKUQty}`
}
return eligibleExpression.trim()
}
}
|
typescript
|
Chandigarh: International wrestler Yogeshwar Dutt, the BJP-JJP combine candidate, lost to Congress’ Induraj Narwal by over 9,200 votes in the bypolls for the Baroda seat in Haryana.
This is the second defeat for the Olympian from this seat. Dutt had lost to Congress veteran Krishan Hooda in the assembly polls held last October. Hooda had then won the seat for the third time in a row. The bypoll was necessitated following Hooda’s death in April this year.
The election was held on 3 November.
This was the ruling BJP-JJP combine’s first electoral test after the NDA brought in the three farm laws, which are being vehemently opposed by a section of farmers in Haryana.
Baroda, in Sonepat district, is one of the few purely rural seats in Haryana’s Jat heartland where the impact of the farm laws has been felt immensely.
In a statement issued after the results, state Congress chief Kumari Selja termed the Baroda win as the victory of the farmers against an “anti-farmer regime”.
बरोदा की जनता ने किसान-मजदूर विरोधी ताकतों को अपने फैसले से करारा जवाब दिया है।
भाई इंदुराज नरवाल की जीत किसानों और मजदूरों की जीत है।
The Congress performance on the seat has been impressive.
The party got 57,400 votes, almost 15,000 votes more than it polled in the assembly elections last year. The Congress had got a little over 42,500 votes in 2019, while the BJP had polled over 37,700 votes and the JJP candidate 32,500 votes. However this time, the total of the BJP-JJP votes did not go to Dutt’s kitty who managed to poll a little over 48,000 votes.
The BJP-JJP combine, as a result, has lost almost 22,000 votes in this election, indicating antipathy of the farming community towards both parties.
The BJP’s experiment of fielding a non-Jat candidate on a Jat-centric seat has also failed. Dutt, a Brahmin, found it difficult to make inroads in the closely knit Jat groupings in the area.
Congress candidate Narwal is a Jat and was largely supported by the community.
The credit of this victory also goes to former chief minister Bhupinder Singh Hooda, the leader of the opposition who ensured that the Jat vote doesn’t get divided.
Former Indian National Lok Dal leader from Baroda, Kapoor Singh Narwal, who had joined the BJP ahead of the assembly elections last year in the hope of getting a ticket from Baroda, turned rebel a few months ago and joined the Congress. He was hoping to be made the Congress candidate from Baroda.
However, despite Hooda’s assurance to Kapoor, the party high command did not agree to his candidature. Peeved at the treatment, Kapoor declared himself an independent candidate. However, Hooda managed to convince him to withdraw his nomination in favour of the Congress candidate.
Reacting to the result, Hooda tweeted saying the victory is of Baroda’s 36 biradari, farmers, labourers, employees and small traders.
आम किसान के बेटे इंदुराज नरवाल को जीत की बधाई। ये बरोदा की 36 बिरादरी, हरियाणा के किसान, मजदूर, कर्मचारी और छोटे कारोबारी की अपनी जीत है। BJP+JJP सरकार से जनता का मोहभंग हो चुका है और लोगों ने अविश्वास पारित कर दिया है।
INLD candidate Joginder Singh Malik polled less than 5,000 votes, showing Jats are continuing to reject the INLD after the JJP broke away from it in 2018 following an ugly implosion in the Chautala family.
Rajkumar Saini, the BJP rebel MP who had formed the Loktantra Suraksha Party last year, contested the polls with an eye on the non-Jat backward class vote bank. He polled over 5,300 votes, cutting into the BJP vote bank.
|
english
|
<reponame>ScSherifTarek/universities<gh_stars>10-100
{"name":"<NAME>","alt_name":null,"country":"Philippines","state":null,"address":{"street":"279 Bulacao, Pardo","city":"Cebu City","province":"Cebu","postal_code":"6000"},"contact":{"telephone":"+63(32) 272-2985","website":"http:\/\/www.spcfi.edu.ph","email":"<EMAIL>","fax":"+63(32) 272-8475"},"funding":"Private","languages":null,"academic_year":null,"accrediting_agency":null}
|
json
|
Want an Apple Watch? If you’re an iOS user interested in looking after your health in 2023, or kick-starting a new fitness regime, an Apple Watch is a near-essential purchase. Perhaps you’re looking to upgrade your old one, or maybe this will be your first Apple Watch.
Either way, Black Friday deals have started - and as Black Friday Apple Watch deals start to drop there are going to be some amazing opportunities to pick one up for cheap.
If you’ve given the best Apple Watch entries any more than a cursory look, you’ll know there are plenty of models on offer, ranging from the budget Apple Watch SE series to the brand-new Series 8 and high-performance Apple Watch Ultra. Below, we’ll cover not only where to find the best deals and how to get a good one at discount, but also how to decide which Apple Watch is right for you.
GPS-only or GPS plus cellular?
Every Apple Watch, apart from the Ultra, comes in two models: GPS only, or GPS plus cellular. Part of deciding which deal to look out for is finding out what kind of user you are. If you’ve already owned an Apple Watch and found yourself wishing you had access to the cellular model, or not using your data in a meaningful way, you can pick the other one this go-round.
GPS-only models connect to satellite networks to track your runs, walks, cycles and swims, so you can leave your phone at home to track your activity. However, they can’t access the internet, or pick up messages and phone calls, if your phone isn’t nearby.
Normally, this is fine for most people; but some prefer the option of leaving their phone at home or at their desk while staying connected at all times. If you like to stream music during a run, for example, or you want the new Crash Detection feature to work even while your phone is not in the car, you can grab a GPS plus cellular model and add your Apple Watch to your phone’s data plan. For an extra monthly charge, you’ll have another way to answer emails, make calls, stream and send messages on the go.
Naturally, the GPS plus cellular models are more expensive, so if you’re after a really cheap Apple watch, go for GPS-only.
Which Apple Watch should I buy?
Now that we’ve sorted out how you use your data, it’s time to select the model of Apple Watch you want. If you’re a serious high-performance runner, explorer or diver, the brand new Apple Watch Ultra has no doubt caught your attention. Just know that it's highly unlikely you'll see big discounts on this new premium model over the Black Friday period.
What we are seeing, however, are discounts on the Series 8 and Series 7. Both watches have up-to-date health-tracking capabilities, including excellent sleep tracking, a third-generation heart rate sensor, ECG app to detect irregular heart rates, and menstrual cycle tracking. Additionally, these gadgets include loads of workout modes and various lifestyle-based bells and whistles. In order to make sure your watch lasts a long time, it’s worth getting more recent technology.
All the recent models are discounted right now, in both the US and the UK:
This is only the second time we've seen the latest Apple Watch 8 discounted on Amazon. The smartwatch hasn't even been available for even two months, but you can already save $50 through Amazon's early Black Friday sale. Updates compared to the previous version are incremental but do include an updated S8 processor, all-day 18-hour battery life, and a suite of new health and fitness functions thanks to watchOS 9.
There's a small but welcome price cut on the 49mm Apple Watch Ultra on Amazon this week, ahead of Black Friday. It's not much, but the cut brings this beautiful high-end device to its lowest price ever. If you're a would-be adventurer in need of a seriously robust device, the Apple Watch Ultra is packed to the brim with GPS tracking and fitness-focused features.
John Lewis is kicking off its Black Friday sale with a small but welcome discount on the latest Apple Watch Series 8 this week. While it appears that this price is for the Starlight color specifically, this is currently the best deal out there for this model if you're simply looking for a GPS version. New features with this iteration include an Always‐On display, crash detection, and temperature sensing, for a wide range of applications.
The Apple Watch 7 is a good option if you want a higher-end model at a lower price and don't mind opting for an older iteration. You're essentially getting the same design as the latest Apple Watch 8 here, as well as the same features and tools that are staples of the Apple Watch range, including an ECG, exercise tracking, access to Apple Fitness Plus (through a separate subscription), Apple Pay, and all the fitness tracking modes you've come to expect.
These watches are great for those health-conscious folks who aren't seriously interested in the more adventurous features of the Apple Watch Ultra, like the in-built dive computer or Garmin-bothering durability. Buying a more recent model also offers a degree of future-proofing, as they’ll be compatible with future software updates, guaranteeing you a few years of improved performance.
If you’re looking to save even more money, the Series 8 was launched alongside a new version of Apple’s budget offering, the Apple Watch SE (generation 2). It’s similar to the watches above in many respects, but some compromises have been made to bring the price down. It’s got a second-gen heart rate sensor; its menstrual tracking isn’t as sophisticated; it is slightly smaller; it has no always-on display; and the back of the case is nylon rather than ceramic.
It’s no secret the Watch SE isn't comparable to the Series 7 and Series 8, but it is currently $250 in the US and £250 in the UK. If you come across this gadget with a price approaching $220 in the US or £220 in the UK, it might be worth picking the timepiece up, especially if you're a fitness beginner. If you’re just getting into running, walking or gym classes for the first time, a GPS-only Apple Watch SE is less of a financial commitment than a 45mm Apple Watch 8 with cellular data attached, and will offer all the workout-tracking tricks you’ll utilize for a long time.
You could also buy an older model of Apple Watch, such as a Series 6 or 5, either of which will likely come with a better discount. For example, one of the cheapest Apple Watches you can get is the first-generation Apple Watch SE, which was introduced in 2020. However, Apple has recently ended its support for the Apple Watch Series 3, so we really wouldn't recommend you go too old since even the Series 4 is at risk of the same loss of support within a year or two.
Below, you can find a list of some of the best Apple Watch deals where you are. Make sure you visit our Black Friday Apple Watch deals guide for a more comprehensive list of offers on all sorts of models.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Matt is TechRadar's expert on all things fitness, wellness and wearable tech. A former staffer at Men's Health, he holds a Master's Degree in journalism from Cardiff and has written for brands like Runner's World, Women's Health, Men's Fitness, LiveScience and Fit&Well on everything fitness tech, exercise, nutrition and mental wellbeing.
Matt's a keen runner, ex-kickboxer, not averse to the odd yoga flow, and insists everyone should stretch every morning. When he’s not training or writing about health and fitness, he can be found reading doorstop-thick fantasy books with lots of fictional maps in them.
|
english
|
import ClassName from "../Enum/ClassName";
import { Func } from "./Func";
import { Trait } from "./Trait";
export enum BuffAction {
NONE = "none",
COMMAND_ATK = "commandAtk",
COMMAND_DEF = "commandDef",
ATK = "atk",
DEFENCE = "defence",
DEFENCE_PIERCE = "defencePierce",
SPECIALDEFENCE = "specialdefence",
DAMAGE = "damage",
DAMAGE_INDIVIDUALITY = "damageIndividuality",
DAMAGE_INDIVIDUALITY_ACTIVEONLY = "damageIndividualityActiveonly",
SELFDAMAGE = "selfdamage",
CRITICAL_DAMAGE = "criticalDamage",
NPDAMAGE = "npdamage",
GIVEN_DAMAGE = "givenDamage",
RECEIVE_DAMAGE = "receiveDamage",
PIERCE_INVINCIBLE = "pierceInvincible",
INVINCIBLE = "invincible",
BREAK_AVOIDANCE = "breakAvoidance",
AVOIDANCE = "avoidance",
OVERWRITE_BATTLECLASS = "overwriteBattleclass",
OVERWRITE_CLASSRELATIO_ATK = "overwriteClassrelatioAtk",
OVERWRITE_CLASSRELATIO_DEF = "overwriteClassrelatioDef",
COMMAND_NP_ATK = "commandNpAtk",
COMMAND_NP_DEF = "commandNpDef",
DROP_NP = "dropNp",
DROP_NP_DAMAGE = "dropNpDamage",
COMMAND_STAR_ATK = "commandStarAtk",
COMMAND_STAR_DEF = "commandStarDef",
CRITICAL_POINT = "criticalPoint",
STARWEIGHT = "starweight",
TURNEND_NP = "turnendNp",
TURNEND_STAR = "turnendStar",
TURNEND_HP_REGAIN = "turnendHpRegain",
TURNEND_HP_REDUCE = "turnendHpReduce",
GAIN_HP = "gainHp",
TURNVAL_NP = "turnvalNp",
GRANT_STATE = "grantState",
RESISTANCE_STATE = "resistanceState",
AVOID_STATE = "avoidState",
DONOT_ACT = "donotAct",
DONOT_SKILL = "donotSkill",
DONOT_NOBLE = "donotNoble",
DONOT_RECOVERY = "donotRecovery",
INDIVIDUALITY_ADD = "individualityAdd",
INDIVIDUALITY_SUB = "individualitySub",
HATE = "hate",
CRITICAL_RATE = "criticalRate",
AVOID_INSTANTDEATH = "avoidInstantdeath",
RESIST_INSTANTDEATH = "resistInstantdeath",
NONRESIST_INSTANTDEATH = "nonresistInstantdeath",
REGAIN_NP_USED_NOBLE = "regainNpUsedNoble",
FUNCTION_DEAD = "functionDead",
MAXHP_RATE = "maxhpRate",
MAXHP_VALUE = "maxhpValue",
FUNCTION_WAVESTART = "functionWavestart",
FUNCTION_SELFTURNEND = "functionSelfturnend",
GIVE_GAIN_HP = "giveGainHp",
FUNCTION_COMMANDATTACK = "functionCommandattack",
FUNCTION_DEADATTACK = "functionDeadattack",
FUNCTION_ENTRY = "functionEntry",
CHAGETD = "chagetd",
GRANT_SUBSTATE = "grantSubstate",
TOLERANCE_SUBSTATE = "toleranceSubstate",
GRANT_INSTANTDEATH = "grantInstantdeath",
FUNCTION_DAMAGE = "functionDamage",
FUNCTION_REFLECTION = "functionReflection",
MULTIATTACK = "multiattack",
GIVE_NP = "giveNp",
RESISTANCE_DELAY_NPTURN = "resistanceDelayNpturn",
PIERCE_DEFENCE = "pierceDefence",
GUTS_HP = "gutsHp",
FUNCGAIN_NP = "funcgainNp",
FUNC_HP_REDUCE = "funcHpReduce",
FUNCTION_NPATTACK = "functionNpattack",
FIX_COMMANDCARD = "fixCommandcard",
DONOT_GAINNP = "donotGainnp",
FIELD_INDIVIDUALITY = "fieldIndividuality",
DONOT_ACT_COMMANDTYPE = "donotActCommandtype",
DAMAGE_EVENT_POINT = "damageEventPoint",
DAMAGE_SPECIAL = "damageSpecial",
FUNCTION_ATTACK = "functionAttack",
FUNCTION_COMMANDCODEATTACK = "functionCommandcodeattack",
DONOT_NOBLE_COND_MISMATCH = "donotNobleCondMismatch",
DONOT_SELECT_COMMANDCARD = "donotSelectCommandcard",
DONOT_REPLACE = "donotReplace",
SHORTEN_USER_EQUIP_SKILL = "shortenUserEquipSkill",
TD_TYPE_CHANGE = "tdTypeChange",
OVERWRITE_CLASS_RELATION = "overwriteClassRelation",
FUNCTION_COMMANDATTACK_BEFORE = "functionCommandattackBefore",
FUNCTION_GUTS = "functionGuts",
CRITICAL_RATE_DAMAGE_TAKEN = "criticalRateDamageTaken",
CRITICAL_STAR_DAMAGE_TAKEN = "criticalStarDamageTaken",
SKILL_RANK_CHANGE = "skillRankChange",
AVOIDANCE_INDIVIDUALITY = "avoidanceIndividuality",
CHANGE_COMMAND_CARD_TYPE = "changeCommandCardType",
SPECIAL_INVINCIBLE = "specialInvincible",
PREVENT_DEATH_BY_DAMAGE = "preventDeathByDamage",
FUNCTION_COMMANDCODEATTACK_AFTER = "functionCommandcodeattackAfter",
FUNCTION_ATTACK_BEFORE = "functionAttackBefore",
DONOT_SKILL_SELECT = "donotSkillSelect",
BUFF_RATE = "buffRate",
INVISIBLE_BATTLE_CHARA = "invisibleBattleChara",
COUNTER_FUNCTION = "counterFunction",
}
export enum BuffLimit {
NONE = "none",
UPPER = "upper",
LOWER = "lower",
NORMAL = "normal",
}
export enum BuffType {
NONE = "none",
UP_COMMANDATK = "upCommandatk",
UP_STARWEIGHT = "upStarweight",
UP_CRITICALPOINT = "upCriticalpoint",
DOWN_CRITICALPOINT = "downCriticalpoint",
REGAIN_NP = "regainNp",
REGAIN_STAR = "regainStar",
REGAIN_HP = "regainHp",
REDUCE_HP = "reduceHp",
UP_ATK = "upAtk",
DOWN_ATK = "downAtk",
UP_DAMAGE = "upDamage",
DOWN_DAMAGE = "downDamage",
ADD_DAMAGE = "addDamage",
SUB_DAMAGE = "subDamage",
UP_NPDAMAGE = "upNpdamage",
DOWN_NPDAMAGE = "downNpdamage",
UP_DROPNP = "upDropnp",
UP_CRITICALDAMAGE = "upCriticaldamage",
DOWN_CRITICALDAMAGE = "downCriticaldamage",
UP_SELFDAMAGE = "upSelfdamage",
DOWN_SELFDAMAGE = "downSelfdamage",
ADD_SELFDAMAGE = "addSelfdamage",
SUB_SELFDAMAGE = "subSelfdamage",
AVOIDANCE = "avoidance",
BREAK_AVOIDANCE = "breakAvoidance",
INVINCIBLE = "invincible",
UP_GRANTSTATE = "upGrantstate",
DOWN_GRANTSTATE = "downGrantstate",
UP_TOLERANCE = "upTolerance",
DOWN_TOLERANCE = "downTolerance",
AVOID_STATE = "avoidState",
DONOT_ACT = "donotAct",
DONOT_SKILL = "donotSkill",
DONOT_NOBLE = "donotNoble",
DONOT_RECOVERY = "donotRecovery",
DISABLE_GENDER = "disableGender",
GUTS = "guts",
UP_HATE = "upHate",
ADD_INDIVIDUALITY = "addIndividuality",
SUB_INDIVIDUALITY = "subIndividuality",
UP_DEFENCE = "upDefence",
DOWN_DEFENCE = "downDefence",
UP_COMMANDSTAR = "upCommandstar",
UP_COMMANDNP = "upCommandnp",
UP_COMMANDALL = "upCommandall",
DOWN_COMMANDALL = "downCommandall",
DOWN_STARWEIGHT = "downStarweight",
REDUCE_NP = "reduceNp",
DOWN_DROPNP = "downDropnp",
UP_GAIN_HP = "upGainHp",
DOWN_GAIN_HP = "downGainHp",
DOWN_COMMANDATK = "downCommandatk",
DOWN_COMMANSTAR = "downCommanstar",
DOWN_COMMANDNP = "downCommandnp",
UP_CRITICALRATE = "upCriticalrate",
DOWN_CRITICALRATE = "downCriticalrate",
PIERCE_INVINCIBLE = "pierceInvincible",
AVOID_INSTANTDEATH = "avoidInstantdeath",
UP_RESIST_INSTANTDEATH = "upResistInstantdeath",
UP_NONRESIST_INSTANTDEATH = "upNonresistInstantdeath",
DELAY_FUNCTION = "delayFunction",
REGAIN_NP_USED_NOBLE = "regainNpUsedNoble",
DEAD_FUNCTION = "deadFunction",
UP_MAXHP = "upMaxhp",
DOWN_MAXHP = "downMaxhp",
ADD_MAXHP = "addMaxhp",
SUB_MAXHP = "subMaxhp",
BATTLESTART_FUNCTION = "battlestartFunction",
WAVESTART_FUNCTION = "wavestartFunction",
SELFTURNEND_FUNCTION = "selfturnendFunction",
UP_GIVEGAIN_HP = "upGivegainHp",
DOWN_GIVEGAIN_HP = "downGivegainHp",
COMMANDATTACK_FUNCTION = "commandattackFunction",
DEADATTACK_FUNCTION = "deadattackFunction",
UP_SPECIALDEFENCE = "upSpecialdefence",
DOWN_SPECIALDEFENCE = "downSpecialdefence",
UP_DAMAGEDROPNP = "upDamagedropnp",
DOWN_DAMAGEDROPNP = "downDamagedropnp",
ENTRY_FUNCTION = "entryFunction",
UP_CHAGETD = "upChagetd",
REFLECTION_FUNCTION = "reflectionFunction",
UP_GRANT_SUBSTATE = "upGrantSubstate",
DOWN_GRANT_SUBSTATE = "downGrantSubstate",
UP_TOLERANCE_SUBSTATE = "upToleranceSubstate",
DOWN_TOLERANCE_SUBSTATE = "downToleranceSubstate",
UP_GRANT_INSTANTDEATH = "upGrantInstantdeath",
DOWN_GRANT_INSTANTDEATH = "downGrantInstantdeath",
GUTS_RATIO = "gutsRatio",
DAMAGE_FUNCTION = "damageFunction",
UP_DEFENCECOMMANDALL = "upDefencecommandall",
DOWN_DEFENCECOMMANDALL = "downDefencecommandall",
OVERWRITE_BATTLECLASS = "overwriteBattleclass",
OVERWRITE_CLASSRELATIO_ATK = "overwriteClassrelatioAtk",
OVERWRITE_CLASSRELATIO_DEF = "overwriteClassrelatioDef",
UP_DAMAGE_INDIVIDUALITY = "upDamageIndividuality",
DOWN_DAMAGE_INDIVIDUALITY = "downDamageIndividuality",
UP_DAMAGE_INDIVIDUALITY_ACTIVEONLY = "upDamageIndividualityActiveonly",
DOWN_DAMAGE_INDIVIDUALITY_ACTIVEONLY = "downDamageIndividualityActiveonly",
UP_NPTURNVAL = "upNpturnval",
DOWN_NPTURNVAL = "downNpturnval",
MULTIATTACK = "multiattack",
UP_GIVE_NP = "upGiveNp",
DOWN_GIVE_NP = "downGiveNp",
UP_RESISTANCE_DELAY_NPTURN = "upResistanceDelayNpturn",
DOWN_RESISTANCE_DELAY_NPTURN = "downResistanceDelayNpturn",
PIERCE_DEFENCE = "pierceDefence",
UP_GUTS_HP = "upGutsHp",
DOWN_GUTS_HP = "downGutsHp",
UP_FUNCGAIN_NP = "upFuncgainNp",
DOWN_FUNCGAIN_NP = "downFuncgainNp",
UP_FUNC_HP_REDUCE = "upFuncHpReduce",
DOWN_FUNC_HP_REDUCE = "downFuncHpReduce",
UP_DEFENCECOMMAN_DAMAGE = "upDefencecommanDamage",
DOWN_DEFENCECOMMAN_DAMAGE = "downDefencecommanDamage",
NPATTACK_PREV_BUFF = "npattackPrevBuff",
FIX_COMMANDCARD = "fixCommandcard",
DONOT_GAINNP = "donotGainnp",
FIELD_INDIVIDUALITY = "fieldIndividuality",
DONOT_ACT_COMMANDTYPE = "donotActCommandtype",
UP_DAMAGE_EVENT_POINT = "upDamageEventPoint",
UP_DAMAGE_SPECIAL = "upDamageSpecial",
ATTACK_FUNCTION = "attackFunction",
COMMANDCODEATTACK_FUNCTION = "commandcodeattackFunction",
DONOT_NOBLE_COND_MISMATCH = "donotNobleCondMismatch",
DONOT_SELECT_COMMANDCARD = "donotSelectCommandcard",
DONOT_REPLACE = "donotReplace",
SHORTEN_USER_EQUIP_SKILL = "shortenUserEquipSkill",
TD_TYPE_CHANGE = "tdTypeChange",
OVERWRITE_CLASS_RELATION = "overwriteClassRelation",
TD_TYPE_CHANGE_ARTS = "tdTypeChangeArts",
TD_TYPE_CHANGE_BUSTER = "tdTypeChangeBuster",
TD_TYPE_CHANGE_QUICK = "tdTypeChangeQuick",
COMMANDATTACK_BEFORE_FUNCTION = "commandattackBeforeFunction",
GUTS_FUNCTION = "gutsFunction",
UP_CRITICAL_RATE_DAMAGE_TAKEN = "upCriticalRateDamageTaken",
DOWN_CRITICAL_RATE_DAMAGE_TAKEN = "downCriticalRateDamageTaken",
UP_CRITICAL_STAR_DAMAGE_TAKEN = "upCriticalStarDamageTaken",
DOWN_CRITICAL_STAR_DAMAGE_TAKEN = "downCriticalStarDamageTaken",
SKILL_RANK_UP = "skillRankUp",
AVOIDANCE_INDIVIDUALITY = "avoidanceIndividuality",
CHANGE_COMMAND_CARD_TYPE = "changeCommandCardType",
SPECIAL_INVINCIBLE = "specialInvincible",
PREVENT_DEATH_BY_DAMAGE = "preventDeathByDamage",
COMMANDCODEATTACK_AFTER_FUNCTION = "commandcodeattackAfterFunction",
ATTACK_BEFORE_FUNCTION = "attackBeforeFunction",
DONOT_SKILL_SELECT = "donotSkillSelect",
BUFF_RATE = "buffRate",
INVISIBLE_BATTLE_CHARA = "invisibleBattleChara",
COUNTER_FUNCTION = "counterFunction",
}
export enum ClassRelationOverwriteType {
OVERWRITE_FORCE = "overwriteForce",
OVERWRITE_MORE_THAN_TARGET = "overwriteMoreThanTarget",
OVERWRITE_LESS_THAN_TARGET = "overwriteLessThanTarget",
}
export interface RelationOverwriteDetail {
damageRate: number;
type: ClassRelationOverwriteType;
}
export interface BuffRelationOverwrite {
atkSide: Record<ClassName, Record<ClassName, RelationOverwriteDetail>>;
defSide: Record<ClassName, Record<ClassName, RelationOverwriteDetail>>;
}
export interface BuffScript {
checkIndvType?: number;
CheckOpponentBuffTypes?: BuffType[];
relationId?: BuffRelationOverwrite;
ReleaseText?: string;
DamageRelease?: number;
INDIVIDUALITIE?: Trait;
UpBuffRateBuffIndiv?: Trait[];
HP_LOWER?: number;
}
export interface BasicBuff {
id: number;
name: string;
icon?: string;
type: BuffType;
script: BuffScript;
vals: Trait[];
tvals: Trait[];
ckSelfIndv: Trait[];
ckOpIndv: Trait[];
reverse?: {
basic?: {
function?: Func[];
};
};
}
export interface Buff extends BasicBuff {
detail: string;
buffGroup: number;
maxRate: number;
reverse?: {
basic?: {
function?: Func[];
};
nice?: {
function?: Func[];
};
};
}
export interface BuffConstant {
limit: BuffLimit;
plusTypes: BuffType[];
minusTypes: BuffType[];
baseParam: number;
baseValue: number;
isRec: boolean;
plusAction: number;
maxRate: number[];
}
export type BuffConstantMap = {
[key in BuffAction]?: BuffConstant;
};
|
typescript
|
National Mission for Clean Ganga (NMCG) has directed the closure of CETP Unnao, which has been found not complying to the prescribed norms during surprise inspections. NMCG, in exercise of powers conferred to it under provisions of the Environment (Protection) Act, 1986, has directed the closure of all industrial units without operational Primary Effluent Treatment Plant (PETP) connected with Common Effluent Treatment Plant (CETP), Unnao.
This is in line with the National Green Tribunal order dated 21.09.2020 which directed the States/UTs to ensure that the CETP/ETPs must meet the laid down norms and remedial action be taken wherever norms are not met.
CETP Unnao, with designed capacity of 2.15 MLD, is based on Activated Sludge Technology for treatment of effluents of 14 tannery industrial units.
On 14.02.2022, Central Pollution Control Board (CPCB) issued show cause notice to M/s Unnao Tanneries Pollution Control Company for non-compliance of CETP effluent discharge norms based on their six inspections at CETP Unnao.
On 13.04.2023, a joint surveillance of NMCG and UPPCB was carried out for 2.15 MLD CETP Unnao and samples were taken in presence of authorized representative. The CETP was found non-complying against the UPPCB notified inlet norms, stipulated outlet discharge norms of CPCB and drain water quality.
Analysis of samples taken from CETP inlet, amongst others, showed exceedance against the UPPCB notified inlet norms of TSS as 696 mg/l (against 600 mg/l) and Chromium as 18 mg/l (against 10 mg/l). This indicated that PETP installed by the member units were not functioning adequately to achieve desired CETP treated effluent quality norms. Analysis of samples taken from CETP Unnao outlet being discharged into Loni drain, which meets River Ganga, showed exceedance of the notified discharge norms and the CETP non-complying with respect to TDS: 8500 mg/l (against 2100 mg/l), Chloride: 2650 mg/l (against 1000mg/l), Phosphate: 12.59 mg/l (against 5.0 mg/l).
Based on the findings, NMCG issued the final closure direction for CETP Unnao under section 5 of the Environment (Protection) Act to Chief Secretary, Government of Uttar-Pradesh and Member Secretary UPPCB on 23.06.2023.
NMCG has directed the UPPCB to levy and recover the environmental compensation from Unnao Tanneries Pollution Control Company (UTPCC) and defaulting industrial units in Unnao in terms of compensation regime as fixed by the NGT for non-compliant CETPs/effluent discharge into drains/rivers.
This matter was discussed in the meeting with Chief Secretary, Uttar Pradesh and Director General, NMCG on 28.07.2023. DM, Unnao assured NMCG that the action is being taken on NMCG directions.
|
english
|
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<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>Combine and joint filter variants within a patient — combine_and_filter • varikondo</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 href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/sandstone/bootstrap.min.css" rel="stylesheet" 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/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" 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="Combine and joint filter variants within a patient — combine_and_filter" />
<meta property="og:description" content="This function will take as input a data frame of variants with specific column information and return a filtered set with sample's clinical infrmation and default variants information also for samples without variants." />
<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-reference-topic">
<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">varikondo</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.6.8</span>
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fas fa fas fa-home fa-lg"></span>
</a>
</li>
<li>
<a href="../articles/vignette.html">Get started</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/standardise-variant-fields.html">Standardise VCF fields across callers</a>
</li>
<li>
<a href="../articles/how-variants-are-stored.html">How different types of variants are stored</a>
</li>
<li>
<a href="../articles/rna-seq-pipe.html">Example - Variant calling in RNA-Seq</a>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/annaquaglieri16/varikondo">
<span class="fab fa fab 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">
<h1>Combine and joint filter variants within a patient</h1>
<small class="dont-index">Source: <a href='https://github.com/annaquaglieri16/varikondo/blob/master/R/combine_and_filter.R'><code>R/combine_and_filter.R</code></a></small>
<div class="hidden name"><code>combine_and_filter.Rd</code></div>
</div>
<div class="ref-description">
<p>This function will take as input a data frame of variants with specific column information and return a filtered set with sample's clinical infrmation and default variants information also for samples without variants.</p>
</div>
<pre class="usage"><span class='fu'>combine_and_filter</span>(<span class='kw'>variants</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>patientID</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>studyGenes</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>minQual</span> <span class='kw'>=</span> <span class='fl'>20</span>, <span class='kw'>clinicalData</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>min_vaf</span> <span class='kw'>=</span> <span class='fl'>0.15</span>, <span class='kw'>min_alt</span> <span class='kw'>=</span> <span class='fl'>2</span>, <span class='kw'>keep_impact</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"HIGH"</span>, <span class='st'>"MODERATE"</span>),
<span class='kw'>variant_type</span> <span class='kw'>=</span> <span class='st'>"indels-vardict"</span>)</pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>variants</th>
<td><p>a data frame where every row is a variant for one sample at a specific time point. The variants can derive from any caller but the input should be standardised to have the following columns: 'SampleName','PID','Time','chrom', 'pos', 'alt', 'ref', 'ref_depth','alt_depth' and (gene) 'SYMBOL' (see more information in Details). The columns `Consequence` and `IMPACT` (as annotated by Variant Effect Predictor (VEP) https://asia.ensembl.org/info/genome/variation/prediction/predicted_data.html) are filled with default values if not found. If VEP `Consequence` is not available it could populated with any other informations like exon number, INDEL/SNV label etc... to add details to each mutations (useful for plotting purposes). The `SampleName` columns is unique for every sequencing sample while `PID` for every patient.</p></td>
</tr>
<tr>
<th>patientID</th>
<td><p>a character vector specifying the patient/s id/s for which variants have to be imported.</p></td>
</tr>
<tr>
<th>studyGenes</th>
<td><p>genes of interest. If none provided all genes will be used.</p></td>
</tr>
<tr>
<th>minQual</th>
<td><p>minimum quality for a variant to be kept.</p></td>
</tr>
<tr>
<th>clinicalData</th>
<td><p>clinical data about the patients in the cohort. It has to contain the a column `SampleName`.</p></td>
</tr>
<tr>
<th>min_vaf</th>
<td><p>numeric. Minimum variant allele frequency (VAF) for a variant to be kept at one time point.</p></td>
</tr>
<tr>
<th>min_alt</th>
<td><p>numeric. Minimum number of reads supporting the alt allele at one time points for a patient.</p></td>
</tr>
<tr>
<th>keep_impact</th>
<td><p>vector specifying the IMPACT values to select variants. Values allowed are HIGH, MODERATE, LOW, MODIFIER ( https://asia.ensembl.org/info/genome/variation/prediction/predicted_data.html). IMPACT should be a columns of `variants`. If it is not found all variants are kept.</p></td>
</tr>
<tr>
<th>variant_type</th>
<td><p>Label for the type of variants imported, e.g. vardict-indels.</p></td>
</tr>
</table>
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
<p>This function will keep only the variants for `patientID` found on `studyGenes` and with a `minQual`. If a sample has no variants, then only clinical information will be returned with default values for the variant information. If some variants are found at some time points but not at others, missing points will be populated with default (0) values for VAF, ref_depth, alt_depth to allow consistency when plotting changes over time.</p>
<h2 class="hasAnchor" id="details"><a class="anchor" href="#details"></a>Details</h2>
<p>More details about the `variants` input:</p>
<p>- The `Time` column can be defined in any way and it should reflect the time of sample collection. For example it could be defined as Time0, Time1, Time2 etc...</p>
<p>- If the column `IMPACT` is not found it will be filled with NAs and no variants will be filtered. Otherwise, values of the columns are checked and if they are within the expected values (HIGH, MODERATE, LOW or MODIFIER) only variants with `keep_impact` entries are kept. If a mutation appears twice with different `IMPACT` values only the most damaging will be kept.</p>
<p>The variants are then merged with the clinical information of `patientID`. This step is needed so that if no variants are returned for one time point for one `patientID`, default entries for Variant Allele Frequency (VAF), reference and alterative depths will be created. The default value is 0 for all of the above. A variant is reported for a patient only if at any time point its VAF >= min_VAF and the total depth is >= 10.</p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'>
<span class='no'>indels</span> <span class='kw'><-</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/data.frame'>data.frame</a></span>(<span class='kw'>PID</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/rep'>rep</a></span>(<span class='st'>"D1"</span>,<span class='fl'>9</span>),
<span class='kw'>Outcome</span> <span class='kw'>=</span> <span class='st'>"Rel"</span>,
<span class='kw'>SampleName</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"D1.Screen.Rel"</span>,<span class='st'>"D1.Screen.Rel"</span>,<span class='st'>"D1.Screen.Rel"</span>,
<span class='st'>"D1.Cyc1.Rel"</span>,<span class='st'>"D1.Cyc1.Rel"</span>,<span class='st'>"D1.Cyc1.Rel"</span>,
<span class='st'>"D1.Cyc2.Rel"</span>,<span class='st'>"D1.Cyc2.Rel"</span>,<span class='st'>"D1.Cyc2.Rel"</span>),
<span class='kw'>Time</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/rep'>rep</a></span>(<span class='st'>"Screen"</span>,<span class='fl'>3</span>),<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/rep'>rep</a></span>(<span class='st'>"Cyc1"</span>,<span class='fl'>3</span>),<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/rep'>rep</a></span>(<span class='st'>"Cyc2"</span>,<span class='fl'>3</span>)),
<span class='kw'>chrom</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"chr1"</span>,<span class='st'>"chr1"</span>,<span class='st'>"chr2"</span>,<span class='st'>"chr2"</span>,<span class='st'>"chr1"</span>,<span class='st'>"chr1"</span>,<span class='st'>"chr2"</span>,<span class='st'>"chr1"</span>,<span class='st'>"chr2"</span>),
<span class='kw'>pos</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>10</span>,<span class='fl'>20</span>,<span class='fl'>30</span>,<span class='fl'>10</span>,<span class='fl'>20</span>,<span class='fl'>30</span>,<span class='fl'>10</span>,<span class='fl'>20</span>,<span class='fl'>30</span>),
<span class='kw'>alt</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"ACT"</span>,<span class='st'>"ACGTCG"</span>,<span class='st'>"AGG"</span>,<span class='st'>"ACT"</span>,<span class='st'>"ACGTCG"</span>,<span class='st'>"AGG"</span>,<span class='st'>"ACT"</span>,<span class='st'>"ACGTCG"</span>,<span class='st'>"AGG"</span>),
<span class='kw'>ref</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"A"</span>,<span class='st'>"G"</span>,<span class='st'>"A"</span>,<span class='st'>"A"</span>,<span class='st'>"G"</span>,<span class='st'>"AGG"</span>,<span class='st'>"A"</span>,<span class='st'>"G"</span>,<span class='st'>"A"</span>),
<span class='kw'>ref_depth</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>12</span>,<span class='fl'>11</span>,<span class='fl'>9</span>,<span class='fl'>9</span>,<span class='fl'>12</span>,<span class='fl'>8</span>,<span class='fl'>13</span>,<span class='fl'>14</span>,<span class='fl'>8</span>),
<span class='kw'>alt_depth</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>2</span>,<span class='fl'>20</span>,<span class='fl'>10</span>,<span class='fl'>2</span>,<span class='fl'>10</span>,<span class='fl'>15</span>,<span class='fl'>20</span>,<span class='fl'>20</span>,<span class='fl'>100</span>),
<span class='kw'>SYMBOL</span> <span class='kw'>=</span> <span class='st'>"BCL2"</span>,
<span class='kw'>Consequence</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/rep'>rep</a></span>(<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"exon1"</span>,<span class='st'>"exon1"</span>,<span class='st'>"exon2"</span>),<span class='kw'>times</span><span class='kw'>=</span><span class='fl'>3</span>),
<span class='kw'>qual</span> <span class='kw'>=</span> <span class='fl'>49</span>)
<span class='no'>clinicalData</span> <span class='kw'><-</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/data.frame'>data.frame</a></span>(<span class='kw'>SampleName</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"D1.Screen.Rel"</span>,<span class='st'>"D1.Cyc1.Rel"</span>,
<span class='st'>"D1.Cyc2.Rel"</span>,<span class='st'>"D1.Cyc3.Rel"</span>),
<span class='kw'>PID</span> <span class='kw'>=</span> <span class='st'>"D1"</span>,
<span class='kw'>AgeDiagnosis</span> <span class='kw'>=</span> <span class='fl'>65</span>,
<span class='kw'>Time</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"Screen"</span>,<span class='st'>"Cyc1"</span>,<span class='st'>"Cyc2"</span>,<span class='st'>"Cyc3"</span>),
<span class='kw'>Sex</span> <span class='kw'>=</span> <span class='st'>"F"</span>,
<span class='kw'>BlastPerc</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>80</span>,<span class='fl'>5</span>,<span class='fl'>7</span>,<span class='fl'>40</span>))
<span class='no'>import_indels</span> <span class='kw'><-</span> <span class='fu'>combine_and_filter</span>(<span class='kw'>variants</span> <span class='kw'>=</span> <span class='no'>indels</span>,
<span class='kw'>patientID</span> <span class='kw'>=</span> <span class='st'>"D1"</span>,
<span class='kw'>studyGenes</span> <span class='kw'>=</span> <span class='st'>"BCL2"</span>,
<span class='kw'>minQual</span> <span class='kw'>=</span> <span class='fl'>20</span>,
<span class='kw'>clinicalData</span> <span class='kw'>=</span> <span class='no'>clinicalData</span>)</div><div class='output co'>#> IMPACT is missing and will be filled with NAs.</div><div class='output co'>#> <span class='error'>Error: Can't find column `variant_type` in `.data`.</span></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
<li><a href="#value">Value</a></li>
<li><a href="#details">Details</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
</div>
</div>
<footer>
<div class="copyright">
<p>Developed by <a href='https://github.com/annaquaglieri16'><NAME></a>, <a href='https://github.com/ChristofferFlensburg'><NAME></a>.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.3.0.9000.</p>
</div>
</footer>
</div>
</body>
</html>
|
html
|
{"Department":"Карлівський відділ Кобеляцької місцевої прокуратури Полтавської області","Name":"<NAME>","Position":"Прокурор Карлівського відділу Кобеляцької місцевої прокуратури Полтавської області","Region":"Полтавська область","analytics":[{"fc":2,"fh":203.8,"fha":2,"fi":200000,"fl":182400,"fla":3,"i":69405,"y":2015},{"fc":2,"fh":203.8,"fha":2,"fi":320000,"fl":182400,"fla":3,"i":10320,"y":2016},{"fc":3,"fh":203.8,"fha":2,"fi":150000,"fl":181800,"fla":2,"i":235157,"y":2017},{"fc":2,"fh":203.8,"fha":2,"fi":590980,"fl":181800,"fla":2,"i":356332,"y":2018},{"fc":1,"fh":101.9,"fha":1,"fi":1526660,"fl":180600,"fla":2,"h":50.95,"ha":1,"l":600,"la":1,"y":2019}],"declarationsLinks":[{"id":"nacp_de3f551c-9a34-4368-bd5e-b43f3e53e6df","provider":"declarations.com.ua.opendata","year":2015},{"id":"nacp_5ed93ab8-7fdc-4934-b97e-d6b4bf705374","provider":"declarations.com.ua.opendata","year":2016},{"id":"nacp_dc4cfa60-1809-4a0c-9af9-56fa9704866b","provider":"declarations.com.ua.opendata","year":2017},{"id":"nacp_3051da03-76a7-421b-bd95-19219dd70763","provider":"declarations.com.ua.opendata","year":2018},{"id":"nacp_573ab7a6-2d11-4d61-bc4f-906a49d469a2","provider":"declarations.com.ua.opendata","year":2019}],"key":"odinec_alina_mikolayivna","type":"prosecutor","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"https://public.nazk.gov.ua/declaration/de3f551c-9a34-4368-bd5e-b43f3e53e6df","Декларації 2016":"https://public.nazk.gov.ua/declaration/5ed93ab8-7fdc-4934-b97e-d6b4bf705374","Декларації доброчесності":"https://www.gp.gov.ua/integrity_profile/files/9252795630c3add4a2c3e7dbe963008a.pdf","Фото":"","Як живе":""}
|
json
|
package com.bolyartech.forge.admin.units.admin_user.admin_users_list;
import com.bolyartech.forge.admin.data.AdminUser;
import com.bolyartech.forge.android.app_unit.OperationResidentComponentImpl;
import com.bolyartech.forge.base.exchange.ForgeExchangeManager;
import com.bolyartech.forge.base.exchange.builders.ForgePostHttpExchangeBuilder;
import com.bolyartech.forge.base.exchange.forge.BasicResponseCodes;
import com.bolyartech.forge.base.exchange.forge.ForgeExchangeHelper;
import com.bolyartech.forge.base.exchange.forge.ForgeExchangeResult;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
public class ResAdminUsersListAbstract extends OperationResidentComponentImpl implements ResAdminUsersList {
private final org.slf4j.Logger mLogger = LoggerFactory.getLogger(this.getClass().getSimpleName());
private volatile long mLoadXId;
private List<AdminUser> mData;
private Gson mGson;
private final ForgeExchangeHelper mForgeExchangeHelper;
@Inject
public ResAdminUsersListAbstract(ForgeExchangeHelper forgeExchangeHelper) {
mGson = new Gson();
mForgeExchangeHelper = forgeExchangeHelper;
loadAdminUsers();
}
@Override
public void loadAdminUsers() {
if (isIdle()) {
switchToBusyState();
ForgePostHttpExchangeBuilder b = mForgeExchangeHelper.createForgePostHttpExchangeBuilder("admin_users");
ForgeExchangeManager em = mForgeExchangeHelper.getExchangeManager();
mLoadXId = em.executeExchange(b.build());
} else {
throw new IllegalStateException("Not in IDLE state");
}
}
@Override
public List<AdminUser> getData() {
return mData;
}
@Override
public void onExchangeOutcome(long exchangeId, boolean isSuccess, ForgeExchangeResult result) {
if (exchangeId == mLoadXId) {
handleLoadUsers(isSuccess, result);
}
}
private void handleLoadUsers(boolean isSuccess, ForgeExchangeResult result) {
if (isSuccess) {
int code = result.getCode();
if (code > 0) {
if (code == BasicResponseCodes.OK) {
Type listType = new TypeToken<ArrayList<AdminUser>>(){}.getType();
mData = mGson.fromJson(result.getPayload(), listType);
switchToEndedStateSuccess();
} else {
switchToEndedStateFail();
}
} else {
switchToEndedStateFail();
}
} else {
switchToEndedStateFail();
}
}
}
|
java
|
<reponame>amcclead7336/Enterprise_Data_Science_Final
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
MMS_WORKSPACE_API_VERSION = '2018-11-19'
MMS_ROUTE_API_VERSION = 'v1.0'
MMS_SYNC_TIMEOUT_SECONDS = 80
MMS_SERVICE_VALIDATE_OPERATION_TIMEOUT_SECONDS = 30
MMS_SERVICE_EXIST_CHECK_SYNC_TIMEOUT_SECONDS = 5
MMS_RESOURCE_CHECK_SYNC_TIMEOUT_SECONDS = 15
SUPPORTED_RUNTIMES = {
'spark-py': 'SparkPython',
'python': 'Python',
'python-slim': 'PythonSlim'
}
UNDOCUMENTED_RUNTIMES = ['python-slim']
CUSTOM_BASE_IMAGE_SUPPORTED_RUNTIMES = {
'python': 'PythonCustom'
}
WORKSPACE_RP_API_VERSION = '2019-06-01'
MAX_HEALTH_CHECK_TRIES = 30
HEALTH_CHECK_INTERVAL_SECONDS = 1
DOCKER_IMAGE_TYPE = "Docker"
UNKNOWN_IMAGE_TYPE = "Unknown"
WEBAPI_IMAGE_FLAVOR = "WebApiContainer"
ACCEL_IMAGE_FLAVOR = "AccelContainer"
IOT_IMAGE_FLAVOR = "IoTContainer"
UNKNOWN_IMAGE_FLAVOR = "Unknown"
CLOUD_DEPLOYABLE_IMAGE_FLAVORS = [WEBAPI_IMAGE_FLAVOR, ACCEL_IMAGE_FLAVOR]
SUPPORTED_CUDA_VERSIONS = ["9.0", "9.1", "10.0"]
ARCHITECTURE_AMD64 = "amd64"
ARCHITECTURE_ARM32V7 = "arm32v7"
ACI_WEBSERVICE_TYPE = "ACI"
AKS_WEBSERVICE_TYPE = "AKS"
AKS_ENDPOINT_TYPE = "AKSENDPOINT"
SERVICE_REQUEST_OPERATION_CREATE = "Create"
SERVICE_REQUEST_OPERATION_UPDATE = "Update"
SERVICE_REQUEST_OPERATION_DELETE = "Delete"
AKS_ENDPOINT_DELETE_VERSION = "deleteversion"
AKS_ENDPOINT_CREATE_VERSION = "createversion"
AKS_ENDPOINT_UPDATE_VERSION = "updateversion"
COMPUTE_TYPE_KEY = "computeType"
LOCAL_WEBSERVICE_TYPE = "Local"
UNKNOWN_WEBSERVICE_TYPE = "Unknown"
CLI_METADATA_FILE_WORKSPACE_KEY = 'workspaceName'
CLI_METADATA_FILE_RG_KEY = 'resourceGroupName'
MODEL_METADATA_FILE_ID_KEY = 'modelId'
IMAGE_METADATA_FILE_ID_KEY = 'imageId'
DOCKER_IMAGE_HTTP_PORT = 5001
DOCKER_IMAGE_MQTT_PORT = 8883
RUN_METADATA_EXPERIMENT_NAME_KEY = '_experiment_name'
RUN_METADATA_RUN_ID_KEY = 'run_id'
PROFILE_METADATA_CPU_KEY = "cpu"
PROFILE_METADATA_MEMORY_KEY = "memoryInGB"
PROFILE_PARTIAL_SUCCESS_MESSAGE = 'Model Profiling operation completed, but encountered issues ' +\
'during execution: %s Inspect ModelProfile.error property for more information.'
PROFILE_FAILURE_MESSAGE = 'Model Profiling operation failed with the following error: %s Request ID: %s. ' +\
'Inspect ModelProfile.error property for more information.'
DATASET_SNAPSHOT_ID_FORMAT = '/datasetId/{dataset_id}/datasetSnapshotName/{dataset_snapshot_name}'
DOCKER_IMAGE_APP_ROOT_DIR = '/var/azureml-app'
IOT_WEBSERVICE_TYPE = "IOT"
MIR_WEBSERVICE_TYPE = "MIR"
MODEL_PACKAGE_ASSETS_DIR = 'azureml-app'
MODEL_PACKAGE_MODELS_DIR = 'azureml-models'
# Kubernetes namespaces must be valid lowercase DNS labels.
# Ref: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md
NAMESPACE_REGEX = '^[a-z0-9]([a-z0-9-]{,61}[a-z0-9])?$'
WEBSERVICE_SCORE_PATH = '/score'
WEBSERVICE_SWAGGER_PATH = '/swagger.json'
ALL_WEBSERVICE_TYPES = [ACI_WEBSERVICE_TYPE, AKS_ENDPOINT_TYPE, AKS_WEBSERVICE_TYPE, IOT_WEBSERVICE_TYPE,
MIR_WEBSERVICE_TYPE]
HOW_TO_USE_ENVIRONMENTS_DOC_URL = "https://docs.microsoft.com/azure/machine-learning/how-to-use-environments"
# Blob storage allows 10 minutes/megabyte. Add a bit for overhead, and to make sure we don't give up first.
# Ref: https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations
ASSET_ARTIFACTS_UPLOAD_TIMEOUT_SECONDS_PER_BYTE = 1.1 * (10 * 60) / (1000 * 1000)
|
python
|
Suzuki Motorcycle India Private Limited (SMIPL), a subsidiary of two-wheeler manufacturer, Suzuki Motor Corporation, Japan, announced its transition from BS-4 to BS-6 products from January 2020. Suzuki Motorcycle India’s top-selling scooter, Access 125, will be the first product to be rolled out as part of the new emission norms from Suzuki Motorcycle India’s portfolio. The All-New Suzuki Access 125 will come with new key features including Eco Assist illumination, Fuel Injection engine, External fuel filling lid and LED headlamp. Powered by Suzuki Eco Performance Technology, the updated BS-6 engine will deliver 8. 7ps at 6750rpm, 10Nm at 5500rpm offering top-class power performance at low fuel consumption.
The Eco Assist illumination feature helps the rider to get optimum throttle usage. Greenlight indicates that the riding patterns are compatible with fuel-efficient riding. The advanced Fuel Injection engine technology provides smooth power delivery, thus offering optimum combustion efficiency in different riding conditions. It also helps in easy start-up even in cold conditions. External fuel filling lid provides the ease of refuelling without opening the seat. The new super bright LED headlamp will help enhance night visibility for a stress-free ride. Offering a good balance on the road, the scooter is also equipped with Combined Brake System (CBS), which enables to operate both brakes only by the left lever.
Offering comfort as a necessity, the All-New Suzuki Access 125 will have a long seat, enlarged floorboard larger under-seat storage and easy start system. Furthermore, the scooter is designed to offer premium look with its rich bodywork, stylish edgy lines, LED tail lamp and chrome plate finish. Additionally, the new Special Edition model will offer standard USB DC socket for charging mobile phones on the go. All-new Suzuki Access 125 BS-VI will be launched in India soon.
|
english
|
<filename>resources/mx/centre-for-advanced-studies-of-the-state-of-aguascalientes.json<gh_stars>10-100
{"name":"Centre for Advanced Studies of the State of Aguascalientes","alt_name":"Centro de Estudios Superiores del Estado de Aguascalientes","country":"Mexico","state":null,"address":{"street":"Av. Las Américas No. 502 - Fracc. Las Américas","city":"Aguascalientes","province":"Aguascalientes","postal_code":null},"contact":{"telephone":null,"website":null,"email":null,"fax":null},"funding":"Private","languages":null,"academic_year":null,"accrediting_agency":null}
|
json
|
<filename>public/bower_components/iids/dist/iidx/components/dashboard-widgets/bower.json
{
"name": "dashboard-widgets",
"description": "Collection of common dashboard modules.",
"version": "0.10.0",
"main": [
"less/add-widget.less",
"less/snapshot.less",
"less/responsive.less"
],
"ignore": [
"components",
"css",
"node_modules",
"test",
".*",
"Gruntfile.js"
],
"dependencies": {
"requirejs": "https://github.com/jrburke/requirejs-bower.git#~2.1.11",
"jquery": "https://github.com/components/jquery.git#~1.10.2",
"ge-bootstrap": "<EMAIL>:DXC/ge-bootstrap#master",
"modules": "<EMAIL>:DXC/modules#v1.0.4"
}
}
|
json
|
A DAY after the state government announced the formation of a two-member SIT to investigate six cases lodged against Alt News co-founder Mohammad Zubair in five districts of the state, the agency on Wednesday began the process. Of the six cases, two are registered in Hathras districts and one each in Sitapur, Lakhimpur Kheri, Ghaziabad and Muzaffarnagar.
The agency has started the process of recruiting police officers in the SIT. They are also sending letters to the districts concerned, requesting to provide FIR and documents related with the investigation done so far.
The SIT is headed by IG Dr Preetinder Singh, a 2004-batch IPS officer who is presently posted at the Department of Prisons Administration and Reform. It will also include DIG Amit Verma, a 2008-batch IPS officer posted at the UP Police’s SIT department.
The SIT will nominate officers of the rank of Additional Superintendent of Police, Deputy Superintendent of Police and Inspector-rank officers to assist in the investigation. “The SIT will soon start investigation,” said a senior police officer.
The cases against Zubair are related to different charges including for allegedly making sarcastic remarks against news channel anchor, hurting sentiments of Hindus, making objectionable comments on deities and uploading a “provocative” post online.
Three cases were registered this year while the other three were filed in 2021.
According to sources, Zubair is named in five of the six cases that the SIT is probing. Sources said the Hathras police claims that Zubair’s name cropped up during investigation of the case lodged at Shikandraro police station in Hathras last month. SHO, Shikandraro police station, Ashok Kumar said the case is related with the protest held.
The complainant of the case is police personnel, said the SHO.
Sources said that in the two of the six cases SIT is probing, police personnel is complainant. In the remaining four cases, complainant is local residents. The cases against Zubair are lodged on various charges including promoting enmity between two groups and deliberate and malicious acts intended to outrage religious feelings of any class by insulting its religion or religious beliefs.
Meanwhile, a local court in Lakhimpur Kheri on Thursday is likely to take up application moved by local police seeking 14-day police custody remand of Zubair.
|
english
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="google-site-verification" content="iJ3bc1hdJ7bEpE5lbDoHopnvFezdT5kx0VFo2-H7ycM" />
<meta name="google-site-verification" content="vq8goVU_JDfJuz6fciLnx-WBUJE1H5oAwpPILuOukns" />
<title>OxAI - Oxford Artificial Intelligence Society</title>
<link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="/css/grayscale.min.css" rel="stylesheet">
<!-- Custom CSS -->
<!-- <link title="timeline-styles" rel="stylesheet" href="https://cdn.knightlab.com/libs/timeline3/latest/css/timeline.css"> -->
<link href="/css/style.css" rel="stylesheet">
<link href="/css/events.css" rel="stylesheet">
<link rel="stylesheet" href="/css/styles.css">
<link rel="stylesheet" href="/css/jquery.qtip.min.css">
<!-- <link rel="stylesheet" href="/css/fullcalendar.min.css"> -->
<link href='/js/packages/core/main.css' rel='stylesheet' />
<link href='/js/packages/daygrid/main.css' rel='stylesheet' />
<link href='/js/packages/list/main.css' rel='stylesheet' />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<meta name="description" content="The mission of the Oxford Artificial Intelligence Society is to provide a platform for the interaction of researchers, students, and professionals interested in Artificial Intelligence.">
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<!--Here begins the website itself-->
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<script type="text/javascript">
var isBlog = false; //For width/height changes to TweenLite
</script>
<!-- Navigation (navigation bar on the top)-->
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="/#page-top">
<img id="minilogo" src="/img/logo2.png"></img>
<span class="light"> OX</span>AI
</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/events">Events</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/join">Join</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/labs">Labs</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/blog">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="/#sponsors">Sponsors</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="/#partners">Partners</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="/team">Team</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- <style>
.blog{
width: 84%;
margin: 0 auto;
}
.blog .title{
font-size: 24px;
margin-top: 18px;
margin-bottom: 8px;
}
.blog .content p{
font-size: 1.2em;
text-align: left;
}
.blog .content .author{
text-align: right;
}
#logo{
margin-top: 35px;
}
@media only screen and (max-width : 768px) {
.blog{
width: 90%;
margin: 0 auto;
}
.blog .title{
font-size: 1.2em;
margin-bottom: 28px;
}
.blog .content p{
font-size: 1em;
}
}
</style> -->
<section class="page blog">
<div class="container mt-5">
<div class="row text-center">
<div class="col-lg-8 mx-auto">
<h2 class="text-white mb-2">Bridging the Gap between AI Technologies and Governance</h2>
<h4 class="text-white mb-4">07 Apr 2020</h2>
</div>
</div>
<div class="row w-75 mx-auto">
<p>AI has become an increasingly visible term in mainstream media as technology continues to proliferate in this modern day. However, the increasing use of AI brings complex implications for public policy that need to be addressed through cooperation between AI researchers and governments. My internship with a financial regulator last summer exposed me to the practical realities that governments face in facilitating and regulating technologies such as FinTech. Given this experience, the AI Ethics and Society course, offered by the Oxford AI Society, piqued my interest because of its focuses on the intersections between governance and technology, and more importantly, the grey spaces between them.</p>
<p>A particular moment in the course that stands out in my memory is when Dr. Ashurst elaborated on how machine bias can inadvertently affect the fairness of real-world processes, such as hiring. Increasingly, companies use video interview software and psychometric testing tools that are powered by AI. These systems use machine learning models to assess candidates in the preliminary stages of the recruitment process. This results in increased efficiency since the system identifies candidates who will progress to the next rounds, and hence reduces the time taken for Human Resource departments to sift through individual applications.</p>
<p>While companies claim that using these software also reduce biases, independent analysts assert that biases could actually be reinforced. An example of such software is HireVue’s emotion recognition, which is used in assessments of prospective candidates during video interviews. The programme functions by analysing word choices, tone and facial movements and providing candidates with a score based on what is deemed desirable. Since the software is based on machine learning, it begins to prefer characteristics that are similar across subsets of successful applicants – hence potentially penalising non-native speakers or those who appear nervous. This bias needs to be manually corrected by developers, but there exists a time lag between recognising and eradicating it. Thus, before such human intervention occurs, numerous candidates would have been subject to the bias in the algorithm.</p>
<p>Having gone through such application processes for internships myself, I find it rather perplexing that it is AI in its early stages that can either make or break my chances of success, and that individuals first have to get through the AI system in order to get a face-to-face interview with a real person only in the final rounds.</p>
<p>Therefore, I believe that governments and regulatory organisations need to do more to address the societal issues posed by AI. The course highlighted that AI use is currently concentrated among corporations and firms, so I think there needs to be greater cooperation between the public and private sectors in addressing the ethical risks posed by AI. To be frank, however, I am sceptical about the viability of regulating rapidly adapting technologies, simply because policymakers have been plagued by the inertia of being unable to promptly react to technological change. This is underscored by a more fundamental (and unfortunate) ignorance or perhaps even complacency about machine intelligence. A prominent example of this is <NAME>’s interrogation by members of the US Congress in 2018, who seemed completely unaware of Facebook’s operations.</p>
<p>As an aspiring policymaker, I think governments can certainly devote more resources and research efforts to understanding and tackling the ethical and societal challenges posed by AI. To that extent, this course is illuminating in how the lectures present novel solutions to AI governance and the relevance of research done at Oxford to answering the questions posed by the emergence and expansion of AI technologies.</p>
<p><em>Introduction to AI Ethics (and Society) was a five-part course organized by OxAI and taught by Dr. Ashurst of the Future of Humanity Institute in February and March of 2020. The course examined the most relevant and important issues that dominate the debate around ethics in AI through a series of lectures and discussion. <NAME> is a student at the University of Oxford and a participant in the course.</em></p>
<p class="author">Written by
<br><i><NAME></i>
<br><i></i></p>
</div>
</div>
</section>
<!--Welcome section-->
<!-- <div id="large-header" class="large-header container">
<canvas id="demo-canvas"></canvas>
<div class="row welcome">
<div class="welcome2">
<img id="logo" src="/img/logo.png"/>
<div class="blog">
<h3 class="title">
Bridging the Gap between AI Technologies and Governance - 07 Apr 2020
</h3>
<div class="content">
<p>AI has become an increasingly visible term in mainstream media as technology continues to proliferate in this modern day. However, the increasing use of AI brings complex implications for public policy that need to be addressed through cooperation between AI researchers and governments. My internship with a financial regulator last summer exposed me to the practical realities that governments face in facilitating and regulating technologies such as FinTech. Given this experience, the AI Ethics and Society course, offered by the Oxford AI Society, piqued my interest because of its focuses on the intersections between governance and technology, and more importantly, the grey spaces between them.</p>
<p>A particular moment in the course that stands out in my memory is when Dr. Ashurst elaborated on how machine bias can inadvertently affect the fairness of real-world processes, such as hiring. Increasingly, companies use video interview software and psychometric testing tools that are powered by AI. These systems use machine learning models to assess candidates in the preliminary stages of the recruitment process. This results in increased efficiency since the system identifies candidates who will progress to the next rounds, and hence reduces the time taken for Human Resource departments to sift through individual applications.</p>
<p>While companies claim that using these software also reduce biases, independent analysts assert that biases could actually be reinforced. An example of such software is HireVue’s emotion recognition, which is used in assessments of prospective candidates during video interviews. The programme functions by analysing word choices, tone and facial movements and providing candidates with a score based on what is deemed desirable. Since the software is based on machine learning, it begins to prefer characteristics that are similar across subsets of successful applicants – hence potentially penalising non-native speakers or those who appear nervous. This bias needs to be manually corrected by developers, but there exists a time lag between recognising and eradicating it. Thus, before such human intervention occurs, numerous candidates would have been subject to the bias in the algorithm.</p>
<p>Having gone through such application processes for internships myself, I find it rather perplexing that it is AI in its early stages that can either make or break my chances of success, and that individuals first have to get through the AI system in order to get a face-to-face interview with a real person only in the final rounds.</p>
<p>Therefore, I believe that governments and regulatory organisations need to do more to address the societal issues posed by AI. The course highlighted that AI use is currently concentrated among corporations and firms, so I think there needs to be greater cooperation between the public and private sectors in addressing the ethical risks posed by AI. To be frank, however, I am sceptical about the viability of regulating rapidly adapting technologies, simply because policymakers have been plagued by the inertia of being unable to promptly react to technological change. This is underscored by a more fundamental (and unfortunate) ignorance or perhaps even complacency about machine intelligence. A prominent example of this is <NAME>’s interrogation by members of the US Congress in 2018, who seemed completely unaware of Facebook’s operations.</p>
<p>As an aspiring policymaker, I think governments can certainly devote more resources and research efforts to understanding and tackling the ethical and societal challenges posed by AI. To that extent, this course is illuminating in how the lectures present novel solutions to AI governance and the relevance of research done at Oxford to answering the questions posed by the emergence and expansion of AI technologies.</p>
<p><em>Introduction to AI Ethics (and Society) was a five-part course organized by OxAI and taught by Dr. Ashurst of the Future of Humanity Institute in February and March of 2020. The course examined the most relevant and important issues that dominate the debate around ethics in AI through a series of lectures and discussion. <NAME> is a student at the University of Oxford and a participant in the course.</em></p>
<p class="author">Written by
<br><i><NAME></i>
<br><i></i></p>
</div>
</div>
</div>
</div>
</div> -->
<!-- <script type="text/javascript">
var isBlog = true; //For width/height changes to TweenLite
</script> -->
<script src="/js/lazysizes.min.js" async=""></script>
<!-- Custom Theme JavaScript -->
<script src="/vendor/jquery/jquery.min.js"></script>
<!-- <script src="/js/grayscale.js"></script> -->
<script type="text/javascript" src="/js/TweenLite.min.js"></script>
<!-- Footer -->
<footer class="bg-black small text-center text-white-50">
<div class="container">
Copyright © OxAI 2019
</div>
</footer>
<!-- Bootstrap core JavaScript -->
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for this template -->
<script src="/js/grayscale.min.js"></script>
<!-- Full calendar -->
<script src='js/moment.min.js'></script>
<script src='/js/jquery.qtip.min.js'></script>
<!-- <script src='/js/fullcalendar/fullcalendar.min.js'></script>
<script src='/js/fullcalendar/gcal.js'></script> -->
<script src='/js/packages/core/main.js'></script>
<script src='/js/packages/interaction/main.js'></script>
<script src='/js/packages/daygrid/main.js'></script>
<script src='/js/packages/list/main.js'></script>
<script src='/js/packages/google-calendar/main.js'></script>
<script src="/js/script.js"></script>
</body>
</html>
|
html
|
Streaming platforms are notorious for their lack of transparency, allowing them to quote numbers that are tough to verify. Ormax Media, a media consulting firm, has began tracking viewership figures of the top releases across major platforms.
Here's a list of the most-viewed shows and movies from the Indian streaming space during the week of April 5th, 2021 – April 11th, 2021. The numbers are all estimates based only within India. This list does not include any streaming released from the South.
Harshad Mehta's dramatized fictionalized biopic, produced as a web-show last year in Scam 1992, is now made into a movie starring Abhishek Bachchan, following the real events of the financial market frauds that took place in the 1990s.
This sci-fi comedy from Anand Gandhi's Memesys Lab is set in 2031, and follows the investigation of a self-driving car that murdered a human.
This is the second season of Chacha Vidhayak Hain Humare, an Indian comedy series created by comedian Zakir Khan. The first season ended with a politician asking Ronny (Khan) to become a leader of the party's youth wing. This season outlines the price one pays in politics.
The series follows Bucky (Sebastian Stan) and Sam (Anthony Mackie) as they try to adjust to a world without Captain America while grappling with the weight of his legacy and the big question of who can take on the mantle.
From the TVF factory we have a story that follows UPSC aspirants as they spend years studying for the exams and later, as they chase coveted bureaucratic positions, while navigating interpersonal relationships.
|
english
|
{"PRODUCT_NAME":"Chicken Grade Eggs","MANUFACTURER":"Matchic Poultry Kenya Limited-","BRANDNAME":"Matchic","WEIGHT":"30Pack"}
|
json
|
<reponame>steffengy/emb_playground
#![no_std]
extern crate mcu_stm32f20x;
pub use mcu_stm32f20x::*;
|
rust
|
{
"name": "Lima",
"img": "lima.png",
"category": "Fruta",
"description": "Las limas son m\u00e1s delicadas que los limones, por lo que hay que manipularlas con cuidado. Como sus hermanos, destacan por su aportaci\u00f3n de vitamina C, sus propiedades antioxidantes y de acci\u00f3n astringente. Se suele utilizar su jugo como alternativa al vinagre, y tambi\u00e9n para preparar bebidas refrescantes u otros productos como mermeladas. ",
"time":"NA"
}
|
json
|
<reponame>dillonhicks/rune
use crate::ast;
use crate::{Parse, ParseError, Parser, Spanned};
use runestick::Span;
/// A for loop expression `for i in [1, 2, 3] {}`
#[derive(Debug, Clone)]
pub struct ExprFor {
/// The label of the loop.
pub label: Option<(ast::Label, ast::Colon)>,
/// The `for` keyword.
pub for_: ast::For,
/// The variable binding.
/// TODO: should be a pattern when that is supported.
pub var: ast::Ident,
/// The `in` keyword.
pub in_: ast::In,
/// Expression producing the iterator.
pub iter: Box<ast::Expr>,
/// The body of the loop.
pub body: Box<ast::ExprBlock>,
}
into_tokens!(ExprFor {
label,
for_,
var,
in_,
iter,
body
});
impl ExprFor {
/// Parse with the given label.
pub fn parse_with_label(
parser: &mut Parser<'_>,
label: Option<(ast::Label, ast::Colon)>,
) -> Result<Self, ParseError> {
Ok(Self {
label,
for_: parser.parse()?,
var: parser.parse()?,
in_: parser.parse()?,
iter: Box::new(ast::Expr::parse_without_eager_brace(parser)?),
body: Box::new(parser.parse()?),
})
}
}
impl Spanned for ExprFor {
fn span(&self) -> Span {
self.for_.token.span().join(self.body.span())
}
}
impl Parse for ExprFor {
fn parse(parser: &mut Parser<'_>) -> Result<Self, ParseError> {
let label = if parser.peek::<ast::Label>()? {
Some((parser.parse()?, parser.parse()?))
} else {
None
};
Self::parse_with_label(parser, label)
}
}
|
rust
|
{"id": "QmYG8TxDRdHHQ8FrxMTngBXmGkXFiLWFAtUjMePmkem4pm", "title": "MoonBNB", "body": "Change name to MoonBNB cause TikTok loves Moon", "choices": ["Yes please", "No man", "I don't care"], "start": 1620727200, "end": 1621677600, "snapshot": "12413824", "state": "closed", "author": "0x027fdA5b34237be3aF27250F63546D107aD22b13", "space": {"id": "rootkitfinance.eth", "name": "Root<NAME>"}, "votes": 10, "votes_data": [{"id": "QmXLQmhg4ZinM8Y5UjSzDkKEDrGSCrAVg2423rFFk5vGkQ", "voter": "0xf5131764EA4dCbc70363C4393006BC2959f8Bd92", "created": 1621300842, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "QmbxeBip9ULxzALQWhUnkVk1bz2wCn3Bipa3wiPcUHDphZ", "voter": "0x200536e1fD8de0E7f69de61401E9c1bE92bef48F", "created": 1621070435, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "QmaBERJdpry8i3j2avKHtFxXystBZ6HHWh1dQYY6g365ju", "voter": "0xd2C1cf05ac21CF1D88eDc3A8847532FA030EE95B", "created": 1621042527, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "<KEY>", "voter": "0xfE13A69994743AE68053CCC7A4d601d2B63c9318", "created": 1621033038, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "<KEY>", "voter": "0x154Ed1518027A26536905a2c4551956d6203BBf3", "created": 1620976630, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "<KEY>", "voter": "0xA24F333Dff904Ab4Ad053d54e7147DE339613D4b", "created": 1620954757, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "<KEY>", "voter": "0x21D7e1aae9B<KEY>", "created": 1620860177, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "Qme8hqRS5JjbMNyR8NpU3aJSUQ27fLg78NAisX8Fim4BJ2", "voter": "0xD1EDfeA03C20Be9CC9a87aaffdeC174A0C39a5c0", "created": 1620765655, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "<KEY>", "voter": "0x94Ae267f4780ab8B7eC405CCb90BF423e30a2AED", "created": 1620749336, "choice": 2, "space": {"id": "rootkitfinance.eth"}}, {"id": "<KEY>", "voter": "0x2a32801d13eA505Bf82EC12e2F1ED8e1D879D4FB", "created": 1620746386, "choice": 2, "space": {"id": "rootkitfinance.eth"}}]}
|
json
|
Cervical migraine has certain symptoms, determining which, you can conduct a quick treatment. It is important to identify the disease at an early stage in order to prevent its further development.
The development of the disease of cervical migraine is most often provoked by squeezing nerves located around the vertebral artery. The resulting spasm and narrowing of the lumen of the arteries leads to headaches and a number of symptom, by which it is easy to determine the onset of the problem. It is worth noting that the following symptoms are typical of this type of migraine:
- pain in the occipital part, which gradually shifts to the frontal and temporal region, with echoes on the eyes;
- intense and burning pain, accompanied by sensitivity of the scalp;
- strong pain when moving head;
- violation of visual acuity, the appearance of fog in front of the eyes, rezy as with conjunctivitis;
- hearing, noise and ringing;
- Dizziness in combination with nausea when tilting the head up;
- sensation of a coma in the throat and difficulty swallowing;
- fever and chills;
- possible loss of consciousness during a period of severe attack and turn of the head.
The pain may appear as seizures or be permanent. Most often, one of the sides of the head suffers, rarely the whole area.
How to treat cervical migraine?
Treatment of cervical migraine includes a complex of medications and physiotherapy methods. These include:
- drugs that improve the passage of blood through the arteries (Cinnarizin, Instenon);
- anti-inflammatory and analgesic agents (Nimesil, Antimigren);
- antispasmodics ;
- vitamins of group B;
- neuroprotectors and metabolites;
- special gymnastics and exercises;
- massage.
With the help of traditional medicine and all kinds of compresses, you can also remove pain and get rid of the problem.
Recipe # 1:
- It is necessary to take a half-liter of vegetable oil, preferably sea-buckthorn, and pour 150 grams of medicinal herb St. John's wort .
- Simmer the resulting mixture in a water bath for 30 minutes, and then set aside for three days so that the medicine is infused.
- Before rubbing into the neck and spine, the agent should be slightly warmed up.
This is an excellent mixture that helps to restore cartilage, provided daily rubbing.
Recipe # 2:
- Mix aloe juice with dry mustard in equal proportions.
- Add 2 spoons of vodka and 10 drops of alcohol tincture of propolis.
- Mix the mixture on the neck, and on top of the film and scarf.
All this is best done at night.
A good effect is pepper plasters or cabbage leaf with honey, which are best used before bed.
|
english
|
{
"libraryStrings":{
"confirmDeleteSlide":"Diese Folie wirklich löschen?",
"sortSlide":"Folien sortieren - :dir",
"backgroundSlide":"Hintergrundfolie",
"removeSlide":"Folie löschen",
"cloneSlide":"Folie duplizieren",
"newSlide":"Neue Folie",
"insertElement":":type klicken und in Position ziehen",
"newKeyword":"Neues Stichwort",
"save":"Save",
"removeElement":"Dieses Element löschen",
"confirmRemoveElement":"Dieses Element wirklich löschen?",
"cancel":"Abbrechen",
"done":"Fertig",
"remove":"Löschen",
"edit":"Edit",
"keywordsTip":"Stichworte mit Hilfe der oberen Buttons hineinziehen.",
"popupTitle":":type bearbeiten",
"loading":"Laden...",
"element":"Element",
"resetToDefault":"Auf Standard zurücksetzen",
"resetToTemplate":"Aufs Template zurücksetzen",
"slideBackground":"Hintergrund",
"setImageBackground":"Als Hintergrund festlegen",
"setColorFillBackground":"Hintergrundfarbe festlegen",
"activeSurfaceWarning":"Sind Sie sich sicher, dass Sie den aktiven Oberflächenmodus aktivieren möchten? Diese Aktion kann nicht rückgängig gemacht werden.",
"template":"Template",
"templateDescription":"Wird auf alle Folien angewendet und nicht von \":currentSlide\" Einstellungen überschrieben.",
"currentSlide":"Diese Folie",
"currentSlideDescription":"Wird nur auf diese Folie angewendet und wird alle \":template\" Einstellungen überschreiben.",
"slides":"Slides",
"showTitles":"Show Titles",
"alwaysShow":"Always show",
"autoHide":"Auto hide",
"ok":"OK",
"slide": "Slide",
"opacity":"Opacity",
"goToSlide": "Go to slide"
}
}
|
json
|
<gh_stars>0
module.exports = {
type: 'movies',
id: 'sobrevive-esta-noche',
numerical_id: 127099,
title: 'Sobrevive esta noche',
year: 2020,
duration: 86,
label: '3,99 €',
classification: {
type: 'classifications',
id: '5',
numerical_id: 5,
name: '18',
age: 18,
adult:
false,
description: 'Mostrar todos los contenidos, excluyendo los clasificados para adultos',
default: true
},
images: {
artwork: 'https://images-2.wuaki.tv/system/artworks/127099/master/sobrevive-esta-noche-1594366830.png',
snapshot: 'https://images-0.wuaki.tv/system/shots/224078/original/survive-the-night-1594046326.jpeg',
ribbons: []
},
highlighted_score: {
score: 4.2,
amount_of_votes: 50,
formatted_amount_of_votes: '50',
site: {
type: 'sites',
id: '1',
numerical_id: 1,
name: 'IMDb',
show_image: false,
scale: 10,
image: 'https://images-0.wuaki.tv/system/images/1/original/imdb-1594119387.png'
}
},
rating: {
average: 3,
scale: 5
},
labels: {
audio_qualities: [
{
type: 'audio_qualities',
id: '2.0',
numerical_id: 2,
name: '2.0 (Stereo)',
abbr: '2.0',
image: 'https://images-1.wuaki.tv/system/logos/2/original/2-0-stereo-1456155689.png'
}
],
hdr_types: [
{
type: 'hdr_types',
id: 'NONE',
numerical_id: 1,
name: 'SDR',
abbr: 'NONE',
image: null
}
],
purchase_types: [
{
type: 'purchase_types',
id: '1',
numerical_id: 1,
is_recurring: false,
name: 'Alquiler 48H',
label: 'ALQUILER 48H',
kind: 'rental',
expires_after_in_seconds: 172800,
available_time_in_seconds: 172800
},
{
type: 'purchase_types',
id: '2',
numerical_id: 2,
is_recurring: false,
name: 'Venta (Digital Locker)',
label: 'VENTA (DIGITAL LOCKER)',
kind: 'purchase',
expires_after_in_seconds: null,
available_time_in_seconds: null
}
],
video_qualities: [
{
type: 'video_qualities',
id: 'SD',
numerical_id: 2,
name: 'SD',
abbr: 'SD',
position: 0,
image: 'https://images-1.wuaki.tv/system/logos/2/original/sd-1456155688.png'
},
{
type: 'video_qualities',
id: 'HD',
numerical_id: 1,
name: 'HD',
abbr: 'HD',
position: 1,
image: 'https://images-0.wuaki.tv/system/logos/1/original/hd-1456155687.png'
}
]
}
};
|
javascript
|
The Royal Challengers Bangalore were at a reasonably good position at 41/1 in the sixth over, after having lost Virat Kohli for 5 early, against the Kolkata Knight Riders. However, a dramatic collapse followed, with the team losing their last nine wickets for mere 49 runs to finish 92 all-out.
Devdutt Padikkal (22 off 20) played some fluent strokes, while Srikar Bharat (16 off 19) looked patchy as the pair tried to steady RCB’s ship after captain Kohli’s early dismissal, and took the score to 41/1 in the sixth over. However, Padikkal nicked one behind off Lockie Ferguson, before Andre Russell bounced out Bharat to trigger a collapse.
Russell delivered the killer blow, sending back the dynamic AB de Villiers for a first-ball duck with a perfect yorker, while Glenn Maxwell lost his leg-stump as he tried a wild slog off Varun Chakravarthy. The duo picked up three wickets each, as RCB were eventually bundled out for 92 in 19 overs - their sixth lowest total in IPL.
WORST DAY FOR RCB!
POOR MATCH!
MEME MATERIAL?
BAD FORM!
MAYBE THIS IS IT!
EVERYONE GOT A CHANCE!
REACTION RIGHT NOW!
|
english
|
Parliament’s Standing Committee on the Ministry of Company Affairs has appreciated its concept paper on overhauling the Companies Act, 1956. In its report presented to both Houses of Parliament, the Committee has welcomed the Government’s endeavour to develop the concept paper which has been circulated among the corporates, regulatory bodies, stake holders and autonomous professional institutions. The concept paper has since been publicised through the media to create public awareness and their involvement in the exercise. The Committee has expressed the hope that the exercise would be completed within a fixed time to enable the Government come forward with a new-look Companies Bill to meet the requirements of all concerned.
|
english
|
Regulatory News:
Carbios (Euronext Growth Paris: ALCRB), a pioneer in the development and industrialization of biological technologies to reinvent the life cycle of plastics and textiles, hosted the world’s first PET Biorecycling Summit from 7 to 8 December 2022 in Paris. The event attracted over 100 international participants from the scientific, academic, and industrial worlds to exchange on the advances in the field of biological recycling, and how to bring these innovations for a circular economy to market.
The two-day conference gathered world-renowned scientists from various academic institutions to share their latest research on PET enzymatic depolymerization. Bertrand Piccard, Initiator and Chairman of the Solar Impulse Foundation1, joined as the Keynote Speaker for the last session focused on PET circularity, and praised Carbios’ contribution to reducing plastic pollution. The Summit concludes with a visit of Carbios’ demonstration plant in Clermont-Ferrand today. The demonstration plant was inaugurated in September 2021 and brings Carbios’ technology one step closer to industrialization. Following the demonstration plant’s success, Carbios is on track to build and operate the world’s first industrial-scale enzymatic PET recycling plant (with a processing capacity of 50.000 tons of PET waste per year) in France (Longlaville) by 20252, and to start licensing its technology throughout the world.
Click here for the full program and list of speakers and follow #biorecyclingsummit #carbiosPETsummit on Carbios’ social channels.
Established in 2011 by Truffle Capital, Carbios is a green chemistry company, developing biological and innovative processes. Through its unique approach of combining enzymes and plastics, Carbios aims to address new consumer expectations and the challenges of a broad ecological transition by taking up a major challenge of our time: plastic and textile pollution. Carbios deconstructs any type of PET (the dominant polymer in bottles, trays, textiles made of polyester) into its basic components which can then be reused to produce new PET plastics with equivalent quality to virgin ones. This PET innovation, the first of its kind in the world, was recently recognized in a scientific paper published in front cover of the prestigious journal Nature. Carbios successfully started up its demonstration plant in Clermont-Ferrand in 2021. It has now taken another key step towards the industrialization of its process with the construction of a first-of-a-kind unit in partnership with Indorama Ventures.
In 2017, Carbios and L’Oréal co-founded a consortium to contribute to the industrialization of its proprietary recycling technology. Committed to developing innovative solutions for sustainable development, Nestlé Waters, PepsiCo and Suntory Beverage & Food Europe joined this consortium in April 2019. In 2022, Carbios signed an agreement with On, Patagonia, PUMA, and Salomon, to develop solutions promoting the recyclability and circularity of their products.
The Company has also developed an enzymatic biodegradation technology for PLA-based (a bio sourced polymer) single-use plastics. This technology can create a new generation of plastics that are 100% compostable in domestic conditions, integrating enzymes at the heart of the plastic product.
Carbios (ISIN FR0011648716/ALCRB) is eligible for the PEA-PME, a government program allowing French residents investing in SMEs to benefit from income tax rebates.
Translation is for information purposes only.
|
english
|
<filename>bin/course_data/MEDI7303.json
{
"course_code": "MEDI7303",
"course_name": "General Practice",
"faculty": "Medicine",
"school": "Medicine Faculty",
"units": "3",
"duration": "",
"description": "The eight week General Practice Rotation is community-based and involves the use of general practices in the geographical region in which each student is based. It offers students the opportunity to see and participate in the delivery of health care to patients with a large range of biopsychosocial problems. Through exploring the community context of health and illness students will learn about people's experiences and everyday management of health and health problems, as well as some of the ways in which different community groups and organisations contribute to maintaining and promoting health in the community. Students are encouraged to be enthusiastic and inquisitive, to become familiar with the everyday procedures involved in the workings of the general practice, and to function as a member of the health care team. Additionally, students are expected to use evidence based medicine skills to answer clinical questions as they arise, thus providing a benefit to the GP preceptors, as well as to their own learning. They are requested to work up illustrative cases to contribute at weekly small group, case based tutorials.",
"prerequisites": "MEDI7212, MEDI7222, MEDI7232 and MEDI7242",
"incompatible": "",
"restricted": "MD students only"
}
|
json
|
To get access to over 10000+ Franchise Business Opportunities.
Network with the growing Business Community to get expert interventions to let you learn to Grow & Expand your Business with Franchising.
Arcadia Share & Stock Brokers Pvt Ltd - Coming to life in 1995, right at the peak of post liberalization of market economy, Arcadia became a major contributor to the economic growth and has been able to carve a very steady future for all its investors.
Providing services in financial recommendations and investments, Arcadia has a continuous ever expanding base of customers who have come to trust it over the years.
Offering services in Portfolio Management and Financial Investments, online trading and a hawks-eye view over shares and stock broking has left us with extreme expertise in handling the risks involved.
This is why we believe in offering the best services to you; customized as per your needs and requirements.
Contact us now and we will have a Financial Expert meet you at your preferred time and location and offer the various options available to you. And guarantee highly profitable investments for your hard earned money!
Arcadia Share & Stock Brokers Team!
|Investment (If any)
Thanks for showing your interest in Arcadia Share & Stock Brokers Pvt Ltd.
Your contact detail has been shared with the company. requested you to create your investor profile and upgrade to directly contact the brand.
Thanks for showing your interest in Arcadia Share & Stock Brokers Pvt Ltd.
But you have already applied for Arcadia Share & Stock Brokers Pvt Ltd.
|
english
|
<reponame>binje/Fields
package building
type Building int
const (
undefinedBuilding Building = iota
_
FarmersHouse
PlowMakersWorkShop
NovicesHut
WorkShop
_
WeavingParlor
ColonistsHouse
CarpentersWorkshop
SchnappsDistillery
LoadingStation
LitterStorage
WoodTrader
_
Turnery
Smokehouse
Smithy
Cooperage
Bakehouse
_
Mill
WeavingMill
TextileHouse
Saddlery
Joinery
WaterFrontHouse
PottersInn
FarmersInn
JunkDealersInn
GulfHouseInn
MilkHouseInn
SluiceYardInn
_
VillageChurch
LutetsburgCastle
BerumCastle
)
/*
func (b *Building) Cost() []action.Choice {
switch b {
case FarmersHouse, PlowMakersWorkShop, NovicesHut, WorkShop, WeavingParlor, ColonistsHouse, CarpentersWorkshop, SchnappsDistillery, LoadingStation, LitterStorage, WoodTrader:
return [][]Action{
[]Action{UseWood, UseClay, UseTimber, UseBrick},
[]Action{UseGrain}}
case Turnery, Smokehouse, Smithy, Cooperage, Bakehouse:
return [][]Action{
[]Action{UseTimber},
[]Action{UseBrick}}
}
return [][]Action{}
}
*/
func GetBuildingVp(b Building) int {
switch b {
case FarmersHouse, PlowMakersWorkShop, NovicesHut, WorkShop:
return 1
case WeavingParlor, ColonistsHouse, CarpentersWorkshop, SchnappsDistillery, LoadingStation, LitterStorage, WoodTrader:
return 1
case VillageChurch, LutetsburgCastle, BerumCastle:
return 15
default:
panic("Unknown Building for VP")
}
}
|
go
|
<gh_stars>10-100
import { MigrationInterface, QueryRunner } from "typeorm"
export class addGeneratedListingTranslation1637680690577 implements MigrationInterface {
name = "addGeneratedListingTranslation1637680690577"
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "generated_listing_translations" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created_at" TIMESTAMP NOT NULL DEFAULT now(), "updated_at" TIMESTAMP NOT NULL DEFAULT now(), "listing_id" character varying NOT NULL, "jurisdiction_id" character varying NOT NULL, "language" character varying NOT NULL, "translations" jsonb NOT NULL, "timestamp" TIMESTAMP NOT NULL, CONSTRAINT "PK_4059452831439aefc27c1990b20" PRIMARY KEY ("id"))`
)
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP TABLE "generated_listing_translations"`)
}
}
|
typescript
|
With Indian travelers now making frequent excursions to international destinations are quickly evolving in their discerning taste of world gourmet. The consumers now expect the same experience from establishments who promise to provide gourmet foods in India. The client therefore presented the challenge of creating a distinct identity to differentiate itself from the traditional bakery, café and restaurant concepts prevalent in India. It was also important to keep the identity classy and understated, while exuding a feeling of warmth and comfort.
The identity hence evolved comprised of an elliptical enclosure clearly highlighting the brand identity, with crescent strokes on either sides symbolizing dynamism and vibrancy. A dark grey color depicted conformity trait thus establishing a deep rooted connects to traditionalism and also reflecting an individualistic personality. Motifs were added to bring about elements of class and a touch of the old Patisserie tradition.
The premium whisky segment (IML) is traditionally dominated by couple of established brands having a strong equity with the consumer and with their easily recognizable bottle style. ALCOBREW wants to make quick inroads in this segment giving the discerning consumer another choice of a premium product.
The message needed to be well communicated to break the hegemony of entrenched players, inviting the consumer to experience the product. Towards this, Core Design provided a distinct visual language and a signature bottle style to establish a strong connect with the end consumer. Also, an element of inquisitiveness was created on the packaging to complement the signature style of the bottle.
Highland Alco Spirits wanted to make its foray into highly competitive Deluxe Whisky market which has been dominated by some well established brands. The design effort required a 360 degree approach to define a platform to launch the new brand.
Building the brand ground up necessitated understanding of the segment as well as consumer insights to arrive at brand names, colour palette and visual elements which would resonate well with this segment. A radical approach with deep rooted category cues in bottle styling and colour palette was leveraged to launch the new brand. Visual language created reflected across all touch points and brand communication.
Highland Alco Spirits set its goal to create a platform to launch brands across the liquor market segments. The key brand attributes desired were maturity and authenticity. The brand semantics incorporated elements and associated colour palette that manifest the timeless "spirit" of the offering.
|
english
|
Democratic presidential candidate Joe Biden has said that, if elected in the November elections, he will be a President who would stand with US allies and friends and not cosy up to dictators. He also assured Americans that he would not leave them at the mercy of China to protect them from the COVID-19 pandemic.
Biden, 77, officially accepted the presidential nomination of the Democratic Party on the last day of the four-day virtual Democratic National Convention last night.
foreign policy of the United States. He travelled extensively and is known personally to the leaders across the world.
The US has the highest coronavirus death toll in the world, with 174,248 deaths recorded, according to Johns Hopkins University. The country also has over five million confirmed cases of the disease.
|
english
|
{
"testCaseBlueprint": {
"version": "2.2",
"name": "TCB CNIT Smart Tourism test case",
"description": "Test case to run the CNIT Smart Tourism use case",
"configurationScript": [
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password echo '10.50.80.59 vr-db-v2' | sudo tee -a /etc/hosts;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password docker-compose -f ~/.theserver/fullserver/docker-compose.yml up -d;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config $$metric.topic.cpu_consumption_db;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password nohup sudo /opt/datashipper/collect_cpu_usage -o /opt/datashipper/output/$$metric.topic.cpu_consumption_db >/dev/null 2>&1 < /dev/null &;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config $$metric.topic.mem_consumption_db;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password nohup sudo /opt/datashipper/collect_mem_usage -o /opt/datashipper/output/$$metric.topic.mem_consumption_db >/dev/null 2>&1 < /dev/null &;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config $$metric.topic.cpu_consumption_serv;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password nohup sudo /opt/datashipper/collect_cpu_usage -o /opt/datashipper/output/$$metric.topic.cpu_consumption_serv >/dev/null 2>&1 < /dev/null &;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config $$metric.topic.mem_consumption_serv;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password nohup sudo /opt/datashipper/collect_mem_usage -o /opt/datashipper/output/$$metric.topic.mem_consumption_serv >/dev/null 2>&1 < /dev/null &;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config $$metric.topic.net_delay_ratio;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password nohup sudo /opt/datashipper/net_delay_ratio_v2 -o /opt/datashipper/output/$$metric.topic.net_delay_ratio >/dev/null 2>&1 < /dev/null &;"
],
"executionScript": [
"SLEEP $$sleep$$time;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config -r $$metric.topic.cpu_consumption_db;",
"EXECUTE_COMMAND vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config -r $$metric.topic.mem_consumption_db;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config -r $$metric.topic.cpu_consumption_serv;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config -r $$metric.topic.mem_consumption_serv;",
"EXECUTE_COMMAND vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress $$user:$$password sudo /opt/datashipper/add_input_config -r $$metric.topic.net_delay_ratio;"
],
"userParameters": {
"duration": "$$sleep$$time",
"username": "$$user",
"password": <PASSWORD>"
},
"infrastructureParameters": {
"vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_mgmt.ipaddress": "",
"vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_data.ipaddress": "",
"vnf.9afc058b-7c5c-4512-bb05-2c11a9af51a0.extcp.cp_server_ext_mobile.ipaddress": "",
"vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_mgmt.ipaddress": "",
"vnf.b7edfd6c-a01c-4991-9c30-c85377d6bd71.extcp.cp_database_data.ipaddress": "",
"$$metric.topic.cpu_consumption_db": "",
"$$metric.topic.mem_consumption_db": "",
"$$metric.topic.cpu_consumption_serv": "",
"$$metric.topic.mem_consumption_serv": "",
"$$metric.topic.net_delay_ratio": ""
}
}
}
|
json
|
import chai from 'chai';
import chaiAsPromised from "chai-as-promised";
import 'regenerator-runtime/runtime';
// var rewire = require("rewire");
// var index = rewire("./index.js");
import { initSevenBoom, SevenBoom, formatErrorGenerator } from './index';
chai.use(chaiAsPromised);
chai.use(require('sinon-chai'));
import sinon from 'sinon';
const expect = chai.expect;
// Most of this tests are taken from the Boom repo
// In order to make sure that you can just replace all Boom with SevenBoom
describe('Init seven boom', () => {
it('uses the default seven boom argsDefs - guid generator and timeThrown with errorCode arg', (done) => {
const opts = [
{
name : 'errorCode',
order: 1
}, {
name : 'timeThrown',
order: 2,
default: null
}, {
name : 'guid',
order: 3,
default: null
}
];
initSevenBoom(opts);
const error = SevenBoom.badRequest('my message', {'key': 'val'}, 'myErrCode');
expect(error.output.payload.guid).to.be.a('string');
// expect(error.output.payload.timeThrown).to.be.a.dateString();
expect(error.message).to.equal('my message');
expect(error.output.statusCode).to.equal(400);
expect(error.output.payload).to.include({
statusCode: 400,
error: 'Bad Request',
message: 'my message',
errorCode: 'myErrCode'
});
expect(error.data).to.include({'key': 'val'});
done();
});
it('I can override the default seven-boom args', (done) => {
const opts = [
{
name : 'myCustomField',
order: 1
}
];
initSevenBoom(opts);
const error = SevenBoom.badRequest('my message', {'key': 'val'}, 'myCustomFieldValue');
expect(error.message).to.equal('my message');
expect(error.output.statusCode).to.equal(400);
expect(error.output.payload).to.include({
statusCode: 400,
error: 'Bad Request',
message: 'my message',
myCustomField: 'myCustomFieldValue'
});
expect(error.data).to.include({'key': 'val'});
done();
});
});
describe('Format error', () => {
it('Send all data object in default', (done) => {
const formatError = formatErrorGenerator();
const errData = {'key': 'val'};
const error = SevenBoom.badRequest('my message', errData, 'myErrCode');
const err = _simulateGraphqlWrapping(error);
const finalError = formatError(err);
expect(finalError.data).to.equal(errData);
done();
});
it('Send only publicPath data', (done) => {
const fromatErrorOpts = {
publicDataPath: 'public'
}
const formatError = formatErrorGenerator(fromatErrorOpts);
const publicData = {'myPublic': 'data'};
const errData = {'key': 'val', public:publicData};
const error = SevenBoom.badRequest('my message', errData, 'myErrCode');
const err = _simulateGraphqlWrapping(error);
const finalError = formatError(err);
expect(finalError.data).to.equal(publicData);
done();
});
it('Hooks are called', (done) => {
const onOriginalError = sinon.spy();
const onProcessedError = sinon.spy();
const onFinalError = sinon.spy();
const hooks = {
onOriginalError,
onProcessedError,
onFinalError
}
const fromatErrorOpts = {
hooks
}
const formatError = formatErrorGenerator(fromatErrorOpts);
// const errData = {'key': 'val'};
// const originalError = new Error('my message', errData, 'myErrCode');
const originalError = new Error('my message');
const processedError = SevenBoom.wrap(originalError, 500);
const err = _simulateGraphqlWrapping(originalError);
const finalError = formatError(err);
expect( onOriginalError.calledWith(originalError) ).to.be.true;
expect( onProcessedError.calledWith(processedError) ).to.be.true;
expect( onFinalError.calledWith(finalError) ).to.be.true;
done();
});
it('Transform regular error to SevenBoom error', (done) => {
const formatError = formatErrorGenerator();
const error = new Error('my message');
const err = _simulateGraphqlWrapping(error);
const finalError = formatError(err);
expect( finalError.statusCode ).to.equal(500);
expect( finalError.message ).to.equal('An internal server error occurred');
done();
});
it('Add the locations and path if requested', (done) => {
const fromatErrorOpts = {
showLocations: true,
showPath: true
}
const formatError = formatErrorGenerator(fromatErrorOpts);
const PATH = 'My path to the future';
const LOCATIONS = 'In a great place';
const error = new Error('my message');
const err = _simulateGraphqlWrapping(error, LOCATIONS, PATH);
const finalError = formatError(err);
expect( finalError.path ).to.equal(PATH);
expect( finalError.locations ).to.equal(LOCATIONS);
done();
});
it('Default hide sensitive data from internal error', (done) => {
const argsDef = [
{
name : 'errorCode',
order: 1
},{
name : 'timeThrown',
order: 3,
default: null
}, {
name : 'guid',
order: 4,
default: null
}
];
initSevenBoom(argsDef);
const formatError = formatErrorGenerator();
const sensitiveData = {'secret': 'SevenBoom'};
const internalError = SevenBoom.internal('Technial message which client should not see', sensitiveData, 'myErrCode');
const err = _simulateGraphqlWrapping(internalError);
const finalError = formatError(err);
expect( finalError.data ).to.be.empty;
expect( finalError.statusCode ).to.equal(500);
expect( finalError.message ).to.equal('An internal server error occurred');
done();
});
it('Do not hide sensitive data from internal error when specifically asked', (done) => {
const argsDef = [
{
name : 'errorCode',
order: 1
},{
name : 'timeThrown',
order: 3,
default: null
}, {
name : 'guid',
order: 4,
default: null
}
];
initSevenBoom(argsDef);
const formatError = formatErrorGenerator({hideSensitiveData: false});
const sensitiveData = {'secret': 'SevenBoom'};
const internalError = SevenBoom.internal('Technial message which client should not see', sensitiveData, 'myErrCode');
const err = _simulateGraphqlWrapping(internalError);
const finalError = formatError(err);
expect( finalError.data ).to.include(sensitiveData);
expect( finalError.statusCode ).to.equal(500);
expect( finalError.message ).to.equal('An internal server error occurred');
done();
});
});
// Code taken from grpahql implemantation here (with some changes):
// https://github.com/graphql/graphql-js/blob/44f315d1ff72ab32b794937fd11a7f8e792fd873/src/error/GraphQLError.js#L66-L69
function _simulateGraphqlWrapping(originalError, locations, path, nodes, source, positions){
var resultError = new Error();
Object.defineProperties(resultError, {
message: {
value: originalError.message,
// By being enumerable, JSON.stringify will include `message` in the
// resulting output. This ensures that the simplist possible GraphQL
// service adheres to the spec.
enumerable: true,
writable: true
},
locations: {
// Coercing falsey values to undefined ensures they will not be included
// in JSON.stringify() when not provided.
value: locations || [
{
"line": 5,
"column": 12,
"field": "email" // HERE
}
],
// By being enumerable, JSON.stringify will include `locations` in the
// resulting output. This ensures that the simplist possible GraphQL
// service adheres to the spec.
enumerable: true
},
path: {
// Coercing falsey values to undefined ensures they will not be included
// in JSON.stringify() when not provided.
value: path || "Some path",
// By being enumerable, JSON.stringify will include `path` in the
// resulting output. This ensures that the simplist possible GraphQL
// service adheres to the spec.
enumerable: true
},
nodes: {
value: nodes || 'Nodes'
},
source: {
value: source || 'Source',
},
positions: {
value: positions || 'Positions',
},
originalError: {
value: originalError
}
});
return resultError;
}
|
javascript
|
<reponame>alexboii/Discover-Poetry<filename>js/collection/Sasha Dugdale/Asylum.json
{
"author": "<NAME>",
"classification": "",
"keywords": [],
"period": "",
"reference": "http://www.poetryfoundation.org/poetrymagazine/poem/241818",
"region": "",
"text": [
"You say the old masters never got it wrong,",
"But when Goya painted the death of the imagination",
"It was a lost dog against a usurious yellow sky",
"And the dog, a hapless creature who had drawn itself",
"Ten miles on two legs, stared in amazement",
"To see the man who once fed him from his plate",
"Reduced to this.",
"So I felt this week, the vile soil and everything upon it\u2014",
"The beggar guest kicked from the table",
"Before his own dog, and even the honest unpicking",
"Of art performed nightly and in seclusion.",
"Like any Penelope my armor is resignation",
"Although I thought I would lift the bow myself",
"And draw.",
"By the morning he is gone",
"And what to make of this?",
"The prostitutes hang from a beam like mice",
"The suitors are piled unburied in the yard.",
"And some say that it is now much better",
"And others, that it is worse.",
"So order was restored",
"I stared in amazement",
"\u2022",
"Perhaps Akhmatova was right",
"When she wrote who knows what shit",
"What tip, what pile of waste",
"Brings forth the tender verse",
"Like hogweed, like the fat hen under the fence",
"Like the unbearable present tense",
"Who knows what ill, what strife",
"What crude shack of a life",
"And how it twists sweetly about the broken sill:",
", another word for honeysuckle",
"But housewives? Has poetry",
"Ever deepened in the pail",
"Was it ever found in the sink, under the table",
"Did it rise in the oven, quietly able",
"To outhowl the hoover?",
"Does it press more than the children\u2019s supper",
"The sudden sleepless wail?",
"Did it ever?",
"It lives. It takes seed",
"Like the most unforgiving weed",
"Grows wilder as the child grows older",
"And spits on dreams, did I say",
"How it thrives in the ashen family nest",
"Or how iambs are measured best",
"Where it hurts:",
"With the heel of an iron",
"On the reluctant breast",
"Of a shirt?",
"\ufeff\u2022",
"There was a hush, then <NAME>",
"Stepped out onto the stage. Michael",
"Blann, with his pipe and his jukebox head",
"Oh, he\u2019s your man.",
"He has a song for all weathers, a pipe",
"And a voice, and he sings and he roams",
"He sings to the wind and a dog of how",
"The trees are all bare and Jack\u2019s come home.",
"He\u2019s a thin voice, like a spider thread",
"On days when the sun is late and fine",
"Live and let live, sings <NAME>",
"The wind yields not, but the hills is mine.",
"He\u2019s no call for fate passing over",
"His sheep are all angels, the stars are his Lords",
"He\u2019ll play any part the clouds should fancy",
"To humble tunes and hand-me-down words",
"The acts are written in briar strands",
"And the Pharisees are leaves in the air",
"I likes a drop pipes <NAME>",
"Sing follow hark forward the innocent hare.",
"He wore to his end a clutch of sheep\u2019s wool",
"To show the gods that <NAME>",
"Went alone, alone for most of his years",
"But crossed the hills a singing man."
],
"title": "Asylum",
"year": ""
}
|
json
|
An amount of Rs.405 crore has been proposed as central assistance to the States for drainage and reclamation of waterlogged areas in irrigation commands covered under Command Area Development and Water Management (CADWM) Programme during the XII Five Year Plan. In addition, central assistance is also provided for drainage congestion schemes under Flood Management programme.
Monitoring of projects is primarily the responsibility of the State Government; State Governments have to conduct concurrent evaluation by independent agency. The Central Government, Central Water Commission also monitor the progress of the centrally assisted irrigation projects through quarterly progress reports, field visits, meetings etc.
State Governments are to sign a Memorandum of Understanding (MoU) with year wise phasing of physical and financial targets for timely completion of the projects. Central assistance is released on the basis of yearly targets, State budget provision and Central share ceiling. Optimal utilisation of funds is ensured through submission of utilisation certificates, and audited statements of the expenditure incurred by the State Government.
This was stated by Union Minister of State for Water Resources, River Development and Ganga Rejuvenation Shri Santosh Kumar Gangwar in a written reply in Lok Sabha today.
|
english
|
<reponame>MHasanPranto/Memories-Chronicel<filename>css/services.css
@import url(https://fonts.googleapis.com/css?family=Exo+2:200i);
:root {
/* Set neon color */
--neon-text-color: #f40;
--neon-border-color: #08f;
}
.services-wrapper {
padding-top: 10%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #16384c;
color: white;
font-family: 'Playfair Display', serif;
}
.bgtext {
font-family: 'Exo 2', sans-serif;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
}
.bgtext h1 {
font-size: 10rem;
font-weight: 200;
font-style: italic;
color: #fff;
padding: 4rem 6rem 5.5rem;
border: 0.4rem solid #fff;
border-radius: 2rem;
text-transform: uppercase;
animation: flicker 1.5s infinite alternate;
}
.bgtext h1::-moz-selection {
background-color: var(--neon-border-color);
color: var(--neon-text-color);
}
.bgtext h1::selection {
background-color: var(--neon-border-color);
color: var(--neon-text-color);
}
.bgtext h1:focus {
outline: none;
}
/* Animate neon flicker */
@keyframes flicker {
0%,
19%,
21%,
23%,
25%,
54%,
56%,
100% {
text-shadow: -0.2rem -0.2rem 1rem #fff, 0.2rem 0.2rem 1rem #fff,
0 0 2rem var(--neon-text-color), 0 0 4rem var(--neon-text-color),
0 0 6rem var(--neon-text-color), 0 0 8rem var(--neon-text-color),
0 0 10rem var(--neon-text-color);
box-shadow: 0 0 0.5rem #fff, inset 0 0 0.5rem #fff,
0 0 2rem var(--neon-border-color), inset 0 0 2rem var(--neon-border-color),
0 0 4rem var(--neon-border-color), inset 0 0 4rem var(--neon-border-color);
}
20%,
24%,
55% {
text-shadow: none;
box-shadow: none;
}
}
.services-wrapper span {
position: relative;
font-family: Poppins;
font-size: 150px;
font-weight: 800;
letter-spacing: 40px;
text-align: center;
-webkit-text-fill-color: transparent;
-webkit-text-stroke: 1px white;
}
.services-wrapper .title {
color: #323232;
font-family: Poppins;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.services-container {
position: relative;
/* width: 1100px; */
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 30px;
}
.services-container .card {
position: relative;
max-width: 300px;
height: 215px;
/* background: #fff; */
margin: 30px 10px;
padding: 20px 15px;
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.18);
/* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); */
transition: 0.3s ease-in-out;
}
.services-container .card h2 {
color: crimson;
text-decoration: line-through;
}
.services-container .card p {
/* color: #fff; */
color: black;
}
.services-container .card:hover {
height: 420px;
}
.services-container .card .imgBx {
position: relative;
top: -60px;
left: 6px;
z-index: 1;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.services-container .card .imgBx img {
max-width: 100%;
object-fit: cover;
border-radius: 4px;
}
.services-container .card .content {
position: relative;
margin-top: -140px;
padding: 10px 15px;
text-align: center;
color: #111;
visibility: hidden;
opacity: 0;
transition: 0.3s ease-in-out;
}
.services-container .card:hover .content {
visibility: visible;
opacity: 1;
margin-top: -40px;
transition: 0.3s;
}
|
css
|
// Copyright 2021 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package corp_spatialanalytics provides access to the .
//
// Creating a client
//
// Usage example:
//
// import "github.com/danielchristian-tokped/google-api-go-client/corp_spatialanalytics/v1"
// ...
// ctx := context.Background()
// corp_spatialanalyticsService, err := corp_spatialanalytics.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for authentication.
//
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
//
// corp_spatialanalyticsService, err := corp_spatialanalytics.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// corp_spatialanalyticsService, err := corp_spatialanalytics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/github.com/danielchristian-tokped/google-api-go-client/option/ for details on options.
package corp_spatialanalytics // import "github.com/danielchristian-tokped/google-api-go-client/corp_spatialanalytics/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "github.com/danielchristian-tokped/google-api-go-client/googleapi"
gensupport "github.com/danielchristian-tokped/google-api-go-client/internal/gensupport"
option "github.com/danielchristian-tokped/google-api-go-client/option"
internaloption "github.com/danielchristian-tokped/google-api-go-client/option/internaloption"
htransport "github.com/danielchristian-tokped/google-api-go-client/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
const apiId = ""
const apiName = ""
const apiVersion = ""
const basePath = "https://www.googleapis.com/discovery/v1/apis"
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using github.com/danielchristian-tokped/google-api-go-client/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
|
go
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.