text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>scripts/run_command.py
"""Entry point for main developer script.
Usage: python scripts/run_command.py -h
"""
import argparse
import json
import logging
import os
import subprocess
import sys
import textwrap
import init_path
from pyelect.html import generator as htmlgen
from pyelect import jsongen
from pyelect import lang
from pyelect import utils
_log = logging.getLogger()
DEFAULT_BUILD_DIR_NAME = '_build'
_FORMATTER_CLASS = argparse.RawDescriptionHelpFormatter
DESCRIPTION = """\
Helper script for repository contributors.
The normal workflow is--
1. TODO
2. Run `make_json` to update the JSON from the YAML.
3. Run `sample_html` to generate HTML from the JSON.
"""
def _wrap(text):
"""Format text for help outuput."""
paras = text.split("\n\n")
paras = [textwrap.fill(p) for p in paras]
text = "\n\n".join(paras)
return text
def get_default_output_dir_rel():
return os.path.join(DEFAULT_BUILD_DIR_NAME, htmlgen.HTML_OUTPUT_DIRNAME)
def command_lang_csv_ids(ns):
path = ns.input_path
data = lang.create_text_ids(path)
print(utils.yaml_dump(data))
def command_lang_text_csv(ns):
lang.update_csv_translations()
def command_lang_text_extras(ns):
lang.update_extras()
def command_make_json(ns):
path = ns.output_path
json_data = jsongen.make_json_data()
text = json.dumps(json_data, indent=4, sort_keys=True)
utils.write(path, text)
def command_parse_csv(ns):
path = ns.path
data = lang.parse_contest_csv(path)
print(data)
def command_sample_html(ns):
debug = ns.debug
local = ns.local
dir_path = ns.output_dir
open_browser = ns.open_browser
page_name = ns.page_name
print_html = ns.print_html
if page_name:
# Only require that the user type a matching prefix.
names = htmlgen.get_template_page_file_names()
for name in names:
if name.startswith(page_name):
page_name = name
break
else:
raise Exception("no page begins with: {0!r} (choose from: {1})"
.format(page_name, ", ".join(names)))
if dir_path is None:
repo_dir = utils.get_repo_dir()
dir_path = os.path.join(repo_dir, get_default_output_dir_rel())
# Make and output HTML.
html_path = htmlgen.make_html(dir_path, page_name=page_name,
print_html=print_html, local_assets=local,
debug=debug)
if open_browser:
subprocess.call(["open", html_path])
def _get_all_files(dir_path):
paths = []
for root_dir, dir_paths, file_names in os.walk(dir_path):
for file_name in file_names:
path = os.path.join(root_dir, file_name)
paths.append(path)
return paths
def command_yaml_norm(ns):
path = ns.path
if path:
if not utils.is_yaml_file_normalizable(path):
raise Exception("not normalizable: {0}".format(path))
paths = [path]
else:
data_dir = utils.get_pre_data_dir()
paths = _get_all_files(data_dir)
paths = [p for p in paths if os.path.splitext(p)[1] == '.yaml']
for path in paths:
utils.normalize_yaml(path, stdout=False)
def command_yaml_temp(ns):
path = ns.path
data = utils.read_yaml(path)
offices = data['offices']
node = {}
for office in offices:
if 'id' in office:
id_ = office['id']
elif 'name_i18n' in office:
id_ = office['name_i18n']
elif 'name' in office:
name = office['name']
id_ = "office_{0}".format(name.lower())
elif 'body_id' in office:
name = office['body_id']
district = office['district']
id_ = "office_{0}_{1}".format(name.lower(), district)
else:
raise Exception(office)
print(id_)
if id_ in node:
raise Exception(id_)
if 'id' in office:
del office['id']
node[id_] = office
print(office)
data['offices'] = node
utils.write_yaml(data, path)
def make_subparser(sub, command_name, help, command_func=None, details=None, **kwargs):
if command_func is None:
command_func_name = "command_{0}".format(command_name)
command_func = globals()[command_func_name]
# Capitalize the first letter for the long description.
desc = help[0].upper() + help[1:]
if details is not None:
desc += "\n\n{0}".format(details)
desc = _wrap(desc)
parser = sub.add_parser(command_name, formatter_class=_FORMATTER_CLASS,
help=help, description=desc, **kwargs)
parser.set_defaults(run_command=command_func)
return parser
def create_parser():
"""Return an ArgumentParser object."""
root_parser = argparse.ArgumentParser(formatter_class=_FORMATTER_CLASS,
description=DESCRIPTION)
sub = root_parser.add_subparsers(help='sub-command help')
parser = make_subparser(sub, "lang_csv_ids",
help="create text ID's from a CSV file.")
parser.add_argument('input_path', metavar='CSV_PATH',
help="a path to a CSV file.")
csv_dir = lang.get_rel_path_csv_dir()
csv_trans_dir = lang.get_rel_path_translations_csv()
details = textwrap.dedent("""\
Update the translation files in the directory {0} with the information
in the CSV files in the directory: {1}.
""".format(csv_trans_dir, csv_dir))
parser = make_subparser(sub, "lang_text_csv",
help="update the i18n files for the CSV phrases.",
details=details)
extra_phrases_path = lang.get_rel_path_phrases_extra()
extra_trans_dir = lang.get_rel_path_translations_extra()
details = textwrap.dedent("""\
Add to the translation files in the directory {0} any new phrases in
the file: {1}.
""".format(extra_trans_dir, extra_phrases_path))
parser = make_subparser(sub, "lang_text_extras",
help='update the i18n files for the "extra" phrases.',
details=details)
rel_path_default = jsongen.get_rel_path_json_data()
parser = make_subparser(sub, "make_json",
help="create or update a JSON data file.")
parser.add_argument('output_path', metavar='PATH', nargs="?", default=rel_path_default,
help=("the output path. Defaults to the following path relative to the "
"repo root: {0}.".format(rel_path_default)))
parser = make_subparser(sub, "parse_csv",
help="parse a CSV language file from the Department.")
parser.add_argument('path', metavar='PATH', help="a path to a CSV file.")
page_bases = htmlgen.get_template_page_bases()
parser = make_subparser(sub, "sample_html",
help="make sample HTML from the JSON data.",
details="Uses the repo JSON file as input.")
parser.add_argument('--page', dest='page_name',
help=('the page to generate (from: {0}). Defaults to all pages.'
.format(", ".join(page_bases))))
parser.add_argument('--output_dir', metavar='OUTPUT_DIR',
help=("the output directory. Defaults to the following directory relative "
"to the repo: {0}".format(get_default_output_dir_rel())))
parser.add_argument('--local', action='store_true',
help=('link to assets locally rather than via a CDN. This is useful '
'for developing locally without internet access.'))
parser.add_argument('--no-browser', dest='open_browser', action='store_false',
help='suppress opening the browser.')
parser.add_argument('--print-html', dest='print_html', action='store_true',
help='write the HTML to stdout.')
parser.add_argument('--debug', action='store_true',
help="set Django's TEMPLATE_DEBUG to True.")
parser = make_subparser(sub, "yaml_norm",
help="normalize one or more YAML files.")
parser.add_argument('--all', dest='all', action='store_true',
help='normalize all YAML files.')
parser.add_argument('path', metavar='PATH', nargs='?',
help="a path to a YAML file.")
parser = make_subparser(sub, "yaml_temp",
help="temporary scratch command.")
parser.add_argument('path', metavar='PATH', nargs='?',
help="the target path of a non-English YAML file.")
return root_parser
def main(argv=None):
if argv is None:
argv = sys.argv[1:]
logging.basicConfig(level='INFO')
parser = create_parser()
ns = parser.parse_args(argv)
try:
ns.run_command
except AttributeError:
# We need to handle this exception because of the following
# behavior change:
# http://bugs.python.org/issue16308
parser.print_help()
else:
ns.run_command(ns)
if __name__ == '__main__':
main()
| python |
Hopefully on December 16th, audio of most awaited film "Gautamiputra Satakarni" is hitting the stores with a big event also planned in Tirupathi.
Today makers of the film have confirmed that they are looking at two grounds to host the audio launch of the film for which AP CM Chandrababu is likely to be chief guest. Producers confirmed that both NTR stadium and Nehru Municipal High School grounds are in consideration for the event.
Already the shooting of iconic #Balayya100 got over and now it's getting ready for a massive release in January 2017. | english |
<filename>codemirror/theme/neat.css
.cm-s-neat span.cm-comment { color: #5c657a; font-style: italic; }
.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
.cm-s-neat span.cm-string { color: #61A151; }
.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
.cm-s-neat span.cm-variable { color: black; }
.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #CC7832; }
.cm-s-neat span.cm-meta { color: #555; }
.cm-s-neat span.cm-link { color: #3a3; }
.cm-s-neat span.cm-def { font-style: italic; }
.cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; }
.cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
.cm-s-neat .CodeMirror-gutters { background: #EAEAEB; border-right: 1px solid #999; }
| css |
Telangana opposition protest shifting of 'Dharna Chowk'
Hyderabad, May 12 : All opposition parties in Telangana on Friday came together for another round of protest over the shifting of 'Dharna Chowk', a popular venue for staging protests in Hyderabad.
Leaders of all opposition parties and mass organisations participated in a silent protest at Telangana Martyrs' Memorial at Gun Park, organised by Telangana Joint Action Committee (TJAC).
TJAC chairman Kodandaram, a bitter critic of Chief Minister K. Chandrasekhar Rao, led the protest and warned the Telangana Rashtra Samithi (TRS) government that if it failed to withdraw the move, a march to 'Dharna Chowk' will be organised on May 15.
Kodandaram, who had played a key role in Telangana movement along with Chandrasekhar Rao, alleged that the government was trying to snatch democratic and constitutional rights of the people.
TJAC leader said that for over a month the opposition parties had been raising their voice over the issue but the government was bent on shifting 'Dharna Chowk'.
Main opposition Congress, Bharatiya Janata Party (BJP), Telugu Desam Party (TDP), Communist Party of India (CPI) and Communist Party of India-Marxist (CPI-M) declared their support to the proposed march.
State Congress chief Uttam Kumar Reddy said people had hoped that there will be greater freedom and liberty in Telangana state but the government was curbing people's right to dissent.
The TDP's Telangana unit President L. Ramna said the party would extend full support to TJAC on the issue.
'Dharna Chowk' has been the venue of thousands of protests by political parties, people's organisations, students' groups, employees' unions and others for over two decades.
Chief Minister Chandrasekhar Rao had last month defended the police move to shift 'Dharna Chowk' to the city outskirts saying that some parties were deliberately creating problems in the name of protests.
In March, leaders of all opposition parties had come together to meet Governor E. S. L. Narasimhan Rao and submit a memorandum protesting the government's move. | english |
[{"Similarity":"0.918","Title":"They Know as Much as We Do Knowledge Estimation and Partner Modelling of Artificial Partners","Year":2017},{"Similarity":"0.907","Title":"Simple and Complex Extralinguistic Communicative Acts","Year":2004},{"Similarity":"0.902","Title":"Opening Up and Closing Down Discussion Experimenting with Epistemic Status in Conversation","Year":2017},{"Similarity":"0.899","Title":"Neuropsychological Evidence for Linguistic and Extralinguistic Paths in Communication","Year":2005},{"Similarity":"0.894","Title":"Stylistic and Contextual Effects in Irony Processing","Year":2004},{"Similarity":"0.893","Title":"Interactive Communicative Inference","Year":2017}] | json |
ஆனால் அவர்கள் இருவரும் காரில் இருந்து இறங்கியதில் இருந்து அங்கு சற்றுதள்ளியிருந்து காரில் அமர்ந்தபடி நரேன் கார் கண்னாடியை ஏற்றிவிட்டு கொண்டு இருவரையும் குரோதமாக முறைத்து பார்த்துகொண்டிருந்த நரேன் அழகுநிலா மண்டபத்திற்குள் நுழைந்ததும் அங்கு கேட்ரிங்கில் இருந்த அவனின் அடியாளுக்கு அழகுநிலவின் போட்டோவை வாட்சபில் சென்ட்செய்து அவள் மண்டபத்திற்குள் வந்துவிட்டாள் சந்தர்பம் பார்த்து தூக்கிடு மிஸ்பண்ணின நீ தொலஞ்ச... என்ற மெசேஜைதட்டிவிட்டான் .
The above article / story / poem is a copyright material and is published with the consent of the author. If you find any unauthorized content do let us know at This email address is being protected from spambots. You need JavaScript enabled to view it.. All the copyright content at chillzee.in are protected by national and international laws & regulations. We are against plagiarism! If you find our site's content copied in any other website, we request you to let us know at This email address is being protected from spambots. You need JavaScript enabled to view it.. Chillzee is an entertainment website and all the content published here are for entertainment purpose only. Most of the content are fictional work and should be treated accordingly. Information on this website may contain errors or inaccuracies; we do not make warranty as to the correctness or reliability of the site’s content. The views and comments expressed here are solely those of the author(s) in his/her (their) private capacity and do not in any way represent the views of the website and its management. We appreciate your high quality of listening to every point of view. Thank you.
Copyright © 2009 - 2023 Chillzee.in. All Rights Reserved.
| english |
<gh_stars>0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<meta name="author" content="kjell at ieee dot org ">
<meta name="copyright" content="2008">
<meta name="germantranslation" content="heinrich at gailer-net dot de">
<meta name="germancopyright" content="2010, <NAME>">
<meta name="robots" content="index,follow">
<title>Beginn des Programms</title>
<link rel="stylesheet" type="text/css" href="../CAIstyle.css">
</head>
<body>
<!-- generated by CSSmaker.java, version 04/06/2010 on Tue Mar 27 15:27:06 CEST 2012 -->
<!-- ANSWER DIVISION -->
<div class="answer">
<div class="topnavigation">
<a href="ch53_6.html"><img src="../backIcon.gif" alt="zur vorherigen Seite"></a>
<a href="../../index.html#53"><img src="../homeIcon.gif" alt="zum Inhaltsverzeichnis"></a>
<a href="ch53_8.html"><img src="../nextIcon.gif" alt="zur nächsten Seite"></a>
</div>
<h3>Antwort:</h3>
<ul>
<li>Welche Methode(n) wird <code>Lebensmittel</code> haben?
<ul><li><span class="blue"><code>anzeigen()</code></span></li></ul></li>
<li>Welche Methode(n) wird <code>Spielwaren</code> haben?
<ul><li><span class="blue"><code>anzeigen()</code></span> und <span class="blue"><code>berechneSteuer()</code></span></li></ul></li>
</ul>
</div>
<!-- LESSON DIVISION -->
<div class="lesson">
<h1>Beginn des Programms</h1>
<p>
Hier ist die Klassendefinition für <code>Waren</code>:
</p>
<pre class="program">
class Waren
{
String beschreibung;
double preis;
Waren( String beschreibung, double preis )
{
this.beschreibung = beschreibung;
this.preis = preis;
}
void anzeigen()
{
System.out.println( "Artikel: " + beschreibung +
" Preis: " + preis );
}
}
</pre>
<p>
Hier ist das Grundgerüst der Klasse <code>Lebensmittel</code>.
Denken Sie daran, dass sie die Variable <code>kalorien</code> hinzufügt.
</p>
<pre class="program">
class Lebensmittel <input class="in" size="20" type="text">
{
double <span class="blue">kalorien</span>;
Lebensmittel( String beschreibung, double preis, double kalorien)
{
super( <input class="in" size="20" type="text"> );
this.kalorien = <input class="in" size="20" type="text"> ;
}
void anzeigen()
{
super.<input class="in" size="20" type="text"> ;
System.out.println( "Kalorien: " + <span class="blue">kalorien</span> );
}
}
</pre>
<div class="clearfloats"> <!-- divs need something inside of them --> </div>
</div> <!-- end lesson -->
<!-- QUESTION DIVISION -->
<div class="question">
<h3> FRAGE 7:</h3>
<form>
Füllen Sie die Lücken aus.
Klicken Sie hier für einen <input type="button" value="Hinweis."
onClick="alert('Da Lebensmittel nicht steuerpflichtig sind wird diese Klasse die Schnittstelle nicht implementieren.')">
</form>
<div class="navigation">
<a href="ch53_6.html"><img src="../backIcon.gif" alt="zur vorherigen Seite"></a>
<a href="../../index.html#53"><img src="../homeIcon.gif" alt="zum Inhaltsverzeichnis"></a>
<a href="ch53_8.html"><img src="../nextIcon.gif" alt="zur nächsten Seite"></a>
</div>
</div>
</body>
</html>
| html |
package commands
import (
"fmt"
"io"
"os"
"path/filepath"
"runtime"
"testing"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/commands/commandstest"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestRemoveGitBuildFromName(t *testing.T) {
pluginName := "datasource-kairosdb"
// The root directory should get renamed to the plugin name
paths := map[string]string{
"datasource-plugin-kairosdb-cc4a3965ef5d3eb1ae0ee4f93e9e78ec7db69e64/": "datasource-kairosdb/",
"datasource-plugin-kairosdb-cc4a3965ef5d3eb1ae0ee4f93e9e78ec7db69e64/README.md": "datasource-kairosdb/README.md",
"datasource-plugin-kairosdb-cc4a3965ef5d3eb1ae0ee4f93e9e78ec7db69e64/partials/": "datasource-kairosdb/partials/",
"datasource-plugin-kairosdb-cc4a3965ef5d3eb1ae0ee4f93e9e78ec7db69e64/partials/config.html": "datasource-kairosdb/partials/config.html",
}
for pth, exp := range paths {
name := removeGitBuildFromName(pluginName, pth)
assert.Equal(t, exp, name)
}
}
func TestExtractFiles(t *testing.T) {
t.Run("Should preserve file permissions for plugin backend binaries for linux and darwin", func(t *testing.T) {
skipWindows(t)
pluginDir, del := setupFakePluginsDir(t)
defer del()
archive := filepath.Join("testdata", "grafana-simple-json-datasource-ec18fa4da8096a952608a7e4c7782b4260b41bcf.zip")
err := extractFiles(archive, "grafana-simple-json-datasource", pluginDir, false)
require.NoError(t, err)
// File in zip has permissions 755
fileInfo, err := os.Stat(filepath.Join(pluginDir, "grafana-simple-json-datasource",
"simple-plugin_darwin_amd64"))
require.NoError(t, err)
assert.Equal(t, "-rwxr-xr-x", fileInfo.Mode().String())
// File in zip has permission 755
fileInfo, err = os.Stat(pluginDir + "/grafana-simple-json-datasource/simple-plugin_linux_amd64")
require.NoError(t, err)
assert.Equal(t, "-rwxr-xr-x", fileInfo.Mode().String())
// File in zip has permission 644
fileInfo, err = os.Stat(pluginDir + "/grafana-simple-json-datasource/simple-plugin_windows_amd64.exe")
require.NoError(t, err)
assert.Equal(t, "-rw-r--r--", fileInfo.Mode().String())
// File in zip has permission 755
fileInfo, err = os.Stat(pluginDir + "/grafana-simple-json-datasource/non-plugin-binary")
require.NoError(t, err)
assert.Equal(t, "-rwxr-xr-x", fileInfo.Mode().String())
})
t.Run("Should ignore symlinks if not allowed", func(t *testing.T) {
pluginDir, del := setupFakePluginsDir(t)
defer del()
err := extractFiles("testdata/plugin-with-symlink.zip", "plugin-with-symlink", pluginDir, false)
require.NoError(t, err)
_, err = os.Stat(pluginDir + "/plugin-with-symlink/text.txt")
require.NoError(t, err)
_, err = os.Stat(pluginDir + "/plugin-with-symlink/symlink_to_txt")
assert.NotNil(t, err)
})
t.Run("Should extract symlinks if allowed", func(t *testing.T) {
skipWindows(t)
pluginDir, del := setupFakePluginsDir(t)
defer del()
err := extractFiles("testdata/plugin-with-symlink.zip", "plugin-with-symlink", pluginDir, true)
require.NoError(t, err)
_, err = os.Stat(pluginDir + "/plugin-with-symlink/symlink_to_txt")
require.NoError(t, err)
fmt.Println(err)
})
}
func TestInstallPluginCommand(t *testing.T) {
pluginsDir, cleanUp := setupFakePluginsDir(t)
defer cleanUp()
c, err := commandstest.NewCliContext(map[string]string{"pluginsDir": pluginsDir})
require.NoError(t, err)
client := &commandstest.FakeGrafanaComClient{
GetPluginFunc: func(pluginId, repoUrl string) (models.Plugin, error) {
require.Equal(t, "test-plugin-panel", pluginId)
plugin := models.Plugin{
ID: "test-plugin-panel",
Category: "",
Versions: []models.Version{
{
Commit: "commit",
URL: "url",
Version: "1.0.0",
Arch: map[string]models.ArchMeta{
fmt.Sprintf("%s-%s", runtime.GOOS, runtime.GOARCH): {
Md5: "test",
},
},
},
},
}
return plugin, nil
},
DownloadFileFunc: func(pluginName string, tmpFile *os.File, url string, checksum string) (err error) {
require.Equal(t, "test-plugin-panel", pluginName)
require.Equal(t, "/test-plugin-panel/versions/1.0.0/download", url)
require.Equal(t, "test", checksum)
f, err := os.Open("testdata/grafana-simple-json-datasource-ec18fa4da8096a952608a7e4c7782b4260b41bcf.zip")
require.NoError(t, err)
_, err = io.Copy(tmpFile, f)
require.NoError(t, err)
return nil
},
}
err = InstallPlugin("test-plugin-panel", "", c, client)
assert.NoError(t, err)
}
func TestIsPathSafe(t *testing.T) {
dest := fmt.Sprintf("%stest%spath", string(os.PathSeparator), string(os.PathSeparator))
t.Run("Should be true on nested destinations", func(t *testing.T) {
assert.True(t, isPathSafe("dest", dest))
assert.True(t, isPathSafe("dest/one", dest))
assert.True(t, isPathSafe("../path/dest/one", dest))
})
t.Run("Should be false on destinations outside of path", func(t *testing.T) {
assert.False(t, isPathSafe("../dest", dest))
assert.False(t, isPathSafe("../../", dest))
assert.False(t, isPathSafe("../../test", dest))
})
}
func TestSelectVersion(t *testing.T) {
t.Run("Should return error when requested version does not exist", func(t *testing.T) {
_, err := SelectVersion(
makePluginWithVersions(versionArg{Version: "version"}),
"1.1.1",
)
assert.NotNil(t, err)
})
t.Run("Should return error when no version supports current arch", func(t *testing.T) {
_, err := SelectVersion(
makePluginWithVersions(versionArg{Version: "version", Arch: []string{"non-existent"}}),
"",
)
assert.NotNil(t, err)
})
t.Run("Should return error when requested version does not support current arch", func(t *testing.T) {
_, err := SelectVersion(
makePluginWithVersions(
versionArg{Version: "2.0.0"},
versionArg{Version: "1.1.1", Arch: []string{"non-existent"}},
),
"1.1.1",
)
assert.NotNil(t, err)
})
t.Run("Should return latest available for arch when no version specified", func(t *testing.T) {
ver, err := SelectVersion(
makePluginWithVersions(
versionArg{Version: "2.0.0", Arch: []string{"non-existent"}},
versionArg{Version: "1.0.0"},
),
"",
)
require.NoError(t, err)
assert.Equal(t, "1.0.0", ver.Version)
})
t.Run("Should return latest version when no version specified", func(t *testing.T) {
ver, err := SelectVersion(
makePluginWithVersions(versionArg{Version: "2.0.0"}, versionArg{Version: "1.0.0"}),
"",
)
require.NoError(t, err)
assert.Equal(t, "2.0.0", ver.Version)
})
t.Run("Should return requested version", func(t *testing.T) {
ver, err := SelectVersion(
makePluginWithVersions(
versionArg{Version: "2.0.0"},
versionArg{Version: "1.0.0"},
),
"1.0.0",
)
require.NoError(t, err)
assert.Equal(t, "1.0.0", ver.Version)
})
}
func setupFakePluginsDir(t *testing.T) (string, func()) {
dirname := "testdata/fake-plugins-dir"
err := os.RemoveAll(dirname)
require.Nil(t, err)
err = os.MkdirAll(dirname, 0750)
require.Nil(t, err)
return dirname, func() {
err := os.RemoveAll(dirname)
require.NoError(t, err)
}
}
func skipWindows(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test on Windows")
}
}
type versionArg struct {
Version string
Arch []string
}
func makePluginWithVersions(versions ...versionArg) *models.Plugin {
plugin := &models.Plugin{
ID: "",
Category: "",
Versions: []models.Version{},
}
for _, version := range versions {
ver := models.Version{
Version: version.Version,
Commit: fmt.Sprintf("commit_%s", version.Version),
URL: fmt.Sprintf("url_%s", version.Version),
}
if version.Arch != nil {
ver.Arch = map[string]models.ArchMeta{}
for _, arch := range version.Arch {
ver.Arch[arch] = models.ArchMeta{
Md5: fmt.Sprintf("md5_%s", arch),
}
}
}
plugin.Versions = append(plugin.Versions, ver)
}
return plugin
}
| go |
<reponame>wai818/zDream<filename>seed/BudgetType.json
{"fieldCount":4,"rowCount":2,"values":[
"Encode","Name","HasTable","ParentEncode",
"CAPITAL_BUDGET","Capital","False","",
"OPERATING_BUDGET","Operating","False",""]}
| json |
<gh_stars>0
""" A Python Class
A simple Python graph class to do essential operations into graph.
"""
import operator
import math
from random import choice
from collections import defaultdict
import networkx as nx
class ProA():
def __init__(self, graph):
""" Initializes util object.
"""
self.__graph = graph
self.__relations = {}
self.__relations_distribution = defaultdict(int)
self.__hits1 = 0.0
self.__hits3 = 0.0
self.__hits5 = 0.0
self.__hits10 = 0.0
def clear(self):
""" Clear current graph
"""
self.__graph.clear()
def set_graph(self, graph):
""" A method to set graph.
"""
self.__graph = graph
def get_graph(self):
""" A method to get graph.
"""
return self.__graph
def get_hits1(self):
""" A method to get hits1.
"""
return self.__hits1
def get_hits3(self):
""" A method to get hits3.
"""
return self.__hits3
def get_hits5(self):
""" A method to get hits5.
"""
return self.__hits5
def get_hits10(self):
""" A method to get hits10.
"""
return self.__hits10
def set_relation(self, source, target, relation):
""" A method to set an edge label.
"""
self.__relations[(source,target)] = relation
def get_relation(self, source, target):
""" A method to return an edge label.
"""
try:
return self.__relations[(source,target)]
except KeyError:
try:
return self.__relations[(target,source)]
except KeyError:
pass
def get_domain(self, source):
""" Get domain from outgoings relations from source vertex.
"""
try:
dicti = defaultdict(int)
for neighbor in self.__graph.neighbors(source):
relation = self.get_relation(source, neighbor).split('/')
dicti[relation[1]] += 1
sorted_dicti = sorted(dicti.items(), key=operator.itemgetter(1))
return sorted_dicti[0][0]
except IndexError:
pass
def generate_distribution(self, source, target, length):
""" Generate relations distribution from a source to target.
"""
paths = nx.all_simple_paths(self.__graph, source, target, cutoff=length)
paths = list(paths)
print 'len', len(paths)
distribution = defaultdict(int)
for path in paths:
relations_list = list()
for i in range(0, len(path) - 1):
# print path[i], path[i + 1], self.get_relation(path[i], path[i+1])
relations_list.append(self.get_relation(path[i], path[i+1]))
# print 'list', relations_list
distribution[tuple(relations_list)] += 1
return distribution
def recur_generate_paths(self, g, node_initial, node_source, node_target, distribution, key, index, dicti, source, target):
""" Recursive method do generate dictionary from exists edges between v1 and v2 until the limit passed.
"""
if key[index] == self.get_relation(node_source, node_target):
index = index + 1
if len(key) > index:
for neighbor in g.neighbors(node_target):
self.recur_generate_paths(g, node_initial, node_target, neighbor, distribution, key, index, dicti, source, target)
else:
if source == node_initial and target == node_target:
pass
else:
dicti[self.get_relation(node_initial, node_target)] += 1
def generate_edges_between_paths(self, distribution, source, target):
""" Generate dictionary from exists edges between v1 and v2.
"""
path_distribution = {}
g = self.get_graph()
for key, value in distribution.iteritems():
print '-------- Calculating: ', key,'---------'
dicti = defaultdict(int)
for edge in g.edges():
try:
self.recur_generate_paths(g, edge[0], edge[0], edge[1], distribution, key, 0, dicti, source, target)
except IndexError:
pass
path_distribution[key] = dicti
return path_distribution
def generate_final_distribution(self, distribution, distribution_path):
""" Generate final distribution from possible edges.
"""
total_edges = float(sum(distribution.values()))
final_path_distribution = defaultdict(float)
for dist in distribution:
final_path_distribution[dist] += float(distribution[dist])/total_edges
final_distribution = defaultdict(float)
for path in distribution_path:
temp_total = 0
for path2 in distribution_path[path]:
temp_total += distribution_path[path][path2]
for path2 in distribution_path[path]:
final_distribution[path2] += (float(distribution_path[path][path2])/temp_total)*final_path_distribution[path]
return final_distribution
def evaluate(self, MMR, final_distribution_sorted, edge_to_be_predicted):
""" Evaluate MMR.
"""
count = 0.0
for relation, probability in final_distribution_sorted:
print 'Predicting', relation
if relation == edge_to_be_predicted:
count += 1.0
break
if relation == None and probability > 0.92:
count += 1.0
elif relation != None:
count += 1.0
if count == 0:
count = 20.0
else:
MMR += (1.0/count)
self.update_hits(count)
return MMR
def update_hits(self, count):
""" Evaluate Hits.
"""
if count == 1:
self.__hits1 += 1
if count <= 3:
self.__hits3 += 1
if count <= 5:
self.__hits5 += 1
if count <= 10:
self.__hits10 += 1
def calculate_entropy(self, source, target):
""" Calculates the entropy from source and target.
"""
prod = 1.0
for i in range(1, self.__graph.degree(target)+1):
prod = prod * (float(self.__graph.number_of_edges()-self.__graph.degree(source)-i+1)/float(self.__graph.number_of_edges()-i+1))
return -math.log(1 - prod, 2)
def calculate_common_neighbors(self, source, target):
""" Calculates the common neighbors from source and target.
"""
return sorted(nx.common_neighbors(self.__graph, source, target))
def calculate_resource_allocation(self, source, target):
""" Calculates the common neighbors from source and target.
"""
return nx.resource_allocation_index(self.__graph, [(source, target)])
def random_walk(self):
""" A method to get started a random walk into graph
selecting a node from random.
"""
print 'Number of nodes', self.__graph.number_of_nodes()
print 'Number of edges', self.__graph.number_of_edges()
# Get a node randomly
# Probability to get this first node is 1/N
seed = choice(self.__graph.nodes())
print 'Selected a node randomly', seed
print 'Degree', self.__graph.degree(seed)
print 'In degree', self.__graph.in_degree(seed)
print 'Out degree', self.__graph.out_degree(seed)
print 'Successors', self.__graph.successors(seed)
num_edges = len(self.__graph.edges())
prob_vertex = {}
entropy_vertex = {}
for possibility in self.__graph.nodes():
if possibility != seed:
if possibility not in self.__graph.successors(seed):
prod = 1.0
for i in range(self.__graph.degree(possibility)):
prod = prod * ((num_edges-self.__graph.degree(seed)+(-i+1)+1)/float(num_edges+(-i+1)+1))
prob_vertex[possibility] = 1 - prod
entropy_vertex[possibility] = -math.log(1 - prod)
prob_vertex = sorted(prob_vertex.items(), key=operator.itemgetter(1))
entropy_vertex = sorted(entropy_vertex.items(), key=operator.itemgetter(1))
print entropy_vertex
print seed
# Print edges with relation
# print DG.edges(data='relation')
def entropy(self, source, target):
""" A method to get started entropy calculation into graph
selecting a node.
"""
print('source:', source, 'target:', target, 'entropy:', self.calculate_entropy(source, target))
def predict_facts(self, source, target, length):
""" A method to predict facts based on shannon entropy.
"""
print(source, target)
print 'Selected a node', source
print 'Source Degree', self.__graph.degree(source)
print 'Neighbors', self.__graph.neighbors(source)
print 'Target Degree', self.__graph.degree(target)
print 'Neighbors', self.__graph.neighbors(target)
# print(sorted(nx.all_neighbors(self.__graph, source)))
print(len(self.__graph.edges()))
# print(self.__graph.edges())
count = 0.0
for edge in self.__graph.edges():
if edge[0] == 'teamplayssport' or edge[1] == 'teamplayssport':
count = count + 1
# print(edge)
# print 'In degree', self.__graph.in_degree(source)
# print 'Out degree', self.__graph.out_degree(source)
# print 'Successors', self.__graph.successors(source)
# print(sorted(nx.common_neighbors(self.__graph, source, target)))
print(count)
print(count/(len(self.__graph.edges())))
| python |
In a shocking development, RRQ Athena, a popular PUBG Mobile organization from Thailand, has released four players from its PUBG Mobile roster.
G9, the captain and in-game leader of the team is the only player remaining on the roster. The announcement came through a Facebook post.
"Farewell Beer11, D2E, Earny, and Senior, you guys will always remain our beloved. It's time for these boys to walk out for their more challenging dreams. Even though it's a shame to say goodbye to each other, thanks to Beer11, D2E, Earny, and Senior, for being a part of RRQ Athena. If we have a chance we will be able to work together again. "
RRQ Athena PUBG Mobile Roster:
On the last day of the PMGC finals in Dubai, Beer 11 and G9 informed fans on social media that this will the last time the roster play together.
RRQ Athen ahad an ordinary performance in the PMGC finals and secured 11th place in the tournament.
RRQ Athena was one of the most successful teams in the PUBG Mobile Esports circuit. RRQ Athena started its journey from the very first PUBG Mobile tournament, PMSC Asia.
It dominated the esports circuit in 2018 and 2019. They have earned over $500k has prize money in all this time.
Here are some of RRQ Athena's achievements:
Champions:
Some other notable performances:
GTA 5's mammoth $7,700,000,000 earnings set to be challenged by upcoming game! Know more here. | english |
**Bhubaneswar: ** The Odisha government on Tuesday directed shops and commercial establishments to display their signboards in Odia language.
The government also decided that all government institutions would display signboards in Odia language prominently in their respective offices and institutions apart from other languages, if any, within 15 days.
A high-level meeting was held under the chairmanship of Development Commissioner R. Balakrishnan in the state capital on Tuesday.
The Odisha Assembly in May this year passed the Odisha Shops and Commercial Establishments (amendment) Bill-2018 making Odia language mandatory on signboards on shops and business establishments in the state.
| english |
import EventBus from '@vue-storefront/core/compatibility/plugins/event-bus'
export default function syncProductPrice (product, backProduct) { // TODO: we probably need to update the Net prices here as well
product.sgn = backProduct.sgn // copy the signature for the modified price
product.price_incl_tax = backProduct.price_info.final_price
product.original_price_incl_tax = backProduct.price_info.regular_price
product.special_price_incl_tax = backProduct.price_info.special_price
product.special_price = backProduct.price_info.extension_attributes.tax_adjustments.special_price
product.price = backProduct.price_info.extension_attributes.tax_adjustments.final_price
product.original_price = backProduct.price_info.extension_attributes.tax_adjustments.regular_price
product.price_tax = product.price_incl_tax - product.price
product.special_price_tax = product.special_price_incl_tax - product.special_price
product.original_price_tax = product.original_price_incl_tax - product.original_trice
if (product.price_incl_tax >= product.original_price_incl_tax) {
product.special_price_incl_tax = 0
product.special_price = 0
}
/** BEGIN @deprecated - inconsitent naming kept just for the backward compatibility */
product.priceInclTax = product.price_incl_tax
product.priceTax = product.price_tax
product.originalPrice = product.original_price
product.originalPriceInclTax = product.original_price_incl_tax
product.originalPriceTax = product.original_price_tax
product.specialPriceInclTax = product.special_price_incl_tax
product.specialPriceTax = product.special_price_tax
/** END */
EventBus.$emit('product-after-priceupdate', product)
// Logger.log(product.sku, product, backProduct)()
return product
}
| typescript |
AIZAWL: As the COVID-19 scenario deteriorates in Mizoram, Chief Minister Zoramthanga has thanked Taiwan -- the East Asian country claimed by China -- and also the European Union (EU) country of Ireland for providing aid to mitigate possible oxygen crisis in the State.
The Hill State received consignments of oxygen concentrators and cylinders from Taiwan and another of 60 oxygen concentrators -- produced by the premium American company Invacare -- from Ireland, on Friday.
Without mentioning how many consignments Mizoram has received, Zoramthanga said, " Thank you Taiwan for your continued generosity providing us much needed oxygen concentrators and cylinders. "
An oxygen concentrator reduces nitrogen from an air supply to produce an oxygen-enriched air supply to a patient.
Taiwan had on last Sunday (May 2) sent 150 oxygen concentrators and 500 oxygen cylinders to India through a China Airlines freighter which were received by India's Red Cross.
"These oxygen concentrators and cylinders are love from Taiwan. More help for our friends in India is on the way. #IndiaStayStrong! ", tweeted Taiwan Foreign Minister Joseph Wu.
Meanwhile, thanking Ireland, Zoramthanga tweeted, "Much needed Invacare 02 Concentrators (60 nos) from Ireland were airlifted from IAF-MCC base in Jorhat to cater to the needs of people from my State, Mizoram. "
Later, the Union Ministry of Health and Family Welfare through a tweet confirmed that the consignment has reached Aizawl the capital city of Mizoram. Zoramthanga retweeted that too.
The aids will come in handy as procuring the same will be tardy at times of emergency for the remotely-located hill State of Mizoram that is surrounded by Myanmar and Bangladesh. The State has two road ways — through the Barak Valley in southern Assam into Kolasib district and through North Tripura -- a route which is in a dilapidated condition -- into Mamit district; besides a single railway station at Bairabi in Kolasib district.
Mizoram, that was among the least affected States in terms of COVID-19 has, however, shown signs of a rapid spread this year with 1779 active cases now. (Agencies) | english |
<filename>info.json
{
"version" : "1.2",
"details_url" : "http://jerryklimcik.cz/readme.html",
"download_url" : "https://github.com/Draffix/clean-blog/archive/master.zip"
} | json |
[{"address_components":[{"long_name":"Dodurga","short_name":"Dodurga","types":["locality","political"]},{"long_name":"Mehmet Akif","short_name":"Mehmet Akif","types":["administrative_area_level_4","political"]},{"long_name":"Dodurga","short_name":"Dodurga","types":["administrative_area_level_3","political"]},{"long_name":"Bozüyük","short_name":"Bozüyük","types":["administrative_area_level_2","political"]},{"long_name":"Bilecik","short_name":"Bilecik","types":["administrative_area_level_1","political"]},{"long_name":"Turkey","short_name":"TR","types":["country","political"]},{"long_name":"11460","short_name":"11460","types":["postal_code"]}],"formatted_address":"Dodurga, Mehmet Akif, 11460 Dodurga/Bozüyük/Bilecik, Turkey","geometry":{"location":{"lat":39.803316,"lng":29.886313},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":39.8118876,"lng":29.9023204},"southwest":{"lat":39.7947434,"lng":29.8703056}}},"place_id":"ChIJk5gipP7jyxQRwO_Al8kcWuI","types":["locality","political"]}] | json |
Home to the rare cherry trees, Japan boasts of unending rows of the aromatic pale pink flowers, making the place look right out of a postcard. The cherry blossom season runs each year from February to May. Blooming buds brings with it waves of tourists.
Each year, Japan witnesses the highest number of tourist visitors during this season. This is a two-month-long festival in the country, where people come together and organise picnics, musical events among other things. The beautiful arrangements of white and pink flowers along with the backdrop of Japan's constant beauty makes for a perfect frame for your pictures. Here is a detailed cherry blossom trail in Japan to help you out to plan your trip to Japan in the upcoming season.
Every year Fukuoka Castle Sakura Festival takes place in the Maizuru Park of Fukuoka. The park shines extra bright with thousands of cherry trees blooming in the spring season.
This park spreads across 30 hectares, is free to access and offers a surreal view of rows of cherry blossom on shading the walker's path.
We have all seen parks with green trees, but this place in Nara has 30,000 pale pink trees on a mountain and all you have to do is be there on time. This is a must-visit place during this season.
On the Japanese island of Honshu lies the 17th-century castle. This UNESCO World Heritage Site looks surreal with thousands of pink cherry blooming all around.
Kyoto has more than one location for witnessing the pretty setting of cherry blossoms. The famous canal in the Philosopher's Path glows a little extra with pale pink flowers on both its sides. Kyoto Botanical Garden is another attractive spot for the season.
With an old castle, white-flowered trees everywhere and birds chirping, Kenrokuen is a bliss during the blossom season. Spend a day wondering about this beautiful garden.
This historically enriched city gets into life during the month of April. Spend your day by the riverbank in the shade of pink blossoms or roam in Shiroyama-Koen Park to enjoy the beautiful sight of the season.
Head straight to Lake Kawaguchiko to get the most amazing view of Mount Fuji with the flowers. The stunning landscape is a sight to behold.
These parks in the capital city have some of the best views in Tokyo. These are all dressed up in pink ready to welcome you during this time of the season.
This castle park in Hirosaki has a 17th-century castle. With ancients walls hanging off the walls one cannot help but admire the beauty of cherry blossoms grown all over the place.
Think we missed out on something. Tell us about it in the comments below.
Get travel inspiration from us daily! Save our number and send a Whatsapp message on 9599147110 to begin!
| english |
<reponame>Xtuden-com/airwaves<filename>static/data/ocr/d208/204.json
{
"id": "d208-204",
"text": "De c eintoe r 21, 195 5\nMr. Paul Street\nNEA Centennial\nNational Education Association\n1201 Sixteenth Street, N. W.\nWashington 6, D. C,\nDear Mr. Street:\nI discussed your letter of November 21st with the netwol sub¬\ncommittee on program planning on December 3 and was author, tod to\nwrite the following observations.\nW© think that the goals arid general ideas of your Centenntl are\nexcellent and all of could think of many ways in which the p: nciples\ncould be used in radio programs. I believe that the network Dds a\npowerful, revealing series on American education past and pre&nt, and\nthis Centennial may provide the springboard for such a series. :r®\nfurther feel that if a top notch plan could be well developed,\nfunds might be secured for the production costs.\nWe are not close enough, however, to the Centennial and to the\nwhole problem of education’s story to be able to envision what the.\nseries would contain. So we are calling on you for further detail*,\nthat you say you can provide. Please do not spend too much time on\nthis, since we are merely exploring at this point. But some of yo:r\nideas about series content, advisory specialists, production cente’S,\nand even formats vrould be most helpful to us.\nWhat do you think; can you provide us with some additional information\nso I can approach the network or other people with a more firm proposal?\nI appreciate your letter and hope to hear from you again soon.\nSincerely,\nKDW • ss\n<NAME>\nChairman, Sub-Committee on\nRadio Program Planning"
} | json |
<gh_stars>10-100
import React from 'react';
import snap from 'jest-auto-snapshots';
import ReactTestUtils from 'react-dom/test-utils';
import IntegratingWithOtherTests from '../IntegratingWithOtherTests';
describe('IntegratingWithOtherTests', () => {
snap(IntegratingWithOtherTests, '../IntegratingWithOtherTests.jsx');
describe('When button is clicked', () => {
it('Should add a click', () => {
const onClick = jest.fn();
const wrapper = ReactTestUtils.renderIntoDocument(<IntegratingWithOtherTests label="label" onClick={onClick} />);
const button = ReactTestUtils.findRenderedDOMComponentWithTag(wrapper, 'button');
ReactTestUtils.Simulate.click(button);
expect(onClick).toHaveBeenCalled();
});
});
/* ... any other functional/state tests you need to cover */
});
| javascript |
- 2 hrs ago 50th GST Council Meet: Cancer Medicine Price May Be Reduced; How Can It Benefit Patients?
- News Who Is Sanjay Mishra, The ED Chief Known For Sending 15 Big Politicians To Jail?
- Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time!
Moong dal, aka green gram, is enriched with protein, vitamins and antioxidants that can do wondrous things for your skin and hair. That is why, since ages this kitchen staple ingredient has been a part of many people's beauty routine.
Presence of vitamins A and C as well as other beauty-enhancing antioxidants in moong dal enable it to treat a plethora of unsightly skin conditions such as acne, sun tan, etc. The similar features make moong dal an incredible ingredient for hair care purposes as well.
Despite of its multiple benefits, there are still many people who are not aware of the goodness of moong dal. That is why, in today's post we'll let you know about the beauty benefits of using moong dal.
Go ahead and pamper your skin and hair with this amazing component to raise your beauty quotient.
Take a look at its many benefits here:
Note: Do a patch test on your skin and scalp to make sure that this ingredient suits you.
Moong dal can be used for moisturizing the skin from inside out. Thereby, it is considered to be particularly effective in removing flakiness from the skin.
How To Use:
Mix ½ a teaspoon of moong dal powder with 1 teaspoon of olive oil. Put the combination all over your skin and leave it on for about 10 minutes before cleaning with tepid water. Use this combination on a biweekly basis for bidding adieu to flakiness.
Presence of antioxidants in moong dal enable it to clear up blocked pores. This, in turn, prevents acne breakouts.
How To Use:
Prepare a concoction of ½ a teaspoon of moong dal and 1 teaspoon of honey. Slather the resulting material on your skin and wash off after 5-10 minutes. Use this once a week to keep acne at bay.
Moong dal can also brighten up the skin tone. It contains certain compounds that can remove the toxins from your skin and make it look radiant at all times.
How To Use:
Combine 1 teaspoon of moong dal powder with 2 teaspoons of lemon juice. Apply the mix on your skin and allow it to stay there for about 10 minutes. Follow up by rinsing with lukewarm water. Make use of this mixture on a weekly basis to get great results.
Moong dal is known to possess moisturizing abilities that can effectively soften your skin's texture.
How To Use:
Mix 1 teaspoon of moong dal with your favourite lotion and apply it all over your skin to make it soft and supple. Try this method on a weekly basis to get the desired results.
This incredible kitchen ingredient can also treat your sun tanned skin and help restore your skin's original colour.
How To Use:
Create a blend of ½ a teaspoon of moong dal and 2 teaspoons of aloe vera gel. Smear the resulting material on your skin and let it stay there for 10 minutes. Wash off with tepid water. Indulge in this process to get rid of tanning from your skin.
High content of protein in moong dal enables it to stimulate hair growth and also strengthens its texture.
How To Use:
Combine ½ a teaspoon of moong dal with 2 teaspoons of amla juice and spread the resulting material on your scalp area. After keeping it on for about an hour, wash off with lukewarm water.
Certain compounds present in moong dal are considered to be effective in removing dirt and toxins from the scalp area.
How To Use:
Mix 1 teaspoon of moong dal with 1 teaspoon of rose water and ½ a teaspoon of oatmeal and put the resulting material on your scalp. Keep it there for an hour prior to washing it off with tepid water.
Replete with antibacterial agents, this natural ingredient can also help you tackle with the dandruff problem.
How To Use:
Blend ½ a teaspoon of moong dal powder with 2 teaspoons of neem juice. Spread the material all over your scalp and let it stay there for a good 20 minutes. Wash your head with tepid water and your favourite shampoo.
How To Use:
Simply combine ½ a teaspoon of each, moong dal and apple cider vinegar with 2 teaspoons of rose water. Put it all over the scalp area and leave it there for a good 30 minutes before cleansing with tepid water.
- skin careTips To Make Waxing Less Painful: Pointers For First-Timers! | english |
Veyyil movie is focused on Murugesan (Pasupathy) who is the son of a butcher. He has a younger brother Kadir (Bharat) who he plays pranks with and they share a very good rapport.
One day, Murugesan goes for a movie and smokes a beedi. His father comes to know about it. He begs his father to pardon him, much in vain. His friends tease him the next day at his plight.
Murugesan steals money from house, some jewelry and runs away from home. On the way he gets strayed away and loses his money. A person gives him job in cinema theatre. He work hard, makes a living. Here he falls in love with a girl Thangam.
Soon, the villagers come to know about this and Thangam's father attempts to murder him. Thangam slits her throat and ends her life. Soon, the theatre shuts down and life ends for Murugesan.
He cries like he lost everything. he remembers his father, mother and brother. The old man who gave the job tells him to go back to his home but Murugesan is unsure as he doesn't know whether his family will accept him after 20 long years.
As he goes back, he meets Kadir and tells him that he is his long lost brother and hugs him. Rest of the movie is about the things happen around Mugurgesan and Kadir. | english |
from django.apps import AppConfig
class PuzzleConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'puzzle'
| python |
The levels of air pollution rise with the start of the winter season. Due to the humidity in the air, the small dust particles and pollen grains enter our respiratory system and cause lung-related problems. But adding these few vitamins to your daily diet can prevent these lung-related issues as well as cell damages. Here are three vitamins that one must have in winter to prevent from breathlessness, irritation and other lungs related diseases.
Vitamin A is important for boosting immunity and also helps in the growth of cells in the body. Vitamin A is responsible for the development of many tissues and cells as well as for embryonic lung development. Vitamin A also plays an important role in the normal formation and maintenance of the heart, lungs, kidneys, and other organs. Vitamin A is a fat-soluble vitamin and hence is stored in the body for a long time. One can easily have the intake of Vitamin A by adding dairy products, fish, fortified cereals, carrots, broccoli, cantaloupe, and squash in their diet.
Vitamin D reduces the risk of chronic obstructive pulmonary disease (COPD) flare-ups. The efficiency of vitamin D can increase the risk of wheezing, bronchitis, asthma and other respiratory problems. One can easily get an adequate amount of it from sunlight. Including foods like tuna, salmon, sardines, oysters and egg yolks in the diet fulfils the need of Vitamin D in the body. | english |
<filename>src/spreadsheet/gui/SupportedFeaturesDialog.java
/*
* Spreadsheet by Madhawa
*/
package spreadsheet.gui;
import java.awt.Rectangle;
/**
*
* @author Madhawa
*/
public class SupportedFeaturesDialog extends javax.swing.JDialog {
/**
* Creates new form SupportedFeaturesDialog
*/
public SupportedFeaturesDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
//center
this.setLocationRelativeTo(null);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jTabbedPane2 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
jScrollPane2 = new javax.swing.JScrollPane();
txtEvaluatorFeatures = new javax.swing.JTextArea();
jPanel2 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
btnClose = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Supported Features");
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowOpened(java.awt.event.WindowEvent evt) {
formWindowOpened(evt);
}
});
txtEvaluatorFeatures.setEditable(false);
txtEvaluatorFeatures.setColumns(20);
txtEvaluatorFeatures.setRows(5);
txtEvaluatorFeatures.setText("List of Supported Features\n\n\nSupported DataTypes\n\tDecimal Numbers\n\tDateTime\n\tCurrency (Rs and $)\n\tBoolean (Logic)\n\tLabel (String)\n\t\n\tArrays (Via cell Ranges)\n\nSupported Operators\n\tAddition / Logical OR ( + )\n\tSubstraction ( - )\n\tMultiplication / Logical AND ( * )\n\tDivision ( / )\n\tPower / Logical XOR ( ^ )\n\t\n\tEquals ( = ) \n\tNot Equals ( <> ) \n\tLess Than ( < )\n\tLess Than or Equal ( <= )\n\tGreater Than ( > )\n\tGreater Than or Equal ( >= )\n\nSupported Functions (Formula)\n\tSum ( Cell Range)\n\tAvg ( Cell Range)\n\tAbs ( Expression or Cell Id) - Absolute Function\n\tIf ( condition, true_value, false_value)\n\tMax (Cell Range)\n\tMin (Cell Range)\n\n\t\n\t\n\t");
jScrollPane2.setViewportView(txtEvaluatorFeatures);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 489, Short.MAX_VALUE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)
.addContainerGap())
);
jTabbedPane2.addTab("Expression Evaluator Features", jPanel1);
jTextArea1.setEditable(false);
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jTextArea1.setText("List of Supported Features\n\nAsynchronous Cell Expression Evaluation through multiple threads\nCell Highlights - Highlight cells relavent to formula being typed in addressbar or cell\nCell Picking - ONLY AVAILABLE WHEN AN EXPRESSION IS CHANGED IN FORMULA BAR\n\tSelect cells or cell ranges to append them to the expression being modified in formula bar\nCopy - Paste - Copy Paste operations with Automatic Expression Correction\n\nInsert/Delete Rows and Columns with automatic expression correction\nMultiple Cell Formatings - General, Numbers, Percentage\nCustomize Cell Style - Change Bold, Italic, FontSize, Font Family\nAutomatic Text Alignment in Cell based on DataType\n\nOpen a file given through command line arguement\nMultithreaded Open, Save and Export to CSV Support");
jScrollPane1.setViewportView(jTextArea1);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 489, Short.MAX_VALUE)
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)
.addContainerGap())
);
jTabbedPane2.addTab("GUI Features", jPanel2);
btnClose.setText("Close");
btnClose.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCloseActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnClose, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
.addComponent(jTabbedPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 514, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 407, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(btnClose)
.addGap(7, 7, 7))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void btnCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCloseActionPerformed
this.dispose();
}//GEN-LAST:event_btnCloseActionPerformed
private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
txtEvaluatorFeatures.scrollRectToVisible(new Rectangle(0,0,0,0));
}//GEN-LAST:event_formWindowOpened
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton btnClose;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JTabbedPane jTabbedPane2;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextArea txtEvaluatorFeatures;
// End of variables declaration//GEN-END:variables
}
| java |
.example-modal {
display: block;
width: 100%;
padding: 35px 15px;
background-color: #f3f7f9;
}
.example-modal .modal {
position: relative;
top: auto;
right: auto;
bottom: auto;
left: auto;
z-index: 1;
display: block;
}
.example-modal .modal .modal-dialog {
width: auto;
max-width: 600px;
margin: 15px auto;
}
.example-modal-top .center {
top: 0;
-webkit-transform: translate(-50%, 0px);
-ms-transform: translate(-50%, 0px);
-o-transform: translate(-50%, 0px);
transform: translate(-50%, 0px);
}
.example-modal-bottom .center {
top: auto;
bottom: 0;
-webkit-transform: translate(-50%, 0px);
-ms-transform: translate(-50%, 0px);
-o-transform: translate(-50%, 0px);
transform: translate(-50%, 0px);
}
.example-modal-sidebar .center {
top: 0;
right: 5px;
left: auto;
-webkit-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
}
.example-buttons .modal-footer .btn {
margin-right: 0;
margin-bottom: 0;
}
.color-selector > li {
margin-right: 20px;
margin-bottom: 11px;
}
@media (max-width: 767px) {
#examplePositionSidebar .modal-sidebar {
min-width: 260px;
}
}
.example-fill-in.example-well {
position: relative;
background-color: #fff;
border: 1px solid #e4eaec;
}
.example-fill-in.example-well:after {
position: absolute;
top: 10px;
right: 10px;
content: "x";
}
| css |
With a new Itanium 2 server running Windows Server 2003, Unisys lays down another marker in its gamble on Intel-based systems running Microsoft software.
The server, its ES7000/560 model, which can accommodate up to 106 Intel processors, is unusual among Itanium 2 server designs in that it unites several architectures that large enterprises might otherwise use in separate servers. The maximum configuration comes with a single partition for 32 Xeon processors and two 16-processor partitions for Itanium 2 processors. Businesses also can add up to 42 blade servers.
The ES7000/560, with its official launch set for Thursday, follows by just a few weeks the release of the ES7000/500, which runs up to 32 Intel Xeon processors. It will make its debut the same day as Windows Server 2003, which will have its coming-out party at a San Francisco gala hosted by Microsoft CEO Steve Ballmer.
Intel sells the Itanium 2 processor for use in high-end systems and Xeons for midrange servers. The two chips run different software.
Mark Feverston, Unisys' vice president of platform marketing for enterprise servers, described the approach as "betting everything on Windows Server 2003."
The ES7000/560 uses what's referred to as CMP, or cellular multiprocessing, technology that allows business customers to partition the system so that several operating systems can run simultaneously. The feature could appeal to people consolidating several servers into one, where 32 processors might be assigned to a higher-importance level database application and 16 to running, say, a separate database application.
Prices start at $250,000. Unisys will begin selling the ES7000/500 on Thursday, but models with Windows Server 2003 Datacenter Edition won't ship until June.
One of the customers buying into the Unisys approach is New York-based JetBlue Airways, which started moving many of its critical back-end systems to ES7000 servers about six months ago. Budget-minded JetBlue, one of just a couple of profitable airlines, is big on standardization--it has settled on a single aircraft, the Airbus A320 (it has 41, with plans to add 12 more by the end of the year). CIO Jeff Cohen is bringing that approach to technology management as well, moving most operations to Microsoft software and consolidating on ES7000 servers.
The switch to Unisys servers is part of "a model where we were going to scale up rather than scaling out," Cohen said. JetBlue had been following a more clustered server approach, adding new systems as demand grew--one database application might spread from a single server to as many as 16 servers.
"From an administration perspective, that was pretty difficult," Cohen said. "If the application failed, it was difficult to tell where the problems were. So from a manageability perspective, it was more difficult; from an administrative perspective, it was more difficult; and in the end, from a scalability perspective, it was more difficult."
JetBlue started with a beta, or test, ES7000/560 server, later adding an ES7000/500. The airline plans to soon replace a Hewlett-Packard rx5670 Itanium server with another ES7000/560 for running its frequent-flyer program. All the servers run Windows Server 2003 Datacenter Edition--the 32-bit version on the 500 and the 64-bit version on the 560.Power enough to persuade?
"I wouldn't expect many customers to seriously consider moving to Windows Server 2003 much before 12 months after release," IDC analyst Al Gillen said. "Many customers will want to do their evaluation and testing first, and that could take some time for them to do."
In addition, Windows Server 2003 lacks the sophisticated kind of management tools commonly found on large-scale enterprise servers. Microsoft is revamping its system management software, but that process is expected to take three to five years.
To help fill the gap, Unisys released its Sentinel management software in March 2002. The company offers versions for server, application and database management. Unisys updated Server Sentinel last month.
Sentinel and similar management tools are often referred to as "autonomic" software, because they attempt to monitor and respond to changes on the server the same way the human nervous system does to stress. The software is designed to be self-healing, automatically repairing common problems such as memory leaks or software demanding too many resources. Sentinel can shut down a server in the event of hardware failure and restart with fewer processors or memory chips. It also sends to service personnel an alert about the problem and notifies Unisys technicians that a piece of hardware has failed.
A tool such as Sentinel is important, if Unisys hopes to woo customers concerned that Windows is not truly enterprise-ready.
"They aren't the only ones to develop these kind of tools," D.H. Brown analyst Rich Partridge said, "but what Unisys is offering is a consolidation vehicle that is fairly easily managed using them."
Good management features for Windows NT Server 4 customers could be important for companies considering a move to version 2003. Microsoft estimates that about 35 percent of Windows Server customers run 7-year-old version 4. Both Microsoft and Unisys executives have expressed their belief that this group will be the most likely to move quickly to Windows Server 2003.
Unisys, meanwhile, has to contend with the dominance of competitors such as IBM and HP. In terms of worldwide server shipments, the Blue Bell, Pa.-based company finds itself in the "other" category, ranking a lowly No. 21 in fourth-quarter 2002 market share, according to Gartner. But in server revenue, Unisys made a much stronger showing, capturing the No. 6 position.
All told, the server maker has sold about 1,000 ES7000 systems, which are in use in about 45 countries, according to Unisys. Seventy-five percent of systems are sold with 16 or more processors, and 18 percent replace Unix servers or mainframes. About 60 percent run Windows 2000 Datacenter Server, and 80 percent run Microsoft's SQL Server database. Around 40 percent of ES7000 servers go to new customers.
| english |
<filename>styles/style.css<gh_stars>0
*{
font-family: 'ROBOTO', 'san-serif'
}
.cnt{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
padding: 30px 0;
}
.title{
font-size: 25px;
}
.description{
font-size: 25px;
}
.table{
padding: 20px;
box-sizing: border-box;
width: 100%;
display: flex;
justify-content: center;
}
table{
width: 100%;
background-color: rgba(0,0,0,0.05);
table-layout: fixed;
}
table td{
border-top: 1px solid black !important;
}
td, th{
max-width: 33%;
border-right: 1px solid black;
}
td:last-child, th:last-child{
border-right: none;
}
.item_3 i{
color: grey;
margin-right: 20px;
transition: .3s;
padding: 10px;
}
.item_3 i:last-child{
margin: 0;
}
.item_3 i:hover{
color: black;
transition: .3s;
}
.table_add_3 i{
color: black;
opacity: 0.75;
background-color: tomato;
padding: 10px;
border-radius: 50%;
transition: .3s;
}
.table_add_3 i:hover{
opacity: 1;
transition: .3s;
}
.editing{
background-color: white;
}
.table-title, .item_3, .table_add_3{
text-align: center;
}
.item_3, .table_add_3{
background-color: #ccc;
}
@media screen and (max-width:580px){
.item_3{
justify-content: space-between;
}
.item_3 i{
margin-right: 0;
}
}
@media screen and (max-width: 461px){
.item_3{
display: flex;
flex-direction: column;
box-sizing: content-box;
}
} | css |
<gh_stars>0
#include <oslo/ipc_flatbuffers_lib/generated/flatbuffers/nanoapi_generated.h>
#include <oslo/lib/errors.hpp>
#include <oslo/lib/numbers.hpp>
#include <oslo/node/ipc/action_handler.hpp>
#include <oslo/node/ipc/ipc_server.hpp>
#include <oslo/node/node.hpp>
#include <iostream>
namespace
{
oslo::account parse_account (std::string const & account, bool & out_is_deprecated_format)
{
oslo::account result (0);
if (account.empty ())
{
throw oslo::error (oslo::error_common::bad_account_number);
}
if (result.decode_account (account))
{
throw oslo::error (oslo::error_common::bad_account_number);
}
else if (account[3] == '-' || account[4] == '-')
{
out_is_deprecated_format = true;
}
return result;
}
/** Returns the message as a Flatbuffers ObjectAPI type, managed by a unique_ptr */
template <typename T>
auto get_message (osloapi::Envelope const & envelope)
{
auto raw (envelope.message_as<T> ()->UnPack ());
return std::unique_ptr<typename T::NativeTableType> (raw);
}
}
/**
* Mapping from message type to handler function.
* @note This must be updated whenever a new message type is added to the Flatbuffers IDL.
*/
auto oslo::ipc::action_handler::handler_map () -> std::unordered_map<osloapi::Message, std::function<void(oslo::ipc::action_handler *, osloapi::Envelope const &)>, oslo::ipc::enum_hash>
{
static std::unordered_map<osloapi::Message, std::function<void(oslo::ipc::action_handler *, osloapi::Envelope const &)>, oslo::ipc::enum_hash> handlers;
if (handlers.empty ())
{
handlers.emplace (osloapi::Message::Message_IsAlive, &oslo::ipc::action_handler::on_is_alive);
handlers.emplace (osloapi::Message::Message_TopicConfirmation, &oslo::ipc::action_handler::on_topic_confirmation);
handlers.emplace (osloapi::Message::Message_AccountWeight, &oslo::ipc::action_handler::on_account_weight);
handlers.emplace (osloapi::Message::Message_ServiceRegister, &oslo::ipc::action_handler::on_service_register);
handlers.emplace (osloapi::Message::Message_ServiceStop, &oslo::ipc::action_handler::on_service_stop);
handlers.emplace (osloapi::Message::Message_TopicServiceStop, &oslo::ipc::action_handler::on_topic_service_stop);
}
return handlers;
}
oslo::ipc::action_handler::action_handler (oslo::node & node_a, oslo::ipc::ipc_server & server_a, std::weak_ptr<oslo::ipc::subscriber> const & subscriber_a, std::shared_ptr<flatbuffers::FlatBufferBuilder> const & builder_a) :
flatbuffer_producer (builder_a),
node (node_a),
ipc_server (server_a),
subscriber (subscriber_a)
{
}
void oslo::ipc::action_handler::on_topic_confirmation (osloapi::Envelope const & envelope_a)
{
auto confirmationTopic (get_message<osloapi::TopicConfirmation> (envelope_a));
ipc_server.get_broker ().subscribe (subscriber, std::move (confirmationTopic));
osloapi::EventAckT ack;
create_response (ack);
}
void oslo::ipc::action_handler::on_service_register (osloapi::Envelope const & envelope_a)
{
require_oneof (envelope_a, { oslo::ipc::access_permission::api_service_register, oslo::ipc::access_permission::service });
auto query (get_message<osloapi::ServiceRegister> (envelope_a));
ipc_server.get_broker ().service_register (query->service_name, this->subscriber);
osloapi::SuccessT success;
create_response (success);
}
void oslo::ipc::action_handler::on_service_stop (osloapi::Envelope const & envelope_a)
{
require_oneof (envelope_a, { oslo::ipc::access_permission::api_service_stop, oslo::ipc::access_permission::service });
auto query (get_message<osloapi::ServiceStop> (envelope_a));
if (query->service_name == "node")
{
ipc_server.node.stop ();
}
else
{
ipc_server.get_broker ().service_stop (query->service_name);
}
osloapi::SuccessT success;
create_response (success);
}
void oslo::ipc::action_handler::on_topic_service_stop (osloapi::Envelope const & envelope_a)
{
auto topic (get_message<osloapi::TopicServiceStop> (envelope_a));
ipc_server.get_broker ().subscribe (subscriber, std::move (topic));
osloapi::EventAckT ack;
create_response (ack);
}
void oslo::ipc::action_handler::on_account_weight (osloapi::Envelope const & envelope_a)
{
require_oneof (envelope_a, { oslo::ipc::access_permission::api_account_weight, oslo::ipc::access_permission::account_query });
bool is_deprecated_format{ false };
auto query (get_message<osloapi::AccountWeight> (envelope_a));
auto balance (node.weight (parse_account (query->account, is_deprecated_format)));
osloapi::AccountWeightResponseT response;
response.voting_weight = balance.str ();
create_response (response);
}
void oslo::ipc::action_handler::on_is_alive (osloapi::Envelope const & envelope)
{
osloapi::IsAliveT alive;
create_response (alive);
}
bool oslo::ipc::action_handler::has_access (osloapi::Envelope const & envelope_a, oslo::ipc::access_permission permission_a) const noexcept
{
// If credentials are missing in the envelope, the default user is used
std::string credentials;
if (envelope_a.credentials () != nullptr)
{
credentials = envelope_a.credentials ()->str ();
}
return ipc_server.get_access ().has_access (credentials, permission_a);
}
bool oslo::ipc::action_handler::has_access_to_all (osloapi::Envelope const & envelope_a, std::initializer_list<oslo::ipc::access_permission> permissions_a) const noexcept
{
// If credentials are missing in the envelope, the default user is used
std::string credentials;
if (envelope_a.credentials () != nullptr)
{
credentials = envelope_a.credentials ()->str ();
}
return ipc_server.get_access ().has_access_to_all (credentials, permissions_a);
}
bool oslo::ipc::action_handler::has_access_to_oneof (osloapi::Envelope const & envelope_a, std::initializer_list<oslo::ipc::access_permission> permissions_a) const noexcept
{
// If credentials are missing in the envelope, the default user is used
std::string credentials;
if (envelope_a.credentials () != nullptr)
{
credentials = envelope_a.credentials ()->str ();
}
return ipc_server.get_access ().has_access_to_oneof (credentials, permissions_a);
}
void oslo::ipc::action_handler::require (osloapi::Envelope const & envelope_a, oslo::ipc::access_permission permission_a) const
{
if (!has_access (envelope_a, permission_a))
{
throw oslo::error (oslo::error_common::access_denied);
}
}
void oslo::ipc::action_handler::require_all (osloapi::Envelope const & envelope_a, std::initializer_list<oslo::ipc::access_permission> permissions_a) const
{
if (!has_access_to_all (envelope_a, permissions_a))
{
throw oslo::error (oslo::error_common::access_denied);
}
}
void oslo::ipc::action_handler::require_oneof (osloapi::Envelope const & envelope_a, std::initializer_list<oslo::ipc::access_permission> permissions_a) const
{
if (!has_access_to_oneof (envelope_a, permissions_a))
{
throw oslo::error (oslo::error_common::access_denied);
}
}
| cpp |
package cz.znj.kvr.sw.exp.java.benchmark.compress;
import cz.znj.kvr.sw.exp.java.benchmark.compress.support.CompressBenchmarkSupport;
import lombok.extern.log4j.Log4j2;
import net.jpountz.lz4.LZ4BlockOutputStream;
import org.apache.commons.compress.compressors.lz4.BlockLZ4CompressorOutputStream;
import org.apache.commons.compress.compressors.lz4.FramedLZ4CompressorOutputStream;
import org.apache.commons.io.IOUtils;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Warmup;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.concurrent.TimeUnit;
@Fork(0)
@Warmup(iterations = 1)
@Measurement(iterations = 2, time = 10)
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
@Log4j2
public class Lz4Benchmark
{
public static final int NUM_THREADS = 2;
public static final int TEST_SIZE = 10_000_000;
private static final byte[] sequence = CompressBenchmarkSupport.generateInput(TEST_SIZE);
@Benchmark
public void benchmarkLz4JavaSingle() throws IOException
{
try (
ByteArrayOutputStream captureStream = new ByteArrayOutputStream();
OutputStream compressStream = new LZ4BlockOutputStream(captureStream)
) {
IOUtils.write(sequence, compressStream);
}
}
@Benchmark
public void benchmarkLz4JavaMulti() throws IOException
{
CompressBenchmarkSupport.runParallel(NUM_THREADS, (Integer id) -> {
try (
ByteArrayOutputStream captureStream = new ByteArrayOutputStream();
OutputStream compressStream = new LZ4BlockOutputStream(captureStream)
) {
IOUtils.write(sequence, compressStream);
}
catch (IOException e) {
throw new RuntimeException(e);
}
});
}
@Benchmark
public void benchmarkLz4CommonsBlockSingle() throws IOException
{
try (
ByteArrayOutputStream captureStream = new ByteArrayOutputStream();
OutputStream compressStream = new BlockLZ4CompressorOutputStream(captureStream)
) {
IOUtils.write(sequence, compressStream);
}
}
@Benchmark
public void benchmarkLz4CommonsBlockMulti() throws IOException
{
CompressBenchmarkSupport.runParallel(NUM_THREADS, (Integer id) -> {
try (
ByteArrayOutputStream captureStream = new ByteArrayOutputStream();
OutputStream compressStream = new BlockLZ4CompressorOutputStream(captureStream)
) {
IOUtils.write(sequence, compressStream);
}
catch (IOException e) {
throw new RuntimeException(e);
}
});
}
@Benchmark
public void benchmarkLz4CommonsFramedSingle() throws IOException
{
try (
ByteArrayOutputStream captureStream = new ByteArrayOutputStream();
OutputStream compressStream = new FramedLZ4CompressorOutputStream(captureStream)
) {
IOUtils.write(sequence, compressStream);
}
}
@Benchmark
public void benchmarkLz4CommonsFramedMulti() throws IOException
{
CompressBenchmarkSupport.runParallel(NUM_THREADS, (Integer id) -> {
try (
ByteArrayOutputStream captureStream = new ByteArrayOutputStream();
OutputStream compressStream = new FramedLZ4CompressorOutputStream(captureStream)
) {
IOUtils.write(sequence, compressStream);
}
catch (IOException e) {
throw new RuntimeException(e);
}
});
}
}
| java |
<filename>docs/ch04-06-poetry.md<gh_stars>100-1000
# poetry
`poetry` は `pipenv`と同様の課題を解決するために作られたサードパーティ製のパッケージ管理ツールです。
!!! note "poetry 公式サイト"
[https://python-poetry.org/](https://python-poetry.org/)
poetry を使った場合の仮想環境の作成からパッケージのインストールまでの手順は下記のとおりです。
| 操作 | コマンド |
|--------------------------|-------------------------|
| 仮想環境の作成 | なし(暗黙的に作られる)|
| 仮想環境を有効にする | `poetry shell` |
| 仮想環境を無効にする | `exit` |
| パッケージのインストール | `poetry add [name]` |
## インストール
`poetry` のインストールは下記のようにします。
=== "macOS"
```shell
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
```
=== "Windows"
PowerShell 上で下記を実行します。
```shell
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python3
```
## 使い方
まず作業ディレクトリを用意します。
```shell
$ mkdir sandbox
```
次に poetry の設定ファイルを生成するコマンドを実行します。
```shell
$ poetry init -n
```
コマンドを実行すると `pyproject.toml` というファイルが作成されます。
次に `pipenv` のときと同様に `requests` をインストールしてみます。
```shell
$ poetry add requests
```
`pipenv` の使い方で使用したソースコードを実行するには下記のようにします。
```shell
$ poetry shell
(.venv) $ python main.py
```
上記の 2 行のコマンドは次のように 1 行で実行することもできます。
```shell
$ poetry run python main.py
```
## pyproject.toml と poetry.lock
`pyproject.toml` は poetry の設定ファイルです。`pipenv` でいうところの `Pipfile` と同じ位置づけのファイルになります。
**pyproject.toml**
```toml
[tool.poetry]
name = "sandbox"
version = "0.1.0"
description = ""
authors = ["..."]
[tool.poetry.dependencies]
python = "^3.6"
requests = "^2.24.0"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
```
`poetry.lock` はインストールしたパッケージのバージョンを保存しているファイルです。`pipenv` でいうところの `Pipfile.lock` と同じ位置づけのファイルになります。
`pipenv` の場合 `Pipfile` や `Pipfile.lock` の内容をもとにパッケージをインストールするには下記のようにコマンドを使い分ける必要がありました。
| 使用ファイル | コマンド |
|----------------|------------------|
| `Pipfile` | `pipenv install` |
| `Pipfile.lock` | `pipenv sync` |
`poetry` にも同等の機能があるのですが `pyproject.toml` の内容をもとにパッケージをインストールする場合も `poetry.lock` の内容をもとにパッケージをインストールする場合もコマンドは同じです。
```shell
$ poetry install
```
`pyproject.toml` と `poetry.lock` の両方がある場合は `poetry.lock` の内容が優先されるという仕組みになっています。
## pipenv との違い
詳細は割愛しますが `poetry` の方が `pipenv` よりも機能が豊富です。また `pyproject.toml` は `poetry` 専用の設定ファイルではなく Python が公式に策定したパッケージ管理用の設定ファイルになっているため、他のパッケージ管理ツールの設定ファイルとしても使われます。`pip` も新しいバージョンでは `pyproject.toml` を使用することができるようになっています。
| markdown |
It was a thrilling experience. Yes it was, my first ever paragliding experience and that too over the beautiful and heavenly mountains of Himalayas.
Paragliding is the closest humans can get to the feeling of flying like a bird and actually flying with the birds.
Paragliding has become the most popular way to fly. If you love some adventure and adrenaline rush, paragliding is for you and this experience shouldn't be missed.
I am lucky enough to have experienced it in the amazing view of Manali. It was one of the best adventures of my life. It was so thrilling and exciting that I didn't realized that how those 15 minutes were gone.
Vastness of the open blue sky, freedom of my own spirit and love for nature is what made me experience this exciting flight.
When you fly high in the sky, you actually feel a part of this nature, a part of mother earth. Take some time for yourself from your monotonous routine and experience the magic of flying. Paragliding is for you.
Happy Flying!!!!!!
| english |
{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"dispatch":true,"useEffectsErrorHandler":true}},{"symbol":{"__symbol":2,"members":[]},"metadata":"__@ngrx/effects_create__"},{"symbol":{"__symbol":3,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":5,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbolic":"interface"}}],"symbols":[{"__symbol":0,"name":"EffectConfig","filePath":"./models"},{"__symbol":1,"name":"DEFAULT_EFFECT_CONFIG","filePath":"./models"},{"__symbol":2,"name":"CREATE_EFFECT_METADATA_KEY","filePath":"./models"},{"__symbol":3,"name":"CreateEffectMetadata","filePath":"./models"},{"__symbol":4,"name":"EffectPropertyKey","filePath":"./models"},{"__symbol":5,"name":"EffectMetadata","filePath":"./models"},{"__symbol":6,"name":"EffectsMetadata","filePath":"./models"}]} | json |
'Tis the season! says Google in Tuesday's doodle that celebrates the start of the Christmas holiday season. Doodles during the Christmas period have become a tradition for the search giant, and it is expected to display a new doodle everyday till after the main holiday.
Google's Christmas doodle on Tuesday features a reindeer-driven sleigh with three child passengers and an adult driver. The Google logo is arrayed in a banner on top of the doodle. On rolling over the doodle with the mouse, the message 'Tis the season! is displayed.
On clicking on Tuesday's doodle, users are directed to a search results page for 'Tis the season!, which features a disambiguation Wikipedia entry for the phrase at the forefront. Also seen is an album widget on the right side, featuring a Wikipedia description of the 'Tis the season! album of Christmas songs by Olivia Newton-John and Vince Gill, as well as links for all 12 songs that open lyrics and YouTube video results on a dedicated page.
As with previous years, Google has specifically avoided references to Christmas with its 'Tis the season! doodle on Tuesday, taking a more politically correct approach to the holiday season and instead wishing users 'Happy Holidays' to spread cheer to those regions or users not celebrating Christmas.
The Google doodle archive page lists Tuesday's 'Tis the season! doodle as Holidays 2014 (Day 1), and it is visible across the world excepting Russia, Eastern Europe, northern Africa, and Indonesia. The last time Google posted a doodle on December 23 was back in 2010, once again wishing users Happy Holidays instead of Merry Christmas.
For more Google doodles, visit this page.
| english |
package monitor
import (
"os/exec"
"runtime"
"strconv"
"strings"
"gotorch/task"
)
func getCpuStat() string {
cmd := exec.Command("/usr/bin/uptime")
res, _ := cmd.Output()
segments := strings.Split(string(res), " ")
return "system cpu load: " + segments[10]
}
func getMemStat() string {
var memStat string
if runtime.GOOS == "darwin" {
memStat = "memory:execute 'free' yourself!"
} else {
cmd := exec.Command("/usr/bin/free -m")
res, _ := cmd.Output()
memStat = string(res)
}
return memStat
}
func getTaskStat() string {
return "Total task count:" + strconv.Itoa(len(task.TaskList)) + ", running task count:" + strconv.Itoa(task.WorkingCount)
}
| go |
Enactment of skits by children on ‘Understanding war through theatre’ will be held on Mar. 9 from 5. 30 pm at Chamundi Children’s Home, Brindavan Extension 2nd Stage, Mysuru. Participating children will attempt to understand war by dramatising 1) “Foreheads of men have bled where no wounds were” (a line from Wilfred Owen’s War Poem “Strange Meeting”) and 2) “A Tale of Two Countries’ War Victims. ” The event is directed by Dr. R. Purnima, formerly Professor of English, KSOU and presently, Director, Children’s Literary Club, Mysuru. | english |
[{
"resource": "resource",
"limitApp": "default",
"count": 0.8,
"grade": 1,
"timeWindow": 20,
"statIntervalMs": 1000,
"minRequestAmount": 5
}]
| json |
hmm. who to listen to? Bill Gates - "The digital demagogue [who] earned billions by anticipating the market's needs"or- or Prof. Wittkowski - 20 yrs head of Rockefeller Univ.'s Dept.
@McGillGenome @INSPQ have thus far sequenced genomes of 734 Québec residents infected w/ #COVID19 to unravel the genomic epidemiology of the infection (sources of introduction) in QuébecVideo of automated sequencing:
| english |
<gh_stars>0
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ibeeproject;
import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
import ibeeproject.model.cajon.Cajon;
import ibeeproject.persistencia.GestorCajon;
import java.util.ArrayList;
import javax.faces.FacesException;
import javax.faces.component.UIParameter;
/**
* <p>Fragment bean that corresponds to a similarly named JSP page
* fragment. This class contains component definitions (and initialization
* code) for all components that you have defined on this fragment, as well as
* lifecycle methods and event handlers where you may add behavior
* to respond to incoming events.</p>
*
* @version consultarCajones.java
* @version Created on 26-ago-2009, 18:40:06
* @author farias.facundo
*/
public class consultarCajones extends AbstractFragmentBean {
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
private String campoBusq;
private ArrayList cajones = new ArrayList();
// private GestorCajon gestor = new GestorCajon();
private UIParameter parametro;
/**
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced.</p>
*/
private void _init() throws Exception {
}
// </editor-fold>
public consultarCajones() {
}
/**
* <p>Callback method that is called whenever a page containing
* this page fragment is navigated to, either directly via a URL,
* or indirectly via page navigation. Override this method to acquire
* resources that will be needed for event handlers and lifecycle methods.</p>
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void init() {
// Perform initializations inherited from our superclass
super.init();
// Perform application initialization that must complete
// *before* managed components are initialized
// TODO - add your own initialiation code here
// <editor-fold defaultstate="collapsed" desc="Visual-Web-managed Component Initialization">
// Initialize automatically managed components
// *Note* - this logic should NOT be modified
try {
_init();
} catch (Exception e) {
log("Page1 Initialization Failure", e);
throw e instanceof FacesException ? (FacesException) e : new FacesException(e);
}
// </editor-fold>
// Perform application initialization that must complete
// *after* managed components are initialized
// TODO - add your own initialization code here
this.updateTable();
this.setCabecera();
}
/**
* <p>Callback method that is called after rendering is completed for
* this request, if <code>init()</code> was called. Override this
* method to release resources acquired in the <code>init()</code>
* resources that will be needed for event handlers and lifecycle methods.</p>
*
* <p>The default implementation does nothing.</p>
*/
@Override
public void destroy() {
}
public String add_action() {
setCabecera("Home » Cajones » Agregar");
Cajones c = (Cajones) getBean("Cajones");
c.setAgregar(true);
agregarCajon agregar = (agregarCajon) getBean("agregarCajon");
agregar.setCajon(new Cajon());
return null;
}
public String modif_action() {
setCabecera("Home » Cajones » Modificar");
Cajones c = (Cajones) getBean("Cajones");
c.setModificar(true);
Cajon cajon = (Cajon) this.parametro.getValue();
modificarCajon modificar = (modificarCajon) getBean("modificarCajon");
modificar.setCajon(cajon);
return null;
}
public String delete_action() {
setCabecera("Home » Cajones » Eliminar");
Cajones c = (Cajones) getBean("Cajones");
c.setEliminar(true);
Cajon cajon = (Cajon) this.parametro.getValue();
eliminarCajon eliminar = (eliminarCajon) getBean("eliminarCajon");
eliminar.setCajon(cajon);
return null;
}
public String query_action() {
setCabecera("Home » Cajones » Consultar");
Cajones c = (Cajones) getBean("Cajones");
c.setConsultar(true);
Cajon cajon = (Cajon) this.parametro.getValue();
consultarCajon consultar = (consultarCajon) getBean("consultarCajon");
consultar.setCajon(cajon);
return null;
}
public String queryAll_action() {
setCabecera();
Cajones c = (Cajones) getBean("Cajones");
c.setConsultarAll(true);
return null;
}
/**
* @return the cajones
*/
public ArrayList getCajones() {
return cajones;
}
/**
* @param cajones the cajones to set
*/
public void setCajones(ArrayList cajones) {
this.cajones = cajones;
}
public void updateTable() {
this.getCajones().clear();
GestorCajon gestor = new GestorCajon();
setCajones(gestor.getTodos());
}
// /**
// * @return the gestor
// */
// public GestorCajon getGestor() {
// return gestor;
// }
//
// /**
// * @param gestor the gestor to set
// */
// public void setGestor(GestorCajon gestor) {
// this.gestor = gestor;
// }
public void setCabecera(String ruta) {
cabecera ca = (cabecera) getBean("cabecera");
ca.setPath(ruta);
}
public void setCabecera() {
cabecera ca = (cabecera) getBean("cabecera");
ca.setPath("Home » Cajones");
}
/**
* @return the campoBusq
*/
public String getCampoBusq() {
return campoBusq;
}
/**
* @param campoBusq the campoBusq to set
*/
public void setCampoBusq(String campoBusq) {
this.campoBusq = campoBusq;
}
/**
* @return the parametro
*/
public UIParameter getParametro() {
return parametro;
}
/**
* @param parametro the parametro to set
*/
public void setParametro(UIParameter parametro) {
this.parametro = parametro;
}
}
| java |
{
"name": "salp-course-heartbleed",
"version": "1.0.0",
"description": "Heartbleed is one of the most severe bug in the last 10 Years. It affected most servers on the internet and allow reading their memory",
"author": "<NAME>",
"keywords": [
"salp",
"course",
"Heartbleed",
"OpenSSL",
"Heartbeat",
"TLS/SSL",
"Metasploit"
],
"license": "SEE LICENSE FILE",
"main": "dist/content.js",
"browser": "dist/content.js",
"files": [
"dist/"
],
"scripts": {
"build": "course",
"prepublish": "npm run build",
"clean": "rm -rf dist/"
},
"devDependencies": {
"@salp/course-bundler": "^1.0.0"
}
}
| json |
<reponame>Kraussie/WallyWorld<gh_stars>1-10
version https://git-lfs.github.com/spec/v1
oid sha256:f02e08a1c0882fc6da8667c0a7324df870bd3b74ff11a696fdf83c235d5e9889
size 29980
| json |
<reponame>ankit-kejriwal/bootstrap-portfolio
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="" />
<meta name="author" content="" />
<title>Ankit Kejriwal Portfolio</title>
<!-- Custom fonts for this theme -->
<link
href="vendor/fontawesome-free/css/all.css"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Montserrat:400,700"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic"
rel="stylesheet"
type="text/css"
/>
<!-- Theme CSS -->
<link href="css/freelancer.css" rel="stylesheet" />
</head>
<!-- Google Analytics Tracking code -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-151393146-1"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-151393146-1");
</script>
<body id="page-top">
<!-- Navigation -->
<nav
class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top"
id="mainNav"
>
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top"
><NAME></a
>
<button
class="navbar-toggler navbar-toggler-right text-uppercase font-weight-bold bg-primary text-white rounded"
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 mx-0 mx-lg-1">
<a
class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="#aboutme"
>ABOUT ME</a
>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a
class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="#projects"
>PROJECTS</a
>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a
class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="#experience"
>EXPERIENCE</a
>
</li>
<li class="nav-item mx-0 mx-lg-1">
<a
class="nav-link py-3 px-0 px-lg-3 rounded js-scroll-trigger"
href="#contact"
>CONTACT</a
>
</li>
</ul>
</div>
</div>
</nav>
<!-- Masthead -->
<header class="masthead bg-primary text-white text-center">
<div class="container d-flex align-items-center flex-column">
<!-- Masthead Avatar Image -->
<img
class="masthead-avatar mb-5"
src="img/portfolio_image.jpg"
alt=""
/>
<!-- Masthead Heading -->
<h1 class="masthead-subheading text-uppercase mb-0">
An energetic and imaginative young developer who is passionate to give
life to cool ideas.
</h1>
<!-- Icon Divider -->
<div class="divider-custom divider-light">
<div class="divider-custom-line"></div>
<div class="divider-custom-icon">
<i class="fas fa-star"></i>
</div>
<div class="divider-custom-line"></div>
</div>
<!-- Masthead Subheading -->
<p class="masthead-subheading font-weight-light mb-0">
Full Stack Developer
</p>
</div>
</header>
<!-- projects Section -->
<section class="page-section mb-0" id="aboutme">
<div class="container">
<!-- About Section Heading -->
<h2 class="page-section-heading text-center text-uppercase">
ABOUT ME
</h2>
<!-- Icon Divider -->
<div class="divider-custom divider-light">
<div class="divider-custom-line"></div>
<div class="divider-custom-icon">
<i class="fas fa-star"></i>
</div>
<div class="divider-custom-line"></div>
</div>
<!-- About Section Content -->
<div class="row text-center">
<div class="col-lg-4 ml-auto">
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-star fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading">Areas Of Expertise</h4>
<p class="text-muted">Web Development, Data Science</p>
</div>
<div class="col-lg-4 mr-auto">
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-laptop fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading">Programming Skills</h4>
<p class="text-muted">
C, Java, C++, JavaScript, TypeScript ,
SQL, Python, Flask, Spark,
Bootstrap, MongoDB, Angular, NodeJs,
jQuery, React, Git, HTML5, CSS3,
MySQL, AJAX,
</p>
</div>
<div class="col-lg-4 mr-auto">
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x text-primary"></i>
<i class="fa fa-cogs fa-stack-1x fa-inverse"></i>
</span>
<h4 class="service-heading">Software/Tools</h4>
<p class="text-muted">
MS Visual Studio, MS Office, Android Studio, SQL
Server, MATLAB, Photoshop.
</p>
</div>
</div>
</div>
</section>
<!-- Portfolio Section -->
<section class="page-section portfolio" id="projects">
<div class="container">
<!-- Portfolio Section Heading -->
<h2
class="page-section-heading text-center text-uppercase text-secondary mb-5"
>
PROJECTS
</h2>
<!-- Portfolio Grid Items -->
<div class="row">
<!-- Portfolio Github Finder Item 1 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal7"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img
class="img-fluid"
src="img/portfolio/Github-finder.png"
alt=""
/>
</div>
<div class="portfolio-caption text-center">
<h5>Github Finder</h5>
<p class="text-muted">Web App on React</p>
</div>
</div>
<!-- Portfolio BRICKGAME Item 1 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal3"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img
class="img-fluid"
src="img/portfolio/game_image.png"
alt=""
/>
</div>
<div class="portfolio-caption text-center">
<h5>Brick Breaker Game</h5>
<p class="text-muted">Game</p>
</div>
</div>
<!-- Portfolio COLLEGE WEBSITE Item 2 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal1"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img
class="img-fluid"
src="img/portfolio/technoholix1.png"
alt=""
/>
</div>
<div class="portfolio-caption text-center">
<h5>Technoholix</h5>
<p class="text-muted">CSE Department Club Site</p>
</div>
</div>
<!-- Portfolio Contact Keeper Item 2 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal8"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img
class="img-fluid"
src="img/portfolio/Contact_Keeper.png"
alt=""
/>
</div>
<div class="portfolio-caption text-center">
<h5><NAME></h5>
<p class="text-muted">MERN based web app</p>
</div>
</div>
<!-- Portfolio CAPTCHA Item 3 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal2"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img class="img-fluid" src="img/portfolio/CAPTCHA.png" alt="" />
</div>
<div class="portfolio-caption text-center">
<h5>CAPTCHA As Graphical Password</h5>
<p class="text-muted">Web App</p>
</div>
</div>
<!-- Portfolio D3 Item 4 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal4"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img
class="img-fluid"
src="img/portfolio/D3-force-layout.png"
alt=""
/>
</div>
<div class="portfolio-caption text-center">
<h5>D3 Force-Directed Graph</h5>
<p class="text-muted">Visualization</p>
</div>
</div>
<!-- Portfolio CLICK GAME Item 5 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal5"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img
class="img-fluid"
src="img/portfolio/click_game.png"
alt=""
/>
</div>
<div class="portfolio-caption text-center">
<h5>Click Maze</h5>
<p class="text-muted">Game</p>
</div>
</div>
<!-- Portfolio Aquarium Item 6 -->
<div class="col-md-6 col-lg-4">
<div
class="portfolio-item mx-auto"
data-toggle="modal"
data-target="#portfolioModal6"
>
<div
class="portfolio-item-caption d-flex align-items-center justify-content-center h-100 w-100"
>
<div
class="portfolio-item-caption-content text-center text-white"
>
<i class="fas fa-plus fa-3x"></i>
</div>
</div>
<img class="img-fluid" src="img/portfolio/Aquarium.png" alt="" />
</div>
<div class="portfolio-caption text-center">
<h5>Aquarium</h5>
<p class="text-muted">Computer Graphics Project</p>
</div>
</div>
</div>
<!-- /.row -->
</div>
</section>
<!-- Experience Section-->
<section id="experience">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="page-section-heading mb-5">Experience</h2>
<h3 class="section-subheading text-muted"></h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<ul class="timeline">
<li>
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/bit.jpg"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Computer Science</h5>
<h5 class="subheading">
Bangalore Institute Of Technology
</h5>
<h5 class="subheading">2011-2015</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
I graduated from BIT-Bangalore, Computer Science &
Engineering Department in July 2015 with Distinction.
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/technoholix.jpg"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Co-Founder</h5>
<h5 class="subheading">Technoholix Club</h5>
<h5 class="subheading">
March 2014 - June 2015 | Bangalore
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Technoholix is the official club of the department of CSE
of BIT. I'm responsible for managing the events, workshops
and developing the club website and part of core committee
in making decision for the welfare of the club.
</p>
</div>
</div>
</li>
<li>
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/mu-sigma.jpeg"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Software Developer Intern</h5>
<h5 class="subheading">Mu Sigma</h5>
<h5 class="subheading">June 2015 | Bangalore</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Integrated Web analytics platform (Piwik) for their
inhouse application AoPS
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/mu-sigma.jpeg"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Software Developer</h5>
<h5 class="subheading">Mu Sigma</h5>
<h5 class="subheading">
August 2015 - November 2017 | Bangalore
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Developed new tool muDSC for their application AoPS from
the scratch. Also develped user and group management for
the application.
</p>
</div>
</div>
</li>
<li>
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/CT.png"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Member Of Technical Staff</h5>
<h5 class="subheading">ColorTokens</h5>
<h5 class="subheading">
November 2017 - July 2019 | Bangalore
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Taken ownership of automating the report generation
process. User can request for a report and once the report
generation is complete, report will be mailed to the user.
<strong>Upgraded</strong> their web applicaion to latest
verison which improve the performance by three fold. Also
developed a Visualization dashboard using
<strong>D3</strong>, that monitors all the user Activity
inside the network
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/unc-charlotte-squarelogo.png"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Computer Science</h5>
<h5 class="subheading">
University of North Carolina at Charlotte
</h5>
<h5 class="subheading">
August 2019 - Present | Charlotte
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Data Mining | ML | Web Development | Database Systems
</p>
</div>
</div>
</li>
<li>
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/unc-charlotte-squarelogo.png"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Research Assistant</h5>
<h5 class="subheading">
University of North Carolina at Charlotte
</h5>
<h5 class="subheading">
January 2020 - Present | Charlotte
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Working on a research project which involves designing and
implementing an architecture for microservice
communication using the Flask framework. All requests from
clients go through the API Gateway which then dynamically
routes requests to the appropriate microservices.
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/unc-charlotte-squarelogo.png"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Teaching Assistant</h5>
<h5 class="subheading">
University of North Carolina at Charlotte
</h5>
<h5 class="subheading">
January 2020 - May-2020 | Charlotte
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Teaching Assistant for the course ITSC 3181 and ITSC 3181L
- Introduction to the fundamentals of computer
architectures and their programmability.
</p>
</div>
</div>
</li>
<li>
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/BJs-Wholesale-Club.png"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Software Engineer Intern</h5>
<h5 class="subheading">BJ's Wholesale Club</h5>
<h5 class="subheading">
June 2020 - August 2020 | Westborough
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Building a new web application that will enable some key
functionalities for BJs Membership system and Membership
Promotion Configuration/Management system.
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/unc-charlotte-squarelogo.png"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Teaching Assistant</h5>
<h5 class="subheading">
University of North Carolina at Charlotte
</h5>
<h5 class="subheading">
September 2020 - December 2020 | Charlotte
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Teaching Assistant for the course ITSC 3181 and ITSC 3181L
- Introduction to the fundamentals of computer
architectures and their programmability.
</p>
</div>
</div>
</li>
<li>
<div class="timeline-image">
<img
class="img-circle img-responsive"
src="img/about/IBM.jpeg"
alt=""
/>
</div>
<div class="timeline-panel">
<div class="timeline-heading">
<h5 class="subheading_red">Software Engineer Intern</h5>
<h5 class="subheading">IBM</h5>
<h5 class="subheading">
January 2021 - May 2021 | San Jose
</h5>
</div>
<div class="timeline-body">
<p class="text-muted">
Developed features on Cloud Pak for Data (previously known
as IBM Cloud Pak for Data or ICP4D), an open and
extensible platform, that lets clients run IBM’s Data and
AI services (Watson Studio) anywhere they want.
</p>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-image">
<h4 class="subheading_red">
Its just <br />the <br />beginning!
</h4>
</div>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="page-section contact-page" id="contact">
<div class="container">
<!-- Contact Section Heading -->
<h3 class="text-center text-uppercase text-secondary mb-0">
LET'S GET IN TOUCH
</h3>
</div>
</section>
<!-- Footer -->
<footer class="footer text-center">
<div class="container">
<h6 class="mb-2 text-secondary">
<i class="fa fa-envelope"> <EMAIL></i>
</h6>
<a
class="btn btn-outline-light btn-social mx-1"
href="https://www.linkedin.com/in/ankit-kejriwal-241238a7"
target="_blank"
>
<i class="fab fa-fw fa-linkedin-in"></i>
</a>
<a
class="btn btn-outline-light btn-social mx-1"
href="https://www.facebook.com/ankitkejriwaal"
target="_blank"
>
<i class="fab fa-fw fa-facebook-f"></i>
</a>
<a
class="btn btn-outline-light btn-social mx-1"
href="https://github.com/ankit-kejriwal"
target="_blank"
>
<i class="fab fa-fw fa-github"></i>
</a>
</div>
</footer>
<!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) -->
<div class="scroll-to-top d-lg-none position-fixed">
<a
class="js-scroll-trigger d-block text-center text-white rounded"
href="#page-top"
>
<i class="fa fa-chevron-up"></i>
</a>
</div>
<!-- Portfolio Modals -->
<!-- Portfolio Modal 1 -->
<div
class="portfolio-modal modal fade"
id="portfolioModal1"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal1Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
TECHNOHOLIX
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/technoholix1.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-2">
The project was to design & develop and maintain our
Computer Science & Engg club website which can be used by
club members to access various resources and materials and
keep updated with various events and workshops which are
conducted by the club.
</p>
<ul class="list-inline">
<li>Date: Apr 2014 - May 2014</li>
<li>Type: College/Personel</li>
<li>Category: Web</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 2 -->
<div
class="portfolio-modal modal fade"
id="portfolioModal2"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal2Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
CAPTCHA As Graphical Password
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/CAPTCHA.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
The aim of this project was to address the number of
security problems altogether such as online guessing
attacks, relay attacks and shoulder surfing attacks. The
technique incorporates a Graphical Password system
integrating Captcha technology called CaRP(Captcha as
gRaphical Password).
</p>
<ul class="list-inline">
<li>Date: Jan 2015 - June 2015</li>
<li>Type: College</li>
<li>Category: Application</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 3 -->
<div
class="portfolio-modal modal fade"
id="portfolioModal3"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal3Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
Brick Breaker Game
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/game_image.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
Brick Breaker is a Breakout clone in which the player must
smash a wall of bricks by deflecting a bouncing ball with a
paddle. The paddle move horizontally and is controlled with
the keyboard and the computer's mouse. The player gets 3
lives to start with; a life is lost if the ball hits the
bottom of the screen.
</p>
<ul class="list-inline">
<li>Date: June 2107</li>
<li>Type: Personel</li>
<li>Category: Web</li>
<li>
<a
href="https://ankit-kejriwal.github.io/Game/"
target="_blank"
>Click to play</a
>
</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 4 -->
<div
class="portfolio-modal modal fade"
id="portfolioModal4"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal4Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
D3 Force-Directed Graph
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/d3-force-layout.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
The purpose of the project is to create a visualization of
the GOT characters based on there influence.
</p>
<ul class="list-inline">
<li>Date: Jan 2019</li>
<li>Type: Personel</li>
<li>Category: Web</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 5 -->
<div
class="portfolio-modal modal fade"
id="portfolioModal5"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal5Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
Click Maze
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/click_game.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
This is a fun game where user has to click on the green box
in the maze. With time the difficulty level will increase
and the maze will become more complex
</p>
<ul class="list-inline">
<li>Date: Aug 2018</li>
<li>Type: Personel</li>
<li>Category: Web</li>
<li>
<a
href="https://ankit-kejriwal.github.io/click-game/oop-game.html"
target="_blank"
>Click to play</a
>
</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 6 -->
<div
class="portfolio-modal modal fade"
id="portfolioModal6"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal6Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
Aquarium
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/Aquarium.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
The aim of the project is to demonstrate a simple
illustration of how a Aquarium looks like, with option of
providing foods, assembling the fishes as well as the poison
food to decrease the population of fish inside.
</p>
<ul class="list-inline">
<li>Date: May 2013 - Aug 2013</li>
<li>Type: College</li>
<li>Category: Application</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 7 Github Finder -->
<div
class="portfolio-modal modal fade"
id="portfolioModal7"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal3Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
Github Finder
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/Github-finder.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
Github Finder is a react based app to search Github
profiles. Here you can search by Github username and it
retrieves Github user profile with the latest repository and
other public information, for the input username.
</p>
<ul class="list-inline">
<li>Date: Mar 2020</li>
<li>Type: Personel</li>
<li>Category: Web</li>
<li>
<a
href="https://ankit-github-finder.netlify.app/"
target="_blank"
>Click to visit</a
>
</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio Modal 8 Github Keeper -->
<div
class="portfolio-modal modal fade"
id="portfolioModal8"
tabindex="-1"
role="dialog"
aria-labelledby="portfolioModal3Label"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">
<i class="fas fa-times"></i>
</span>
</button>
<div class="modal-body text-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<!-- Portfolio Modal - Title -->
<h3
class="portfolio-modal-title text-secondary text-uppercase mb-2"
>
Contact Keeper
</h3>
<!-- Portfolio Modal - Image -->
<img
class="img-responsive img-centered mb-5"
src="img/portfolio/Contact_Keeper.png"
alt=""
/>
<!-- Portfolio Modal - Text -->
<p class="mb-5">
Contact Keeper is a MERN based app. It allows users to
register and maintain contact. It is like a cloud-based
phone directory.
</p>
<ul class="list-inline">
<li>Date: May 2020</li>
<li>Type: Personel</li>
<li>Category: Web</li>
<li>
<a
href="https://secret-inlet-18301.herokuapp.com/login"
target="_blank"
>Click to visit</a
>
</li>
</ul>
<button class="btn btn-primary" href="#" data-dismiss="modal">
<i class="fas fa-times fa-fw"></i>
Close Window
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Contact Form JavaScript -->
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/contact_me.js"></script>
<!-- Custom scripts for this template -->
<script src="js/freelancer.min.js"></script>
</body>
</html>
| html |
seems to be all set to spoil Samsung's Galaxy Note III party. A few hours after Samsung sent invitations for the 'Unpacked' 2013 event, HTC teased a new video tagged 'Big Things Ahead'.
The Taiwanese handset maker has posted a video of around 16 seconds on YouTube that ends with the notes, 'Here's To Change' and 'Happy Telephone Company'.
In the video, a person is seen with an HTC device (which we believe is the HTC One Max) that features the same design as that of the HTC One. The person with the device is shown waiting for a helicopter's arrival and then the person who gets down from the helicopter gives a land slap to the first person. The device is visible twice in the video though it is not clear whether the device is the new One Max or the original flagship device. However, one thing is clear, HTC is trying to create some buzz for its upcoming device.
Meanwhile, alleged images of the HTC One Max phablet surfaced online on Monday. The HTC One Max is likely to sport a 5.9-inch HD display and runs Android 4.3 Jelly Bean, out-of-the-box. The device is said will be powered by a 2.3GHz Snapdragon 800 processor, while the original HTC One is powered by a Snapdragon 600 processor. The One Max also features the same UltraPixel and 2.1-megapixel front-facing cameras as the HTC One. Other specifications include 2GB of RAM, 16GB storage and a 3300mAh battery. The site also claims that the Taiwanese major may equip the latest handset with a stylus.
Samsung has also officially sent invitations for an event scheduled on September 4 in Berlin on Monday, where the company is expected to launch the Galaxy Note III phablet.
Here's the YouTube clip of the video.
| english |
<gh_stars>1-10
function ClubField() {
}
ClubField.buildField = function(){
var field = FieldBase.buildField(this);
field.field_type = ClubField.name;
field.options = [];
field.max_id = 0;
return (field);
};
// Register field constructor in Factory
fieldFactory.registerField(ClubField.name, ClubField); | javascript |
<filename>cms/cms-demo/src/app/blocks/video/video.blocktype.ts
import { BlockData, BlockType, CmsImage, Property, UIHint, CmsUrl } from '@typijs/core';
import { VideoComponent } from './video.component';
@BlockType({
displayName: 'Video Block',
componentRef: VideoComponent
})
export class VideoBlock extends BlockData {
@Property({
displayName: 'Heading',
displayType: UIHint.Text
})
heading: string;
@Property({
displayName: 'Description',
displayType: UIHint.XHtml
})
description: string;
@Property({
displayName: 'Video Source',
displayType: UIHint.Url
})
video: CmsUrl;
@Property({
displayName: 'Video Thumbnail',
displayType: UIHint.Image
})
thumbnail: CmsImage;
@Property({
displayName: 'Link Text',
displayType: UIHint.Url
})
link: CmsUrl;
}
| typescript |
TenCent just replaced all of China Literature’s founding members with their own in an attempt to make more profit off creator owned IP, probably after seeing The Untamed (and others) success. This is REALLY CONCERNING when you realize how much TenCent owns of our entertainment.
This would be (similar, not exactly like) if AO3 suddenly had all of its head members leave replaced with, say, Disney and Disney said that they now (paraphrasing) own all original works on A03 and can do whatever they want with original IP to make $.
This is enormously bad and likely won’t make ripples here but they own basically the two main webnovel publishing platforms.
There is barely any news about this when IMHO this is an enormous gaming news story when you realize how much of what is in the gaming sphere is owned or funded by TenCent but because it’s webnovels, well.
It’s difficult to find news about this on Eng sites but there are a lot of different articles within the last few days about just how much money TenCent has spent buying up new things across the world and that is SUPER CONCERNING.
If you want it put in video game terms: imagine TenCent bought http://itch.io or Steam or somewhere folks self publish and then changed the contract to say oh, no, we own creative rights to your ip so we can do what we want. Crazy right? That’s what they did w webnovels.
If they haven’t already I would put real money on them slowly getting more of a foothold in game publishing over the next few years and doing the exact same thing.
TenCent and Spotify entered an agreement in 2017 to swap 10% stake in each other’s business. Think about how many independent creators are on Spotify.
Oh hey wait belatedly? They own 40% of epic games. Doesn’t Epic Games have its own publishing platform for indies?????? Big yikes.
We're seeing something very similar with writing, with regards to Wattpad and RNovel. A good thread summary about this issue is located here:
| english |
President Joe Biden's executive order aimed at safeguarding Americans' sensitive data would force some Chinese apps to take tougher measures to protect private information if they want to remain in the US market, according to people familiar with the matter.
The goal is to keep foreign adversaries like China and Russia from gaining access to large amounts of personal and proprietary business information.
The US Department of Commerce may issue subpoenas to collect information about certain smartphone, tablet, and desktop computer software applications. Then the agency may negotiate conditions for their use in the United States or ban the apps, according to people familiar with the matter.
Biden's June 9 order replaced former President Donald Trump's 2020 bans against the popular Chinese applications WeChat, owned by Tencent, and ByteDance's TikTok. US courts halted those bans.
US officials share many of the concerns Trump cited in his order banning TikTok, according to one person familiar with the matter. Notably, they fear that China could track the locations of US government employees, build dossiers of personal information for blackmail and conduct corporate espionage.
While the new order does not name companies, it could end up capturing more apps than the Trump bans and hold up better if challenged in court. Reuters is the first to report details on how the Biden administration plans to implement the order, including seeking support from other countries.
US officials have begun speaking with allies about adopting a similar approach, one source said. The hope is that partner countries will agree on apps that should be banned.
US Commerce Secretary Gina Raimondo will decide which apps to target for US action, but they must meet certain criteria. For instance, they must be owned, controlled or managed by a person or entity that supports the military or intelligence activities of a foreign adversary such as China or Russia.
If Raimondo decides an app poses an unacceptable risk, she "has the discretion to notify the parties" directly or publish the information in the government's official daily publication, the Federal Register, a Commerce Department spokesman said.
Companies will then have 30 days to object or propose measures to secure data better, the Commerce spokesman said.
The process stems from a May 2019 Trump executive order for reviewing information and communications technology from foreign adversaries.
Apps from China are most likely to find themselves in the Commerce Department's crosshairs given escalating tensions between Washington and Beijing, the Chinese government's ability to exert control over companies and the number of Chinese apps used by Americans.
WeChat, TikTok and eight other apps targeted by the Trump administration in its last months are eligible for review by Biden's team, one source said.
The Trump targets also included Ant Group's Alipay mobile payment app, WeChat Pay, Tencent's QQ Wallet, Tencent QQ, CamScanner, SHAREit, VMate published by Alibaba Group subsidiary UCWeb and Beijing Kingsoft Office Software's WPS Office.
Some of the apps named by Trump have serious data protection issues, while it's unclear why others pose a heightened risk to national security, according to another person familiar with the matter.
The order will apply to business apps, including those used in banking and telecommunications, as well as consumer apps, the first source said.
Apps linked to other adversaries such as Iran or Venezuela are already blocked under broader sanctions.
Affiliate links may be automatically generated - see our ethics statement for details.
| english |
<reponame>rzarajczyk/actions-server
from .server import *
__all__ = [
'http_server',
'Response',
'Action',
'JsonGet',
'JsonPost',
'Redirect',
'StaticResources',
'ServerController'
]
| python |
State ministers Chandrakant Patil and Shambhuraj Desai are set to meet activists of Madhyavarti Maharashtra Ekikaran Samiti — which has been spearheading the movement to merge Belagavi with Maharashtra — at Belagavi in Karnataka on December 6.
As per the earlier schedule, the two ministers were supposed to visit Belagavi, earlier known as Belgaum, on December 3.
In a tweet in Marathi, Patil said some Ambedkarite organisations have urged them to remain present in Belagavi on the occasion of Mahaparinirvan Diwas, the death anniversary of Dr Babasaheb Ambedkar. So, instead of December 3, he and Desai will be in Belagavi on December 6.
Amid the border dispute between the two states, Karnataka Chief Minister Basavaraj Bommai on Friday said it was not good for the two Maharashtra ministers to visit Belagavi.
Patil and Desai have been appointed to tackle the border issue with their legal team and plan to visit Belagavi. Their visit is taking place when the Maharashtra government’s petition regarding Belagavi was heard recently in the Supreme Court.
“Already our chief secretary has written to the chief secretary of Maharashtra through fax. In the given situation, it is not good for them to visit here and hence, they should not come. We have already communicated to them. The Karnataka government will continue to take steps taken in the past,” Bommai told the media. | english |
Mai Ke Bolawale Bani song is a Bhojpuri devotional song from the Maai Kaise Tohe Bisarai released on 2020. Music of Mai Ke Bolawale Bani song is composed by Rajkumar. Mai Ke Bolawale Bani was sung by Paswan Sanjay Sawariya. Download Mai Ke Bolawale Bani song from Maai Kaise Tohe Bisarai on Raaga.com.
| english |
Bournemouth will welcome Newcastle United to the Vitality Stadium in the Premier League on Saturday.
The hosts recorded a 2-1 win over Burnley last month, their first victory in the Premier League this season. They failed to build on that performance as they fell to a 6-1 away loss against reigning champions Manchester City last week. It was their seventh loss in the league campaign and they remain in 18th place in the league table.
The visitors extended their unbeaten run in the league to seven games last week, defeating Arsenal 1-0 in their home game. Anthony Gordon scored the only goal of the match in the 64th minute with Joelinton picking up the assist.
They met Borussia Dortmund in the UEFA Champions League on Tuesday, suffering a 2-0 defeat and dropping to the bottom of the group table.
- The two teams have squared off 17 times in all competitions, with 10 of these meetings coming in the Premier League. The visitors have a narrow 7-5 lead in wins and five games have ended in draws.
- The hosts are winless in their last eight meetings against the visitors, suffering four defeats and playing out four draws.
- Last season, the two Premier League meetings between them ended in 1-1 draws while Newcastle United eked out a 1-0 win in the Carabao Cup meeting in December.
- The last three wins for Bournemouth in this fixture have all come in their away games.
- Interestingly, the hosts have registered just one win in their last 15 Premier League games. They have lost 11 games in that period, drawing three times.
- The hosts have the second-worst defensive record in the Premier League this season, conceding 27 goals. The visitors, meanwhile, have scored 27 goals, which is the second-best attacking record in the league.
The Cherries have been in poor form recently, losing five of their last six games in all competitions. They have conceded 18 times in these games while scoring just five times. They are winless in their last eight meetings against the visitors, although they have scored in all but one game in that period.
Andoni Iraola has a few absentees for the match but Lewis Cook has served a two-game suspension and should return to the starting XI here. Alex Scott became the latest name on the treatment table, picking up a knee injury against Manchester City.
The Magpies are unbeaten in their last seven league outings, keeping five clean sheets in that period. They have lost just one of their last six away games in all competitions and are unbeaten in their last six away games at Bournemouth.
Eddie Howe has a lengthy absentee list ahead of the game against his former employers, with as many as 11 players unavailable for selection. Bruno Guimaraes became the latest absentee for the visitors as he will serve a one-game suspension after picking up his fifth yellow card of the season against Arsenal.
The hosts have just one win to their name in the Premier League this season, scoring just nine times in games. Newcastle have a good record in recent games against the hosts and should be able to eke out a narrow win.
| english |
{
"token": "<PASSWORD>",
"full_token": "<PASSWORD>",
"tap": "homebrew/cask",
"name": [
"Stringz"
],
"desc": "Editor for localizable files",
"homepage": "https://github.com/mohakapt/Stringz",
"url": "https://github.com/mohakapt/Stringz/releases/download/v0.7.0/Stringz-0.7.0.dmg",
"appcast": null,
"version": "0.7.0",
"installed": null,
"outdated": false,
"sha256": "709cf19f9359a9a3a7740c888c49ee59120c96256354126113deed45dab7d3c5",
"artifacts": [
[
"Stringz.app"
],
{
"trash": [
"~/Library/Application Support/dev.stringz.stringz",
"~/Library/Caches/dev.stringz.stringz",
"~/Library/Preferences/dev.stringz.stringz.plist"
],
"signal": {
}
}
],
"caveats": null,
"depends_on": {
},
"conflicts_with": null,
"container": null,
"auto_updates": null
}
| json |
*{margin: 0; padding: 0;}
a{text-decoration: none;}
kbd{border: 1px solid red;width: 4em;height: 4em; display: inline-block;text-transform: uppercase;position: relative; }
kbd > button{position: absolute;right: 0;bottom:0;display: none;}
kbd:hover > button{display:inline-block;}
body{background: grey url(./wall.jpg) no-repeat center center;}
main{text-align: center;display: flex;justify-content: center;align-items: center;height: 100vh;}
#main{display: inline-block;; }
#main > div:nth-child(2){margin-left: -22px;}
#main > div:nth-child(3){margin-left: -80px;}
.wrapper{background: rgba(255,255,255,0.2);border-radius: 10px;}
.key{width: 50px; height: 40px;background: linear-gradient(to bottom, #292929 0%,#111111 100%);border: 1px solid #373737;color:#c5c5c5;border-radius: 6px;box-shadow: 0 0 0 1px #1a1b1c,0 0 0 2px #1f2020,0 3px 0 2px #080808;position: relative;font-size: 16px;font-family: Helvetica}
.row{margin: 20px;}
.row .key{margin: 0 10px;}
.key img{width: 16px;height: 16px;position: absolute;left: 4px;bottom: 2px;}
.key .text{position: absolute;left: 4px;top: 2px;}
| css |
import os
from tensorflow.contrib.learn.python.learn.datasets import base
import numpy as np
import IPython
from subprocess import call
from keras.preprocessing import image
from influence.dataset import DataSet
from influence.inception_v3 import preprocess_input
BASE_DIR = 'data' # TODO: change
def fill(X, Y, idx, label, img_path, img_side):
img = image.load_img(img_path, target_size=(img_side, img_side))
x = image.img_to_array(img)
X[idx, ...] = x
Y[idx] = label
def extract_and_rename_animals():
class_maps = [
('dog', 'n02084071'),
('cat', 'n02121808'),
('bird', 'n01503061'),
('fish', 'n02512053'),
('horse', 'n02374451'),
('monkey', 'n02484322'),
('zebra', 'n02391049'),
('panda', 'n02510455'),
('lemur', 'n02496913'),
('wombat', 'n01883070'),
]
for class_string, class_id in class_maps:
class_dir = os.path.join(BASE_DIR, class_string)
print(class_dir)
call('mkdir %s' % class_dir, shell=True)
call('tar -xf %s.tar -C %s' % (os.path.join(BASE_DIR, class_id), class_dir), shell=True)
for filename in os.listdir(class_dir):
file_idx = filename.split('_')[1].split('.')[0]
src_filename = os.path.join(class_dir, filename)
dst_filename = os.path.join(class_dir, '%s_%s.JPEG' % (class_string, file_idx))
os.rename(src_filename, dst_filename)
def load_animals(num_train_ex_per_class=300,
num_test_ex_per_class=100,
num_valid_ex_per_class=0,
classes=None,
):
num_channels = 3
img_side = 299
if num_valid_ex_per_class == 0:
valid_str = ''
else:
valid_str = '_valid-%s' % num_valid_examples
if classes is None:
classes = ['dog', 'cat', 'bird', 'fish', 'horse', 'monkey', 'zebra', 'panda', 'lemur', 'wombat']
data_filename = os.path.join(BASE_DIR, 'dataset_train-%s_test-%s%s.npz' % (num_train_ex_per_class, num_test_ex_per_class, valid_str))
else:
data_filename = os.path.join(BASE_DIR, 'dataset_%s_train-%s_test-%s%s.npz' % ('-'.join(classes), num_train_ex_per_class, num_test_ex_per_class, valid_str))
num_classes = len(classes)
num_train_examples = num_train_ex_per_class * num_classes
num_test_examples = num_test_ex_per_class * num_classes
num_valid_examples = num_valid_ex_per_class * num_classes
if os.path.exists(data_filename):
print('Loading animals from disk...')
f = np.load(data_filename)
X_train = f['X_train']
X_test = f['X_test']
Y_train = f['Y_train']
Y_test = f['Y_test']
if 'X_valid' in f:
X_valid = f['X_valid']
else:
X_valid = None
if 'Y_valid' in f:
Y_valid = f['Y_valid']
else:
Y_valid = None
else:
print('Reading animals from raw images...')
X_train = np.zeros([num_train_examples, img_side, img_side, num_channels])
X_test = np.zeros([num_test_examples, img_side, img_side, num_channels])
# X_valid = np.zeros([num_valid_examples, img_side, img_side, num_channels])
X_valid = None
Y_train = np.zeros([num_train_examples])
Y_test = np.zeros([num_test_examples])
# Y_valid = np.zeros([num_valid_examples])
Y_valid = None
for class_idx, class_string in enumerate(classes):
print('class: %s' % class_string)
# For some reason, a lot of numbers are skipped.
i = 0
num_filled = 0
while num_filled < num_train_ex_per_class:
img_path = os.path.join(BASE_DIR, '%s/%s_%s.JPEG' % (class_string, class_string, i))
print(img_path)
if os.path.exists(img_path):
fill(X_train, Y_train, num_filled + (num_train_ex_per_class * class_idx), class_idx, img_path, img_side)
num_filled += 1
print(num_filled)
i += 1
num_filled = 0
while num_filled < num_test_ex_per_class:
img_path = os.path.join(BASE_DIR, '%s/%s_%s.JPEG' % (class_string, class_string, i))
if os.path.exists(img_path):
fill(X_test, Y_test, num_filled + (num_test_ex_per_class * class_idx), class_idx, img_path, img_side)
num_filled += 1
print(num_filled)
i += 1
num_filled = 0
while num_filled < num_valid_ex_per_class:
img_path = os.path.join(BASE_DIR, '%s/%s_%s.JPEG' % (class_string, class_string, i))
if os.path.exists(img_path):
fill(X_valid, Y_valid, num_filled + (num_valid_ex_per_class * class_idx), class_idx, img_path, img_side)
num_filled += 1
print(num_filled)
i += 1
X_train = preprocess_input(X_train)
X_test = preprocess_input(X_test)
X_valid = preprocess_input(X_valid)
np.random.seed(0)
permutation_idx = np.arange(num_train_examples)
np.random.shuffle(permutation_idx)
X_train = X_train[permutation_idx, :]
Y_train = Y_train[permutation_idx]
permutation_idx = np.arange(num_test_examples)
np.random.shuffle(permutation_idx)
X_test = X_test[permutation_idx, :]
Y_test = Y_test[permutation_idx]
permutation_idx = np.arange(num_valid_examples)
np.random.shuffle(permutation_idx)
X_valid = X_valid[permutation_idx, :]
Y_valid = Y_valid[permutation_idx]
np.savez_compressed(data_filename, X_train=X_train, Y_train=Y_train, X_test=X_test, Y_test=Y_test, X_valid=X_valid, Y_valid=Y_valid)
train = DataSet(X_train, Y_train)
if (X_valid is not None) and (Y_valid is not None):
# validation = DataSet(X_valid, Y_valid)
validation = None
else:
validation = None
test = DataSet(X_test, Y_test)
return base.Datasets(train=train, validation=validation, test=test)
def load_koda():
num_channels = 3
img_side = 299
data_filename = os.path.join(BASE_DIR, 'dataset_koda.npz')
if os.path.exists(data_filename):
print('Loading Koda from disk...')
f = np.load(data_filename)
X = f['X']
Y = f['Y']
else:
# Returns all class 0
print('Reading Koda from raw images...')
image_files = [image_file for image_file in os.listdir(os.path.join(BASE_DIR, 'koda')) if (image_file.endswith('.jpg'))]
# Hack to get the image files in the right order
# image_files = [image_file for image_file in os.listdir(os.path.join(BASE_DIR, 'koda')) if (image_file.endswith('.jpg') and not image_file.startswith('124'))]
# image_files += [image_file for image_file in os.listdir(os.path.join(BASE_DIR, 'koda')) if (image_file.endswith('.jpg') and image_file.startswith('124'))]
num_examples = len(image_files)
X = np.zeros([num_examples, img_side, img_side, num_channels])
Y = np.zeros([num_examples])
class_idx = 0
for counter, image_file in enumerate(image_files):
img_path = os.path.join(BASE_DIR, 'koda', image_file)
fill(X, Y, counter, class_idx, img_path, img_side)
X = preprocess_input(X)
np.savez(data_filename, X=X, Y=Y)
return X, Y
def load_dogfish_with_koda():
classes = ['dog', 'fish']
X_test, Y_test = load_koda()
data_sets = load_animals(num_train_ex_per_class=900,
num_test_ex_per_class=300,
num_valid_ex_per_class=0,
classes=classes)
train = data_sets.train
validation = data_sets.validation
test = DataSet(X_test, Y_test)
return base.Datasets(train=train, validation=validation, test=test)
def load_dogfish_with_orig_and_koda():
classes = ['dog', 'fish']
X_test, Y_test = load_koda()
X_test = np.reshape(X_test, (X_test.shape[0], -1))
data_sets = load_animals(num_train_ex_per_class=900,
num_test_ex_per_class=300,
num_valid_ex_per_class=0,
classes=classes)
train = data_sets.train
validation = data_sets.validation
test = DataSet(
np.concatenate((data_sets.test.x, X_test), axis=0),
np.concatenate((data_sets.test.labels, Y_test), axis=0))
return base.Datasets(train=train, validation=validation, test=test)
| python |
Adults and children know what zucchini is. In each family there are favorite recipes for cooking dishes from it, which are passed on from generation to generation. Happy owners of cottages and vegetable gardens also have favorite varieties of courgettes. Several years ago, among many varieties, the "Kavili" zucchini began to gain popularity as well. What is this kind of zucchini and how did he manage to win such popularity in the shortest possible time?
Being quite close "relatives" of a pumpkin, in the course of evolution zucchini inherited a lot of useful properties from it, but they were able to get rid of the specific taste that was not liked by everyone.
Just like potatoes, zucchini are almost universal food that can be boiled, stewed, dried and fried. Doctors advise to eat zucchini almost with any diet, as they are well tolerated by the body and almost do not cause allergies. Few people know that the seeds of overripe zucchini can be eaten, as well as pumpkin, because they contain a huge amount of vitamin E, as well as other useful substances.
The cultivar called "Kavili F1" is a hybrid created under the guidance of genetic scientists. Thanks to this, this kind of zucchini has a lot of advantages, making its cultivation simple and effective.
"Kavili" courgettes of traditional color are light green with pale flesh. As a rule, they are cylindrical and small in size - sixteen to twenty two centimeters, which is quite convenient when assembling them, as well as further processing. The fruits of "Kavili" zucchini never exceed the weight of 300-500 g. It is noteworthy that even if overripe, the fruits of this variety retain a pleasant taste and do not harden.
One of the main advantages that zucchini possesses in this variety is their precocity. So, after 40-45 days from the moment of planting, the seeds of "Kavili" courgettes give fruit. And the plant continues to bear fruit for several months.
Another important advantage that "Kavili" has is the fact that the plant has the appearance of a bush. This feature is important for saving space and is perfect for those with a limited amount of land. Also, the variety is ideal for growing in greenhouses.
Another plus of this kind of zucchini is that it is capable of self-pollination, as both male and female inflorescences grow on one bush. Therefore, even in the most unfavorable weather, "Kavili" marrows will still please the harvest.
How do the courgettes of this variety multiply?
You can plant such zucchini as if you were directly sowing seeds in the ground (they should be soaked for a few hours in slightly warm water, and then wrapped in wet gauze after 24 hours), and in the form of sprouted seedlings.
When planting cabbage seedlots "Kavili" it is necessary to cover the shoots, giving them time to acclimatize.
How to care for a plant?
"Kavili" courgettes are unpretentious in their care and slightly susceptible to plant diseases. However, it is not worthwhile to plant them near the patissons, and also in an insufficiently lit place. The main enemies of this variety are poor lighting and too much planting. When the courgette bushes become cramped, they bear fruit worse. The same applies to lighting: the less light a zucchini receives, the worse its yield. In rare cases, large leaves of the bush can shade the plant themselves, so it is necessary to monitor this and, if necessary, remove such leaves.
The ideal temperature for "Kavili" courgetts is twenty degrees, and if there is a cooling, the plant should be covered, otherwise it will begin to bear fruit much later.
You can not water the courgettes of this variety with cold water, the optimum temperature for watering is twenty degrees. Watering is necessary, pouring liquid around the stalk, and not under the root or from above. The required water norm for one watering is up to ten liters per one square meter. "Kavili" tavern (photo below) perfectly tolerates drought, but with a lack of moisture, its leaves begin to dry and the plant fructifies worse.
He also needs feeding during his growth. Nitrofoska and complex mineral fertilizers, wood ash and manure are well suited. Optimal to produce three top-dressing: the first before the flowering zucchini, the second - in the flowering period, and the third - at the time of ripening of the fruit.
When to collect and how to store?
The first fruits appear only a month and a half after planting. They must be ripped apart without waiting for a ripening. Although "Kavili" marrows do not lose their wonderful taste qualities in case of overgrown fetus. However, one should not allow this, because the load on the whole plant is increasing and it does not have enough resources to fully bear fruit.
If there is no possibility of preserving, drying or freezing zucchini, they can be stored as pumpkins. But it is worth remembering that due to long storage the taste of zucchini is able to vary.
Zucchini, laid aside for preservation, it is necessary to cut it to frost. It is important to leave a cut-down zucchini five to seven centimeters long. In no case can not wash such zucchini, and if they were collected during wet weather, they should be well dried.
In the presence of a cellar, zucchini is best dried by spreading on wooden shelves. Although the best option - wrap in a grid and hang, and each fruit separately. Another important thing is the absence of light, otherwise the seeds in the zucchini will sprout, and the fruit itself will lose its flavor qualities.
In the apartment zucchini can be stored in pantry or on the balcony, previously wrapped paper. You can also keep it in the fridge, but not more than a month.
This variety appeared in our gardens only a few years ago, but I already fell in love with the majority of summer residents and truck farmers. On the forums there are only positive reviews. Its main advantage is its compactness and fertility. So, for example, with proper care of just two cabbage courgettes, "Kavili" fruits are harvested enough for a family of three. In this case, truck farmers note that in the winter without freezing this hybrid is not kept very well.
Most planted the variety of "Kavili" to get early zucchini already in the middle of June, and also for sunsets. For storage, later and better tolerated storage of the variety occurs.
Despite its comparative "youth", "Kavili" marrows are gaining more and more admirers with confidence, and it is likely that in a few years this variety will become traditional for our kitchen gardens and dachas. | english |
{
"typescript.tsdk": "./node_modules/typescript/lib",
"prettier.configPath": "./prettier.config.js",
"editor.tabCompletion": "onlySnippets",
"cSpell.words": [
"ADTs",
"Greenkeeper",
"Morphic's",
"Reinterpreter",
"combinator",
"combinators"
],
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.cursorStyle": "block",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.formatOnType": true,
"editor.autoIndent": "full",
"workbench.editor.showIcons": true,
"search.exclude": {
"**/node_modules": false,
"**/bower_components": true,
"**/build": true,
".tmp": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/node_modules/**": true,
"**/.temp/**": true,
"**/.tmp/**": true,
"**/build/**": true,
"**/.tmp": true,
".tmp": true,
"**/target": true
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/.git/objects": true,
"**/node_modules": false,
"**/.temp/**": true,
"**/.tmp/**": true,
"**/build/**": false,
"**/.tmp": true,
".tmp": true
},
"extensions.autoUpdate": true,
"tslint.packageManager": "npm",
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.formatOnSave": true,
"eslint.format.enable": true,
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"prettier.disableLanguages": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"eslint.validate": ["markdown", "javascript", "typescript"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
"eslint.alwaysShowStatus": true,
"eslint.run": "onSave",
"eslint.packageManager": "yarn"
}
| json |
Dr. Surendra Kumar Upreti (Photo: Facebook)
KATHMANDU: Dr. Surendra Kumar Upreti has been appointed as the Senior Economic Advisor at the Finance Ministry.
A cabinet meeting appointed Dr Upreti as the Senior Economic Advisor on the recommendation of the Ministry of Finance.
He is considered an economic policy expert. Dr. According to the Ministry of Finance, Upreti has done doctorate on the rising costs while entering the WTO and its impact on revenue and the economy.
Finance Minister Janardan Sharma has appointed him as the Senior Economic Advisor saying that he had helped him in policy making affairs during his stint as Energy Minister. | english |
{
"cordova-plugin-network-information": {
"source": {
"type": "registry",
"id": "cordova-plugin-network-information@^2.0.1"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-whitelist": {
"source": {
"type": "registry",
"id": "cordova-plugin-whitelist@^1.3.3"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-device": {
"source": {
"type": "registry",
"id": "cordova-plugin-device@^2.0.1"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-splashscreen": {
"source": {
"type": "registry",
"id": "cordova-plugin-splashscreen@^5.0.2"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-ionic-webview": {
"source": {
"type": "registry",
"id": "cordova-plugin-ionic-webview@^1.1.16"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-ionic-keyboard": {
"source": {
"type": "registry",
"id": "cordova-plugin-ionic-keyboard@^2.0.5"
},
"is_top_level": true,
"variables": {}
},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {
"source": {
"type": "registry",
"id": "uk.co.workingedge.phonegap.plugin.launchnavigator@^4.2.0"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-actionsheet": {
"source": {
"type": "registry",
"id": "cordova-plugin-actionsheet@2"
},
"is_top_level": false,
"variables": {}
},
"cordova-plugin-dialogs": {
"source": {
"type": "registry",
"id": "cordova-plugin-dialogs@^2.0.1"
},
"is_top_level": true,
"variables": {}
},
"call-number": {
"source": {
"type": "registry",
"id": "mx.ferreyra.callnumber@0.0.2"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-mauron85-background-geolocation": {
"source": {
"type": "registry",
"id": "cordova-plugin-mauron85-background-geolocation@2.3.5"
},
"is_top_level": true,
"variables": {
"GOOGLE_PLAY_SERVICES_VERSION": "11+",
"ANDROID_SUPPORT_LIBRARY_VERSION": "23+",
"ICON": "@mipmap/icon",
"SMALL_ICON": "@mipmap/icon",
"ACCOUNT_NAME": "@string/app_name",
"ACCOUNT_LABEL": "@string/app_name",
"ACCOUNT_TYPE": "$PACKAGE_NAME.account",
"CONTENT_AUTHORITY": "$PACKAGE_NAME"
}
},
"cordova-plugin-fcm": {
"source": {
"type": "registry",
"id": "cordova-plugin-fcm"
},
"is_top_level": true,
"variables": {}
},
"cordova-plugin-compat": {
"source": {
"type": "registry",
"id": "cordova-plugin-compat@^1.0.0"
},
"is_top_level": false,
"variables": {}
},
"cordova-plugin-geolocation": {
"source": {
"type": "registry",
"id": "cordova-plugin-geolocation@2.4.3"
},
"is_top_level": true,
"variables": {}
}
} | json |
<gh_stars>0
{
"name": "asg-event-to-datadog",
"description": "",
"version": "0.1.0",
"dependencies": {},
"devDependencies": {
"serverless-cloudformation-parameter-setter": "0.0.1",
"serverless-python-requirements": "^3.3.0",
"serverless-sam": "ServerlessOpsIO/serverless-sam#somaster"
}
}
| json |
{
"header": {
"hu": "Elutas\u00edtott azonos\u00edt\u00e1si m\u00f3d"
},
"description": {
"hu": "A m\u00f3d, ahogyan azonos\u00edtott t\u00e9ged a szem\u00e9lyazonoss\u00e1g szolg\u00e1ltat\u00f3d, nem elfogadott enn\u00e9l a szolg\u00e1ltat\u00e1sn\u00e1l. Val\u00f3sz\u00edn\u0171leg t\u00fal gyenge, vagy nem k\u00e9tfaktoros."
}
}
| json |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package signature
import (
"github.com/google/tink/go/tink"
commonpb "github.com/google/tink/proto/common_go_proto"
ecdsapb "github.com/google/tink/proto/ecdsa_go_proto"
)
// NewEcdsaPrivateKey creates a EcdsaPrivateKey with the specified paramaters.
func NewEcdsaPrivateKey(version uint32,
publicKey *ecdsapb.EcdsaPublicKey,
keyValue []byte) *ecdsapb.EcdsaPrivateKey {
return &ecdsapb.EcdsaPrivateKey{
Version: version,
PublicKey: publicKey,
KeyValue: keyValue,
}
}
// NewEcdsaPublicKey creates a EcdsaPublicKey with the specified paramaters.
func NewEcdsaPublicKey(version uint32,
params *ecdsapb.EcdsaParams,
x []byte, y []byte) *ecdsapb.EcdsaPublicKey {
return &ecdsapb.EcdsaPublicKey{
Version: version,
Params: params,
X: x,
Y: y,
}
}
// NewEcdsaParams creates a EcdsaParams with the specified parameters.
func NewEcdsaParams(hashType commonpb.HashType,
curve commonpb.EllipticCurveType,
encoding ecdsapb.EcdsaSignatureEncoding) *ecdsapb.EcdsaParams {
return &ecdsapb.EcdsaParams{
HashType: hashType,
Curve: curve,
Encoding: encoding,
}
}
// NewEcdsaKeyFormat creates a EcdsaKeyFormat with the specified parameters.
func NewEcdsaKeyFormat(params *ecdsapb.EcdsaParams) *ecdsapb.EcdsaKeyFormat {
return &ecdsapb.EcdsaKeyFormat{Params: params}
}
// GetEcdsaSignatureEncodingName returns the name of the EcdsaSignatureEncoding.
func GetEcdsaSignatureEncodingName(encoding ecdsapb.EcdsaSignatureEncoding) string {
ret := ecdsapb.EcdsaSignatureEncoding_name[int32(encoding)]
return ret
}
// GetEcdsaParamNames returns the string representations of each parameter in
// the given EcdsaParams.
func GetEcdsaParamNames(params *ecdsapb.EcdsaParams) (string, string, string) {
hashName := tink.GetHashName(params.HashType)
curveName := tink.GetCurveName(params.Curve)
encodingName := GetEcdsaSignatureEncodingName(params.Encoding)
return hashName, curveName, encodingName
}
| go |
{"title": "A scalable cover identification engine.", "fields": ["search engine", "full text search", "scalability", "license", "bag of words model"], "abstract": "This paper describes the implementation of a content-based cover song identification system which has been released under an open source license. The system is centered around the Apache Lucene text search engine library, and proves how classic techniques derived from textual Information Retrieval, in particular the bag-of-words paradigm, can successfully be adapted to music identification. The paper focuses on extensive experimentation on the most influential system parameters, in order to find an optimal tradeoff between retrieval accuracy and speed of querying.", "citation": "Citations (5)", "departments": ["University of Padua", "University of Padua", "University of Padua"], "authors": ["<NAME>.....http://dblp.org/pers/hd/b/Buccio:Emanuele_Di", "<NAME>.....http://dblp.org/pers/hd/m/Montecchio:Nicola", "<NAME>.....http://dblp.org/pers/hd/o/Orio:Nicola"], "conf": "mm", "year": "2010", "pages": 4} | json |
<gh_stars>0
/**
* Preview Survey React Component - preview.js
* @module
* @author <NAME>
*/
'use strict';
var React = require('react');
var Question = require('./preview/question');
var Thanks = require('./preview/thanks');
var Respondent = require('./preview/respondent');
var Intro = require('./preview/introduction');
var SURVEY = 'my-survey';
module.exports = React.createClass({
displayName: 'PreviewSurvey',
getInitialState: function() {
return {
progress: 'start'
};
},
// need to rename 'myfunction'
myfunction: (function(event) {
var qNum = 0;
return function() {
qNum += 1;
return qNum;
};
}()),
onNextClick: function(event) {
var qNum = this.myfunction();
if (this.state.progress === 'start') {
this.setState(
{progress: 'question'}
);
} else if (this.state.progress === 'question') {
var currentQuestion = this.props.user.survey.get(qNum).questionNumber;
currentQuestion === this.props.user.survey.length ?
this.setState(
{progress: 'respondent'}
) :
this.setState(
{progress: 'question'}
);
} else if (this.state.progress === 'respondent') {
this.setState(
{progress: 'complete'}
);
}
},
onSaveSurveyClick: function(event) {
// Convert all survey data to JSON ready to persist to server
// JSON.stringify implicitly calls toJSON which calls serialize
// see Ampersand docs for these methods
// var surveyJSON = JSON.stringify(app.user);
// Temporary solution saves JSON to localstorage (until I figure out server)
localStorage[SURVEY] = JSON.stringify(app.user);
alert('Survey data saved to local storage for the time being');
// console.log(surveyJSON);
// call hxr request function
// reset the app after persisting to server
},
// test set up AJAX - GET method - works! - based on MDN AJAX getting started
// - using asynchronous request*************************
makeRequest: function(url) {
// instantiate XMLHttpRequest object
var request = new XMLHttpRequest();
// assign the function to handle the response
request.onreadystatechange = alertContents;
// make the request
// open params: method, url, is request async? (opt - default true)
request.open('GET', url);
// send param: data to send to server (using JSON here)
request.send();
// function to handle the response
function alertContents() {
// handle exception if server goes down
try {
// check request state
if (request.readyState === 4) {
// it's all ready so...
// check server response code
if (request.status === 200) {
// great! - show contents of the html file
alert(request.responseText);
} else {
// some problem
alert('something went wrong');
}
} else {
// still waiting...
}
}
catch(exception) {
alert('Caught Exception: ' + exception.description)
}
}
},
// test GET from localhost
testGET: function() {
alert('testing xhr request');
this.makeRequest('test.html');
},
// sending to server - POST based on MDN AJAX getting started - using asynchronous request******curently 404's :(
createRequest: function(url, surveyJSON) {
// instantiate XMLHttpRequest object
var request = new XMLHttpRequest();
// assign the function to handle the response
request.onreadystatechange = alertContents;
// make the request
// open params: method, url, is request async? (opt - default true)
request.open('POST', 'http://localhost:5000/data.json');
// should probably add setRequestHeader here...
request.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
// send param: data to send to server (using JSON here)
request.send(JSON.stringify({name: 'bob', age: '33'}));
// function to handle the response
function alertContents() {
// handle exception if server goes down
try {
// check request state
if (request.readyState === 4) {
// it's all ready so...
// check server response code
if (request.status === 200) {
// great! - show contents of the html file
alert(request.responseText);
} else {
// some problem
alert('something went wrong');
}
} else {
// still waiting...
}
} catch(exception) {
alert('Caught Exception: ' + exception.description);
}
}
},
// test POST from localhost
/* testPOST: function(event) {
event.preventDefault;
alert('testing xhr request');
var surveyJSON = JSON.stringify({"employees":[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
]});
this.createRequest('./data', surveyJSON);
},
*/
render: function() {
var currentScreen;
if (this.state.progress === 'start') {
currentScreen = (
<Intro user={this.props.user} />
);
} else if (this.state.progress === 'question') {
currentScreen = (
<Question user={this.props.user} />
);
} else if (this.state.progress === 'respondent') {
currentScreen = (
<Respondent />
);
} else {
currentScreen = (
<Thanks />
);
}
var navButtons;
if (this.state.progress !== 'complete') {
navButtons = (
<div>
<button type='button' className='button' disabled>Save for later
</button>
<button type='button' className='button'
onClick={this.onNextClick}>Next</button>
</div>
);
} else {
navButtons = (
<div>
<button type='button' className='button' disabled>Save for later
</button>
<button type='button' className='button' disabled>Submit Your Answers
</button>
</div>
);
}
return (
<div>
<h2>Your survey will look like this...</h2>
<form>
<div>
{currentScreen}
{navButtons}
</div>
<div className='save-button'>
<button type='button' className='button pull-right'
onClick={this.onSaveSurveyClick}>Publish Your Survey</button>
</div>
</form>
</div>
);
}
});
// Test buttons for get/post
/* <button type='button' onClick={this.testGET}>test GET button
</button>
<button type='button' onClick={this.createRequest}>test POST button
</button>*/
| javascript |
I am very happy to be amidst all of you today on the occasion of the birthday of Pandit Nehru and extend my greetings to the children. I am delighted to be present at the inauguration of the 27th India International Trade Fair (IITF), which is the largest exposition of its kind in Asia. The IITF has proved to be an effective showcase for Indian trade and industry. I am glad to see the impressive turnout by representatives of Indian and foreign business organizations on this occasion.
Years ago, India embarked on a course of economic reforms aimed at opening up our economy in a progressive manner; encouraging foreign investments, upgrading technology, augmenting and strengthening infrastructure development, promoting industrial growth and increasing exports.
Our economy is now witnessing an accelerated growth rate. Industry is seeing a phase of considerable growth particularly in automobiles, pharmaceuticals, consumer durables, telecommunications, electronics, biotechnology and information technology sectors. It should be our endeavour to sustain this growth and ensure that it is socially inclusive, particularly for the disadvantaged and the marginalized sections. We must also ensure that every region participates in and benefits from the process of economic growth that is transforming our nation.
I am happy to note that the theme for the India International Trade Fair 2007 is "Processed Food and Agro Industries". The agriculture scenario in the country is gradually looking up. Our agricultural exports increased last year by around 20 percent over the previous year and its contribution to the overall exports of the country is now around 7 percent. Although India is one of the largest food producers in the world, only 2 percent of the total food production is processed, which is a negligible amount. Processing of agricultural goods, significantly adds value to agricultural produce and we look at it as a strong emerging sector in India. The Government has declared the food-processing industry as a priority sector for India. Our strong agricultural base provides a large and varied raw material source for the food processing industry. The food processing industry should be encouraged to set up small and medium scale units closer to agricultural production centers. That would be useful in generating employment in rural areas and would also be beneficial to the food processing industry in terms of ensured availability of good raw materials and savings on transportation costs.
This theme, "Processed Food and Agro Industries", is of special relevance globally too, as we are grappling with the formidable task of eradicating hunger and poverty from our planet. Efforts towards sustainable agriculture can be greatly augmented with the help of advances through research in agricultural technology as well as bio-technology and extending the findings of research to the field. We must also make our policies and programmes flexible and conducive to gender considerations in all areas of agricultural research, education and extension; since, nearly 60 percent of farm labour in India is women. The pioneering role played by women in the preservation of topsoil and forests is well recognized. Therefore, we need to catalyze agricultural growth through holistic agricultural development strategies that should include women. Using processed food for the Government's Mid-day Meal Scheme for children is a possibility. Agricultural produce specific to the area could be utilized, its food value enhanced by adding nutrients and women could be engaged to prepare healthy, hygienic and ready-to-eat meals for children.
As a nation we have always believed that the world is one and humanity is a single family. India is committed in its resolve to foster friendly ties with the nations of the world and together with the international community, work towards a united and prosperous world. The India International Trade Fair is one of the fora to achieve these objectives. I am informed that business houses from as many as 44 countries are participating in the fourteen-day event. I am also delighted to learn that SAARC nations are participating as 'Partner Countries' in the Fair. The promotion of intra-regional trade and investment will contribute significantly to the economic and social development of the SAARC region as a whole.
I hope that this Trade Fair gives a glimpse of the various products that are competitive and consumed in both national and international markets. The Trade Fair should also display innovative technologies available in farm equipment, storage and food processing. In addition, the Trade Fair could be a platform for working out partnerships for investment, business and technology sharing in the food-processing and agro-industry sector.
I would like to take this opportunity to compliment the India Trade Promotion Organization (ITPO) for organizing a fair of this magnitude with its wide canvas of activities and products. The ITPO has played the role of a catalyst and facilitator in increasing exports through its events in India and abroad.
Before concluding, I would like to wish participants both from home and abroad all success in their business endeavours.
With these words, I take great pleasure in inaugurating the 27th India International Trade Fair.
| english |
# Authentication
The collector requires an authentication (`auth_style`) method to connect to the ONTAP server. This can be either `basic_auth` or `certificate_auth`. It is highly recommended to create a read-only harvest user on your ONTAP server and use certificate-based TLS authentication.
## Creating ONTAP user
There are two ways to create a read-only user:
* Create a user with read-only access to **all** API objects
* Limit the harvest user to the handful of APIs that Harvest collects
The second option has a smaller attack surface, but each time you want to collect counters of a new object, you will need to update the user's privileges.
Below we explain how to create an ONTAP user and role for Harvest using ONTAP System Manager (Classic interface & New interface) and CLI.
### System Manager: New interface
*Note: in this section we add a user with read-access to all API objects. For limited access, use either the classic interface or the CLI*
Open System Manager. Click on *CLUSTER* in the left menu bar, *Settings* and *Users and Roles*.
<center><img src="examples/ontap_user_sm_0.png" width="75%"></center>
In the right column, under *Roles*, click on *Add* to add a new role.
<center><img src="examples/ontap_user_sm_1.png" width="75%"></center>
Choose a role name (e.g. *harvest2-role*). In the *REST API PATH* field type */api* and select *Read-Only* as for *ACCESS*. Click on *Save*.
<center><img src="examples/ontap_user_sm_2.png" width="75%"></center>
In the left column, under *Users*, click on *Add* to create a new user. Choose a username. Under *Role*, select the role that we just created. Under *User Login Methods* select *ONTAPI*, and select one of the two authentication methods. Type in a password if you chose *Password*. Click on *Save*
<center><img src="examples/ontap_user_sm_3.png" width="75%"></center>
If you chose *Password*, you can add the username and password to the Harvest configuration file and start Harvest. If you chose *Certificate* jump to [Using Certificate Authentication](#using-certificate-authentication) to generate certificates files.
### System Manager: Classic interface
<details>
<summary>Click to expand</summary>
Open System Manager. Click on the Settings icon on the top-right corner of the window.
<center><img src="examples/ontap_user_smc_0.png" width="75%"></center>
Click on *Roles* in the left menu bar and click *Add*. Choose a role name (e.g. *harvest2-role*).
<center><img src="examples/ontap_user_smc_1.png" width="75%"></center>
If you want to give Harvest read access to **all** API objects, then under *Role Attributes* click on *Add*, under *Command* type *DEFAULT*, leave *Query* empty, select *readonly* under *Access Level*, click on *OK* and *Add*.
If you want to limit the API objects, then under *Role Attributes*, add each of the following lines as an entry. All of those should be entered under the *Command* column, *Query* should be left blank, and *Access Level* should be selected *readonly*.
* cluster
* lun
* snapmirror
* statistics
* storage aggregate
* storage disk
* storage shelf
* system node
* version
* volume
After you click on *Add*, this is what you should see:
<center><img src="examples/ontap_user_smc_2.png" width="75%"></center>
Now we need to create a user. Click on *Users* in the left menu bar and *Add*. Choose a username and password. Under *User Login Methods*, click on *Add*, select *ontapi* as *Application* and select the role that we just created as *Role*. Click on *Add* in the pop-up window to save.
<center><img src="examples/ontap_user_smc_3.png" width="75%"></center>
Now add the username and password to `harvest.yml` and start Harvest.
</details>
### ONTAP CLI
We are going to:
- create a Harvest role with read-only access to the API objects
- create a Harvest user and assign it to the role
You should decide if you want to limit the Harvest role to only the subset of API objects Harvest requires or
give Harvest access to all API objects. In both cases, Harvest's access will be read-only.
Either approach is fine, following the principle of least-privilege, we recommend the limited approach.
Login to the CLI of your c-DOT ONTAP system using SSH.
#### Least-privilege approach
Verify there are no errors when you copy/paste these. Warnings are fine.
```bash
security login role create -role harvest2-role -access readonly -cmddirname "cluster"
security login role create -role harvest2-role -access readonly -cmddirname "lun"
security login role create -role harvest2-role -access readonly -cmddirname "snapmirror"
security login role create -role harvest2-role -access readonly -cmddirname "statistics"
security login role create -role harvest2-role -access readonly -cmddirname "storage aggregate"
security login role create -role harvest2-role -access readonly -cmddirname "storage disk"
security login role create -role harvest2-role -access readonly -cmddirname "storage shelf"
security login role create -role harvest2-role -access readonly -cmddirname "system health status show"
security login role create -role harvest2-role -access readonly -cmddirname "system health subsystem show"
security login role create -role harvest2-role -access readonly -cmddirname "system node"
security login role create -role harvest2-role -access readonly -cmddirname "version"
security login role create -role harvest2-role -access readonly -cmddirname "volume"
# New permissions required for Harvest 22.05 security dashboard
security login role create -role harvest2-role -access readonly -cmddirname "network interface"
security login role create -role harvest2-role -access readonly -cmddirname "security"
security login role create -role harvest2-role -access readonly -cmddirname "storage encryption disk"
security login role create -role harvest2-role -access readonly -cmddirname "vserver"
```
#### All APIs read-only approach
```bash
security login role create -role harvest2-role -access readonly -cmddirname "DEFAULT"
```
#### Create harvest user and associate to role
Use this for password authentication
```bash
# ZAPI based access
security login create -user-or-group-name harvest2 -application ontapi -role harvest2-role -authentication-method password
# REST based access
security login create -user-or-group-name harvest2 -application http -role harvest2-role -authentication-method password
```
Or this for certificate authentication
```bash
security login create -user-or-group-name harvest2 -application ontapi \
-role harvest2-role -authentication-method cert
```
#### 7-Mode CLI
Login to the CLI of your 7-Mode ONTAP system (e.g. using SSH). First, we create a user role. If you want to give the user readonly access to **all** API objects, type in the following command:
```bash
useradmin role modify harvest2-role -a login-http-admin,api-system-get-version, \
api-system-get-info,api-perf-object-*,api-ems-autosupport-log,api-diagnosis-status-get, \
api-lun-list-info,api-diagnosis-subsystem-config-get-iter,api-disk-list-info, \
api-diagnosis-config-get-iter,api-aggr-list-info,api-volume-list-info, \
api-storage-shelf-environment-list-info,api-qtree-list,api-quota-report
```
# Using Certificate Authentication
See [comments here for troubleshooting](https://github.com/NetApp/harvest/issues/314#issuecomment-882120238) client certificate authentication.
Client certificate authentication allows you to authenticate with your ONTAP cluster without including username/passwords in your `harvest.yml` file. The process to setup client certificates is straightforward, although self-signed certificates introduce more work as does Go's strict treatment of common names.
Unless you've installed production certificates on your ONTAP cluster, you'll need to replace your cluster's common-name-based self-signed certificates with a subject alternative name based certificate. After that step is completed, we'll create client certificates and add those for passwordless login.
If you can't or don't want to replace your ONTAP cluster certificates, there are some workarounds. You can
- Use `use_insecure_tls: true` in your `harvest.yml` to disable certificate verification
- Change your `harvest.yml` to connect via hostname instead of IP address
## Create Self-Signed Subject Alternate Name Certificates for ONTAP
Subject alternate name (SAN) certificates allow multiple hostnames in a single certificate. Starting with Go 1.3, when connecting to a cluster via its IP address, the CN field in the server certificate is ignored. This often causes errors like this:
`x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs`
### Overview of steps to create a self-signed SAN certificate and make ONTAP use it
1. Create a root key
2. Create a root certificate authority certificate
3. Create a SAN certificate for your ONTAP cluster, using #2 to create it
4. Install root ca certificate created in step #2 on cluster
5. Install SAN certificate created in step #3 on your cluster
6. Modify you cluster/SVM to use the new certificate installed at step #5
#### Setup
```
# create a place to store the certificate authority files, adjust as needed
mkdir -p ca/{private,certs}
```
#### Create a root key
```
cd ca
# generate a private key that we will use to create our self-signed certificate authority
openssl genrsa -out private/ca.key.pem 4096
chmod 400 private/ca.key.pem
```
#### Create a root certificate authority certificate
Download the sample [samples/openssl.cnf] file and put it in the directory we created in [setup](#setup). Edit line 9, changing `dir` to point to your `ca` directory created in [setup](#setup).
```
openssl req -config openssl.cnf -key private/ca.key.pem -new -x509 -days 7300 -sha256 -extensions v3_ca -out certs/ca.cert.pem
# Verify
openssl x509 -noout -text -in certs/ca.cert.pem
# Make sure these are present
Signature Algorithm: sha256WithRSAEncryption <======== Signature Algorithm can not be sha-1
X509v3 extensions:
X509v3 Subject Key Identifier:
--removed
X509v3 Authority Key Identifier:
--removed
X509v3 Basic Constraints: critical
CA:TRUE <======== CA must be true
X509v3 Key Usage: critical
Digital Signature, Certificate Sign, CRL Sign <======== Digital and certificate signature
```
#### Create a SAN certificate for your ONTAP cluster
First, we'll create the certificate signing request and then the certificate. In this example, the ONTAP cluster is named `umeng-aff300-05-06`, update accordingly.
Download the sample [samples/server_cert.cnf] file and put it in the directory we created in [setup](#setup). Edit lines 18-21 to include your ONTAP cluster hostnames and IP addresses. Edit lines 6-11 with new names as needed.
```
openssl req -new -newkey rsa:4096 -nodes -sha256 -subj "/" -config server_cert.cnf -outform pem -out umeng-aff300-05-06.csr -keyout umeng-aff300-05-06.key
# Verify
openssl req -text -noout -in umeng-aff300-05-06.csr
# Make sure these are present
Attributes:
Requested Extensions:
X509v3 Subject Alternative Name: <======== Section that lists alternate DNS and IP names
DNS:umeng-aff300-05-06-cm.rtp.openenglab.netapp.com, DNS:umeng-aff300-05-06, IP Address:10.193.48.11, IP Address:10.193.48.11
Signature Algorithm: sha256WithRSAEncryption <======== Signature Algorithm can not be sha-1
```
We'll now use the certificate signing request and the recently create certificate authority to create a new SAN certificate for our cluster.
```
openssl x509 -req -sha256 -days 30 -in umeng-aff300-05-06.csr -CA certs/ca.cert.pem -CAkey private/ca.key.pem -CAcreateserial -out umeng-aff300-05-06.crt -extensions req_ext -extfile server_cert.cnf
# Verify
openssl x509 -text -noout -in umeng-aff300-05-06.crt
# Make sure these are present
X509v3 extensions:
X509v3 Subject Alternative Name: <======== Section that lists alternate DNS and IP names
DNS:umeng-aff300-05-06-cm.rtp.openenglab.netapp.com, DNS:umeng-aff300-05-06, IP Address:10.193.48.11, IP Address:10.193.48.11
Signature Algorithm: sha256WithRSAEncryption <======== Signature Algorithm can not be sha-1
```
#### Install Root CA Certificate On Cluster
Login to your cluster with admin credentials and install the server certificate authority.
```
ssh admin@IP
umeng-aff300-05-06::*> security certificate install -type server-ca
Please enter Certificate: Press <Enter> when done
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
You should keep a copy of the CA-signed digital certificate for future reference.
The installed certificate's CA and serial number for reference:
CA: ntap
Serial: 46AFFC7A3A9999999E8FB2FEB0
The certificate's generated name for reference: ntap
```
Now install the server certificate we created above with SAN.
```
umeng-aff300-05-06::*> security certificate install -type server
Please enter Certificate: Press <Enter> when done
-----BEGIN CERTIFICATE-----
..
-----END CERTIFICATE-----
Please enter Private Key: Press <Enter> when done
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
Please enter certificates of Certification Authorities (CA) which form the certificate chain of the server certificate. This starts with the issuing CA certificate of the server certificate and can range up to the root CA certificate.
Do you want to continue entering root and/or intermediate certificates {y|n}: n
```
If ONTAP tells you the provided certificate does not have a common name in the subject field, type the hostname of the cluster like this:
```
The provided certificate does not have a common name in the subject field.
Enter a valid common name to continue installation of the certificate:
Enter a valid common name to continue installation of the certificate: umeng-aff300-05-06-cm.rtp.openenglab.netapp.com
You should keep a copy of the private key and the CA-signed digital certificate for future reference.
The installed certificate's CA and serial number for reference:
CA: ntap
Serial: 67A94AA25B229A68AC5BABACA8939A835AA998A58
The certificate's generated name for reference: umeng-aff300-05-06-cm.rtp.openenglab.netapp.com
```
#### Modify the admin SVM to use the new certificate
We'll modify the cluster's admin SVM to use the just installed server certificate and certificate authority.
```
vserver show -type admin -fields vserver,type
vserver type
------------------ -----
umeng-aff300-05-06 admin
umeng-aff300-05-06::*> ssl modify -vserver umeng-aff300-05-06 -server-enabled true -serial 67A94AA25B229A68AC5BABACA8939A835AA998A58 -ca ntap
(security ssl modify)
```
You can verify the certificate(s) are installed and working by using `openssl` like so:
```
openssl s_client -CAfile certs/ca.cert.pem -showcerts -servername server -connect umeng-aff300-05-06-cm.rtp.openenglab.netapp.com:443
CONNECTED(00000005)
depth=1 C = US, ST = NC, L = RTP, O = ntap, OU = ntap
verify return:1
depth=0
verify return:1
...
```
without the `-CAfile`, `openssl` will report
```
CONNECTED(00000005)
depth=0
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0
verify error:num=21:unable to verify the first certificate
verify return:1
---
```
## Create Client Certificates for Password-less Login
Copy the server certificate we created above into the Harvest install directory.
```
cp ca/umeng-aff300-05-06.crt /opt/harvest
cd /opt/harvest
```
Create a self-signed client key and certificate with the same name as the hostname where Harvest is running. It's not required to name the key/cert pair after the hostname, but if you do, Harvest will load them automatically when you specify `auth_style: certificate_auth` otherwise you can point to them directly. See [Pollers](https://github.com/NetApp/harvest#pollers) for details.
Change the common name to the ONTAP user you setup with the harvest role above. e.g `harvest2`
```
cd /opt/harvest
mkdir cert
openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -keyout cert/$(hostname).key -out cert/$(hostname).pem -subj "/CN=harvest2"
```
## Install Client Certificates on Cluster
Login to your cluster with admin credentials and install the client certificate.
```
ssh admin@IP
umeng-aff300-05-06::*> security certificate install -type client-ca -vserver umeng-aff300-05-06
Please enter Certificate: Press <Enter> when done
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
You should keep a copy of the CA-signed digital certificate for future reference.
The installed certificate's CA and serial number for reference:
CA: cbg
Serial: B77B59444444CCCC
The certificate's generated name for reference: cbg_B77B59444444CCCC
```
Now that the client certificate is installed, let's enable it.
```
umeng-aff300-05-06::*> ssl modify -vserver umeng-aff300-05-06 -client-enabled true
(security ssl modify)
```
Verify with a recent version of `curl`. If you are runnin on a Mac [see below]().
```
curl --cacert umeng-aff300-05-06.crt --key cert/$(hostname).key --cert cert/$(hostname).pem https://umeng-aff300-05-06-cm.rtp.openenglab.netapp.com/api/storage/disks
```
## Update Harvest.yml to use client certificates
Update the poller section with `auth_style: certificate_auth` like this:
```
u2-cert:
auth_style: certificate_auth
addr: umeng-aff300-05-06-cm.rtp.openenglab.netapp.com
```
Restart your poller and enjoy your password-less life-style.
### macOS
The version of `curl` installed on macOS up through Monterey is not recent enough to work with self-signed SAN certs. You will need to install a newer version of `curl` via Homebrew, MacPorts, source, etc.
Example of failure when running with older version of `curl` - you will see this in [client auth](#install-client-certificates-on-cluster) test step above.
```
curl --version
curl 7.64.1 (x86_64-apple-darwin20.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.41.0
curl --cacert umeng-aff300-05-06.crt --key cert/cgrindst-mac-0.key --cert cert/cgrindst-mac-0.pem https://umeng-aff300-05-06-cm.rtp.openenglab.netapp.com/api/storage/disks
curl: (60) SSL certificate problem: unable to get local issuer certificate
```
Let's install `curl` via Homebrew. Make sure you don't miss the message that Homebrew prints about your path.
```
If you need to have curl first in your PATH, run:
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> /Users/cgrindst/.bash_profile
```
Now when we make an client auth request with our self-signed certificate it works! `\o/`
```
brew install curl
curl --version
curl 7.80.0 (x86_64-apple-darwin20.6.0) libcurl/7.80.0 (SecureTransport) OpenSSL/1.1.1l zlib/1.2.11 brotli/1.0.9 zstd/1.5.0 libidn2/2.3.2 libssh2/1.10.0 nghttp2/1.46.0 librtmp/2.3 OpenLDAP/2.6.0
Release-Date: 2021-11-10
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets zstd
curl --cacert umeng-aff300-05-06.crt --key cert/cgrindst-mac-0.key --cert cert/cgrindst-mac-0.pem https://umeng-aff300-05-06-cm.rtp.openenglab.netapp.com/api/storage/disks
{
"records": [
{
"name": "1.1.22",
"_links": {
"self": {
"href": "/api/storage/disks/1.1.22"
}
}
}
}
```
# Reference
- https://github.com/jcbsmpsn/golang-https-example
----
Change directory to your Harvest home directory (replace `/opt/harvest/` if this is not the default):
```bash
$ cd /opt/harvest/
```
Generate an SSL cert and key pair with the following command. Note that it's preferred to generate these files using the hostname of the local machine. The command below assumes `debian8` as our hostname name and `harvest2` as the user we created in the previous step:
```bash
openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -keyout cert/debian8.key \
-out cert/debian8.pem -subj "/CN=harvest2"
```
Next, open the public key (`debian8.pem` in our example) and copy all of its content. Login into your ONTAP CLI and run this command by replacing **CLUSTER** with the name of your cluster.
```bash
security certificate install -type client-ca -vserver CLUSTER
```
Paste the public key content and hit enter. Output should be similar to this:
```bash
jamaica::> security certificate install -type client-ca -vserver jamaica
Please enter Certificate: Press <Enter> when done
-----BEGIN CERTIFICATE-----
MIIDETCCAfmgAwIBAgIUP9EUXyl2BDSUOkNEcDU0yqbJ29IwDQYJKoZIhvcNAQEL
BQAwGDEWMBQGA1UEAwwNaGFydmVzdDItY2xpMzAeFw0yMDEwMDkxMjA0MDhaFw0y
MzEwMDktcGFueSBMdGQxFzAVBgNVBAMlc3QyLWNsaTMwggEiMA0tcGFueSBGCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCVVy25BeCRoGCJWFOlyUL7Ddkze4Hl2/6u
qye/3mk5vBNsGuXUrtad5XfBB70Ez9hWl5sraLiY68ro6MyX1icjiUTeaYDvS/76
Iw7HeXJ5Pyb/fWth1nePunytoLyG/vaTCySINkIV5nlxC+k0X3wWFJdfJzhloPtt
1Vdm7aCF2q6a2oZRnUEBGQb6t5KyF0/Xh65mvfgB0pl/AS2HY5Gz+~L54Xyvs+BY
V7UmTop7WBYl0L3QXLieERpHXnyOXmtwlm1vG5g4n/0DVBNTBXjEdvc6oRh8sxBN
ZlQWRApE7pa/I1bLD7G2AiS4UcPmR4cEpPRVEsOFOaAN3Z3YskvnAgMBAAGjUzBR
MB0GA1UdDgQWBBQr4syV6TCcgO/5EcU/F8L2YYF15jAfBgNVHSMEGDAWgBQr4syV
6TCcgO/5EcU/F8L2YYF15jAPBgNVHRMdfdfwerH/MA0GCSqGSIb^ECd3DQEBCwUA
A4IBAQBjP1BVhClRKkO/M3zlWa2L9Ztce6SuGwSnm6Ebmbs+iMc7o2N9p3RmV6Xl
h6NcdXRzzPAVrUoK8ewhnBzdghgIPoCI6inAf1CUhcCX2xcnE/osO+CfvKuFnPYE
WQ7UNLsdfka0a9kTK13r3GMs09z/VsDs0gD8UhPjoeO7LQhdU9tJ/qOaSP3s48pv
sYzZurHUgKmVOaOE4t9DAdevSECEWCETRETA$Vbn%@@@%%rcdrctru65ryFaByb+
hTtGhDnoHwzt/cAGvLGV/RyWdGFAbu7Fb1rV94ceggE7nh1FqbdLH9siot6LlnQN
MhEWp5PYgndOW49dDYUxoauCCkiA
-----END CERTIFICATE-----
You should keep a copy of the CA-signed digital certificate for future reference.
The installed certificate's CA and serial number for reference:
CA: harvest2
Serial: 3FD1145F2976043012213d3009095534CCRDBD2
The certificate's generated name for reference: harvest2
```
Finally, we need to enable SSL authentication with the following command (replace **CLUSTER** with the name of your cluster):
```bash
security ssl modify -client-enabled true -vserver CLUSTER
```
| markdown |
package com.nitya.accounter.mobile.commands;
import java.util.ArrayList;
import java.util.List;
import com.nitya.accounter.mobile.CommandList;
import com.nitya.accounter.mobile.Context;
import com.nitya.accounter.mobile.Record;
import com.nitya.accounter.mobile.Requirement;
import com.nitya.accounter.mobile.Result;
import com.nitya.accounter.mobile.requirements.ListRequirement;
import com.nitya.accounter.web.client.core.ClientCurrency;
import com.nitya.accounter.web.client.ui.CoreUtils;
public class AddNewCurrencyCommand extends AbstractCommand {
private static final String ADDCURRENCY = "Add New Currency";
@Override
protected String initObject(Context context, boolean isUpdate) {
return null;
}
@Override
protected String getWelcomeMessage() {
return "Adding New Currecy..";
}
@Override
protected String getDetailsMessage() {
return getMessages().readyToCreate(getMessages().currency());
}
@Override
protected void setDefaultValues(Context context) {
// TODO Auto-generated method stub
}
@Override
public String getSuccessMessage() {
return getMessages().createSuccessfully(getMessages().currency());
}
@Override
public String getId() {
// TODO Auto-generated method stub
return null;
}
@Override
protected void addRequirements(List<Requirement> list) {
list.add(new ListRequirement<ClientCurrency>(ADDCURRENCY, getMessages()
.pleaseEnter(getMessages().currency()), ADDCURRENCY, false,
true, null) {
@Override
protected String getEmptyString() {
return getMessages().youDontHaveAny(getMessages().currency());
}
@Override
protected String getSetMessage() {
return getMessages().hasSelected(getMessages().currency());
}
@Override
protected Record createRecord(ClientCurrency value) {
Record record = new Record(value);
record.add(value.getDisplayName());
return record;
}
@Override
protected String getDisplayValue(ClientCurrency value) {
return value != null ? value.getDisplayName() : "";
}
@Override
protected void setCreateCommand(CommandList list) {
// TODO Auto-generated method stub
}
@Override
protected String getSelectString() {
return getMessages().pleaseSelect(getMessages().currency());
}
@Override
protected boolean filter(ClientCurrency e, String name) {
return e.getDisplayName().toLowerCase()
.startsWith(name.toLowerCase());
}
@Override
protected List<ClientCurrency> getLists(Context context) {
List<ClientCurrency> currenciesList = new ArrayList<ClientCurrency>();
List<ClientCurrency> currencies = CoreUtils
.getCurrencies(new ArrayList<ClientCurrency>());
for (ClientCurrency currency : currencies) {
currenciesList.add(currency);
}
return currenciesList;
}
});
}
@Override
protected Result onCompleteProcess(Context context) {
ClientCurrency clientCurrency = new ClientCurrency();
ClientCurrency item = get(ADDCURRENCY).getValue();
clientCurrency.setName(item.getName());
clientCurrency.setFormalName(item.getFormalName());
clientCurrency.setSymbol(item.getSymbol());
create(clientCurrency, context);
return null;
}
}
| java |
NEW DELHI: In a terrifying video, a bear was seen entering an empty house after banging the door, which was captured in a video that has gone viral on social media.
In the video, the bear is seen knocking at the door a few times and barged into the house a few moments later by forcibly opening the door.
This video was posted on Twitter and gained millions of views and comments from the social media users. This video clip is doing the rounds on the internet which has left everyone amazed and shocked.
However, it is not clear where the video is from, but according to some reports, there are many such instances of bears breaking doors and entering into homes in North America every summer.
Luckily, there was no one at the house when the bear entered it.
The video clip was shared by Ohio-based radio presenter Jason Priestas and creator Dick King-Smith and so many others on Twitter.
Have a look at the comments of netizens who were terrified after watching the video:
Could you imagine sitting on your sofa watching tv and this happens? | english |
<reponame>jomsch/gridit
//! All patterns and Pattern Trait used for [pattern](crate::Grid::pattern).
use crate::{Position, Step};
/// This trait is there to create pattern for the [PatternIter](crate::iter::PatternIter).
/// The implemntation should only return one variant of Action.
/// # Variants
/// * `Action::StepFromOrigin(step_x)` if `step_x` steps outside the grid, this Action will be ignored and next_action will be called again.
/// * `Action::Jump(position_x)` if `position_x` is outside the grid, this Action will be ignored and next_action will be called again.
/// this action will be ignored and the nexj
/// # Panics
/// * if different variants of `Action` are returned
/// * if variant Action::StepFromOrigin does not implement `rest_steps`.
/// * if variant Action::Jump does not implement `rest_positions`.
pub trait Pattern {
/// Returns the next `Action` or None if there are no more `Action`.
fn next_action(&mut self) -> Option<Action>;
/// Peeks in the next `Action` and returns it or None if there is no more `Action`.
// This is needed to to calculate the position for PositionEnumerator.
fn next_action_peek(&self) -> Option<Action>;
/// Returns a reference to the `Repeat`.
fn repeat(&self) -> &Repeat;
// rest_step and rest_positon are kind of hacks to make
// PositionEnumerator work with pattern
/// Returns the rest of the steps. This must be implemented for `Action::StepFromOrigin`.
// This is needed to get the correct position in PositionEnumerator
// It is only needed for StepFromOrigin action and should be used so
fn rest_steps(&self) -> Option<Vec<Step>> {
if matches!(self.next_action_peek(), Some(Action::StepFromOrigin(_))) {
panic!("Action::StepFromOrigin must implement rest_step");
}
None
}
/// Returns the rest of the positions. This must be implemented for `Action::Jump`.
// This is needed to get the correct position in PositionEnumerator
// It is only needed for Jump action and should be used so
fn rest_positions(&self) -> Option<Vec<Position>> {
if matches!(self.next_action_peek(), Some(Action::Jump(_))) {
panic!("Action::Jump must implement rest_positions");
}
None
}
}
/// Movement action to perform.
// For now Patterns should only use one variant per pattern
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Action {
/// Steps to next position from the previous one.
// Step from previous position
Step(Step),
/// Steps to the next position from the original position provided.
/// The original position does stay the same.
// Step from origin position, Steps which do not reach into the grid will be ignored
StepFromOrigin(Step),
/// Does jump to the position. No previous or original position are are considered.
// Jump to any position
Jump(Position),
}
/// How often a pattern is run.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Repeat {
Once,
TillEnd,
Times(usize),
}
/// Steps in only one direction until end or grid or the repeat condition is meet.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct DirectionPattern {
pub(crate) step: Step,
pub(crate) repeat: Repeat,
}
impl DirectionPattern {
pub fn new<S: Into<Step>>(step: S, repeat: Repeat) -> Self {
Self {
step: step.into(),
repeat,
}
}
}
impl Pattern for DirectionPattern {
fn next_action(&mut self) -> Option<Action> {
Some(Action::Step(self.step))
}
fn next_action_peek(&self) -> Option<Action> {
Some(Action::Step(self.step))
}
fn repeat(&self) -> &Repeat {
&self.repeat
}
}
/// Walks the steps given, until one step leads outside the grid.
pub struct StepsPattern {
pub(crate) steps: Vec<Step>,
pub(crate) idx: usize,
}
impl StepsPattern {
pub fn new<T: Copy + Into<Step>>(steps: Vec<T>) -> Self {
Self {
steps: steps.iter().map(|t| (*t).into()).collect(),
idx: 0,
}
}
}
impl Pattern for StepsPattern {
fn next_action(&mut self) -> Option<Action> {
self.idx += 1;
Some(Action::Step(*self.steps.get(self.idx - 1)?))
}
fn next_action_peek(&self) -> Option<Action> {
Some(Action::Step(*self.steps.get(self.idx)?))
}
fn repeat(&self) -> &Repeat {
&Repeat::TillEnd
}
}
/// A pattern which side steps from the original position.
/// Steps which lead outside the grid are ignored.
pub struct SideStepsPattern {
pub(crate) steps: Vec<Step>,
pub(crate) idx: usize,
}
impl SideStepsPattern {
pub fn new<I>(steps: I) -> Self
where
I: IntoIterator,
I::Item: Copy + Into<Step>,
{
Self {
steps: steps.into_iter().map(|t| t.into()).collect(),
idx: 0,
}
}
}
impl Pattern for SideStepsPattern {
fn next_action(&mut self) -> Option<Action> {
self.idx += 1;
Some(Action::StepFromOrigin(*self.steps.get(self.idx - 1)?))
}
fn next_action_peek(&self) -> Option<Action> {
Some(Action::StepFromOrigin(*self.steps.get(self.idx)?))
}
fn repeat(&self) -> &Repeat {
&Repeat::TillEnd
}
fn rest_steps(&self) -> Option<Vec<Step>> {
Some(self.steps[self.idx..].iter().copied().collect())
}
}
/// A pattern which jumps to the given positions.
/// Positions outside the grid are ignored.
pub struct JumpsPattern {
jumps: Vec<Position>,
idx: usize,
}
impl JumpsPattern {
pub fn new<I>(positions: I) -> Self
where
I: IntoIterator,
I::Item: Copy + Into<Position>,
{
Self {
jumps: positions.into_iter().map(|t| t.into()).collect(),
idx: 0,
}
}
}
impl Pattern for JumpsPattern {
fn next_action(&mut self) -> Option<Action> {
self.idx += 1;
Some(Action::Jump(*self.jumps.get(self.idx - 1)?))
}
fn next_action_peek(&self) -> Option<Action> {
Some(Action::Jump(*self.jumps.get(self.idx)?))
}
fn repeat(&self) -> &Repeat {
&Repeat::TillEnd
}
fn rest_positions(&self) -> Option<Vec<Position>> {
Some(self.jumps[self.idx..].iter().copied().collect())
}
}
| rust |
def load_dataset_with_preprocess(dataset):
import pandas as pd
import helper
# import importlib
# importlib.reload(..helper)
X=pd.read_csv(f"../../../datasets/cleaned/{dataset}_X.csv")
X = X.drop("Unnamed: 0", axis=1)
y = pd.read_csv(f"../../../datasets/cleaned/{dataset}_y.csv")
y = y.drop("Unnamed: 0", axis=1)
features_types_df = pd.read_csv(f"../../../datasets/cleaned/datatypes/{dataset}.csv")
feature_inidices = list(map(int, list(features_types_df)))
features_names = list(features_types_df.T[0])
features_types = list(map(int, list(features_types_df.T[1])))
preprocess = helper.select_preprocessing_for_many_feat(feature_inidices, features_types, features_names)
return preprocess, X, y
| python |
<reponame>izales/HiLand<filename>public/page-data/sq/d/63159454.json
{"data":{"site":{"siteMetadata":{"title":"HiLand ","description":"Pflanze dein Baum","author":"@IliasZales"}}}} | json |
<gh_stars>1-10
import { useContext, useMemo, useRef } from 'react'
import { isItDefenitlyArrayOfFunction } from '../helper'
import { ContextStore } from '../store'
export function useMultiDispatch(dispatchesCallBack) {
const isNotInvoked = useRef(true)
if (isNotInvoked.current) {
isItDefenitlyArrayOfFunction(dispatchesCallBack)
isNotInvoked.current = false
}
const [, dispatch] = useContext(ContextStore)
const _dispatchesCallBack = useMemo(
() =>
dispatchesCallBack.map(
(dispatchCallBack) =>
(...props) =>
dispatchCallBack(dispatch, ...props)
),
[]
)
return _dispatchesCallBack
}
| javascript |
import * as HtmlWebpackPlugin from "html-webpack-plugin";
import * as path from "path";
interface IPage {
chunks: [string,string][];
pages: Page[]
}
interface Page{
template: string;
output:string;
chunks: string[];
title: string;
}
export function ConvertToOption(p:Page) : HtmlWebpackPlugin.Options{
let opts: HtmlWebpackPlugin.Options = {
title: p.title || "Index",
filename: p.output || "index.html",
chunk: p.chunks || ["index"]
};
return opts;
}
export {IPage, Page}; | typescript |
[
{
"merged": "/Users/lyu/Desktop/FantaSEE/sdk/build/intermediates/res/merged/release/drawable-ldrtl-hdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png",
"source": "/Users/lyu/.gradle/caches/transforms-2/files-2.1/fe2ee9d238db7e81f21cbfa017d27936/res/drawable-ldrtl-hdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png"
},
{
"merged": "/Users/lyu/Desktop/FantaSEE/sdk/build/intermediates/res/merged/release/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png",
"source": "/Users/lyu/.gradle/caches/transforms-2/files-2.1/fe2ee9d238db7e81f21cbfa017d27936/res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png"
},
{
"merged": "/Users/lyu/Desktop/FantaSEE/sdk/build/intermediates/res/merged/release/drawable-ldrtl-hdpi-v17/abc_ic_menu_cut_mtrl_alpha.png",
"source": "/Users/lyu/.gradle/caches/transforms-2/files-2.1/fe2ee9d238db7e81f21cbfa017d27936/res/drawable-ldrtl-hdpi-v17/abc_ic_menu_cut_mtrl_alpha.png"
}
] | json |
[{"toc_title":"System.Xml.Serialization.Configuration","href":"../../system.xml.serialization.configuration","children":[{"toc_title":"DateTimeSerializationSection","href":"../../system.xml.serialization.configuration.datetimeserializationsection"},{"toc_title":"DateTimeSerializationSection.DateTimeSerializationMode","href":"../../system.xml.serialization.configuration.datetimeserializationsection.datetimeserializationmode"},{"toc_title":"RootedPathValidator","href":"../../system.xml.serialization.configuration.rootedpathvalidator"},{"toc_title":"SchemaImporterExtensionElement","href":"../../system.xml.serialization.configuration.schemaimporterextensionelement"},{"toc_title":"SchemaImporterExtensionElementCollection","href":"../../system.xml.serialization.configuration.schemaimporterextensionelementcollection"},{"toc_title":"SchemaImporterExtensionsSection","href":"../../system.xml.serialization.configuration.schemaimporterextensionssection"},{"toc_title":"SerializationSectionGroup","href":"../../system.xml.serialization.configuration.serializationsectiongroup"},{"toc_title":"XmlSerializerSection","href":"../../system.xml.serialization.configuration.xmlserializersection"}],"pdf_name":"/_splitted/System.Xml.Serialization.Configuration.pdf"}] | json |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const countriesSchema = new Schema({
Message: String,
Global: {
NewConfirmed: Number,
TotalConfirmed: Number,
NewDeaths: Number,
TotalDeaths: Number,
NewRecovered: Number,
TotalRecovered: Number,
},
Countries: Array,
Date: String,
});
const countriesModel = mongoose.model('countries', countriesSchema);
module.exports = countriesModel;
| javascript |
The Cupertino-based tech giant Apple is planning to bring its own 5G modem in iPhone models by the year 2022. According to a recent report from Fast Company, Apple is expected to launch its first iPhone model with a 5G modem by September 2020 with a Qualcomm chip inside. To seize control of its 5G technology as soon as possible, Apple bought Intel's modem business earlier this year to develop another piece of its hardware in-house without being dependent on partners.
According to the report, Apple's development of the next-gen modem is likely led by Esin Terzioglu, who worked as Qualcomm's vice president of engineering until he was hired by the iPhone maker in 2017.
“The SoC integration may not happen right away, my source says. Given the tight timeframe for delivering a modem in 2022, Apple may choose to make its first 5G modem a stand-alone chip, and then integrate it into an SoC the following year,” writes Fast Company's Mark Sullivan.
Apple had stopped working with the leading 5G modem provider, Qualcomm, because of a dispute over its licensing fees. However, the legal war between the two tech giants settled in April at an undisclosed amount.
As part of the settlement, Apple agreed to buy Qualcomm's 5G chips as well to use it as part of its 5G-enabled iPhone, which is scheduled for launch in 2020.
While Apple may use its own 5G model in iPhone models in 2022, as mentioned, its first 5G iPhone models are expected next year. Apple analyst Ming-Chi Kuo has told investors in July this year that all three iPhone models slated for release next year would support 5G technology. | english |
[
{
"signature": "async RemovePermission({\n \"policyId\": \"iq__BKUZ8G6FagVjK74NANSq3rwskEp\",\n \"policyWriteToken\": \"<KEY> \"itemId\": \"iq__127hgef9FgcHkKxmwe6vTaW99UA\",\n \"subjectId\": \"0xb9b3a6218fe81a0b9f96a9a3140931c62ce85c82\"\n});"
},
{
"signature": "async RemovePermission({\n \"policyId\": \"iq__BKUZ8G6FagVjK74NANSq3rwskEp\",\n \"policyWriteToken\": \"<KEY>n \"itemId\": \"iq__127hgef9FgcHkKxmwe6vTaW99UA\",\n \"subjectId\": \"00uyyha6cjm2Q7Zgv4x6\"\n});"
},
{
"signature": "async RemovePermission({\n \"policyId\": \"iq__BKUZ8G6FagVjK74NANSq3rwskEp\",\n \"policyWriteToken\": \"<KEY>n \"itemId\": \"iq__127hgef9FgcHkKxmwe6vTaW99UA\",\n \"subjectId\": \"<EMAIL>\"\n});"
},
{
"signature": "async RemovePermission({\n \"policyId\": \"<KEY>n \"policyWriteToken\": \"<KEY>n \"subjectId\": \"QOTPQVagZQv7Mkt\",\n \"itemId\": \"iq__127hgef9FgcHkKxmwe6vTaW99UA\"\n});"
}
] | json |
{"title":"[FAP HERO] ノーパン神風型でITZY WANNABE18歳以上!","author":"FHID00","description":"Originalundefinedvideoundefinedby:undefined000mmd<br>Channelundefinedaddress:undefined<aundefinedhref='https://ecchi.iwara.tv/users/000mmd'>https://ecchi.iwara.tv/users/000mmd</a><br>Originalundefinedvideoundefinedsource:undefined<aundefinedhref='https://ecchi.iwara.tv/videos/lyo9rukwlh8kwkgb'>https://ecchi.iwara.tv/videos/lyo9rukwlh8kwkgb</a><br>DIFFICULTYundefinedVOTINGundefinedHEREundefined/undefined難易度レベルの投票:undefined<aundefinedhref='https://strawpoll.com/vhcvscxbr'>https://strawpoll.com/vhcvscxbr</a>","thumb":"//i.iwara.tv/sites/default/files/styles/thumbnail/public/videos/thumbnails/2323223/thumbnail-2323223_0002.jpg?itok=tR7cLoRI","download":"https://ecchi.iwara.tv/api/video/rmg8ocb4l4uzb9qdb","origin":"https://ecchi.iwara.tv/videos/rmg8ocb4l4uzb9qdb"} | json |
<gh_stars>1-10
CSDUID,RuralUrbanFlag,CSDpop2016,Period1,Period2,Period3,Period4,Period5,Period6,Period7,Period8
4706096,Rural,381.0,-999,-999,-999,-999,-999,-999,-999,-999
| json |
Mayawati, the chief of the Bahujan Samaj Party (BSP), announced that her party would contest the upcoming Lok Sabha elections on its own, dealing a blow to the INDIA bloc and the Congress's efforts to include the BSP in the opposition alliance. Mayawati's decision has dashed hopes of uniting non-BJP forces in Uttar Pradesh, opening the door for a potential third force in the state.
According to Congress leader Shashi Tharoor, the BJP is anticipated to be the largest party in the upcoming Lok Sabha elections. However, Tharoor suggests that the party's potential allies might withdraw support if the BJP's tally decreases, leading them to back the opposition alliance. Tharoor made these remarks during the Kerala Literature Festival on Saturday. He also noted that while some states may witness collaboration among opposition parties with a unified candidate against the BJP, other states might have two or three candidates, leaving voters to decide who they believe would best represent them.
BJP president J P Nadda criticised the opposition bloc INDIA, calling it a virtual alliance with a two-point agenda of saving their families and properties. Prime Minister Narendra Modi is working for a developed India, empowering youth, farmers, women, and removing poverty, while the opposition's main goal is to remove Modi, said Nadda.
Congress President Mallikarjun Kharge has announced that the seat-sharing talks of the INDIA bloc are progressing positively. He invited all INDIA bloc parties to join Rahul Gandhi's 'Bharat Jodo Nyay Yatra' at their convenience. Nationalist Congress Party (NCP) chief Sharad Pawar attended the meeting, and the alliance formed a committee to make plans in the coming days.
NCP president Sharad Pawar on Saturday asserted that there was no dispute among the INDIA bloc members over appointing its convenor, but said there was no need to project any face for the upcoming Lok Sabha polls as the leader can be chosen once the results are declared.
Senior Congress leader Mallikarjun Kharge has been named the chairperson of the INDIA bloc of parties, following rumors of seat-sharing among the INDIA bloc ahead of the 2024 Lok Sabha elections. The newly formed Opposition alliance held a virtual meeting to discuss issues such as participation in the Bharat Jodo Nyay Yatra and seat-sharing agendas.
Top leaders of opposition INDIA bloc will hold discussions on January 13 on strengthening the alliance, chalking out a strategy on seat-sharing and deciding whether to have a convenor of the grouping, sources said on Friday. Trinamool Congress leader Mamata Banerjee will not be part of the virtual meeting on Saturday morning as she is preoccupied with prior engagements, they said.
Meanwhile, AICC national alliance committee members on Friday late night held separate meetings with representatives of the Samajwadi Party and AAP on seat-sharing. Amid hard bargaining by leaders, the meetings remained inconclusive with leaders resolving to hold more meetings.
National Conference vice president Omar Abdullah has urged INDIA bloc partners to expedite seat-sharing talks for the upcoming Lok Sabha elections in states where their chances are stronger, including Uttar Pradesh, West Bengal, Maharashtra, Bihar, Tamil Nadu, and Punjab.
The assertion comes amid talk that the alliance could have a convener, with the name of Bihar Chief Minister Nitish Kumar doing the rounds for the post. There have also been demands for having an office and a spokesperson of the opposition alliance, where 28 parties have come together to take on the BJP in the 2024 Lok Sabha elections.
Bihar Chief Minister Nitish Kumar emerged as a prominent leader in the INDIA bloc, according to CPI general secretary D Raja. While dodging queries about Kumar's potential "bigger role," Raja asserted that INDIA constituents favor declaring a prime ministerial candidate after winning the Lok Sabha elections.
The trigger seems to be Akhilesh Yadav's response to a media query about INDIA's reluctance to rope in the BSP to which Yadav had replied that there was no certainty that BSP would stick to the alliance after elections. Following this, Mayawati has been on an attacking spree on Samajwadi Party in what signals further dilution of any hope of the party joining the alliance and fighting alongside the SP.
The constituents of the opposition alliance INDIA bloc cannot garner a single vote outside their state and were struggling for their survival, Union Commerce and Industry, and Textiles Minister Piyush Goyal said here on Monday. On the political scenario ahead of the 2024 Lok Sabha elections in Tamil Nadu, he said "the air is pregnant with the possibility of an alliance."
Kharge said the Congress is working on all the 545 Lok Sabha constituencies and has appointed observers for all the seats, but which party will contest which seat and how many will be decided soon after consultations with all constituents of the opposition alliance. Asked how many seats the party would contest, he said, "We have already finalised parliamentary observers for all the constituencies... We will go and assess in each Parliamentary constituency."
"But, we are trying to put our efforts everywhere, because, today we are thinking we are getting 'A' seat. Suppose our Alliance partners don't agree that you take the 'C' seat. Therefore, we are putting observers in each constituency," Kharge had said.
The Bharatiya Janata Party (BJP) criticized the Trinamool Congress (TMC) in West Bengal, referring to it as 'Talibani Mindset and Culture' after an attack on an Enforcement Directorate (ED) team in North 24 Paraganas. BJP spokesperson Shehzad Poonawalla cited Congress leader Adhir Ranjan Chowdhury's statement supporting the claim.
Karsevak Shalini Dabir, a 96-year-old Karsevak from Maharashtra, has been invited to the consecration ceremony of Lord Ram at Ram Mandir in Ayodhya. Dabir recalls the memories of the collapse of the Babri structure in 1990, where she was locked in a school due to the full jails. She also recounts the experience of being tortured by the police and witnessing the collapse of the Babri structure.
Geeta Rabari's soulful rendition aligns with the heightened enthusiasm surrounding the Ram Temple inauguration. The excitement has manifested in various artistic expressions, as observed by PM Modi during his monthly radio broadcast, 'Mann Ki Baat.'
Kharge said the Congress is working on all the 545 Lok Sabha constiutencies and has appointed observers for all the seats, but which party will contest which seat and how many will be decided soon after consultations with all constituents of the opposition alliance. Asked on how many seats the party would contest, he said, "We have already finalised parliamentary observers for all the constituencies... We will go and assess in each Parliamentary constituency."
Adhir Ranjan Chowdhury, a staunch critic of the TMC, launched a no-holds-barred attack, accusing Bengal's ruling party of being busy "serving Prime Minister Narendra Modi" rather than strengthening the opposition alliance. His remarks prompted a sharp reaction from the TMC, which criticised Chowdhury for making "callous remarks" and cautioned the Congress high command to rein in their state president.
The West Bengal unit of the Congress has criticized the Trinamool Congress (TMC) for the lack of progress in seat-sharing talks, highlighting the tensions in the Opposition bloc, INDIA, as the Lok Sabha elections approach. Congress MP and party's West Bengal chief, Adhir Ranjan Chowdhury, criticized TMC Supremo and Chief Minister Mamata Banerjee for her rumored offer of two of the state's 42 Lok Sabha seats to the Congress.
| english |
Jurgen Klopp admitted his surprise at Liverpool’s stunning collapse to lose 7-2 at Aston Villa on Sunday.
Liverpool’s high line was torn apart by Villa’s counter-attack, while the absence of goalkeeper Alisson Becker to injury and Sadio Mane due to a positive coronavirus test was notable.
Alisson’s absence made a telling impact after just four minutes to get Villa in front as Adrian’s poor pass was seized upon by Jack Grealish, who squared for Watkins to score his first Premier League goal.
Despite a two-week layoff until they play again, Klopp has little time to make corrections on the training field with most of his squad away on international duty.
On their return, Liverpool travel to top-of-the-table Everton, who will be looking to win a Merseyside derby for the first time in a decade.
(With AFP inputs)
| english |
<gh_stars>1-10
#[path = "../../../gen/state/state.queues.v1.rs"]
#[rustfmt::skip]
pub mod v1;
| rust |
Muizzu became president in November after winning on his "India Out" campaign platform under which he called New Delhi's huge influence a threat to sovereignty. His government has since asked dozens of locally based Indian military personnel to leave. And in an apparent snub to India, Muizzu is in China this week, before any visit to his country's giant neighbour.
Despite domestic turmoil, engagement with India remains robust. Prime Minister Narendra Modi's landmark state visit in June gave concrete shape to an ambitious agenda, especially on defence, technology and securing resilient supply chains, followed by Biden's trip to India for G20 and bilateral talks.
Kamboj also stressed that UN peacekeeping missions could support host countries in addressing the issue of the illicit transfer of small arms and light weapons. She said this could take place by strengthening the capacities of law enforcement and security agencies in the safe handling, upkeep and stockpile management of arms and weapons, including those that have been recovered from non-state actors.
Kavach—which has been deployed in 1,465 route km on South Central Railway (Telangana: 684 km, Andhra Pradesh: 66 km , Karnataka: 117 km, Maharashtra: 598 km)—is a combination of devices that prevents the loco pilot or train driver from jumping signals and overspeeding. It can also guide a train during inclement weather like dense fog. If a loco pilot fails to apply the brakes, Kavach can do it. There is also a provision for auto whistling at level crossing. Most importantly, it prevents collision of trains, thanks to direct loco-to-loco communication.
For the UK, the simple fact is that, outside the European Union, it is no longer an economy of such size and potential that it can expect massive concessions. Brexiteers might have promised that a liberated Britain could negotiate without one hand tied behind its back by Brussels.
The Delhi High Court has ordered the government to refund Vodafone Idea the integrated tax of Rs 7.12 crore that was paid on the export of international roaming and long-distance services. The court held that these services qualified as export of services and should be treated as such under the applicable rules and regulations.
More than two dozen opposition parties have formed the Indian National Developmental Inclusive Alliance (INDIA) to take on the BJP in next year's general elections. Replying to a question about apparent friction in West Bengal as the Congress has staked claim to some seats, the veteran politician said there are no elections there in the immediate future.
According to India's government, the microprocessor chips that power all things digital will soon be fully made in India. It's an ambition as unlikely as it is bold, and speaks volumes about Modi's belief that he can propel India into the top tier of advanced technology manufacturing.
China's President Xi Jinping's decision to skip the G20 summit has raised concerns about Beijing's strained relations with major powers and the growing secrecy within the ruling Communist Party. While no reason was given for Xi's absence, analysts suggest tensions with India and China's focus on strengthening ties with the developing world may have played a role. Additionally, the possibility of a meeting with US President Joe Biden at the APEC summit in November may have made Xi's attendance at the G20 less essential. The lack of transparency surrounding Xi's absence reflects China's increasing control and secrecy under his leadership.
Elsewhere in Asia, the contest is about semiconductors, the high-value heart of communication, transportation, artificial intelligence, and a lot else besides. From Thailand to Singapore and Malaysia, several countries are now in the fray to shift the locus of front-end chip manufacturing from East to Southeast and South Asia. India is trying tostep on that ladder via packaging and testing. While those plans are yet to bear fruit, cheap labor has already made the nation an upcoming rival to Vietnam in a low-value-added activity like assembling electronics parts.
Recessionary forces are making MSME players stay away from global trade expos this year. This means they lose out on opportunities to renew contracts or sign fresh ones, leading to loss of business and putting a dampener on the country’s export growth potential.
Speaking at the UN Security Council's open debate on 'Threats to International Peace and Security: Risks Stemming from Violations of Agreements Regulating the Exports of Weapons and Military Equipments' held on Monday under Russia's Presidency of the Council for the month of April, India's Permanent Representative to the UN Ambassador Ruchira Kamboj also asserted that "certain states with dubious proliferation credentials" that collude with terrorists should be held accountable for their "misdeeds".
However, the data packed a surprise. In the same period, services exports rose by a staggering 36.9% to $29.15 billion. In fact, cumulatively services exports for the 11 months ended February aggregate $296.94 billion. With less than a month to go, it is apparent that India will log a new record in 2022-23.
India is a great technology innovator and offers fifth generation or 5G-led opportunities, and can lead Asia and the world in the next generation technology, following the region's changing risk profile, a top executive of the US-based telco said.
Importers such as India, Bangladesh and Pakistan will try to increase palm oil purchases from Malaysia, but the world's second-biggest palm oil producer cannot fill the gap created by Indonesia, experts have said.
| english |
# coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import os
from azure.containerregistry import (
ContainerRepositoryClient,
ContainerRegistryClient,
ContainerRegistryUserCredential,
TagProperties,
ContentPermissions,
RegistryArtifactProperties,
)
class ContainerRegistryTestClass(object):
def create_registry_client(self, endpoint):
return ContainerRegistryClient(
endpoint=endpoint,
credential=ContainerRegistryUserCredential(
username=os.environ["CONTAINERREGISTRY_USERNAME"],
password=os.environ["<PASSWORD>"],
),
)
def create_repository_client(self, endpoint, name):
return ContainerRepositoryClient(
endpoint=endpoint,
repository=name,
credential=ContainerRegistryUserCredential(
username=os.environ["CONTAINERREGISTRY_USERNAME"],
password=<PASSWORD>["<PASSWORD>"],
),
)
def assert_content_permission(self, content_perm, content_perm2):
assert isinstance(content_perm, ContentPermissions)
assert isinstance(content_perm2, ContentPermissions)
assert content_perm.can_delete == content_perm.can_delete
assert content_perm.can_list == content_perm.can_list
assert content_perm.can_read == content_perm.can_read
assert content_perm.can_write == content_perm.can_write
def assert_tag(
self,
tag,
created_on=None,
digest=None,
last_updated_on=None,
content_permission=None,
name=None,
registry=None,
repository=None,
):
assert isinstance(tag, TagProperties)
assert isinstance(tag.content_permissions, ContentPermissions)
assert isinstance(tag.created_on, datetime)
assert isinstance(tag.last_updated_on, datetime)
if content_permission:
self.assert_content_permission(tag.content_permission, content_permission)
if created_on:
assert tag.created_on == created_on
if last_updated_on:
assert tag.last_updated_on == last_updated_on
if name:
assert tag.name == name
if registry:
assert tag.registry == registry
if repository:
assert tag.repository == repository
def assert_registry_artifact(self, tag_or_digest, expected_tag_or_digest):
assert isinstance(tag_or_digest, RegistryArtifactProperties)
assert tag_or_digest == expected_tag_or_digest
| python |
import React, { Component } from 'react'
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
class EditButton extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
}
componentDidUpdate(prevProps) {
}
componentDidMount() {
}
onEdit = () => {
this.props.onEdit();
}
render() {
return (
<a href="javascript:void(0)" title="Sửa" onClick={this.onEdit}><i className="fa fa-edit" aria-hidden="true" style={{'fontSize': '20px'}}></i></a>
)
}
}
export default (EditButton); | javascript |
New Delhi: Rallies and speeches have their place, but Bhagwat kathas and bhandaras are currently all the rage for political heavyweights in poll-bound Madhya Pradesh.
With elections due in the state next year, political leaders from the Bharatiya Janata Party (BJP) as well as the Congress have been hosting lavish religious programmes to connect with the public. These occasions can go on for days and attract lakhs of devout participants. Provisions are also usually made for bhandaras (religious community meals) that may cater to as many as 50,000 people per sitting.
Several ministers of the Shivraj Singh Chouhan-led BJP government have already organised Bhagwat or Rama kathas (recitations from religious texts of stories about Lord Krishna and Rama respectively). These include home minister Narottam Mishra, water resources minister Tulsi Silawat, urban development minister Bhupendra Singh, public works department minister Gopal Bhargava, and transport minister Govind Singh Rajput.
According to sources, the calendars of top religious gurus and katha vachaks (spiritual orators) like Pradeep Mishra, Jaya Kishori, Dhirendra Shastri, and Avdheshanand Giri are booked from December through March. Among the prominent leaders who are expected to host kathas in the near future are former Congress CM Kamal Nath, Congress MLA Ajay Tandon, and Union minister Jyotiraditya Scindia, sources added.
When asked about why there is such an explosion of religious events organised by politicians, state leaders offered two broad reasons: Promoting sanskaar (cultural values) and winning voter support ahead of polls.
Minister of state Ramkishore Kawre, for instance, indicated that religious programmes were not done for political motives but to “awaken moral values”.
“After listening to such gurus speak, people are motivated to practice what they have heard. Making people sanskaari (cultured) is our responsibility,” Kawre said.
However, another minister in the Chouhan cabinet acknowledged on condition of anonymity that religious events had more crowd-pulling power than political meetings.
Notably, months ahead of the Gujarat election, numerous BJP leaders had hosted religious extravaganzas, which had received criticism from the opposition Congress as being a “surrogate campaign”. Now, the party, which swept the Gujarat polls, seems to be following the katha formula in MP too, with some Congress leaders also getting in on the act.
From 9 to 15 December, state urban development minister Bhupendra Singh hosted one of this pre-poll season’s grandest Bhagwat kathas in Sagar district’s Khurai. Presided over by popular preacher Sant Kamal Kishore, the event was attended by lakhs of people and involved extensive preparations overseen by numerous committees for water, food, lighting, security, publicity, and so on.
According to reports, the event was a success, but it was also shadowed by controversy after the sub-divisional magistrate (SDM) passed an order to change school timings to facilitate attendance at the programme. The Madhya Pradesh Human Rights Commission has now reportedly taken cognisance of the matter.
Another high-profile week-long Bhagwat katha this month was hosted by MP agriculture minister Kamal Patel in his constituency Harda. The attendees included CM Shivraj Singh Chouhan and BJP national general secretary Kailash Vijayvargiya. Videos of Vijayvargiya singing a bhajan and Patel dancing vigorously were shared widely in the state.
This event’s vachak was the 1996-born Jaya Kishori. She is one of the youngest spiritual orators to hit the big league in MP. At the end of the event, the CM bestowed blessings on 133 couples who were married under a state scheme for underprivileged women.
Several other such big-ticket events are either ongoing or on the cards for the coming weeks too. K. P. Yadav, the BJP MP from Guna who famously defeated Union minister Jyotiraditya Scindia, is hosting a Bhagwat katha from 19-25 December, where the vachak is the much-in-demand Pradeep Mishra.
Not to be outdone, Congress leader and former chief minister Kamal Nath has also reportedly invited Mishra to speak at a katha in his constituency Chhindwara.
Sources close to Scindia also told ThePrint that he has sought time from Avdheshanand Giri to organise a Bhagwat katha.
Among the many BJP leaders who have kathas lined up is former women and child development minister Archana Chitnis, who lost the last assembly election from Burhanpur.
According to her, extensive preparations are on for a Shiva Mahapuran katha, which is expected to start on 2 February. Pradeep Mishra is expected to be the vachak.
“Several committees have been formed for taking care of the food, transport, finances etc. There are also 100 women who are going on prabhat pheris (morning rounds while singing devotional songs) to villages for people’s participation. This is a mass contact programme,” Chitnis said.
She claimed that there are two primary reasons for organising such events. “The first reason is to help make adarsh (ideal) citizens out of people. As public representatives, we have a responsibility to make society an ideal place where dharma (duty), sanskriti (culture), and religion are part of people’s lives. In these kathas, where lakhs of people participate, they get moral direction,” she said.
Another former minister who said he will host a katha in February is former state agriculture minister Gaurishankar Bisen.
According to him, kathas are a way of reaching out to people. “Kathas make people happy and deepen their emotional connect with their local representative. People remember such events more than any public political meeting,” Bisen told ThePrint.
Bhopal-based political analyst Girija Shankar, however, said that the primary benefit of religious programmes was cadre mobilisation ahead of elections.
“The entire set-up of local workers becomes active, committees form, people have to participate and work for some months,” he explained.
Such events can also help reduce anti-incumbency, he added, even if they don’t have a direct effect on the electoral outcome.
(Edited by Asavari Singh) | english |
Download PDF of AAP Candidates List 2020 with Photos from the link available below in the article, AAP Candidates List 2020 with Photos PDF free or read online using the direct link given at the bottom of content.
AAP Candidates List 2020 with Photos PDF read online or download for free from the official website link given at the bottom of this article.
Download Aam Aadmi Party Candidates List 2020 with Photos in PDF format for Delhi Assembly Elections. Vidhan Sabha Elections in Delhi will be held on 8th February 2020.
REPORT THISIf the purchase / download link of AAP Candidates List 2020 with Photos PDF is not working or you feel any other problem with it, please REPORT IT by selecting the appropriate action such as copyright material / promotion content / link is broken etc. If this is a copyright material we will not be providing its PDF or any source for downloading at any cost.
| english |
{
"id": 105,
"surahNumber": "002",
"ayatNumber": "098",
"arabic": "مَنْ كَانَ عَدُوًّا لِلَّهِ وَمَلَائِكَتِهِ وَرُسُلِهِ وَجِبْرِيلَ وَمِيكَالَ فَإِنَّ اللَّهَ عَدُوٌّ لِلْكَافِرِينَ",
"english": "\"Whoever is an enemy to Allah, His Angels, His Messengers, Jibrael (Gabriel) and Mikael (Michael), then verily, Allah is an enemy to the disbelievers.\"",
"bengali": "যে ব্যক্তি আল্লাহ তাঁর ফেরেশতা ও রসূলগণ এবং জিবরাঈল ও মিকাঈলের শত্রু হয়, নিশ্চিতই আল্লাহ সেসব কাফেরের শত্রু।"
}
| json |
{"ast":null,"code":"import { __awaiter, __generator } from \"tslib\";\nexport function deserializerMiddleware(options, deserializer) {\n var _this = this;\n\n return function (next) {\n return function (args) {\n return __awaiter(_this, void 0, void 0, function () {\n var response, parsed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , next(args)];\n\n case 1:\n response = _a.sent().response;\n return [4\n /*yield*/\n , deserializer(response, options)];\n\n case 2:\n parsed = _a.sent();\n return [2\n /*return*/\n , {\n response: response,\n output: parsed\n }];\n }\n });\n });\n };\n };\n}","map":{"version":3,"sources":["../../src/deserializerMiddleware.ts"],"names":[],"mappings":";AAQA,OAAM,SAAU,sBAAV,CACJ,OADI,EAEJ,YAFI,EAEsD;AAF5D,MAAA,KAAA,GAAA,IAAA;;AAIE,SAAO,UAAC,IAAD,EAAwC;AAAwC,WAAA,UACrF,IADqF,EAC7C;AAAA,aAAA,SAAA,CAAA,KAAA,EAAA,KAAA,CAAA,EAAA,KAAA,CAAA,EAAA,YAAA;;;;;AAEnB,qBAAA,CAAA;AAAA;AAAA,gBAAM,IAAI,CAAC,IAAD,CAAV,CAAA;;;AAAb,cAAA,QAAQ,GAAK,EAAA,CAAA,IAAA,EAAA,CAAL,QAAR;AACO,qBAAA,CAAA;AAAA;AAAA,gBAAM,YAAY,CAAC,QAAD,EAAW,OAAX,CAAlB,CAAA;;;AAAT,cAAA,MAAM,GAAG,EAAA,CAAA,IAAA,EAAT;AACN,qBAAA,CAAA;AAAA;AAAA,gBAAO;AACL,gBAAA,QAAQ,EAAA,QADH;AAEL,gBAAA,MAAM,EAAE;AAFH,eAAP,CAAA;;;OAJwC,CAAA;AAD6C,KAAA;AAStF,GATD;AAUD","sourcesContent":["import {\n DeserializeHandler,\n DeserializeHandlerArguments,\n DeserializeHandlerOutput,\n DeserializeMiddleware,\n ResponseDeserializer,\n} from \"@aws-sdk/types\";\n\nexport function deserializerMiddleware<Input extends object, Output extends object, RuntimeUtils = any>(\n options: RuntimeUtils,\n deserializer: ResponseDeserializer<any, any, RuntimeUtils>\n): DeserializeMiddleware<Input, Output> {\n return (next: DeserializeHandler<Input, Output>): DeserializeHandler<Input, Output> => async (\n args: DeserializeHandlerArguments<Input>\n ): Promise<DeserializeHandlerOutput<Output>> => {\n const { response } = await next(args);\n const parsed = await deserializer(response, options);\n return {\n response,\n output: parsed as Output,\n };\n };\n}\n"],"sourceRoot":""},"metadata":{},"sourceType":"module"} | json |
U. S. talks with the Taliban are an indicator that its options in Afghanistan are narrowing, and India and China should seek more avenues of cooperation there for regional stability, says U. S. academic and former senior adviser to the U. S. on Afghanistan and Pakistan, Barnett Rubin.
The U. S. continues to engage with the Taliban, with a second round of talks in Doha recently, despite Taliban escalating violence in Afghanistan. Why?
When you’re at war, you don’t engage your enemy despite the fact that they’re engaging in violence, but because they’re engaging in violence and you want to end it. The U. S. has concluded that its military options have accomplished whatever they are going to accomplish. In addition, the Afghan government has been pushing for talks with the Taliban for sometime.
Remember, the U. S. is far away and Afghanistan is landlocked, so whatever the U. S. ’s leadership says about being committed, eventually the U. S. will leave, and we have to prepare the way for that and people in the region need to prepare for a post-American era in Afghanistan.
Despite President Donald Trump’s January 1 tweet threatening Pakistan, nothing appears to have changed in terms of support to terror groups and safe havens. Has the U. S. run out of levers over Pakistan today?
The U. S. has much less leverage over Pakistan now than it ever had before, because Pakistan is so much closer to China, and China is so much bigger than it used to be.
Also, the U. S. still needs access to Afghanistan through Pakistan, because the options — Iran, and the northern route through Russia — are even more difficult as we have put sanctions on both.
We could put sanctions on Pakistan, but only if the U. S. no longer has troops in Afghanistan.
Why do you think the U. S. will pull out eventually?
Because Trump doesn’t want to be there. Most of what he does is motivated by domestic policy. There is no or very little political support in the U. S. to continue fighting in Afghanistan, or to spend billions of dollars there.
The appointment of Zalmay Khalilzad as special envoy for reconciliation is also contrary to the U. S. policy that talks were not essential to the South Asia Policy. I think President Trump has never been enthusiastic about the war in Afghanistan. He gave the military a chance, but has now given them some sort of a deadline, and he doesn’t want to campaign for the 2020 elections with U. S. troops still fighting in Afghanistan.
Has the U. S. ’s South Asia Policy, announced more than a year ago, failed?
Well, I think there were two basic flaws in the policy. One, that they called it a regional policy for South Asia. But Afghanistan also borders Central Asia and the Persian Gulf region, and Trump never mentioned Russia, China or Iran. Also, there is this delusion in the U. S. that they can strengthen the Afghan government and get control of 80% of the population, thereby forcing the Taliban to negotiate which just did not succeed. The Afghan government has become weaker too. So in my judgment the South Asia policy has failed. I think President Trump has now looked at the other two options: to privatise the war, which is unacceptable to the Afghan government, and to try and make peace.
You have said that India and China should cooperate further on Afghanistan, but they have fundamental differences over the CPEC/BRI and China’s stand on designating terrorists in Pakistan. Can they overcome those differences?
Both India and China need a stable region to help their big plans for growth. There is a possible railroad project in Afghanistan for a rail link, for example, that Uzbekistan has asked India to participate in, and I think it should be encouraged, as it would effectively connect China to Chabahar and would give China options to Gwadar.
So the India-China conflict should not preclude cooperating from time to time when their interests converge. | english |
use std::fmt;
use crate::{Directive, StringValue};
/// The EnumValue type represents one of possible values of an enum.
///
/// *EnumValueDefinition*:
/// Description? EnumValue Directives?
///
/// Detailed documentation can be found in [GraphQL spec](https://spec.graphql.org/October2021/#sec-The-__EnumValue-Type).
///
/// ### Example
/// ```rust
/// use apollo_encoder::{Argument, Directive, EnumValue, Value};
///
/// let mut enum_ty = EnumValue::new("CARDBOARD_BOX".to_string());
/// enum_ty.description("Box nap spot.".to_string());
/// let mut deprecated_directive = Directive::new(String::from("deprecated"));
/// deprecated_directive.arg(Argument::new(
/// String::from("reason"),
/// Value::String(String::from(
/// "Box was recycled.",
/// )),
/// ));
/// enum_ty.directive(deprecated_directive);
///
/// assert_eq!(
/// enum_ty.to_string(),
/// r#" "Box nap spot."
/// CARDBOARD_BOX @deprecated(reason: "Box was recycled.")"#
/// );
/// ```
#[derive(Debug, PartialEq, Clone)]
pub struct EnumValue {
// Name must return a String.
name: String,
// Description may return a String or null.
description: Option<StringValue>,
/// The vector of directives
directives: Vec<Directive>,
}
impl EnumValue {
/// Create a new instance of EnumValue.
pub fn new(name: String) -> Self {
Self {
name,
description: None,
directives: Vec::new(),
}
}
/// Set the Enum Value's description.
pub fn description(&mut self, description: String) {
self.description = Some(StringValue::Field {
source: description,
});
}
/// Add a directive.
pub fn directive(&mut self, directive: Directive) {
self.directives.push(directive)
}
}
impl fmt::Display for EnumValue {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if let Some(description) = &self.description {
write!(f, "{}", description)?;
}
write!(f, " {}", self.name)?;
for directive in &self.directives {
write!(f, " {}", directive)?;
}
Ok(())
}
}
#[cfg(test)]
mod tests {
use crate::{Argument, Value};
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn it_encodes_an_enum_value() {
let enum_ty = EnumValue::new("CAT_TREE".to_string());
assert_eq!(enum_ty.to_string(), " CAT_TREE");
}
#[test]
fn it_encodes_an_enum_value_with_desciption() {
let mut enum_ty = EnumValue::new("CAT_TREE".to_string());
enum_ty.description("Top bunk of a cat tree.".to_string());
assert_eq!(
enum_ty.to_string(),
r#" "Top bunk of a cat tree."
CAT_TREE"#
);
}
#[test]
fn it_encodes_an_enum_value_with_directive() {
let mut enum_ty = EnumValue::new("CARDBOARD_BOX".to_string());
let mut directive = Directive::new(String::from("testDirective"));
directive.arg(Argument::new(
String::from("first"),
Value::List(vec![Value::Int(1), Value::Int(2)]),
));
enum_ty.description("Box nap\nspot.".to_string());
enum_ty.directive(directive);
assert_eq!(
enum_ty.to_string(),
r#" """
Box nap
spot.
"""
CARDBOARD_BOX @testDirective(first: [1, 2])"#
);
}
#[test]
fn it_encodes_an_enum_value_with_deprecated_block_string_value() {
let mut enum_ty = EnumValue::new("CARDBOARD_BOX".to_string());
enum_ty.description("Box nap\nspot.".to_string());
let mut deprecated_directive = Directive::new(String::from("deprecated"));
deprecated_directive.arg(Argument::new(
String::from("reason"),
Value::String(String::from(r#"Box was "recycled"."#)),
));
enum_ty.directive(deprecated_directive);
assert_eq!(
enum_ty.to_string(),
r#" """
Box nap
spot.
"""
CARDBOARD_BOX @deprecated(reason: """Box was "recycled".""")"#
);
}
}
| rust |
Hyderabad: A day after his remarks on KCR's daughter, BJP MP's house 'attacked by TRS workers'
Hyderabad, Nov 18: BJP's Lok Sabha MP from Nizamabad, Telangana Arvind Dharmapuri has alleged that his house was vandalised by the Telugu Rashtra Samiti (TRS) workers on Friday.
The Nizamabad MP also alleged in a Twitter post that the TRS workers terrorised his mother and created ruckus.
Arvind Dharmapuri wrote on Twitter,"TRS goons attacked my house in Hyderabad on the orders of KCR, KTR, K Kavita. They were breaking things in the house, creating chaos and threatening my mother! TRS goons attacked my residence and vandalised the house. They terrorised my mother & created ruckus".
ఇంట్లో వస్తువులు పగలగొడుతూ, బీభత్సం సృష్టిస్తూ, మా అమ్మను బెదిరించారు!
TRS goons attacked my residence and vandalised the house.
The residence of the MP is located at Banzara Hills. When the incident took place the BJP MP was in his Lok Sabha constituency.
What led to vandalization?
The incident took place a day after BJP MP Dharmapuri made remarks on the MLC Kavitha Kalavkuntla on Thursday at a press conference.
On Thursday, during a press conference, the BJP MP slammed the TRS MLA and daughter of Telangana's CM, K Kavita and said that she has got an offer from the Congress president Mallikarjun Kharge to switch sides and join Congress.
Besides, Dharampuri also reportedly said the Telangana CM KCR is the "silly CM in the entire country".
Moreover, Dharmapuri also questioned KTR over his statement of the BJP trying to lure his sister. The BJP Mp asked "KTR, what should we do after buying Kavita? ? We are not a party that is running a business to get Kavita! ! ".
While responding to the remarks of the BJP MP, K Kavitha said that he has done nothing for Nizamabad and that she would compete against him from wherever he will run for the election.
(With inputs from ANI) | english |
'use strict';
module.exports = (appInfo) => {
const config = (exports = {});
config.logger = {
level: 'NONE',
consoleLevel: 'DEBUG',
};
config.assets = {
devServer: {
debug: true,
autoPort: true,
},
dynamicLocalIP: false,
};
return config;
};
| javascript |
#!/usr/bin/env python3
from setuptools import find_namespace_packages, setup
setup(
name="covid_graphs",
version="1.0",
description="COVID-19 graph plotting",
install_requires=[
"click",
"click_pathlib",
"dash",
"Flask",
"numpy",
"pandas",
"protobuf",
"plotly",
"pytest",
"scipy",
],
dependency_links=[],
python_requires=">=3.7",
packages=find_namespace_packages(),
entry_points={
"console_scripts": [
"covid_graphs.run_server = covid_graphs.scripts.server:run_server",
"covid_graphs.show_country_plot = covid_graphs.country:main",
"covid_graphs.show_heat_map = covid_graphs.heat_map:main",
"covid_graphs.show_scatter_plot = covid_graphs.scatter_plot:main",
"covid_graphs.prepare_data = covid_graphs.prepare_data:main"
]
},
package_data={"": ["*.html"]},
)
| python |
package io.onedev.server.web.page.base;
import java.util.List;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.request.resource.CssResourceReference;
import io.onedev.server.web.asset.bootstrap.BootstrapCssResourceReference;
public class BaseCssResourceReference extends CssResourceReference {
private static final long serialVersionUID = 1L;
public BaseCssResourceReference() {
super(BaseCssResourceReference.class, "base.css");
}
@Override
public List<HeaderItem> getDependencies() {
List<HeaderItem> dependencies = super.getDependencies();
dependencies.add(CssHeaderItem.forReference(new BootstrapCssResourceReference()));
return dependencies;
}
}
| java |
12 (A)N’aba Yuda:
Eri, ne Onani, ne Seera, ne Pereezi ne Zeera; naye bo Eri ne Onani baafiira mu nsi ya Kanani.
Batabani ba Pereezi baali:
Kezulooni ne Kamuli.
20 (A)Ab’omu kika kya Yuda ng’ennyiriri zaabwe bwe zaali, be bano:
abaava mu Seera, lwe lunyiriri lw’Abaseera;
abaava mu Pereezi, lwe lunyiriri lw’Abapereezi;
abaava mu Zeera, lwe lunyiriri lw’Abazeera.
21 (A)Bazzukulu ba Pereezi be bano:
abaava mu Kamuli, lwe lunyiriri lw’Abakamuli.
4 (A)Tamali muka mwana wa Yuda, n’azaalira Yuda Pereezi, ne Zeera.
Batabani ba Yuda bonna awamu baali bataano.
3 (A)Yuda n’azaala Pereezi ne Zeera mu Tamali,
Pereezi n’azaala Kezirooni,
Kezirooni n’azaala Laamu.
Bayibuli Entukuvu, Endagaano Enkadde nʼEndagaano Empya Copyright © 1984, 1986, 1993, 2014 by Biblica, Inc.® Tuweereddwa olukusa okuva mu Biblica, Inc.® Olukusa lwonna mu nsi yonna lusigalidde mu Biblica, Inc. Luganda Contemporary Bible Copyright © 1984, 1986, 1993, 2014 by Biblica, Inc.® Used by permission of Biblica, Inc.® All rights reserved worldwide.
| english |
import { createStyles, CoSize, CoPalette, defaultFontStyles } from '@co-design/styles';
import { CO_HEIGHTS } from '../../constants';
import { getFieldValue } from '../../utils';
export type AvatarShape = 'square' | 'round' | 'circle';
interface AvatarStyles {
size: CoSize | number;
shape: AvatarShape;
color: CoPalette;
}
export default createStyles((theme, { size, shape, color }: AvatarStyles) => ({
root: {
WebkitTapHighlightColor: 'transparent',
boxSizing: 'border-box',
position: 'relative',
userSelect: 'none',
overflow: 'hidden',
width: getFieldValue(size, CO_HEIGHTS),
minWidth: getFieldValue(size, CO_HEIGHTS),
height: getFieldValue(size, CO_HEIGHTS),
borderRadius: shape === 'circle' ? theme.radius.circular : shape === 'round' ? theme.radius.medium : 0,
},
image: {
objectFit: 'cover',
width: '100%',
height: '100%',
display: 'block',
},
placeholder: {
...defaultFontStyles(theme),
fontSize: getFieldValue(size, CO_HEIGHTS) / 3,
color: theme.palettes[color][theme.colorScheme === 'dark' ? 3 : 5],
fontWeight: 700,
backgroundColor: theme.palettes[color][theme.colorScheme === 'dark' ? 7 : 2],
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
height: '100%',
userSelect: 'none',
},
placeholderIcon: {
width: '70%',
height: '70%',
color: theme.palettes[color][theme.colorScheme === 'dark' ? 3 : 5],
},
}));
| typescript |
export * from './checkTodo'
export * from './checkTodoInputs'
export * from './checkTodoUser'
| typescript |
<reponame>pixelastic/maps-data
{
"author": {
"id": "t2_4mxg7w1",
"name": "ickyclicky"
},
"date": {
"day": 1580342400,
"full": 1580406485,
"month": 1577836800,
"week": 1579996800
},
"id": "t3_ew99g9",
"misc": {
"postHint": "image"
},
"picture": {
"filesize": 210046,
"fullUrl": "https://preview.redd.it/s7tz1lq7eyd41.jpg?auto=webp&s=335cad232c94194c27a3c53344ed4cddd525a136",
"hash": "42e65f1b34",
"height": 1138,
"lqip": "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAQAAkDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABgX/xAAnEAABBAEBBgcAAAAAAAAAAAABAgMEEQAGBRITITFRFBVBVJGS0f/EABUBAQEAAAAAAAAAAAAAAAAAAAME/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAAwQSIUFh/9oADAMBAAIRAxEAPwCfP0+5B0vGU5GblvvIbCFsIFJG7Y3uh6VeBfBP9l/GOYm02ZWlmI83a6WRGQE8JKKJSkUkChzJr0788B+YH27n2H5g47WksH68k12vBWf/2Q==",
"thumbnailUrl": "https://b.thumbs.redditmedia.com/XE3q5EbaKLoT2NqFcgGINtyKkQrKLGGwPdQfnc-PfSc.jpg",
"url": "https://preview.redd.it/s7tz1lq7eyd41.jpg?width=640&crop=smart&auto=webp&s=560f939e8987ef18a7ca0adc1e060bc4ba75a5ac",
"width": 640
},
"score": {
"comments": 35,
"downs": 0,
"isCurated": false,
"ratio": 0.97,
"ups": 177,
"value": 177
},
"subreddit": {
"id": "t5_3isai",
"name": "dndmaps"
},
"tags": ["Region"],
"title": "Looking for some feedback! Made this map as a starting continent for my players.",
"url": "https://www.reddit.com/r/dndmaps/comments/ew99g9/looking_for_some_feedback_made_this_map_as_a/"
}
| json |
<filename>obj/2021/03/20210326JH.js<gh_stars>1-10
//https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/03-26-2021.csv
export const JH20210326 =[
{
Confirmed: 56254,
Deaths: 2467,
Recovered: 49994,
Active: 3793,
Province_State: "",
Country_Region: "Afghanistan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 123216,
Deaths: 2192,
Recovered: 88349,
Active: 32675,
Province_State: "",
Country_Region: "Albania",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 116657,
Deaths: 3074,
Recovered: 81160,
Active: 32423,
Province_State: "",
Country_Region: "Algeria",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 11732,
Deaths: 114,
Recovered: 11149,
Active: 469,
Province_State: "",
Country_Region: "Andorra",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 21961,
Deaths: 532,
Recovered: 20250,
Active: 1179,
Province_State: "",
Country_Region: "Angola",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1122,
Deaths: 28,
Recovered: 784,
Active: 310,
Province_State: "",
Country_Region: "Antigua and Barbuda",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2291051,
Deaths: 55235,
Recovered: 2064479,
Active: 171337,
Province_State: "",
Country_Region: "Argentina",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 188446,
Deaths: 3434,
Recovered: 170160,
Active: 14852,
Province_State: "",
Country_Region: "Armenia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 530288,
Deaths: 9200,
Recovered: 486088,
Active: 35000,
Province_State: "",
Country_Region: "Austria",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 252680,
Deaths: 3445,
Recovered: 234893,
Active: 14342,
Province_State: "",
Country_Region: "Azerbaijan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 8935,
Deaths: 188,
Recovered: 7757,
Active: 990,
Province_State: "",
Country_Region: "Bahamas",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 139953,
Deaths: 512,
Recovered: 131594,
Active: 7847,
Province_State: "",
Country_Region: "Bahrain",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 588132,
Deaths: 8830,
Recovered: 531651,
Active: 47651,
Province_State: "",
Country_Region: "Bangladesh",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3603,
Deaths: 41,
Recovered: 3419,
Active: 143,
Province_State: "",
Country_Region: "Barbados",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 316418,
Deaths: 2202,
Recovered: 307004,
Active: 7212,
Province_State: "",
Country_Region: "Belarus",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 12415,
Deaths: 317,
Recovered: 12061,
Active: 37,
Province_State: "",
Country_Region: "Belize",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 7100,
Deaths: 90,
Recovered: 6452,
Active: 558,
Province_State: "",
Country_Region: "Benin",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 870,
Deaths: 1,
Recovered: 867,
Active: 2,
Province_State: "",
Country_Region: "Bhutan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 268711,
Deaths: 12143,
Recovered: 217103,
Active: 39465,
Province_State: "",
Country_Region: "Bolivia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 162032,
Deaths: 6220,
Recovered: 128241,
Active: 27571,
Province_State: "",
Country_Region: "Bosnia and Herzegovina",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 38466,
Deaths: 506,
Recovered: 33903,
Active: 4057,
Province_State: "",
Country_Region: "Botswana",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 206,
Deaths: 3,
Recovered: 188,
Active: 15,
Province_State: "",
Country_Region: "Brunei",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 325233,
Deaths: 12601,
Recovered: 247451,
Active: 65181,
Province_State: "",
Country_Region: "Bulgaria",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 12650,
Deaths: 145,
Recovered: 12314,
Active: 191,
Province_State: "",
Country_Region: "Burkina Faso",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 142340,
Deaths: 3205,
Recovered: 131781,
Active: 7354,
Province_State: "",
Country_Region: "Myanmar (formerly Burma)",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2657,
Deaths: 6,
Recovered: 773,
Active: 1878,
Province_State: "",
Country_Region: "Burundi",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 16911,
Deaths: 165,
Recovered: 16011,
Active: 735,
Province_State: "",
Country_Region: "Cabo Verde",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1968,
Deaths: 8,
Recovered: 1074,
Active: 886,
Province_State: "",
Country_Region: "Cambodia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 47669,
Deaths: 721,
Recovered: 35261,
Active: 11687,
Province_State: "",
Country_Region: "Cameroon",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 5088,
Deaths: 64,
Recovered: 4957,
Active: 67,
Province_State: "",
Country_Region: "Central African Republic",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4480,
Deaths: 158,
Recovered: 4094,
Active: 228,
Province_State: "",
Country_Region: "Chad",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3689,
Deaths: 146,
Recovered: 3494,
Active: 49,
Province_State: "",
Country_Region: "Comoros",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 9681,
Deaths: 135,
Recovered: 8208,
Active: 1338,
Province_State: "",
Country_Region: "Congo (Congo-Brazzaville)",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 215178,
Deaths: 2931,
Recovered: 191707,
Active: 20540,
Province_State: "",
Country_Region: "Costa Rica",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 42468,
Deaths: 229,
Recovered: 38246,
Active: 3993,
Province_State: "",
Country_Region: "Côte d'Ivoire",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 264111,
Deaths: 5854,
Recovered: 249205,
Active: 9052,
Province_State: "",
Country_Region: "Croatia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 70634,
Deaths: 413,
Recovered: 66847,
Active: 3374,
Province_State: "",
Country_Region: "Cuba",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 43971,
Deaths: 248,
Recovered: 2057,
Active: 41666,
Province_State: "",
Country_Region: "Cyprus",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1503307,
Deaths: 25639,
Recovered: 1299552,
Active: 178116,
Province_State: "",
Country_Region: "Czechia (Czech Republic)",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 226633,
Deaths: 2411,
Recovered: 215596,
Active: 8626,
Province_State: "",
Country_Region: "Denmark",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 7169,
Deaths: 66,
Recovered: 6235,
Active: 868,
Province_State: "",
Country_Region: "Djibouti",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 161,
Deaths: 0,
Recovered: 153,
Active: 8,
Province_State: "",
Country_Region: "Dominica",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 251332,
Deaths: 3298,
Recovered: 210396,
Active: 37638,
Province_State: "",
Country_Region: "Dominican Republic",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 321451,
Deaths: 16632,
Recovered: 271847,
Active: 32972,
Province_State: "",
Country_Region: "Ecuador",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 198681,
Deaths: 11804,
Recovered: 152198,
Active: 34679,
Province_State: "",
Country_Region: "Egypt",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 63766,
Deaths: 1996,
Recovered: 61009,
Active: 761,
Province_State: "",
Country_Region: "El Salvador",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 6851,
Deaths: 102,
Recovered: 6335,
Active: 414,
Province_State: "",
Country_Region: "Equatorial Guinea",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3208,
Deaths: 9,
Recovered: 2970,
Active: 229,
Province_State: "",
Country_Region: "Eritrea",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 101587,
Deaths: 847,
Recovered: 72025,
Active: 28715,
Province_State: "",
Country_Region: "Estonia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 17312,
Deaths: 666,
Recovered: 16313,
Active: 333,
Province_State: "",
Country_Region: "Eswatini (fmr. \"Swaziland\")",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 196621,
Deaths: 2769,
Recovered: 152508,
Active: 41344,
Province_State: "",
Country_Region: "Ethiopia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 67,
Deaths: 2,
Recovered: 64,
Active: 1,
Province_State: "",
Country_Region: "Fiji",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 74754,
Deaths: 817,
Recovered: 46000,
Active: 27937,
Province_State: "",
Country_Region: "Finland",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4434884,
Deaths: 93714,
Recovered: 258699,
Active: 4082471,
Province_State: "",
Country_Region: "France",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 18426,
Deaths: 109,
Recovered: 15863,
Active: 2454,
Province_State: "",
Country_Region: "Gabon",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 5365,
Deaths: 163,
Recovered: 4990,
Active: 212,
Province_State: "",
Country_Region: "Gambia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 279446,
Deaths: 3738,
Recovered: 271585,
Active: 4123,
Province_State: "",
Country_Region: "Georgia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 90287,
Deaths: 740,
Recovered: 87137,
Active: 2410,
Province_State: "",
Country_Region: "Ghana",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 249458,
Deaths: 7754,
Recovered: 93764,
Active: 147940,
Province_State: "",
Country_Region: "Greece",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 155,
Deaths: 1,
Recovered: 152,
Active: 2,
Province_State: "",
Country_Region: "Grenada",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 192133,
Deaths: 6775,
Recovered: 174343,
Active: 11015,
Province_State: "",
Country_Region: "Guatemala",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 19403,
Deaths: 116,
Recovered: 16270,
Active: 3017,
Province_State: "",
Country_Region: "Guinea",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3615,
Deaths: 61,
Recovered: 2921,
Active: 633,
Province_State: "",
Country_Region: "Guinea-Bissau",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 10007,
Deaths: 225,
Recovered: 8801,
Active: 981,
Province_State: "",
Country_Region: "Guyana",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 12736,
Deaths: 251,
Recovered: 10754,
Active: 1731,
Province_State: "",
Country_Region: "Haiti",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 27,
Deaths: 0,
Recovered: 15,
Active: 12,
Province_State: "",
Country_Region: "Vatican",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 186337,
Deaths: 4536,
Recovered: 71027,
Active: 110774,
Province_State: "",
Country_Region: "Honduras",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 614612,
Deaths: 19499,
Recovered: 392314,
Active: 202799,
Province_State: "",
Country_Region: "Hungary",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 6163,
Deaths: 29,
Recovered: 6039,
Active: 95,
Province_State: "",
Country_Region: "Iceland",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1487541,
Deaths: 40166,
Recovered: 1322878,
Active: 124497,
Province_State: "",
Country_Region: "Indonesia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1838803,
Deaths: 62223,
Recovered: 1577408,
Active: 199172,
Province_State: "",
Country_Region: "Iran",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 822095,
Deaths: 14157,
Recovered: 736747,
Active: 71191,
Province_State: "",
Country_Region: "Iraq",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 233327,
Deaths: 4651,
Recovered: 23364,
Active: 205312,
Province_State: "",
Country_Region: "Ireland",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 831383,
Deaths: 6165,
Recovered: 814505,
Active: 10713,
Province_State: "",
Country_Region: "Israel",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 37458,
Deaths: 557,
Recovered: 16848,
Active: 20053,
Province_State: "",
Country_Region: "Jamaica",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 577734,
Deaths: 6374,
Recovered: 468037,
Active: 103323,
Province_State: "",
Country_Region: "Jordan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 289102,
Deaths: 3217,
Recovered: 262699,
Active: 23186,
Province_State: "",
Country_Region: "Kazakhstan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 128178,
Deaths: 2098,
Recovered: 91513,
Active: 34567,
Province_State: "",
Country_Region: "Kenya",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 101275,
Deaths: 1721,
Recovered: 93475,
Active: 6079,
Province_State: "",
Country_Region: "South Korea",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 84172,
Deaths: 1811,
Recovered: 70090,
Active: 12271,
Province_State: "",
Country_Region: "Kosovo",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 225980,
Deaths: 1270,
Recovered: 210024,
Active: 14686,
Province_State: "",
Country_Region: "Kuwait",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 87858,
Deaths: 1494,
Recovered: 84537,
Active: 1827,
Province_State: "",
Country_Region: "Kyrgyzstan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 49,
Deaths: 0,
Recovered: 45,
Active: 4,
Province_State: "",
Country_Region: "Laos",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 100114,
Deaths: 1867,
Recovered: 90537,
Active: 7710,
Province_State: "",
Country_Region: "Latvia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 455381,
Deaths: 6013,
Recovered: 356820,
Active: 92548,
Province_State: "",
Country_Region: "Lebanon",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 10686,
Deaths: 315,
Recovered: 4438,
Active: 5933,
Province_State: "",
Country_Region: "Lesotho",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2042,
Deaths: 85,
Recovered: 1899,
Active: 58,
Province_State: "",
Country_Region: "Liberia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 156116,
Deaths: 2602,
Recovered: 143697,
Active: 9817,
Province_State: "",
Country_Region: "Libya",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2645,
Deaths: 56,
Recovered: 2553,
Active: 36,
Province_State: "",
Country_Region: "Liechtenstein",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 212676,
Deaths: 3529,
Recovered: 196504,
Active: 12643,
Province_State: "",
Country_Region: "Lithuania",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 60465,
Deaths: 738,
Recovered: 56318,
Active: 3409,
Province_State: "",
Country_Region: "Luxembourg",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 23230,
Deaths: 378,
Recovered: 21461,
Active: 1391,
Province_State: "",
Country_Region: "Madagascar",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 33415,
Deaths: 1112,
Recovered: 29417,
Active: 2886,
Province_State: "",
Country_Region: "Malawi",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 339443,
Deaths: 1249,
Recovered: 323925,
Active: 14269,
Province_State: "",
Country_Region: "Malaysia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 23237,
Deaths: 66,
Recovered: 20529,
Active: 2642,
Province_State: "",
Country_Region: "Maldives",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 9719,
Deaths: 376,
Recovered: 6751,
Active: 2592,
Province_State: "",
Country_Region: "Mali",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 28715,
Deaths: 382,
Recovered: 26480,
Active: 1853,
Province_State: "",
Country_Region: "Malta",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4,
Deaths: 0,
Recovered: 4,
Active: 0,
Province_State: "",
Country_Region: "Marshall Islands",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 17745,
Deaths: 448,
Recovered: 16976,
Active: 321,
Province_State: "",
Country_Region: "Mauritania",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 871,
Deaths: 10,
Recovered: 592,
Active: 269,
Province_State: "",
Country_Region: "Mauritius",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 231360,
Deaths: 31039,
Recovered: 0,
Active: 200321,
Province_State: "Mexico",
Country_Region: "Mexico",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1,
Deaths: 0,
Recovered: 1,
Active: 0,
Province_State: "",
Country_Region: "Micronesia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 223986,
Deaths: 4745,
Recovered: 197623,
Active: 21618,
Province_State: "",
Country_Region: "Moldova",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2248,
Deaths: 28,
Recovered: 2052,
Active: 168,
Province_State: "",
Country_Region: "Monaco",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 6693,
Deaths: 5,
Recovered: 4237,
Active: 2450,
Province_State: "",
Country_Region: "Mongolia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 89363,
Deaths: 1234,
Recovered: 80835,
Active: 7294,
Province_State: "",
Country_Region: "Montenegro",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 493867,
Deaths: 8793,
Recovered: 481597,
Active: 3477,
Province_State: "",
Country_Region: "Morocco",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 66879,
Deaths: 758,
Recovered: 55074,
Active: 11047,
Province_State: "",
Country_Region: "Mozambique",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 43179,
Deaths: 504,
Recovered: 41153,
Active: 1522,
Province_State: "",
Country_Region: "Namibia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 276665,
Deaths: 3024,
Recovered: 272342,
Active: 1299,
Province_State: "",
Country_Region: "Nepal",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2481,
Deaths: 26,
Recovered: 2381,
Active: 74,
Province_State: "",
Country_Region: "New Zealand",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 6629,
Deaths: 177,
Recovered: 4225,
Active: 2227,
Province_State: "",
Country_Region: "Nicaragua",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4972,
Deaths: 185,
Recovered: 4578,
Active: 209,
Province_State: "",
Country_Region: "Niger",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 162388,
Deaths: 2039,
Recovered: 149986,
Active: 10363,
Province_State: "",
Country_Region: "Nigeria",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 124910,
Deaths: 3607,
Recovered: 103831,
Active: 17472,
Province_State: "",
Country_Region: "North Macedonia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 92007,
Deaths: 656,
Recovered: 17998,
Active: 73353,
Province_State: "",
Country_Region: "Norway",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 153838,
Deaths: 1650,
Recovered: 140766,
Active: 11422,
Province_State: "",
Country_Region: "Oman",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 353017,
Deaths: 6087,
Recovered: 341900,
Active: 5030,
Province_State: "",
Country_Region: "Panama",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4660,
Deaths: 39,
Recovered: 846,
Active: 3775,
Province_State: "",
Country_Region: "Papua New Guinea",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 204704,
Deaths: 3958,
Recovered: 167603,
Active: 33143,
Province_State: "",
Country_Region: "Paraguay",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 702856,
Deaths: 13149,
Recovered: 580689,
Active: 109018,
Province_State: "",
Country_Region: "Philippines",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2189966,
Deaths: 51305,
Recovered: 1747223,
Active: 391438,
Province_State: "",
Country_Region: "Poland",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 819698,
Deaths: 16819,
Recovered: 771339,
Active: 31540,
Province_State: "",
Country_Region: "Portugal",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 176521,
Deaths: 282,
Recovered: 162173,
Active: 14066,
Province_State: "",
Country_Region: "Qatar",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 926310,
Deaths: 22835,
Recovered: 830270,
Active: 73205,
Province_State: "",
Country_Region: "Romania",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 21309,
Deaths: 300,
Recovered: 19657,
Active: 1352,
Province_State: "",
Country_Region: "Rwanda",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 44,
Deaths: 0,
Recovered: 42,
Active: 2,
Province_State: "",
Country_Region: "Saint Kitts and Nevis",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4191,
Deaths: 58,
Recovered: 4099,
Active: 34,
Province_State: "",
Country_Region: "Saint Lucia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1721,
Deaths: 10,
Recovered: 1577,
Active: 134,
Province_State: "",
Country_Region: "Saint Vincent and the Grenadines",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3,
Deaths: 0,
Recovered: 2,
Active: 1,
Province_State: "",
Country_Region: "Samoa",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4547,
Deaths: 84,
Recovered: 3947,
Active: 516,
Province_State: "",
Country_Region: "San Marino",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2196,
Deaths: 34,
Recovered: 2041,
Active: 121,
Province_State: "",
Country_Region: "Sao Tome and Principe",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 387292,
Deaths: 6637,
Recovered: 376203,
Active: 4452,
Province_State: "",
Country_Region: "Saudi Arabia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 38354,
Deaths: 1031,
Recovered: 36107,
Active: 1216,
Province_State: "",
Country_Region: "Senegal",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 571895,
Deaths: 5075,
Recovered: 0,
Active: 566820,
Province_State: "",
Country_Region: "Serbia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3996,
Deaths: 20,
Recovered: 3318,
Active: 658,
Province_State: "",
Country_Region: "Seychelles",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3962,
Deaths: 79,
Recovered: 2800,
Active: 1083,
Province_State: "",
Country_Region: "Sierra Leone",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 60265,
Deaths: 30,
Recovered: 60103,
Active: 132,
Province_State: "",
Country_Region: "Singapore",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 355454,
Deaths: 9373,
Recovered: 255300,
Active: 90781,
Province_State: "",
Country_Region: "Slovakia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 210785,
Deaths: 4008,
Recovered: 195000,
Active: 11777,
Province_State: "",
Country_Region: "Slovenia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 18,
Deaths: 0,
Recovered: 16,
Active: 2,
Province_State: "",
Country_Region: "Solomon Islands",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 10664,
Deaths: 471,
Recovered: 4634,
Active: 5559,
Province_State: "",
Country_Region: "Somalia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1543079,
Deaths: 52602,
Recovered: 1469565,
Active: 20912,
Province_State: "",
Country_Region: "South Africa",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 10048,
Deaths: 108,
Recovered: 9330,
Active: 610,
Province_State: "",
Country_Region: "South Sudan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 91561,
Deaths: 557,
Recovered: 88145,
Active: 2859,
Province_State: "",
Country_Region: "Sri Lanka",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 31407,
Deaths: 2028,
Recovered: 23990,
Active: 5389,
Province_State: "",
Country_Region: "Sudan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 9088,
Deaths: 177,
Recovered: 8575,
Active: 336,
Province_State: "",
Country_Region: "Suriname",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 592217,
Deaths: 10298,
Recovered: 317600,
Active: 264319,
Province_State: "",
Country_Region: "Switzerland",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 18201,
Deaths: 1216,
Recovered: 12142,
Active: 4843,
Province_State: "",
Country_Region: "Syria",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 13308,
Deaths: 90,
Recovered: 13218,
Active: 0,
Province_State: "",
Country_Region: "Tajikistan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 509,
Deaths: 21,
Recovered: 183,
Active: 305,
Province_State: "",
Country_Region: "Tanzania",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 28577,
Deaths: 92,
Recovered: 26873,
Active: 1612,
Province_State: "",
Country_Region: "Thailand",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 452,
Deaths: 0,
Recovered: 154,
Active: 298,
Province_State: "",
Country_Region: "Timor-Leste",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 9676,
Deaths: 107,
Recovered: 7567,
Active: 2002,
Province_State: "",
Country_Region: "Togo",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 7939,
Deaths: 141,
Recovered: 7581,
Active: 217,
Province_State: "",
Country_Region: "Trinidad and Tobago",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 248782,
Deaths: 8684,
Recovered: 214916,
Active: 25182,
Province_State: "",
Country_Region: "Tunisia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3149094,
Deaths: 30772,
Recovered: 2921037,
Active: 197285,
Province_State: "",
Country_Region: "Turkey",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 40751,
Deaths: 335,
Recovered: 40379,
Active: 37,
Province_State: "",
Country_Region: "Uganda",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 450765,
Deaths: 1472,
Recovered: 434035,
Active: 15258,
Province_State: "",
Country_Region: "United Arab Emirates",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 92343,
Deaths: 875,
Recovered: 74339,
Active: 17129,
Province_State: "",
Country_Region: "Uruguay",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 81960,
Deaths: 624,
Recovered: 80248,
Active: 1088,
Province_State: "",
Country_Region: "Uzbekistan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3,
Deaths: 0,
Recovered: 1,
Active: 2,
Province_State: "",
Country_Region: "Vanuatu",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 154905,
Deaths: 1543,
Recovered: 143468,
Active: 9894,
Province_State: "",
Country_Region: "Venezuela",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2586,
Deaths: 35,
Recovered: 2265,
Active: 286,
Province_State: "",
Country_Region: "Vietnam",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3900,
Deaths: 820,
Recovered: 1588,
Active: 1492,
Province_State: "",
Country_Region: "Yemen",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 87583,
Deaths: 1194,
Recovered: 84018,
Active: 2371,
Province_State: "",
Country_Region: "Zambia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 36805,
Deaths: 1518,
Recovered: 34572,
Active: 715,
Province_State: "",
Country_Region: "Zimbabwe",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 29252,
Deaths: 909,
Recovered: 22994,
Active: 5350,
Province_State: "",
Country_Region: "Australia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 860731,
Deaths: 22852,
Recovered: 0,
Active: 837879,
Province_State: "",
Country_Region: "Belgium",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 12404414,
Deaths: 307112,
Recovered: 10886792,
Active: 1210510,
Province_State: "",
Country_Region: "Brazil",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 961567,
Deaths: 22809,
Recovered: 899230,
Active: 39529,
Province_State: "",
Country_Region: "Canada",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 962321,
Deaths: 22587,
Recovered: 897975,
Active: 41760,
Province_State: "",
Country_Region: "Chile",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 101646,
Deaths: 4841,
Recovered: 96433,
Active: 372,
Province_State: "",
Country_Region: "China",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2367337,
Deaths: 62645,
Recovered: 2255948,
Active: 48744,
Province_State: "",
Country_Region: "Colombia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 2765297,
Deaths: 75828,
Recovered: 2481908,
Active: 207561,
Province_State: "",
Country_Region: "Germany",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 11908910,
Deaths: 161240,
Recovered: 11295023,
Active: 452647,
Province_State: "",
Country_Region: "India",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3488619,
Deaths: 107256,
Recovered: 2814652,
Active: 566711,
Province_State: "",
Country_Region: "Italy",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 464483,
Deaths: 8989,
Recovered: 438723,
Active: 16771,
Province_State: "",
Country_Region: "Japan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1254722,
Deaths: 16561,
Recovered: 15653,
Active: 1222508,
Province_State: "",
Country_Region: "Netherlands",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 649824,
Deaths: 14158,
Recovered: 593282,
Active: 42384,
Province_State: "",
Country_Region: "Pakistan",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1512384,
Deaths: 51032,
Recovered: 1423259,
Active: 38093,
Province_State: "",
Country_Region: "Peru",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4451565,
Deaths: 95410,
Recovered: 4073239,
Active: 282916,
Province_State: "",
Country_Region: "Russia",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 3255324,
Deaths: 75010,
Recovered: 150376,
Active: 3029938,
Province_State: "",
Country_Region: "Spain",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 780018,
Deaths: 13402,
Recovered: 0,
Active: 766616,
Province_State: "",
Country_Region: "Sweden",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 30156621,
Deaths: 548087,
Recovered: 0,
Active: 0,
Province_State: "",
Country_Region: "United States of America",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 1665001,
Deaths: 33068,
Recovered: 1337080,
Active: 294853,
Province_State: "",
Country_Region: "Ukraine",
Last_Update: "2021-03-27 05:25:04"
},
{
Confirmed: 4339157,
Deaths: 126755,
Recovered: 12567,
Active: 4199835,
Province_State: "",
Country_Region: "United Kingdom",
Last_Update: "2021-03-27 05:25:04"
}
] | javascript |
class Solution {
public:
int XXX(vector<int>& nums) {
int n = nums.size();
for(int i = 1; i < n; i++){
if(nums[i - 1] > 0) nums[i] += nums[i - 1];
}
return *max_element(nums.begin(), nums.end());
}
};
| cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.