text
stringlengths 1
1.04M
| language
stringclasses 25
values |
---|---|
<filename>advisories/unreviewed/2022/04/GHSA-7776-85fj-fv28/GHSA-7776-85fj-fv28.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-7776-85fj-fv28",
"modified": "2022-04-30T18:21:02Z",
"published": "2022-04-30T18:21:02Z",
"aliases": [
"CVE-2002-1378"
],
"details": "Multiple buffer overflows in OpenLDAP2 (OpenLDAP 2) 2.2.0 and earlier allow remote attackers to execute arbitrary code via (1) long -t or -r parameters to slurpd, (2) a malicious ldapfilter.conf file that is not properly handled by getfilter functions, (3) a malicious ldaptemplates.conf that causes an overflow in libldap, (4) a certain access control list that causes an overflow in slapd, or (5) a long generated filename for logging rejected replication requests.",
"severity": [
],
"affected": [
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2002-1378"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/10800"
},
{
"type": "WEB",
"url": "http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000556"
},
{
"type": "WEB",
"url": "http://www.ciac.org/ciac/bulletins/n-043.shtml"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2003/dsa-227"
},
{
"type": "WEB",
"url": "http://www.linuxsecurity.com/advisories/gentoo_advisory-2704.html"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDKSA-2003:006"
},
{
"type": "WEB",
"url": "http://www.novell.com/linux/security/advisories/2002_047_openldap2.html"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2003-040.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/advisories/4827"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/6328"
},
{
"type": "WEB",
"url": "http://www.turbolinux.com/security/TLSA-2003-5.txt"
}
],
"database_specific": {
"cwe_ids": [
],
"severity": "HIGH",
"github_reviewed": false
}
} | json |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [html5] r7813 - [e] (0) Fix some typos or copypasta. Fixing https://www.w3.org/Bugs/Public/show_ [...]
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:commit-watchers%40lists.whatwg.org?Subject=Re%3A%20%5Bhtml5%5D%20r7813%20-%20%5Be%5D%20%280%29%20Fix%20some%20typos%20or%20copypasta.%20Fixing%0A%09https%3A//www.w3.org/Bugs/Public/show_%20%5B...%5D&In-Reply-To=%3C20130411222351.9396211C7C03E%40ps20323.dreamhostps.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="014670.html">
<LINK REL="Next" HREF="014672.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[html5] r7813 - [e] (0) Fix some typos or copypasta. Fixing https://www.w3.org/Bugs/Public/show_ [...]</H1>
<!--htdig_noindex-->
<B>whatwg at whatwg.org</B>
<A HREF="mailto:commit-watchers%40lists.whatwg.org?Subject=Re%3A%20%5Bhtml5%5D%20r7813%20-%20%5Be%5D%20%280%29%20Fix%20some%20typos%20or%20copypasta.%20Fixing%0A%09https%3A//www.w3.org/Bugs/Public/show_%20%5B...%5D&In-Reply-To=%3C20130411222351.9396211C7C03E%40ps20323.dreamhostps.com%3E"
TITLE="[html5] r7813 - [e] (0) Fix some typos or copypasta. Fixing https://www.w3.org/Bugs/Public/show_ [...]">whatwg at whatwg.org
</A><BR>
<I>Thu Apr 11 15:23:51 PDT 2013</I>
<P><UL>
<LI>Previous message: <A HREF="014670.html">[html5] r7812 - [e] (0) Clarify what happens if the optional argument to this algorithm is omitt [...]
</A></li>
<LI>Next message: <A HREF="014672.html">[html5] r7814 - [e] (0) Fix some cross-reference issues. Fixing https://www.w3.org/Bugs/Public/s [...]
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#14671">[ date ]</a>
<a href="thread.html#14671">[ thread ]</a>
<a href="subject.html#14671">[ subject ]</a>
<a href="author.html#14671">[ author ]</a>
</LI>
</UL>
<HR>
<!--/htdig_noindex-->
<!--beginarticle-->
<PRE>Author: ianh
Date: 2013-04-11 15:23:50 -0700 (Thu, 11 Apr 2013)
New Revision: 7813
Modified:
complete.html
index
source
Log:
[e] (0) Fix some typos or copypasta.
Fixing <A HREF="https://www.w3.org/Bugs/Public/show_bug.cgi?id=21602">https://www.w3.org/Bugs/Public/show_bug.cgi?id=21602</A>
Affected topics: DOM APIs, HTML
Modified: complete.html
===================================================================
--- complete.html 2013-04-11 22:21:20 UTC (rev 7812)
+++ complete.html 2013-04-11 22:23:50 UTC (rev 7813)
@@ -3668,7 +3668,7 @@
Fullscreen API interacts with the sandboxing features in HTML: <a href=#refsFULLSCREEN>[FULLSCREEN]</a></p>
<ul class=brief><li>The <dfn id=top-layer>top layer</dfn> concept</li>
- <li><dfn id=dom-element-requestfullscreen title=dom-element-requestFullScreen><code>requestFullScreen()</code></dfn>
+ <li><dfn id=dom-element-requestfullscreen title=dom-element-requestFullscreen><code>requestFullscreen()</code></dfn>
<li>The <dfn id=fullscreen-enabled-flag>fullscreen enabled flag</dfn></li>
<li>The <dfn id=fully-exit-fullscreen>fully exit fullscreen</dfn> algorithm</li>
</ul></dd>
@@ -23031,7 +23031,7 @@
<a href=#limited-to-only-known-values>limited to only known values</a>.</p>
<p>The <dfn id=dom-img-usemap title=dom-img-useMap><code>useMap</code></dfn> IDL attribute must
- <a href=#reflect>reflect</a> the <code title=attr-img-usemap>usemap</code> content attribute.</p>
+ <a href=#reflect>reflect</a> the <code title=attr-hyperlink-usemap><a href=#attr-hyperlink-usemap>usemap</a></code> content attribute.</p>
<p>The <dfn id=dom-img-ismap title=dom-img-isMap><code>isMap</code></dfn> IDL attribute must <a href=#reflect>reflect</a>
the <code title=attr-img-ismap><a href=#attr-img-ismap>ismap</a></code> content attribute.</p>
@@ -24254,7 +24254,7 @@
<dd><code title=attr-iframe-name><a href=#attr-iframe-name>name</a></code> — Name of <a href=#nested-browsing-context>nested browsing context</a></dd>
<dd><code title=attr-iframe-sandbox><a href=#attr-iframe-sandbox>sandbox</a></code> — Security rules for nested content</dd>
<dd><code title=attr-iframe-seamless><a href=#attr-iframe-seamless>seamless</a></code> — Whether to apply the document's styles to the nested content</dd>
- <dd><code title=attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>allowfullscreen</a></code> — Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code></dd>
+ <dd><code title=attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>allowfullscreen</a></code> — Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code></dd>
<dd><code title=attr-dim-width><a href=#attr-dim-width>width</a></code> — Horizontal dimension</dd>
<dd><code title=attr-dim-height><a href=#attr-dim-height>height</a></code> — Vertical dimension</dd>
<dt><a href=#element-dfn-dom title=element-dfn-dom>DOM interface</a>:</dt><!--TOPIC:DOM APIs-->
@@ -24820,7 +24820,7 @@
<hr><!-- FULLSCREEN --><p>The <dfn id=attr-iframe-allowfullscreen title=attr-iframe-allowfullscreen><code>allowfullscreen</code></dfn> attribute is a
<a href=#boolean-attribute>boolean attribute</a>. When specified, it indicates that <code><a href=#document>Document</a></code> objects in
- the <code><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context>browsing context</a> are to be allowed to use <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code> (if it's not blocked for other
+ the <code><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context>browsing context</a> are to be allowed to use <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> (if it's not blocked for other
reasons, e.g. there is another ancestor <code><a href=#the-iframe-element>iframe</a></code> without this attribute set).</p>
@@ -66002,7 +66002,7 @@
<dd>
- <p>This flag prevents content from using the <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code> method.</p>
+ <p>This flag prevents content from using the <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> method.</p>
</dd>
@@ -99163,7 +99163,7 @@
<td> <a href=#valid-non-empty-url-potentially-surrounded-by-spaces>Valid non-empty URL potentially surrounded by spaces</a>
<tr><th> <code title="">allowfullscreen</code>
<td> <code title=attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>iframe</a></code>
- <td> Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code>
+ <td> Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code>
<td> <a href=#boolean-attribute>Boolean attribute</a>
<tr><th> <code title="">alt</code>
<td> <code title=attr-area-alt><a href=#attr-area-alt>area</a></code>;
Modified: index
===================================================================
--- index 2013-04-11 22:21:20 UTC (rev 7812)
+++ index 2013-04-11 22:23:50 UTC (rev 7813)
@@ -3668,7 +3668,7 @@
Fullscreen API interacts with the sandboxing features in HTML: <a href=#refsFULLSCREEN>[FULLSCREEN]</a></p>
<ul class=brief><li>The <dfn id=top-layer>top layer</dfn> concept</li>
- <li><dfn id=dom-element-requestfullscreen title=dom-element-requestFullScreen><code>requestFullScreen()</code></dfn>
+ <li><dfn id=dom-element-requestfullscreen title=dom-element-requestFullscreen><code>requestFullscreen()</code></dfn>
<li>The <dfn id=fullscreen-enabled-flag>fullscreen enabled flag</dfn></li>
<li>The <dfn id=fully-exit-fullscreen>fully exit fullscreen</dfn> algorithm</li>
</ul></dd>
@@ -23031,7 +23031,7 @@
<a href=#limited-to-only-known-values>limited to only known values</a>.</p>
<p>The <dfn id=dom-img-usemap title=dom-img-useMap><code>useMap</code></dfn> IDL attribute must
- <a href=#reflect>reflect</a> the <code title=attr-img-usemap>usemap</code> content attribute.</p>
+ <a href=#reflect>reflect</a> the <code title=attr-hyperlink-usemap><a href=#attr-hyperlink-usemap>usemap</a></code> content attribute.</p>
<p>The <dfn id=dom-img-ismap title=dom-img-isMap><code>isMap</code></dfn> IDL attribute must <a href=#reflect>reflect</a>
the <code title=attr-img-ismap><a href=#attr-img-ismap>ismap</a></code> content attribute.</p>
@@ -24254,7 +24254,7 @@
<dd><code title=attr-iframe-name><a href=#attr-iframe-name>name</a></code> — Name of <a href=#nested-browsing-context>nested browsing context</a></dd>
<dd><code title=attr-iframe-sandbox><a href=#attr-iframe-sandbox>sandbox</a></code> — Security rules for nested content</dd>
<dd><code title=attr-iframe-seamless><a href=#attr-iframe-seamless>seamless</a></code> — Whether to apply the document's styles to the nested content</dd>
- <dd><code title=attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>allowfullscreen</a></code> — Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code></dd>
+ <dd><code title=attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>allowfullscreen</a></code> — Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code></dd>
<dd><code title=attr-dim-width><a href=#attr-dim-width>width</a></code> — Horizontal dimension</dd>
<dd><code title=attr-dim-height><a href=#attr-dim-height>height</a></code> — Vertical dimension</dd>
<dt><a href=#element-dfn-dom title=element-dfn-dom>DOM interface</a>:</dt><!--TOPIC:DOM APIs-->
@@ -24820,7 +24820,7 @@
<hr><!-- FULLSCREEN --><p>The <dfn id=attr-iframe-allowfullscreen title=attr-iframe-allowfullscreen><code>allowfullscreen</code></dfn> attribute is a
<a href=#boolean-attribute>boolean attribute</a>. When specified, it indicates that <code><a href=#document>Document</a></code> objects in
- the <code><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context>browsing context</a> are to be allowed to use <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code> (if it's not blocked for other
+ the <code><a href=#the-iframe-element>iframe</a></code> element's <a href=#browsing-context>browsing context</a> are to be allowed to use <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> (if it's not blocked for other
reasons, e.g. there is another ancestor <code><a href=#the-iframe-element>iframe</a></code> without this attribute set).</p>
@@ -66002,7 +66002,7 @@
<dd>
- <p>This flag prevents content from using the <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code> method.</p>
+ <p>This flag prevents content from using the <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code> method.</p>
</dd>
@@ -99163,7 +99163,7 @@
<td> <a href=#valid-non-empty-url-potentially-surrounded-by-spaces>Valid non-empty URL potentially surrounded by spaces</a>
<tr><th> <code title="">allowfullscreen</code>
<td> <code title=attr-iframe-allowfullscreen><a href=#attr-iframe-allowfullscreen>iframe</a></code>
- <td> Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullScreen><a href=#dom-element-requestfullscreen>requestFullScreen()</a></code>
+ <td> Whether to allow the <code><a href=#the-iframe-element>iframe</a></code>'s contents to use <code title=dom-element-requestFullscreen><a href=#dom-element-requestfullscreen>requestFullscreen()</a></code>
<td> <a href=#boolean-attribute>Boolean attribute</a>
<tr><th> <code title="">alt</code>
<td> <code title=attr-area-alt><a href=#attr-area-alt>area</a></code>;
Modified: source
===================================================================
--- source 2013-04-11 22:21:20 UTC (rev 7812)
+++ source 2013-04-11 22:23:50 UTC (rev 7813)
@@ -2510,7 +2510,7 @@
<ul class="brief">
<li>The <dfn>top layer</dfn> concept</li>
- <li><dfn title="dom-element-requestFullScreen"><code>requestFullScreen()</code></dfn>
+ <li><dfn title="dom-element-requestFullscreen"><code>requestFullscreen()</code></dfn>
<li>The <dfn>fullscreen enabled flag</dfn></li>
<li>The <dfn>fully exit fullscreen</dfn> algorithm</li>
</ul>
@@ -24170,7 +24170,7 @@
<span>limited to only known values</span>.</p>
<p>The <dfn title="dom-img-useMap"><code>useMap</code></dfn> IDL attribute must
- <span>reflect</span> the <code title="attr-img-usemap">usemap</code> content attribute.</p>
+ <span>reflect</span> the <code title="attr-hyperlink-usemap">usemap</code> content attribute.</p>
<p>The <dfn title="dom-img-isMap"><code>isMap</code></dfn> IDL attribute must <span>reflect</span>
the <code title="attr-img-ismap">ismap</code> content attribute.</p>
@@ -26120,7 +26120,7 @@
<p>The <dfn title="attr-iframe-allowfullscreen"><code>allowfullscreen</code></dfn> attribute is a
<span>boolean attribute</span>. When specified, it indicates that <code>Document</code> objects in
the <code>iframe</code> element's <span>browsing context</span> are to be allowed to use <code
- title="dom-element-requestFullScreen">requestFullScreen()</code> (if it's not blocked for other
+ title="dom-element-requestFullscreen">requestFullscreen()</code> (if it's not blocked for other
reasons, e.g. there is another ancestor <code>iframe</code> without this attribute set).</p>
@@ -78182,7 +78182,7 @@
<dd>
<p>This flag prevents content from using the <code
- title="dom-element-requestFullScreen">requestFullScreen()</code> method.</p>
+ title="dom-element-requestFullscreen">requestFullscreen()</code> method.</p>
</dd>
@@ -115534,7 +115534,7 @@
<tr>
<th> <code title="">allowfullscreen</code>
<td> <code title="attr-iframe-allowfullscreen">iframe</code>
- <td> Whether to allow the <code>iframe</code>'s contents to use <code title="dom-element-requestFullScreen">requestFullScreen()</code>
+ <td> Whether to allow the <code>iframe</code>'s contents to use <code title="dom-element-requestFullscreen">requestFullscreen()</code>
<td> <span>Boolean attribute</span>
<tr>
<th> <code title="">alt</code>
</PRE>
<!--endarticle-->
<!--htdig_noindex-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="014670.html">[html5] r7812 - [e] (0) Clarify what happens if the optional argument to this algorithm is omitt [...]
</A></li>
<LI>Next message: <A HREF="014672.html">[html5] r7814 - [e] (0) Fix some cross-reference issues. Fixing https://www.w3.org/Bugs/Public/s [...]
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#14671">[ date ]</a>
<a href="thread.html#14671">[ thread ]</a>
<a href="subject.html#14671">[ subject ]</a>
<a href="author.html#14671">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.whatwg.org/listinfo.cgi/commit-watchers-whatwg.org">More information about the Commit-Watchers
mailing list</a><br>
<!--/htdig_noindex-->
</body></html>
| html |
<gh_stars>0
{"Autolinker.js":"sha256-Gd+28jXcpdQHs5UB/szx9svnmIQkPJq7BKuSXI/SVOU=","Autolinker.min.js":"sha256-bJzaGiSh3c2EHWlCZLad8fsabW4fdy8QLSvpf94V6bU="}
| json |
.App {
background-color: #282c34;
text-align: left;
width: auto;
height: 100%;
position: relative;
}
h1 {
margin: 1.2rem auto;
font-family: sans-serif;
font-size: 3.5rem;
}
blockquote {
border-top: 2px solid rgb(255, 119, 0);
border-bottom: 2px solid rgb(255, 119, 0);
font-size: 2rem;
margin: 5% 8%;
font-weight: 200;
padding: 2%;
}
small {
display: block;
font-size: 0.7em;
text-align: right;
font-style: italic;
margin: 10px;
padding: 4px;
}
.App-header, .App {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
}
.App-link {
color: #61dafb;
}
.flags img {
bottom: 50px;
}
@media (max-width: 500px) {
.flags{
transform: scale(0.7);
}
}
| css |
<gh_stars>0
'use strict';
const fs = require('fs');
fs.watch('target.txt', () => console.log('File changed!'));
console.log("Watching target.txt for changes...");
| javascript |
#include <QEvent>
#include <GL\glew.h>
#include "Viewer3d.h"
#include "Renderable\ObjMesh.h"
#include "Translate3dEventHandle.h"
#include "../clothdesigner.h"
#include "../Viewer2d.h"
#include "cloth\clothPiece.h"
#include "cloth\TransformInfo.h"
Translate3dEventHandle::Translate3dEventHandle(Viewer3d* v) : Abstract3dEventHandle(v)
{
m_cursor = QCursor(Qt::CursorShape::SizeAllCursor);
m_iconFile = "icons/translation.png";
m_inactiveIconFile = "icons/translation_inactive.png";
m_toolTips = "translate handle";
m_axisScale = 0.3;
}
Translate3dEventHandle::~Translate3dEventHandle()
{
}
void Translate3dEventHandle::handleEnter()
{
Abstract3dEventHandle::handleEnter();
if (m_viewer->getManager())
m_viewer->getManager()->simulationDestroy();
if (m_pickInfo.mesh)
{
auto box = m_pickInfo.mesh->boundingBox;
m_viewer->beginTrackBall(Viewer3d::TrackBall_Trans, m_pickInfo.pickPos,
ldp::Mat3d().eye(), (box[1] - box[0]).length()* m_axisScale);
}
m_transformed = false;
}
void Translate3dEventHandle::handleLeave()
{
m_viewer->endTrackBall();
Abstract3dEventHandle::handleLeave();
}
void Translate3dEventHandle::mousePressEvent(QMouseEvent *ev)
{
Abstract3dEventHandle::mousePressEvent(ev);
if (m_viewer->buttons() == Qt::LeftButton)
{
int sid = m_viewer->fboRenderedIndex(ev->pos());
m_viewer->setHoverTrackBallAxis(sid);
if (sid >= Viewer3d::TrackBallIndex_X && sid <= Viewer3d::TrackBallIndex_Z)
m_viewer->setActiveTrackBallAxis(sid);
} // end if initial_location and left button
}
void Translate3dEventHandle::mouseReleaseEvent(QMouseEvent *ev)
{
Abstract3dEventHandle::mouseReleaseEvent(ev);
if (m_transformed)
{
if (m_viewer->getMainUI())
m_viewer->getMainUI()->pushHistory("translate piece", ldp::HistoryStack::Type3dTransform);
m_transformed = false;
}
if (m_viewer->buttons() == Qt::LeftButton)
{
if (m_viewer->getActiveTrackBallAxis() > 0)
{
m_viewer->setActiveTrackBallAxis(-1);
} // end if track ball axis active
else
{
if (ev->pos() == m_mouse_press_pt)
{
pick(ev->pos());
if (m_pickInfo.mesh)
{
auto box = m_pickInfo.mesh->boundingBox;
m_viewer->beginTrackBall(Viewer3d::TrackBall_Trans, m_pickInfo.pickPos,
ldp::Mat3d().eye(), (box[1] - box[0]).length()* m_axisScale);
}
}
} // end else
} // end if left button and initial_cloth
}
void Translate3dEventHandle::mouseDoubleClickEvent(QMouseEvent *ev)
{
Abstract3dEventHandle::mouseDoubleClickEvent(ev);
}
void Translate3dEventHandle::mouseMoveEvent(QMouseEvent *ev)
{
bool valid_op = false;
int sid = m_viewer->getActiveTrackBallAxis();
if (sid < Viewer3d::TrackBallIndex_X || sid > Viewer3d::TrackBallIndex_Z)
{
int hid = m_viewer->fboRenderedIndex(ev->pos());
if (hid >= Viewer3d::TrackBallIndex_X && hid <= Viewer3d::TrackBallIndex_Z)
m_viewer->setHoverTrackBallAxis(hid);
else
m_viewer->setHoverTrackBallAxis(0);
}
else if (m_viewer->buttons() == Qt::LeftButton)
{
const ldp::Camera& cam = m_viewer->camera();
if (m_pickInfo.mesh)
{
QPoint lp = m_viewer->lastMousePos();
ldp::Float3 axis = 0;
switch (sid)
{
default:
break;
case (int)Viewer3d::TrackBallIndex_X:
axis[0] = 1;
break;
case (int)Viewer3d::TrackBallIndex_Y:
axis[1] = 1;
break;
case (int)Viewer3d::TrackBallIndex_Z:
axis[2] = 1;
break;
}
ldp::Double3 wp = cam.getWorldCoords(ldp::Float3(ev->x(), m_viewer->height() - 1 - ev->y(), m_pickInfo.screenPos[2]));
ldp::Double3 wlp = cam.getWorldCoords(ldp::Float3(lp.x(), m_viewer->height() - 1 - lp.y(), m_pickInfo.screenPos[2]));
ldp::Double3 dir = (wp - wlp)*axis;
if (m_pickInfo.piece) // cloth mesh
{
m_pickInfo.piece->transformInfo().translate(dir);
m_viewer->getManager()->updateCloths3dMeshBy2d();
}
else // body mesh
{
auto tr = m_viewer->getManager()->getBodyMeshTransform();
tr.translate(dir);
m_viewer->getManager()->setBodyMeshTransform(tr);
}
m_transformed = true;
m_viewer->translateTrackBall(dir);
if (m_viewer->getMainUI())
m_viewer->getMainUI()->viewer2d()->updateGL();
valid_op = true;
} // end if getPickedMeshFrameInfo
} // end if initial_cloth and left button
if (!valid_op)
Abstract3dEventHandle::mouseMoveEvent(ev);
}
void Translate3dEventHandle::wheelEvent(QWheelEvent *ev)
{
Abstract3dEventHandle::wheelEvent(ev);
}
void Translate3dEventHandle::keyPressEvent(QKeyEvent *ev)
{
Abstract3dEventHandle::keyPressEvent(ev);
}
void Translate3dEventHandle::keyReleaseEvent(QKeyEvent *ev)
{
Abstract3dEventHandle::keyReleaseEvent(ev);
}
| cpp |
{
"id":"18771097",
"tms:id":"261859",
"accession_number":"2010-31-328",
"title":"Sidewall, 1940\u201350",
"url":"http:\/\/collection.cooperhewitt.org\/objects\/18771097\/",
"department_id":"35347503",
"period_id":null,
"media_id":"35434685",
"type_id":"35256475",
"date":"1940\u201350",
"year_start":"1940",
"year_end":"1950",
"year_acquired":"2010",
"decade":"1940",
"woe:country":"23424819",
"medium":"Machine-printed, block-printed, airbrushed on paper",
"markings":null,
"signed":null,
"inscribed":null,
"provenance":"Donor purchased the two Grantil sample books from a private collector in France ca. 2000. For the remaining non-Grantil pieces, the French, Belgian and English papers were acquired from various sources in Europe, while the American samples were acquired from private collections in the United States.",
"dimensions":"L x W: 75 x 47 cm (29 1\/2 x 18 1\/2 in.)",
"creditline":"Gift of <NAME>",
"description":null,
"justification":null,
"type":{
"id":"35256475",
"name":"Sidewall"
},
"images":[
[
]
],
"participants":[
],
"tombstone":{
"epitaph":"Sidewall, 1940\u201350.\n1940\u201350. Machine-printed, block-printed, airbrushed on paper. Gift of <NAME>aut-Pomerantz. 2010-31-328."
},
"colors":[
]
} | json |
<gh_stars>1-10
import React from 'react';
import {Dimensions,StyleSheet} from 'react-native';
var {height, width} = Dimensions.get('window');
const styles = StyleSheet.create({
image: {
width: width,
height: height
}
});
export default styles; | javascript |
Dawood Ibrahim's brother Iqbal Kaskar has been sent to ED custody till February 24 for allegedly working for the underworld don and handling his gang activities and illegal business interests in Mumbai and other areas.
By Divyesh Singh, Vidya : Iqbal Kaskar, brother of fugitive gangster Dawood Ibrahim, who was brought to the Enforcement Directorate (ED) office in Mumbai on Friday, has been sent to ED custody till February 24 in a money laundering case.
The ED had recently registered a money laundering case against underworld don and fugitive Dawood Ibrahim and his aides for their involvement in financing terror activities. The ED will question Ibrahim's brother Iqbal Kaskar, his aides and gang members.
A special PMLA court approved a plea by the ED to take Iqbal Kaskar into custody.
Assistant Director of ED, DC Nahak, while seeking the remand said that on Sept 18, 2017, Maharashtra police had registered a case of extortion against Kaskar, Israr Jamil Sayyad, Mumtaz Azaz Shaikh and others. The gang was accused of extorting money from a real estate builder and developer.
In 2015, a broker met the complainant builder along with Sayyad. Sayyad told him that he is the brother of underworld don Dawood and Kaskar. He also said that he had also bought the land from its owner and that the builder should go in for settlement. Sayyad even made the builder speak to Kaskar who threatened that if they did not agree then he would be killed.
According to the complaint, the gang asked for four flats and Rs 30 lakh. When the building was ready, the builder did give him one flat but they wanted the rest too and started threatening him. The builder went to the police and Kaskar and others were arrested for extorting one flat and Rs 90 lakhs as protection money from the builder.
Kaskar was in judicial custody after being charged under the Maharashtra Control of Organised Crime Act (MCOCA), following three cases of extortion.
Advocate Hiten Venegaonkar appearing for the central agency ED argued that the accused have committed the crime for their and gangs' financial benefit. Since there was extortion and so money laundering could be a possibility, so to investigate the case further, the ED registered a case, eight days later.
Venegaonkar also said that Dawood's 'D-Company' and his associates have established a special unit for striking terror in the people by attacking eminent personalities including political leaders, businessmen and others by using explosives/firearms and other lethal weapons and is planning to instigate and trigger incidents which may lead to the onset of violence in various parts of India, including National Capital Region, Mumbai and other major cities in India.
Venegaonkar added that NIA registered a case earlier this year against Dawood and others, including Shakil Shaikh Babu Moiddin alias Chotta Shakeel. In the chargesheet filed by Thane Police, Chhota Shakeel is also named, apart from Iqbal Kaskar.
"Both of them are termed as members of the same gang who used to do illegal activities for the financial benefit of the gang. In order to conduct an effective investigation against the Dawood gang as a whole, the ED is conducting investigation by considering the facts mentioned in both Thane Police and NIA cases," said Venegaonkar.
"Kaskar used his henchmen for this act and collected money on behalf of Dawood. The ED has evidence that Kaskar was regularly receiving substantial proceeds of crime from Dawood," argued Venegaonkar while adding that Kaskar has received a flat and Rs 90 lakh as extortion money which is proceeds of crime and is additionally regularly receiving money from Dawood also.
"Therefore, the said acquisition of proceeds of Crime generated from the act of extortion/other illegal activities make him guilty of offence of money laundering under section 3 of the PMLA," said Venegaonkar.
Kaskar was allegedly working for his brother and handling his gang activities and illegal business interests in Mumbai and other areas. Recently, it came to light that the Dawood Ibrahim gang was active in the country and were running terror activities, trying to disrupt law and order.
Earlier this week, the ED had raided some 10 locations in Mumbai, including those related to Ibrahim's late sister Haseena Parkar, Kaskar as well as a brother-in-law of gangster Chota Shakeel. | english |
Mumbai: Sleuths of the Narcotics Control Bureau (NCB) busted a rave party being held on a cruise off the Mumbai coast and detained 10 people, including the son of a Bollywood superstar, as per reports.
According to a recent development, Anandini Fernandes visited the NCB office soon after the incident. An NCB official told Times Now that drugs have been recovered from the party but the quantity cannot be disclosed. He added that the accused are being questioned.
According to Times Now's Shivani, two of the detained persons are drug peddlers from Haryana and New Delhi.
After receiving a tip-off, Mumbai Zonal Director Sameer Wankhede and other NCB officials boarded the ship as passengers. When the ship left Mumbai and reached mid-sea, the rave party started. Subsequently, the sleuths of the federal anti-narcotics agency flared up in action.
The seven-hour long operation led to the detention of 10 people, including a superstar's son. The detainees will be brought to Mumbai. It is being said that a Delhi-based company was behind the rave party. Reportedly, the entry fee for the party was Rs 80,000 per person.
This comes days after the NCB arrested Bollywood actor Arjun Rampal's girlfriend's brother Agisilaos Demetriades over alleged possession of psychotropic substances. Demetriades, who is a South African national, has been arrested by the NCB thrice in the last two years.
Last year, the NCB had intensified its efforts to weed out the drugs menace in Mumbai besides its probe into the drug cases involving prominent Bollywood personalities as an offshoot to the probe into actor Sushant Singh Rajput’s death.
In connection with the drugs case that emerged out of the probe into Rajput's death, the agency had arrested his live-in partner Rhea Chakraborty, her brother Showik and others under several relevant sections of the Narcotics Drugs and Psychotropic Substances (NDPS) Act. Several other Bollywood A-listers including Deepika Padukone, her former manager Karishma Prakash, Sara Ali Khan, Shraddha Kapoor, Rakul Preet Singh were interrogated by the federal anti-narcotics agency. | english |
{"questions": [{"player_1": {"name": "<NAME>", "player_stat": 29.91}, "player_2": {"name": "<NAME>", "player_stat": 26.68}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 155.22}, "player_2": {"name": "<NAME>", "player_stat": 150.6}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 26.2}, "player_2": {"name": "<NAME>", "player_stat": 36.12}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 4.0}, "player_2": {"name": "<NAME>", "player_stat": 10.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 109.0}, "player_2": {"name": "<NAME>", "player_stat": 239.0}, "stat": "fours", "skill": "BAT", "question_text": "Who has hit more fours?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 1702.0}, "player_2": {"name": "<NAME>", "player_stat": 3363.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 357.0}, "player_2": {"name": "<NAME>", "player_stat": 3579.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 80.0}, "player_2": {"name": "<NAME>", "player_stat": 18.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 146.51}, "player_2": {"name": "<NAME>", "player_stat": 128.41}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 93.0}, "player_2": {"name": "<NAME>", "player_stat": 85.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 27.0}, "player_2": {"name": "<NAME>", "player_stat": 11.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 58.0}, "player_2": {"name": "<NAME>", "player_stat": 28.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 69.0}, "player_2": {"name": "<NAME>", "player_stat": 108.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 7.86}, "player_2": {"name": "<NAME>", "player_stat": 7.88}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 100.0}, "player_2": {"name": "<NAME>", "player_stat": 96.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 88.0}, "player_2": {"name": "<NAME>", "player_stat": 268.0}, "stat": "fours", "skill": "BAT", "question_text": "Who has hit more fours?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 185.0}, "player_2": {"name": "<NAME>", "player_stat": 6.0}, "stat": "sixes", "skill": "BAT", "question_text": "Who has hit more sixes?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 7.77}, "player_2": {"name": "<NAME>", "player_stat": 8.69}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 28.24}, "player_2": {"name": "<NAME>", "player_stat": 25.97}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}]} | json |
Luis Suarez is a fantastically gifted player but he is also a controversial human being that only the fans of the team he plays for can love.
One of the latest rumours is that Jose Mourinho has Luis Suarez as number two on his striker wish list. With the Cavani saga dragging on, if the speculation is to be believed, then we will soon see Chelsea chasing his signature.
There is no doubting he would be a good signing based solely on his talent, he has a good goal scoring record and would be a nightmare for opposition defenders.
That being said, he has an arrogance and attitude problem that attracts him to trouble, and has shown ingratitude to his current employers who have stood by him through racism, biting and the long term suspensions they have created.
Signing Luis Suarez would leave me conflicted. I do not like him and he has cost us in the past, but if he was to play in Blue he would be an asset.
Liverpool selling to Chelsea seems unlikely, particularly given Suarez complaining about the press and life in England.
One of the advantages of signing Suarez would be how much it would anger the Liverpool fans -this has to be worth a few million on his price tag alone.
I think he would not struggle in the same way Torres has, and would delight in scoring against a former team.
An unlikely scenario but how would you feel if it happened?
The post Could Chelsea Really Sign Luis Suarez? appeared first on FamousCFC.com.
| english |
<reponame>somkiet073/ci-demos-dashbord<gh_stars>0
import { Injectable } from '@angular/core';
export class Data {
year: number;
country: string;
oil: number;
}
let data: Data[] = [
{ year: 1970, country: "Saudi Arabia", oil: 192.2 },
{ year: 1980, country: "Saudi Arabia", oil: 509.8 },
{ year: 1990, country: "Saudi Arabia", oil: 342.6 },
{ year: 2000, country: "Saudi Arabia", oil: 456.3 },
{ year: 2008, country: "Saudi Arabia", oil: 515.3 },
{ year: 2009, country: "Saudi Arabia", oil: 459.5 },
{ year: 1970, country: "USA", oil: 533.5 },
{ year: 1980, country: "USA", oil: 480.2 },
{ year: 1990, country: "USA", oil: 416.6 },
{ year: 2000, country: "USA", oil: 352.6 },
{ year: 2008, country: "USA", oil: 304.9 },
{ year: 2009, country: "USA", oil: 325.3 },
{ year: 1970, country: "Mexico", oil: 24.2 },
{ year: 1980, country: "Mexico", oil: 107.2 },
{ year: 1990, country: "Mexico", oil: 146.3 },
{ year: 2000, country: "Mexico", oil: 171.2 },
{ year: 2008, country: "Mexico", oil: 157.7 },
{ year: 2009, country: "Mexico", oil: 147.5 }
];
@Injectable()
export class Service {
getData(): Data[] {
return data;
}
} | typescript |
<reponame>covid19trackerMA/covid19trackerMA_frontend<gh_stars>0
.body {
padding-top: 0;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 2;
}
.activee {
background: #F7AF2A !important;
/* #36304A!important; */
color:white;
}
.activee input {
background: white;
color: black;
}
.activee select,option
{
background: white;
color: black;
}
/* model; */
.overlay {
position: fixed;
z-index: 40;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
transition: opacity 500ms;
visibility: hidden;
opacity: 0;
}
.overlay:target {
visibility: visible;
opacity: 1;
}
.popup {
margin: 1px auto;
padding: 10px;
background: #fff;
border-radius: 5px;
width: 60%;
position: relative;
z-index: 20000;
transition: all 1s ease-in-out;
}
.popup h2 {
margin-top: 0;
color: #333;
font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
position: absolute;
top: 20px;
right: 30px;
transition: all 200ms;
font-size: 30px;
font-weight: bold;
text-decoration: none;
color: #C0C0C0;
}
.popup .close:hover {
color: #0078D7;
}
.popup .content {
/* max-height: 30%; */
overflow: auto;
}
.articlesElement
{
width:100%;
border-style: solid;
}
.separator
{
margin-top:3px;
width:100%;
height: 10px;
/* background: #EBEDF1; */
}
* {
box-sizing: border-box;
}
/* Create two equal columns that floats next to each other */
.column {
float: left;
width: 48%;
padding: 10px;
height: auto; /* Should be removed. Only for demonstration */
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
.modelInput
{
border-color: #C1C1C1;
color:#C1C1C1;
padding:2px;
border-radius: 30px;
height: 40px;
width:260px
}
.modalButton
{
background: #9DC3E6;
border-width: 0px;
color:white;
border-radius: 30px;
width:80px;
height: 40px;
}
.entreprise
{
background:#EEEEEE;
color:#0254A4;
padding:5px;
margin-left: 5px;
border-radius: 10px;
line-height: 30px;
}
.go{
background: #4E2D76;
width:160px;
border-radius: 30px;
color:white;
font-weight: bold;
height: 35px;
border-width: 0px;
margin-top: 5px;
}
.user_card {
height: 500px;
width: 350px;
margin-top: auto;
margin-bottom: auto;
background: #F2F2F2;
position: relative;
display: flex;
justify-content: center;
flex-direction: column;
padding: 10px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 5px;
}
.brand_logo_container {
position: absolute;
height: 170px;
width: 170px;
top: -75px;
border-radius: 50%;
background: #fff;
padding: 10px;
text-align: center;
}
.brand_logo {
height: 140px;
width: 140px;
/* border-radius: 1px; */
background-color: transparent;
/* border: 2px solid white; */
}
.form_container {
margin-top: 100px;
}
.login_btn {
width: 100%;
background: #2E3234 !important;
color: white !important;
}
.login_btn:focus {
box-shadow: none !important;
outline: 0px !important;
}
.login_container {
padding: 0 2rem;
}
.input-group-text {
background: #c0392b !important;
color: white !important;
border: 0 !important;
border-radius: 0.25rem 0 0 0.25rem !important;
}
.input_user,
.input_pass:focus {
box-shadow: none !important;
outline: 0px !important;
}
.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
background-color: #c0392b !important;
}
.disabledbutton {
pointer-events: none;
opacity: 0.4;
}
.nav_bar
{
width: 100%;
height: auto;
background-color: #000000;
color:white;
border-bottom: solid;
border-width: 2px;
border-color: #595959;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 15px;
font-weight: bold;
}
/* Change the link color to #111 (black) on hover */
li a:hover {
background-color: #111;
color:#E86441;
}
.selected_title{
background-color: #111;
color:#E86441;
text-decoration: underline;
}
.logout
{
color: white;text-decoration: underline;
}
.logout:hover
{
/* background-color: #111; */
color:#E86441;
text-decoration: underline;
}
.new_Dictionnaire
{
}
.selected_btn
{
background-color: #E86441;
color: white!important;
font-weight: bold;
}
.logout:hover
{
/* background-color: #111; */
text-decoration: underline;
}
select
{
border-style: solid;
border-radius: 5px;
border-width: 1px;
border-color: #CCCCCC;
padding: 5px;
/* margin-bottom: 15px; */
min-width: 150px;
outline: none;
}
select:focus {
/* border-color: #E86441; */
box-shadow: 0 0 1px 2px #F7AF2A;
box-shadow: 0 0 0 2px -moz-mac-focusring;
}
select:hover {
border-color: #F7AF2A;
}
input[type=text]
{
border-style: solid;
border-radius: 5px;
border-width: 1px;
border-color: #CCCCCC;
padding: 5px;
/* margin-bottom: 15px; */
min-width: 100px;
outline: none;
border-radius: 3px;
}
input[type=text]:focus {
/* border-color: #E86441; */
box-shadow: 0 0 1px 2px #F7AF2A;
box-shadow: 0 0 0 2px -moz-mac-focusring;
}
input[type=text]:hover {
border-color: #F7AF2A;
}
.tlabel
{
font-size: 15px;
padding-left: 5px;
font-weight: bold;
display: inline-block;
width: 170px !important;
/* border-color:red;
border-style: solid; */
}
.tlabel2
{
/* font-size: 15px;
padding-left: 5px;
font-weight: bold; */
display: inline-block;
/* width: 100px !important; */
/* border-color:red;
border-style: solid; */
}
.tvalue{
font-size: 15px;
padding-left: 5px;
font-weight: bold;
display: inline-block;
color:rgb(228, 156, 22);
/* border-color:red;
border-style: solid; */
}
/* ========================check box==================== */
.select_all
{
cursor: url('./images/select.png'),auto;
}
/* .select_all:hover
{
cursor: url('./images/select.png)'),auto;
} */
/* loader */
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400);
/* body {
height: 100%;
padding: 0px;
margin: 0px;
background: #333;
font-family: 'Roboto', sans-serif !important;
font-size: 1em;
} */
h1{
font-family: 'Roboto', sans-serif;
font-size: 30px;
color: #999;
font-weight: 300;
margin-bottom: 55px;
margin-top: 45px;
text-transform: uppercase;
}
h1 small{
display: block;
font-size: 18px;
text-transform: none;
letter-spacing: 1.5px;
margin-top: 12px;
}
/* .row{
max-width: 950px;
margin: 0 auto;
} */
.btn{
white-space: normal;
}
.button-wrap {
position: relative;
text-align: center;
}
/** SPINNER CREATION **/
.loader {
position: relative;
text-align: center;
margin: 15px auto 35px auto;
z-index: 9999;
display: block;
width: 80px;
height: 80px;
border: 10px solid rgba(0, 0, 0, .3);
border-radius: 50%;
border-top-color: #000;
animation: spin 1s ease-in-out infinite;
-webkit-animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to {
-webkit-transform: rotate(360deg);
}
}
@-webkit-keyframes spin {
to {
-webkit-transform: rotate(360deg);
}
}
/** MODAL STYLING **/
.modal-content {
border-radius: 0px;
box-shadow: 0 0 20px 8px rgba(0, 0, 0, 0.7);
}
.modal-backdrop.show {
opacity: 0.75;
}
.loader-txt {
}
| css |
Called on to enter a plea at the start of Hong Kong’s largest-ever national security trial Monday, Leung Kwok-hung said he had nothing to answer for.
That was when Beijing imposed new national security legislation on the city, criminalizing subversion, secession and collusion with foreign powers. Mr. Leung is one of 47 opposition figures charged under the law regarding a primary held in July 2020, in which more than half a million Hong Kongers cast ballots to choose members of the pro-democracy camp to contest upcoming legislative elections.
Even under the old system — with the legislature roughly split between elected seats and those chosen by business and professional groupings — the opposition had never won a majority, despite over 55 per cent of the public consistently voting for pro-democracy parties.
“My lords, I failed to commit subversion against a totalitarian regime,” said one of the two, Ng Kin-wai, a former elected district councillor. “I plead guilty.” Also in court were several defendants who have already pleaded guilty. Joshua Wong, the one-time poster boy of the city’s opposition movement, sat on the defendant benches flanked by two prison guards, as did Lester Shum, another leader of the 2014 Umbrella Movement.Read more:
Landmark Hong Kong national security trial starts two years after arrestsPotential landmark trial of protesters to start in Hong Kong China doesn’t care Canada’s opinion, we are simply not a nation with any strength on world stage. Plus, our own country is so divided and weak, clean up our own society first, defeat and uproot the left extremism in this country.
Landmark Hong Kong national security trial starts two years after arrestsPotential landmark trial of protesters to start in Hong Kong China doesn’t care Canada’s opinion, we are simply not a nation with any strength on world stage. Plus, our own country is so divided and weak, clean up our own society first, defeat and uproot the left extremism in this country.
Choking case at Ottawa Fire Station 47: 'Our client is still traumatized by the assault'“The denials issued by Capt. Wright and firefighter Einagle are very disturbing to our client.” A non-binary fire fighter.
Preparations Underway to Provide Warming Centre in Lab CityThe Town of Labrador City says preparations are underway to provide a warming centre during extreme cold tempe... JimDinn any word if CityofStJohns bothering to help at all?
Threats to National Security Week at Legal InsurrectionThe news for the week in one post.
| english |
Ron Paul is America's leading voice for limited, constitutional government, low taxes, free markets, and a return to sound monetary policies. Most Powerful Army Fighting War Against People Who Have NO Tanks! NO Planes! NO Ships!
Clashes between Lebanese troops and Israeli forces have left at least three Lebanese soldiers and a senior Israeli army officer dead, according to Lebanese media.
A number of Israeli soldiers have revealed the brutalities they witnessed during the army's attacks on Palestinian territories.
A number of Israeli soldiers have revealed the brutalities they witnessed during the army's attacks on Palestinian territories.
Two rockets hit the southern district of Zahyieh in Lebanon\\\'s capital, Beirut, on May 26, injuring several people. In another incident on the same day, four mortars slammed into the heart of Hermel, which is situated about 100 kilometers (62 miles) northeast of Beirut. The incidents in Lebanon came amid recent deadly clashes between supporters and opponents of the Syrian government in the country\\\'s northern city of Tripoli.
Press TV has conducted an interview with Elias Farhat, a retired Army General, about the recent attack in Lebanon where three soldiers were killed.
| english |
[
{
"id": "deck-uuid",
"name": "<NAME>",
"personality_group_id": "personality-group-uuid",
"personality_group_name": null,
"created_at": 1396230166317,
"active": true,
"slide_count": null,
"personality_group": null
}
]
| json |
A bench headed by Chief Justice of India DY Chandrachud is hearing a batch of petitions seeking to legalise same-sex marriages.
A majority of doctors and allied medical professionals believe that homosexuality is a disorder that will become more prevalent if same-sex marriages are recognised, an affiliate of the Rashtriya Swayamsevak Sangh said, according to PTI.
The organisation, Samvardhinee Nyas, carried out a survey of 318 persons affiliated to eight branches of medicine ranging from Ayurveda to modern medicine.
A Supreme Court bench headed by Chief Justice of India DY Chandrachud is hearing a batch of petitions seeking to legalise same-sex marriages. The Union government has opposed the petitions and urged the court to let Parliament decide on the subject.
The Samvardhinee Nyas has supported the Centre’s stand before the Supreme Court. It has submitted the findings of its suvey to the bench.
The organisation claims that over 60% medical professionals said that homosexuality was a disorder, The Indian Express reported. “Over 67 per cent of the doctors in their response to the survey questionnaire felt that homosexual parents cannot raise their offspring properly,” it told the court.
The survey found that 84.27% of the respondents did not favour allowing same-sex marriages. The organisation further stated that 23.58% of doctors said that they had “treated” such persons and “now their life is just like normal people”.
The RSS affiliate said that 83% of the respondents “confirmed transmission of sexual disease in homosexual relations”. The survey shows that legalising same-sex marriages “may promote more disorder in the society rather than curing patients and bringing them to normalcy”, it contended.
However, on January 9, RSS chief Mohan Bhagwat had said that members of the LGBTQ community deserve to have their own private and social space.
The Narendra Modi government has argued in the court that same-sex marriages are not compatible with the Indian idea of family and that the demands for their legal recognition represent “urban elitist views for the purpose of social acceptance”. The government has also contended that making laws on marriage was the prerogative of the legislature and the judiciary should not intervene in the matter.
On Wednesday, the Centre proposed to form a committee to address concerns of the LGBTQIA+ community. Solicitor General Tushar Mehta, representing the Centre, said that the committee will be headed by a cabinet secretary. It will examine whether certain legal rights can be granted to same-sex couples without legalising their union.
| english |
<gh_stars>0
{"pageContext":{"isCreatedByStatefulCreatePages":false,"id":"Jekyll","data":{"id":"Jekyll","title":"জ্যাকিল চিটশিট","slug":"Jekyll","description":"জ্যাকিল হচ্ছে একটি স্ট্যাটিক সাইট জেনারেটর। জ্যাকিল দিয়ে আপনি খুব সহজেই একটি স্ট্যাটিক সাইট বানিয়ে ফেলতে পারেন Markdown, Plain Text দিয়ে","colorPref":"#252426","contents":[{"title":"উবুন্টু তে Jekyll ও Jekyll Dependencies সেটআপ করা","items":[{"definition":"Ruby এবং অন্যান্য Dependencies ইনস্টল করুন","code":"sudo apt-get install ruby-full build-essential zlib1g-dev"},{"definition":"Ruby Gems ইনস্টল করুন এবং Environment Path সেট করুন","code":["echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc","echo 'export GEM_HOME='$HOME/gems'' >> ~/.bashrc","echo 'export PATH='$HOME/gems/bin:$PATH'' >> ~/.bashrc","source ~/.bashrc"]},{"definition":"Jekyll এবং বান্ডলার Gem ইনস্টল করা","code":"gem install jekyll bundler"}]},{"title":"প্রাথমিক কমান্ড সমূহঃ","items":[{"definition":"একটি নতুন Jekyll সাইট তৈরি করা","code":"jekyll new mysite"},{"definition":"নতুন সাইট ডিরেক্টরিতে যাওয়া","code":"cd mysite"},{"definition":"একটি নতুন Jekyll থিম তৈরি করা","code":"jekyll new-theme"},{"definition":"সাইটটি Build করা","code":"jekyll build, jekyll b"},{"definition":"সাইটটির Local ডেভলপমেন্ট সার্ভার চালু করা","code":"jekyll serve, jekyll s"},{"definition":"সমস্ত উৎপন্ন ফাইলগুলি সরিয়ে দেয়া: গন্তব্য ফোল্ডার, মেটাডেটা ফাইল, সাস এবং Jekyll ক্যাশে","code":"jekyll clean"},{"definition":"Jekyll এর ভার্শন চেক করা","code":"jekyll -version, jekyll -v"},{"definition":"Jekyll এর কমান্ড সম্পর্কিত হেল্প এর জন্য","code":"jekyll help"},{"definition":"কোনো কনফিগারেশন সমস্যা দেখার জন্য","code":"jekyll doctor"}]},{"title":"Jekyll রিলেটেড সাব-কমান্ড সমুহ","items":[{"definition":"নির্দিষ্ট Path ও Default Theme এ একটি নতুন Jekyll সাইট তৈরি করা","code":"jekyll new PATH"},{"definition":"নির্দিষ্ট Path এ একটি নতুন ফাঁকা Jekyll সাইট তৈরি করা","code":"jekyll new PATH --blank"}]}]},"filename":"jekyll","contributors":{"MoshiulRabbi":{"count":1,"login":"MoshiulRabbi","name":"mhrabbi","avatar_url":"https://avatars.githubusercontent.com/u/42906079?v=4","html_url":"https://github.com/MoshiulRabbi"}}}} | json |
import { useEffect, useReducer } from 'react';
import { concatDictionaryFileName } from '../commonUtility';
import { WORD_DICTIONARY_EXTENSION, SENTENCE_DICTIONARY_EXTENSION } from '../commonUtility';
import { LAP_LENGTH } from './useRomanEngine';
type LibraryReducerActionType = { type: 'use', dictionaryName: string } | { type: 'disuse', dictionaryName: string } | { type: 'load', availableDictionaryList: CategorizedDictionaryInfoList } | { type: 'vocabulary', vocabularyEntryList: VocabularyEntry[] } | { type: 'type', vocabularyType: VocabularyType } | { type: 'romanCountThreshold', romanCountThreshold: number };
export function useVocabulary(): [Library, (action: LibraryOperatorActionType) => void] {
const existInAvailableDictionary = (availableDictionaryList: CategorizedDictionaryInfoList, dictionaryName: string, vocabularyType: VocabularyType) => {
const dictionaryInfoList = vocabularyType == 'word' ? availableDictionaryList.word : availableDictionaryList.sentence;
for (let dictionaryInfo of dictionaryInfoList) {
if (dictionaryInfo.type != vocabularyType) {
throw new Error(`VocabularyType mismatch in ${dictionaryInfo.name} expected ${vocabularyType}, but ${dictionaryInfo.type}`);
}
if (concatDictionaryFileName(dictionaryInfo) == dictionaryName) {
return true;
}
}
return false;
};
// 語彙関連をまとめて1つのstateとして管理する
const libraryReducer: React.Reducer<Library, LibraryReducerActionType> = (state: Library, action: LibraryReducerActionType) => {
switch (action.type) {
// 現在有効になっている辞書タイプで利用可能な辞書から追加する
case 'use':
if (!existInAvailableDictionary(state.availableDictionaryList, action.dictionaryName, state.usedVocabularyType)) {
throw new Error(`use dictionary(${action.dictionaryName}) not in availableDictionaryList`);
}
const addedUsedDictionaryFileNameList: { word: string[], sentence: string[] } = state.usedVocabularyType == 'word' ? {
word: state.usedDictionaryFileNameList.word.concat([action.dictionaryName]),
sentence: state.usedDictionaryFileNameList.sentence,
} : {
word: state.usedDictionaryFileNameList.word,
sentence: state.usedDictionaryFileNameList.sentence.concat([action.dictionaryName]),
};
return {
availableDictionaryList: state.availableDictionaryList,
usedDictionaryFileNameList: addedUsedDictionaryFileNameList,
usedVocabularyType: state.usedVocabularyType,
vocabularyEntryList: state.vocabularyEntryList,
romanCountThreshold: state.romanCountThreshold,
};
// 現在有効になっている辞書タイプで利用可能な辞書から追加する
case 'disuse':
if (!existInAvailableDictionary(state.availableDictionaryList, action.dictionaryName, state.usedVocabularyType)) {
throw new Error(`disuse dictionary(${action.dictionaryName}) not in availableDictionaryList`);
}
const deletedUsedDictionaryFileNameList: { word: string[], sentence: string[] } = state.usedVocabularyType == 'word' ? {
word: state.usedDictionaryFileNameList.word.filter(e => e !== action.dictionaryName),
sentence: state.usedDictionaryFileNameList.sentence,
} : {
word: state.usedDictionaryFileNameList.word,
sentence: state.usedDictionaryFileNameList.sentence.filter(e => e !== action.dictionaryName),
};
return {
availableDictionaryList: state.availableDictionaryList,
usedDictionaryFileNameList: deletedUsedDictionaryFileNameList,
usedVocabularyType: state.usedVocabularyType,
vocabularyEntryList: state.vocabularyEntryList,
romanCountThreshold: state.romanCountThreshold,
};
case 'load':
const wordAvailableDictionaryNameList = action.availableDictionaryList.word.map(e => `${e.name}${WORD_DICTIONARY_EXTENSION}`);
const sentenceAvailableDictionaryNameList = action.availableDictionaryList.sentence.map(e => `${e.name}${SENTENCE_DICTIONARY_EXTENSION}`);
return {
availableDictionaryList: action.availableDictionaryList,
usedDictionaryFileNameList: {
word: state.usedDictionaryFileNameList.word.filter(e => wordAvailableDictionaryNameList.includes(e)),
sentence: state.usedDictionaryFileNameList.sentence.filter(e => sentenceAvailableDictionaryNameList.includes(e)),
},
usedVocabularyType: state.usedVocabularyType,
vocabularyEntryList: state.vocabularyEntryList,
romanCountThreshold: state.romanCountThreshold,
};
case 'type':
return {
availableDictionaryList: state.availableDictionaryList,
usedDictionaryFileNameList: state.usedDictionaryFileNameList,
usedVocabularyType: action.vocabularyType,
vocabularyEntryList: state.vocabularyEntryList,
romanCountThreshold: state.romanCountThreshold,
};
case 'vocabulary':
return {
availableDictionaryList: state.availableDictionaryList,
usedDictionaryFileNameList: state.usedDictionaryFileNameList,
usedVocabularyType: state.usedVocabularyType,
vocabularyEntryList: action.vocabularyEntryList,
romanCountThreshold: state.romanCountThreshold,
};
case 'romanCountThreshold':
return {
availableDictionaryList: state.availableDictionaryList,
usedDictionaryFileNameList: state.usedDictionaryFileNameList,
usedVocabularyType: state.usedVocabularyType,
vocabularyEntryList: state.vocabularyEntryList,
romanCountThreshold: action.romanCountThreshold,
};
}
}
const [library, dispatchLibrary] = useReducer(libraryReducer, {
availableDictionaryList: { word: [], sentence: [] },
usedDictionaryFileNameList: { word: [], sentence: [] },
usedVocabularyType: 'word',
vocabularyEntryList: [],
romanCountThreshold: LAP_LENGTH * 4,
});
const loadAvailableDictionaryList = () => {
window.api.getDictionaryList().then(list => {
dispatchLibrary({ type: 'load', availableDictionaryList: list });
});
};
const updateVocabulary = () => {
const usedDictionaryFileNameList = library.usedVocabularyType == 'word' ? library.usedDictionaryFileNameList.word : library.usedDictionaryFileNameList.sentence;
window.api.getVocabularyEntryList(usedDictionaryFileNameList).then(list => {
dispatchLibrary({ type: 'vocabulary', vocabularyEntryList: list });
});
}
// stateの変更は一部非同期なのでreducerの中で全部を行うことはできない
const operator = (action: LibraryOperatorActionType) => {
switch (action.type) {
case 'use':
dispatchLibrary({ type: 'use', dictionaryName: action.dictionaryName });
break;
case 'disuse':
dispatchLibrary({ type: 'disuse', dictionaryName: action.dictionaryName });
break;
case 'load':
loadAvailableDictionaryList();
break;
case 'type':
dispatchLibrary({ type: 'type', vocabularyType: action.vocabularyType });
break;
case 'constructVocabulary':
updateVocabulary();
break;
case 'romanCountThreshold':
dispatchLibrary({ type: 'romanCountThreshold', romanCountThreshold: action.romanCountThreshold });
break;
}
}
// 依存なしなので初回のみ
useEffect(() => {
loadAvailableDictionaryList();
}, []);
return [library, operator];
}
| typescript |
<gh_stars>0
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"template_service_csharp": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "local"
},
"applicationUrl": "http://localhost:5052"
}
}
| json |
<reponame>fmirus/vitae<filename>index.html
---
layout: layout
---
{% include experience.html %}
{% include education.html %}
{% include languages.html %}
{% include skills.html %}
{% include publications.html %}
{% include workshops.html %}
{% include interests.html %}
| html |
<gh_stars>1-10
{"id": "836022", "bkmk": "kmtb-b836022", "name": "松ヶ崎橋 発 北8号系統 佛教大学・北大路バスターミナル行き", "busstop": "松ヶ崎橋", "line": "北8号系統", "destination": "佛教大学・北大路バスターミナル行き", "notes": {"()": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, "weekday": [{"t": "06:54", "note": " "}, {"t": "07:25", "note": " "}, {"t": "07:49", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "08:04", "note": " "}, {"t": "08:24", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "08:45", "note": " "}, {"t": "09:04", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "09:25", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "09:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "10:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "10:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "11:15", "note": " "}, {"t": "11:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "12:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "12:45", "note": " "}, {"t": "13:15", "note": " "}, {"t": "13:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "14:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "14:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "15:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "15:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "16:15", "note": " "}, {"t": "16:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "17:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "17:45", "note": " "}, {"t": "18:15", "note": " "}, {"t": "18:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "19:12", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "19:36", "note": " "}, {"t": "20:02", "note": " "}, {"t": "20:28", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "20:54", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "21:23", "note": " "}, {"t": "22:13", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}], "saturday": [{"t": "06:54", "note": " "}, {"t": "07:44", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "08:55", "note": " "}, {"t": "09:55", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "10:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "11:15", "note": " "}, {"t": "11:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "12:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "12:45", "note": " "}, {"t": "13:15", "note": " "}, {"t": "13:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "14:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "14:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "15:15", "note": " "}, {"t": "15:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "16:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "16:45", "note": " "}, {"t": "17:15", "note": " "}, {"t": "17:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "18:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "18:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "19:22", "note": " "}, {"t": "20:14", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "21:23", "note": " "}, {"t": "22:13", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}], "holiday": [{"t": "06:54", "note": " "}, {"t": "07:44", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "08:55", "note": " "}, {"t": "09:55", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "10:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "11:15", "note": " "}, {"t": "11:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "12:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "12:45", "note": " "}, {"t": "13:15", "note": " "}, {"t": "13:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "14:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "14:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "15:15", "note": " "}, {"t": "15:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "16:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "16:45", "note": " "}, {"t": "17:15", "note": " "}, {"t": "17:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "18:15", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "18:45", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "19:22", "note": " "}, {"t": "20:14", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}, {"t": "21:23", "note": " "}, {"t": "22:13", "note": "北大路バスターミナルまでです。For Kitaoji Bus Terminal"}]} | json |
body {
width: 100%;
height: 100%;
overflow: hidden;
}
#map {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
maring: 0;
padding: 0;
}
.geojson-anno {
white-space: nowrap;
font-size: 12pt;
font-family: Meiryo, sans-serif;
font-weight: bold;
text-shadow: -1px -1px 0px #fff, -1px 1px 0px #fff, 1px -1px 0px #fff, 1px 1px 0px #fff;
color: #000000;
pointer-events: none;
}
.slope {
stroke-dasharray: 1 19;
stroke-width: 5px;
stroke: hsl(220, 0%, 50%);
}
.slope1 {
animation: geojson-anime 7.43s linear 0s infinite normal;
stroke: hsl(220, 50%, 50%);
}
.slope2 {
animation: geojson-anime 6.19s linear 0s infinite normal;
stroke: hsl(240, 50%, 50%);
}
.slope3 {
animation: geojson-anime 5.16s linear 0s infinite normal;
stroke: hsl(260, 50%, 50%);
}
.slope4 {
animation: geojson-anime 4.30s linear 0s infinite normal;
stroke: hsl(280, 50%, 50%);
}
.slope5 {
animation: geojson-anime 3.58s linear 0s infinite normal;
stroke: hsl(300, 50%, 50%);
}
.slope6 {
animation: geojson-anime 2.99s linear 0s infinite normal;
stroke: hsl(320, 50%, 50%);
}
.slope7 {
animation: geojson-anime 2.49s linear 0s infinite normal;
stroke: hsl(340, 50%, 50%);
}
.slope8 {
animation: geojson-anime 2.07s linear 0s infinite normal;
stroke: hsl(0, 50%, 50%);
}
.slope9 {
animation: geojson-anime 1.73s linear 0s infinite normal;
stroke: hsl(20, 50%, 50%);
}
.slope10 {
animation: geojson-anime 1.44s linear 0s infinite normal;
stroke: hsl(40, 50%, 50%);
}
.slope11 {
animation: geojson-anime 1.20s linear 0s infinite normal;
stroke: hsl(60, 50%, 50%);
}
.slope12 {
animation: geojson-anime 1.00s linear 0s infinite normal;
stroke: hsl(60, 50%, 50%);
}
@keyframes geojson-anime {
0% {
stroke-dashoffset: 0;
}
100% {
stroke-dashoffset: 20;
}
}
| css |
<reponame>HadleyLab/covidimaging.patient
import React, {PureComponent} from 'react'
import {FormContainer} from 'style/containers'
import trans from 'trans'
import TextField from 'components/ReduxForm/TextField'
import ErrorText from 'components/ErrorText'
import RoundedButton from 'components/RoundedButton'
import Actions from 'components/Actions'
import FullColumn from 'components/FullColumn'
import Link from 'components/Link'
import FlexCover from 'components/FlexCover'
import {withStyles} from '@material-ui/core/styles/index'
import colors from '../../../../style/colors'
import FlexedContainer from 'components/FlexedContainer'
import ImgCover from 'components/ImgCover'
import MenuLogin from 'components/MenuLogin'
import FooterLogin from 'components/FooterLogin'
import LockIcon from 'components/Icons/PassWordIcon'
import CloseIcon from 'components/Icons/CloseIcon'
import IconButton from '@material-ui/core/IconButton';
const styles = ({
form: {
width: 400,
},
title: {
color: colors.fontDark,
width: 100,
height: 50,
fontFamily: 'Titillium Web',
fontSize: '32px',
fontWeight: 'normal',
fontStretch: 'normal',
fontStyle: 'normal',
lineHeight: 'normal',
letterSpacing: 'normal',
margin: '0 auto 1.2em',
textAlign: 'center',
},
flexedLink: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
span: {
marginLeft: 10,
},
message: {
backgroundColor: 'rgba(2, 206, 117, .9)',
height: 62,
width: '97%',
top: 15,
position: 'absolute',
borderRadius: 4,
textAlign: 'center',
lineHeight: '62px',
color: '#fff',
fontWeight: 200,
},
relative: {
position: 'relative',
},
button: {
position: 'absolute',
right: 5,
top: 8,
},
resetLink: {
margin: '1.5em auto 2.6em',
},
buttonSubmit: {
padding: '14px 41px 15px',
backgroundColor:colors.brandPrimary,
'&:hover': {
backgroundColor: colors.brandHover,
},
color: colors.borderGrey
},
linkBtn: {
backgroundColor: colors.brandSecondary,
'&:hover': {
backgroundColor: colors.brandSecondaryHover,
}
}
})
class LoginStep extends PureComponent {
constructor(props) {
super(props);
const {location} = this.props;
const query = require('url').parse(location.search, true).query;
this.state = {
ShowDialogPWDConfirm: (query.resetpwd === 'ok') ? true : false,
readOnly: true
};
}
handleCloseDialogPWDConfirm = () => {
this.setState(
{
ShowDialogPWDConfirm: false,
}
);
}
render() {
const {error, onLogin, submitting, valid, handleSubmit, classes} = this.props;
const {ShowDialogPWDConfirm, readOnly} = this.state;
let showDialogPWDConfirm = null;
if (ShowDialogPWDConfirm) {
showDialogPWDConfirm = (<div style={styles.message}>
<div style={styles.relative}>
<span>{trans('reset.pwd.success.message')}</span>
<IconButton onClick={this.handleCloseDialogPWDConfirm}>
<CloseIcon/>
</IconButton>
</div>
</div>);
}
return (
<FlexedContainer>
<FormContainer>
<MenuLogin
path='/register'
classes={{cssRoot: classes.linkBtn}}
label={trans('forms.registration.title')}
/>
<form onSubmit={handleSubmit(onLogin)} className={classes.form}>
<h2 className={classes.title}>{trans('forms.btn.sign.in')}</h2>
<FlexCover>
<FullColumn>
<TextField name="email" readOnly={readOnly} onFocus={ () => {
this.setState({readOnly: false})
}} type="email" label={trans('forms.registration.Email')} fullWidth/>
</FullColumn>
<FullColumn>
<TextField name="password" readOnly={readOnly} onFocus={ () => {
this.setState({readOnly: false})
}} type="password" label={trans('forms.registration.Password')} fullWidth/>
</FullColumn>
{error && (
<ErrorText>{error}</ErrorText>
)}
<Actions className={classes.resetLink}>
<Link to="/resetpwd" className={classes.flexedLink}>
<span className="icon-ico-unlock"/><span
className={classes.span}>{trans('forms.login.forgot.password')}</span></Link>
</Actions>
<Actions>
<RoundedButton type="submit" variant='raised'
classes={{button: classes.buttonSubmit}}
disabled={submitting}
>{trans('title.login')}</RoundedButton>
</Actions>
</FlexCover>
</form>
{showDialogPWDConfirm}
<FooterLogin/>
</FormContainer>
<ImgCover/>
</FlexedContainer>
)
}
}
export default withStyles(styles)(LoginStep) | javascript |
<filename>datasets/2D/SIGN/writer1010/sessionC/chevron_down-1-6.json
{"name":"chevron_down","subject":1010,"date":"432010-045239","paths":{"Pen":{"strokes":[{"x":-411,"y":-45,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":0,"stroke_id":0},{"x":-388,"y":-28,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":1,"stroke_id":0},{"x":-374,"y":-12,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":2,"stroke_id":0},{"x":-362,"y":11,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":3,"stroke_id":0},{"x":-347,"y":51,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":4,"stroke_id":0},{"x":-343,"y":93,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":5,"stroke_id":0},{"x":-329,"y":151,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":6,"stroke_id":0},{"x":-322,"y":215,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":7,"stroke_id":0},{"x":-307,"y":290,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":8,"stroke_id":0},{"x":-295,"y":361,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":9,"stroke_id":0},{"x":-275,"y":439,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":10,"stroke_id":0},{"x":-258,"y":505,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":11,"stroke_id":0},{"x":-228,"y":572,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":12,"stroke_id":0},{"x":-196,"y":625,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":13,"stroke_id":0},{"x":-151,"y":672,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":14,"stroke_id":0},{"x":-105,"y":697,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":15,"stroke_id":0},{"x":-43,"y":712,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":16,"stroke_id":0},{"x":23,"y":708,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":17,"stroke_id":0},{"x":101,"y":688,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":18,"stroke_id":0},{"x":188,"y":651,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":19,"stroke_id":0},{"x":284,"y":594,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":20,"stroke_id":0},{"x":387,"y":524,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":21,"stroke_id":0},{"x":500,"y":443,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":22,"stroke_id":0},{"x":619,"y":360,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":23,"stroke_id":0},{"x":736,"y":268,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":24,"stroke_id":0},{"x":857,"y":186,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":25,"stroke_id":0},{"x":963,"y":105,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":26,"stroke_id":0},{"x":1070,"y":37,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":27,"stroke_id":0},{"x":1161,"y":-16,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":28,"stroke_id":0},{"x":1239,"y":-58,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":29,"stroke_id":0},{"x":1299,"y":-81,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":30,"stroke_id":0}]}},"device":{"osBrowserInfo":"Fujitsu-Siemens Stylistic ST5022 Tablet PC","resolutionHeight":null,"resolutionWidth":null,"windowHeight":null,"windowWidth":null,"pixelRatio":null,"mouse":false,"pen":true,"finger":false,"acceleration":false,"webcam":false}} | json |
package com.wzw.nettylog4j2.code;
import com.wzw.nettylog4j2.entitis.NettyClientMessage;
import com.wzw.nettylog4j2.entitis.PlcMessage;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.util.concurrent.EventExecutorGroup;
import java.util.List;
public class ClientDecoder extends ByteToMessageDecoder {
@Override
protected void decode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf, List<Object> list) throws Exception {
int unsignedShort = byteBuf.getUnsignedShort(10);
if (unsignedShort == 1) {
System.out.println("这是个心跳数据");
return;
}else if (unsignedShort == 0xFFFF){
System.out.println("这是个错误数据");
return;
}
//我需要把这个数据转成字符串打印在日志文件里,并且需要把这个字节数据发送到顺丰那里
NettyClientMessage nettyClientMessage = new NettyClientMessage();
nettyClientMessage.setSequence(SequenctManager.generateSequenceForClient());
byte[] bytes = new byte[byteBuf.readableBytes()];
byteBuf.getBytes(0,bytes);
PlcMessage plcMessage = new PlcMessage();
plcMessage.setMessageType(unsignedShort);
plcMessage.setDataContext(String.valueOf(bytes).replaceAll("_",""));
plcMessage.setSendBytes(bytes);
List<PlcMessage> plcMessageList = nettyClientMessage.getPlcMessageList();
plcMessageList.add(plcMessage);
nettyClientMessage.setLength(byteBuf.getUnsignedShort(byteBuf.readerIndex()+2));
byteBuf.skipBytes(byteBuf.getUnsignedShort(byteBuf.readerIndex()+2));
//然后将数据加入链
list.add(nettyClientMessage);
}
}
| java |
{"id":"h2-cable","name":"H2 Cable","cable_id":2050,"landing_points":[{"landing_point_id":3030,"id":"sydney-australia","name":"Sydney, Australia","latlon":"-33.869701,151.207039","url":"#/landing-point/sydney-australia"},{"landing_point_id":5981,"id":"toucheng-taiwan","name":"Toucheng, Taiwan","latlon":"24.863596,121.801462","url":"#/landing-point/toucheng-taiwan"}],"length":"9,200 km","rfs":"2024","owners":"H2 Cable","url":null,"notes":null}
| json |
Mouni Roy is always a delight and keeps us hooked with her stunning style shenanigans - whether it’s ethereal ethnics or neo- ethnics or western ensembles. A recent outing for the MAMI Film Festival 208 Brunch saw her opt for an Anamika Khanna ensemble.
Bringing a pocketful of sunshine with her, the stunning separates featured Anamika Khanna signatures of a cropped blouse, high waist flared pants and a cape.
Earrings from Amrapali Jewels, strappy stilettos perfected the look.
Mouni sported sleek hair with center parting.
A subtle makeup of defined eyes, nude pink lips and highlighted cheekbones rounded out her look.
On the professional front, Mouni Roy debuted with Gold opposite Akshay Kumar. She will be seen as Rukmini to Rajkummar Rao’s character Raghu, a Gujarati business man in Made in China. She will also be seen in Ayan Mukerji’s Brahmastra with Amitabh Bachchan, Ranbir Kapoor and Alia Bhatt.
Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
| english |
<filename>impl/src/test/java/org/apache/camel/cdi/DefaultCamelContextBean.java
package org.apache.camel.cdi;
import org.apache.camel.impl.DefaultCamelContext;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
@Named("default")
@ApplicationScoped
public class DefaultCamelContextBean extends DefaultCamelContext {
}
| java |
To get a roundup of TechCrunch’s biggest and most important stories delivered to your inbox every day at 3 p.m. PDT, subscribe here.
- Pacman on the attack: Carly writes that MIT researchers, while applying a “Pacman attack” test on Apple’s M1 chips, undiscovered a doozy in the way of an “unpatchable” hardware vulnerability that could allow attackers to break through its last line of security defenses. In its response, Apple didn’t seem too worried.
- Amazon isn’t bidding on cricket: Manish was privy to some news that Amazon was pulling out of the running to bid on a 5-year deal to stream IPL cricket games. No word on why that is, but if you enjoy the games, it looks like Disney and Reliance are still in it.
- “The search for alpha”: A downed market for crypto appears to be an advantage for hedge funds looking to get in on some digital assets, Jacquie writes. She combs through the PwC’s Global Crypto Hedge Fund so you don’t have to.
We enjoyed Amanda’s and Natasha’s take today on the myriad layoffs plaguing technology companies these days. They also point out something new with this latest crop of announcements.
What do you get when you combine a young VC investor leveraging his age to bring a fresh perspective to the industry with some women investors striking it out on their own and a look into investors demanding profitability from tech companies? A nice afternoon of reading.
Here are some others we hope tickle your fancy:
- The subscription game is the game I’m in: Free messaging app Telegram is going to offer a premium option, and get this, it won’t be downgrading features for those who don’t subscribe. Now, isn’t that refreshing? Your move, Marco Polo.
- Getting in on a growing market: The International Finance Corp. is poised to invest in Partech’s Africa Fund II, Annie reports. The fund will invest in a broad range of stages, from seed to Series D.
- A hand to hold: Boulder Care raised $36 million in Series B funding to continue developing its telehealth program focused on substance abuse disorders. The company works mainly with patients on Medicaid and is seeing some industry-leading retention rates for those in the program.
- Sunny days are here again: India’s SolarSquare has raised $4 million to accelerate the country’s move toward clean energy.
Growth marketing experts survey: How would you spend a $75,000 budget in summer 2022?
As entrepreneurs began turning lessons learned in bootcamps into basic best practices, startups started giving growth marketers more respect and resources over the last decade.
Here’s the good news: Managers can’t slash your respect budget. Unfortunately, to maximize ROI, every dollar now needs to stretch further than Reed Richards in the last “Doctor Strange” movie.
This time, we asked four experts to tell us how they’d manage a budget of $75,000 and which recommendations they’d offer someone who had only $10,000 to spend:
(TechCrunch+ is our membership program, which helps founders and startup teams get ahead. You can sign up here.)
Big Tech Inc.
- Turn down that racket!: Netflix is turning some of its popular original programming into games, like “The Queen’s Gambit,” “Shadow and Bone” and, yes, “Too Hot to Handle.” And now, more Disney fans in the Middle East and Africa will now have access to Disney+. Meanwhile, Peacock confirms it is testing a rewards program for paid subscribers that involves movie tickets or movie rentals.
- You make me wanna roll my windows down and cruise: The weekend is upon us, and we hope you live in an area where you can roll the car windows down and enjoy the breeze. If not, here is some car news to enjoy with the air conditioning blasting. Porsche is working with UP.Labs aimed at creating six tech companies that will focus on some of the automaker’s goals, including predictive maintenance, supply chain transparency or digital retail, Kirsten reports. Over at Faraday Future, the electric vehicle startup has another federal agency inquiring about its actions.
- Some social media headaches relieved: In social media news, you may remember that Twitter was testing a Report Tweet flow that would add more options for explaining what the issue is when flagging offensive or dangerous content on the site. That test worked, and now Twitter is rolling it out. Next, Meta is rolling out Horizon Home as part of a new update to the Quest 2 headset. Apparently Quest 2 wasn’t making it easy for people to meet up in the metaverse.
| english |
New Delhi: Migrant labourers, who ran out of food, struggled to obtain healthcare, and had severe livelihood issues during the previous coronavirus-induced lockdown, are returning to their home states, fearful that the weekly curfew may be turned into a lockdown as the COVID outbreak persists.
Migrant labourer Hemant Maurya has already departed for his native state, fearing a lockdown in the national capital.
"Last time, I got stuck in the national capital with my family. The duration of lockdown was extended gradually, and I faced a lot of hardship. That’s why when I heard of the curfew this time, I left the national capital," Maurya said.
He further said, "If the curfew is not extended, we will come back. Fearing lockdown, I left for home on January 6. They will face problems due to unemployment, but if life is saved, they will find some work. This time I was accompanied by four fellow labourers. "
Hemant isn't the only one who has returned home; Raju, a resident of Gonda district and 33 years old, also returned home.
Raju said, "In the previous lockdown, my kids were staying with me. We did not have money and had to survive without food for one day. After borrowing money from my friend, I returned home. This time, I did not wait for anything. If the curfew is not extended, we will return. "
"One of my villagemen, Vinod, has also returned along with me. COVID cases are increasing. We will think about going back when the situation becomes normal," Raju further said.
The daily COVID tally in Delhi has surpassed 20,000 cases in a single day. A lockdown is expected to be implemented due to an outbreak of infection, which is concerning for migrant workers.
Although the government has set night and weekend curfews to restrict COVID, migrant workers are taking no risks this time and are either preparing to return home or deciding to return.
Toufiq Ahmed, a contractor in a community in Prem Nagar, Delhi, is home to Ambedkar Nagar. He employs a large number of individuals from his community. Eight migrant labourers had already returned home before the national capital's curfew was imposed.
According to Ahmed, eight labourers have already gone home, with more on the way.
"Despite our assurance to the migrant labourers that there will be no shortage of food, they are scared," Ahmed added.
"The workers who faced hardships during previous lockdowns are frightened and are rushing to their homes. At the same time, bus fares have also increased. Earlier, a private bus from Prem Nagar to Ambedkar Nagar used to charge Rs 1,000, which has now been increased to Rs 1,200," he pointed out.
Ahmed said: "Labourers from Bihar, Gonda, and Moradabad have left for their homes. Three labourers left two days ago, and earlier, three workers left. We want them to return early, failing which, work would be affected. All the labourers who have left for their homes have not informed us when they will come back. "
Many private operators, however, who sit outside Anand Vihar Bus Stand and oversee Bihar-bound vehicles, claim that the situation is dire, hence they are demanding the hefty price.
The majority of Delhi's workers are from other states. If the situation in COVID does not improve, the national capital may suffer the same issues it did during prior lockdowns.
The Kejriwal government will assess the COVID situation in Delhi on Monday (today) and decide whether or not to impose a lockdown. | english |
<reponame>myftija/squad-health-check<filename>src/scenes/pageNotFound/index.js
import React from "react";
import styled, { keyframes } from "styled-components";
import { PlainContainer, SubHeader } from "../../components/misc";
const oscillate = keyframes`
0% {
color: #6633cc;
}
50% {
color: #00ff99;
}
100% {
color: #6633cc;
}
`;
const Container = styled(PlainContainer)`
padding: 80px 30px;
text-align: center;
> span {
animation: ${oscillate} 2.5s infinite;
color: #6633cc;
font-size: min(22vw, 150pt);
font-weight: 800;
}
`;
export const PageNotFound = () => (
<React.Fragment>
<SubHeader>¯\_(ツ)_/¯</SubHeader>
<Container>
<span>404</span>
</Container>
</React.Fragment>
);
| javascript |
To eliminate a specific ailment, through meditation I have initially searched the Principle of which Deity (of the 7 main Deities – Shri Durgadevi, Shriram, Shrikrushna, Datta, Shri Ganapati, Maruti and Shiva) is essential and in what proportion. Later, on this basis, I have formed the chants required for some ailments.
I had first searched the chant to treat coronavirus. It was realised that the chant is effective. This inspired me to search the chants for other ailments also. These chants are combined chants of various essential Deities. I am advising these chants to seekers to cure their ailments.
I realised their effectiveness after feedback from many seekers. Some months ago, some ailments, chant remedies for them and the spiritual experiences of seekers upon chanting them were published in Daily ‘Sanatan Prabhat’. Some more ailments and chant remedies on these are given ahead. These chants were prescribed to some seekers over the past 3 months. These seekers are requested to send their spiritual experiences to us.
If other seekers too have any of the following ailments and feel like trying out the associated chants, they should chant the Names of Deities 1 hour daily for 1 month.
Seekers are requested to send their feedback on spiritual experiences (by E-mail or post for publishing) and also for proving the effectiveness of these chants.
Postal address : Mrs. Bhagyashree Sawant, Sanatan Ashram, 24/B, Ramnathi, Bandora, Ponda, Goa. | english |
import unittest
import os
import numpy as np
import sys
import torch
import matplotlib.pyplot as plt
# Add .. to the PYTHONPATH
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir))
import lilfilter.filters as F
import lilfilter.torch_filter as T
class TestTorchFilter(unittest.TestCase):
def test1(self):
filt = F.gaussian_filter(5.0)
t = T.SymmetricFirFilter(filt)
len = 500
a = torch.randn(1, len)
plt.plot(torch.arange(len), a.squeeze(0))
b = t.apply(a)
plt.plot(torch.arange(len), b.squeeze(0))
plt.show()
if __name__ == "__main__":
unittest.main()
| python |
{
"id": 7768,
"cites": 9,
"cited_by": 21,
"reference": [
"<NAME>., <NAME> and <NAME>, (2000), Distribution Costs and Real Exchange Rate Dynamics During Exchange-Rate-Based Stabilizations, mimeo, Northwestern University.",
"<NAME>. and <NAME> (2000), Tradeability of Goods and Real Exchange Rate Fluctuations, mimeo, Department of Economics, University of Minnesota.",
"<NAME>. (1995), Accounting for U.S. Real Exchange Rate Changes, NBER Working Paper No. 5394, National Bureau of Economic Research, Cambridge: MA.",
"<NAME>. and <NAME> (2000), Capital Flows and Real Exchange Rate Fluctuations Following Spains Entry into the European Community, Journal of International Economics, v. 51, no.1, pp. 49-78.",
"<NAME>. and <NAME> (1995), Perspectives on PPP and Long-Run Real Exchange Rates, in Handbook of International Economics, ed. by <NAME> and <NAME>, Ch. 32.",
"<NAME>. (1997), La Relevancia Macroecon\u00c3\u0083\u00c2\u00b3mica de los Bienes Ra\u00c3\u0083\u00c2\u00adces en M\u00c3\u0083\u00c2\u00a9xico, Serie Documentos de Investigaci\u00c3\u0083\u00c2\u00b3n, Documento No. 9707, Direcci\u00c3\u0083\u00c2\u00b3n General de Investigaci\u00c3\u0083\u00c2\u00b3n Econ\u00c3\u0083\u00c2\u00b3mica, Banco de M\u00c3\u0083\u00c2\u00a9xico, Mexico City: Mexico.",
"<NAME>. (1998), Capital Inflows and Mortgage Crisis: The Case of Mexico, mimeo, Economic Studies Division, Banco de M\u00c3\u0083\u00c2\u00a9xico, Mexico City: Mexico.",
"<NAME>. and <NAME> (2000), Devaluation Risk and the Business Cycle Implications of -16- Exchange Rate Management, Carnegie-Rochester Conference Series on Public Policy, v. 51.",
"<NAME>. (2000), On the Benefits of Dollarization when Stabilization Policy is not Credible and Financial Markets are Imperfect, mimeo, Dept. of Economics, Duke University, available at http://www.econ.duke.edu/~mendozae/."
]
} | json |
Persistent Systems Ltd on Thursday said it has entered into an agreement to buy Data Glove Inc. for $90.50 million. The acquisition is expected to be completed within 4-5 weeks.
Persistent plans to leverage this acquisition to enhance its partnership with Microsoft, strengthen expertise in Azure-based digital transformation and other offerings in the Microsoft stack, as well as expand its geographic footprint and talent pool.
Established in 2010, Data Glove is a global leader in transformative consulting services and business solutions with total annual revenues of $48.96 million for CY21 and more than 700 employees worldwide.
Data Glove Group specializes in providing services across the entire Microsoft Product Suite including Azure-based digital transformation, data modernization, cloud advisory services, business application innovation, workspace modernization, and intelligent automation.
As part of the acquisition, Persistent will form a dedicated Microsoft business unit as well as establish a near-shore delivery centre in Costa Rica.
“As our clients continue their digital acceleration, cloud modernization and workforce productivity remain as critical as ever to sustaining competitive advantage and reducing costs. With the acquisition of Data Glove, we are forming a new Microsoft business unit to enhance our partnership and expand our expertise in Azure-based digital transformation, enabling us to capture a larger share of this high growth market.
This acquisition also broadens our delivery capabilities with highly skilled talent, establishing a new nearshore delivery centre in Costa Rica and expanding our presence in the US and India,” said Sandeep Kalra, Chief Executive Officer and Executive Director, Persistent Systems.
According to IDC, the Cloud Professional Services market is estimated to reach $93.8 billion by 2025. “The acceleration of digital adoption during the pandemic has led to increased demand for cloud and workplace solutions.
Persistent’s acquisition of Data Glove and the launch of a new Microsoft business unit will help capture market share by taking advantage of the growing Azure and Microsoft-led opportunities,” said Ali Zaidi, Research Vice President, IDC.
“Microsoft-related implementation services is one of the highest spending growth segments of the global implementation services market, in particular, in the areas of cloud, analytics, and CRM,” Zaidi added.
| english |
import React from 'react';
import Logo from './Logo';
import appLogo from '../avatar.jpg';
import Navigation from './Navigation';
import UserMenu from './UserMenu';
// import avatar from '../avatar.jpg';
const navItems = ['Menu', 'About', 'Contact', 'Delivery'];
const AppHeader = () => (
<header className="Header">
<div className="Header__logo">
<Logo image={appLogo} />
</div>
<div className="Header__usermenu">
<Navigation items={navItems} />
</div>
<div>
<UserMenu avatar={appLogo} name="<NAME>" />
</div>
</header>
);
export default AppHeader;
| javascript |
Written Answers
among women in reproductive age group:
Reduction of Anemia is prioritized by the Govt. under the recently launched POSHAN Abhiyaan as it aims to reduce anaemia prevalence by 3 percent per year among children, adolescents, women in reproductive age group and pregnant women between the year 2018 and 2022. In this regard, Anemia Mukt Bharat (AMB) Strategy has been formulated (also known as Intensified National Iron Plus Initiative) for holistic and comprehensive management of anemia among the six target age groups including women in reproductive age group.
AGRAHAYANA 30, 1940 (Saka)
Guidelines have been issued to the States/ UTS for universal screening of pregnant women at all health facilities. 180 Iron and folic acid (IFA) tablets are given in the ante natal and 180 IFA tablets are given in the post-natal period to all pregnant women. If pregnant women are found to be clinically anemic, they are given double doses of tablets as a part of treatment regimen. For Adolescent girls of 1019 years of age weekly iron folic acid is provided throughout.
To address anaemia due to worm infestation, deworming of pregnant women is done after first trimester of pregnancy and biannually in Adolescents.
To tackle the problem of anemia due to malaria particularly in women and children, Long Lasting Insecticide Nets (LLINS) and Insecticide Treated Bed Nets (ITBNS) are being distributed in endemic areas.
Health and nutrition education through Information, Education and Communication (IEC) material in the form of posters, hoardings, wall-writings and audio-visuals is undertaken.
Milk Adulteration
1995. DR. SUNIL BALIRAM GAIKWAD: SHRI AJAY MISRA TENI:
SHRI BHARAT SINGH:
SHRI MOHANBHAI KALYANJIBHAI
Will the Minister of HEALTH AND FAMILY WELFARE
be pleased to state:
to Questions 362
whether nearly half the milk samples tested by the food safety regulators have been found to be noncompliant in terms of the required standards;
(b) if so, the details thereof and reasons therefor; (c) the number of cases of milk adulteration registered in the country and the action taken against them during the last three years, State/UT-wise;
(d) whether Food Safety and Standards Authority of India (FSSAI) has sought action taken reports from all the State Governments on matter of milk adulteration in the country and if so, the details thereof and the response of the State Government thereto; and
(e) the corrective steps taken by the Government to provide quality milks to people in the country?
THE MINISTER OF STATE IN THE MINISTRY OF HEALTH AND FAMILY WELFARE (SHRI ASHWINI KUMAR CHOUBEY): (a) and (b) Food Safety and Standards Authority of India (FSSAI) had conducted a Nationwide Qualitative Screening of milk samples for on-spot qualitative and quantitative analysis of milk samples for quality parameters viz. FAT, Solids-Not-Fat (SNF), added water, protein content and safety parameters viz. 13 adulterants, antibiotics, pesticides and aflatoxin MI covering around 1100 towns across the country. A uniform protocol and precise sampling plan was followed with trained manpower and well equipped laboratory. This survey was intended to help in identification of hotspots and root cause analysis for the same; and also designing and operation of a framework for continuous monitoring of milk quality.
The Survey was conducted from May to November 2018, through M/s VIMTA Labs with a sample size of approx. 6000 samples for qualitative analysis and 1800 samples for quantitative analysis. The interim report of National Milk Safety and Quality Survey 2018 has been released on 13th November, 2018 and is available on FSSAI website i.e. www.fssai.gov.in. As per the interim report, about 39% of milk samples were non-compliant with reference to quality parameters (fat, SNF, sugar and maltodextrin) but were without any safety issues.
Only 9.9% samples were found to be unsafe for consumption. Thus, National Milk Safety and Quality Survey, 2018 broadly suggests that milk in India is largely safe.
(c) and (d) Implementation and enforcement of the Food Safety and Standards (FSS) Act, 2006 primarily lies with State/UT Governments.
| english |
<filename>Braintree Component/BraintreeComponents/Scripts/typings/assignment/assignment.action.d.ts
/**
* Author: <EMAIL>
* Notes:Unauthorized, unlicensed use, distribution, modification is not allowed.
*/
declare namespace $DP.Actions {
interface AssignmentPanelOptions {
Id: string;
Priorities: Array<{
Key: number;
Value: string;
}>;
/**
* Number is used as key for @param Priorities
*/
CurrentPriority: number;
InvokeEntityId: string;
}
function openAssignmentDialog(action: AssignmentPanelOptions): void;
}
| typescript |
<filename>express-server-skeleton/server.js
var express = require('express');
var bodyParser = require('bodyParser');
var app = express();
//Allow all requests from all domains & localhost
app.all('/*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With, Content-Type, Accept");
res.header("Access-Control-Allow-Methods", "POST, GET");
next();
});
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
var cars = [
"BMW",
"Audi",
"Ferrari",
"Maserati",
"Porsche",
"Peugeot"
];
app.get('/cars', function(req,res)) {
console.log("Get the cars from server");
res.send(cars);
});
app.post('/cars', function(req, res) {
var car = req.body;
console.log(req.body);
cars.push(car);
res.status(200).send("Car added succesfully");
});
app.listen(8080);
| javascript |
# Chart My Meds (aka medlist)
An easy to use Angular.js medication list made by a pharmacist coder
The idea was a HIPAA compliant medication list that could be freely shared via a URL with no patient identifiers, but which could still be interoperable with multiple different EHRs.
Built out basic integration with the Allscripts EHR Sandbox. Next steps were to integrate BlueButton+ for VA records.
# Images
A basic medication list.

User clicks edit and options appear.

Editing an individual medication reveals inline editing forms.

A more recent version of the sidebar with future features of translating and sharing.

| markdown |
<gh_stars>1-10
{
"id": 18384,
"title": [
"[Grawood Farmstead, Meadow]"
],
"description": [
"A split-rail fence rises from the ground, the wood greyed by age and exposure, but still quite sturdy as it borders the path. On every other post, brightly flowered wreaths hang, and beneath, wildflowers rise from the earth, as if striving to become a part of the decorations."
],
"paths": [
"Obvious paths: east, west"
],
"wayto": {
"18385": "go pen",
"18386": "west",
"18383": "east"
},
"timeto": {
"18385": 0.2,
"18386": 0.2,
"18383": 0.2
}
} | json |
<filename>public/locales/pt/registrations.json
{
"PAGE_TITLE_LABEL": "Inscrições",
"REGISTRATIONS_LABEL": "Inscrições",
"TITLE_1": "ORIENTAÇÕES",
"TITLE_1_ITEM_1": "Para a submissão do artigo final a inscrição deve ser efetuada previamente;",
"TITLE_1_ITEM_2_1": "Para a submissão de artigos a categoria da inscrição deve ser",
"TITLE_1_ITEM_2_2": " Autor",
"TITLE_1_ITEM_3_1": "Cada inscrição da direito a",
"TITLE_1_ITEM_3_2": " um ",
"TITLE_1_ITEM_3_3": "artigo, e pode ter no máximo",
"TITLE_1_ITEM_3_4": " um ",
"TITLE_1_ITEM_3_5": "artigo extra;",
"TITLE_1_ITEM_4": "Inscrições na categoria Estudante na modalidade presencial não incluem o jantar de gala;",
"TITLE_1_ITEM_5_1": "São considerados membros: participantes inscritos na",
"TITLE_1_ITEM_5_2": " SOBRAEP ",
"TITLE_1_ITEM_5_3": "e/ou ",
"TITLE_1_ITEM_5_4": "IEEE PELS.",
"TITLE_1_ITEM_6": "Dados para pagamentos por Nota de Empenho:",
"TITLE_1_ITEM_6_1": "Razão/Denominação Social: Associação Brasileira de Microrredes – ABMR",
"TITLE_1_ITEM_6_2": "CNPJ: 37.487.531/0001-60",
"TITLE_1_ITEM_6_3": "Para documentação extra de empenho, contate:",
"TITLE_1_ITEM_6_3_1": "Dúvidas sobre pagamento, cotante: ",
"TITLE_1_ITEM_6_3_2": "Recibos serão emitidos mediante envio de email para ",
"TITLE_1_ITEM_6_4": "Endereço: R. do Cedro 162 Conjuto B – Foz do Iguaçu - PR",
"TITLE_1_ITEM_6_5": "Dados Bancários:",
"TITLE_1_ITEM_6_5_1": "Banco Sicoob – Cod 756",
"TITLE_1_ITEM_6_5_2": "Agencia : 4343 – Conta: 48.983-2",
"TITLE_2": "VALORES ANTECIPADOS - ATÉ 30/09",
"TITLE_3": "VALORES REGULARES",
"COLUMN_1": "PRESENCIAL",
"COLUMN_2": "VIRTUAL",
"ROW_1": "Autor Membro",
"ROW_2": "Autor Não Membro",
"ROW_3": "Participante Membro",
"ROW_4": "Participante Não Membro",
"ROW_5": "Estudante Membro",
"ROW_6": "Estudante Não Membro",
"ROW_7": "Artigo Extra",
"WARNING_1": "*Preço para pessoas de países com IDH menor que 0.851",
"WARNING_2": "*Preço para pessoas de países com IDH maior que 0.851",
"SITEM_SUBMIT_BUTTON_LABEL": "SISTEMA DE SUBMISSÃO"
}
| json |
<filename>app/db/models.py
import datetime
from flask_sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash
db = SQLAlchemy()
class Users(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String, unique=True, nullable=False)
password = db.Column(db.String, nullable=False)
email = db.Column(db.String, unique=True, nullable=False)
is_admin = db.Column(db.Boolean, nullable=False, default=False)
verify_code = db.Column(db.String, unique=True, nullable=True) # for futurn use
api_key = db.Column(db.String, unique=True)
urls = db.relationship("urls")
register_time = db.Column(
db.DateTime, default=datetime.datetime.now, nullable=False
)
def __init__(self, username, password, email, is_admin=False) -> None:
self.username = username
self.password = <PASSWORD>password_hash(password)
self.email = email
self.is_admin = is_admin
def check_password(self, password):
return check_password_hash(self.password, password)
class urls(db.Model):
__tablename__ = "urls"
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
old = db.Column(db.String, nullable=False)
new = db.Column(db.String, nullable=False, unique=True)
use = db.Column(db.Integer, nullable=False, default=0)
create_by = db.Column(db.String, nullable=False, default="web") # web or api
created_time = db.Column(db.DateTime, default=datetime.datetime.now, nullable=False)
def __init__(self, user_id, old, new) -> None:
self.user_id = user_id
self.old = old
self.new = new
| python |
import {Component, Input, OnInit, EventEmitter, QueryList, ContentChildren} from '@angular/core';
import {NgxIcheckDirective} from '../../directives/ngx-icheck.directive';
@Component({
selector: 'ngx-list-filter',
templateUrl: 'ngx-list-filter.component.html'
})
export class NgxListFilterComponent implements OnInit {
@Input() public title = '';
@Input() public name = '';
@Input() public items: Array<any> = [];
@Input() public displayName = 'label';
@Input() public value = 'value';
@Input() public dataService: {
getFilters: () => Array<any>,
setParam: (name: string, filters: any) => any,
fetchAll: (id?: any, payloadOnly?: boolean) => any
};
@Input() public checkedItems: any = {};
@Input() public filterEmitter: EventEmitter<any> = new EventEmitter<any>();
@ContentChildren(NgxIcheckDirective, {descendants: true}) public checkboxes: QueryList<NgxIcheckDirective>;
public itemsActive = 0;
public timeout: any;
public menuShown = false;
public ngOnInit() {
// If data is specified and items is empty fetch and fill.
if (this.dataService) {
this.dataService
.fetchAll()
.subscribe((data: any) => {
this.items = data.payload;
});
}
}
public reset() {
this.itemsActive = 0;
this.checkedItems = {};
this.checkboxes.forEach((item) => {
item.unCheck();
});
}
/**
* When a filter is made active or deactivated.
*
* @param name The name of the item.
* @param event The filter returned.
*/
public rowChecked(name: string, event: Event) {
this.checkedItems[name] = event;
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
const value = Object.keys(this.checkedItems)
.reduce((accum, key) => {
if (this.checkedItems[key]) {
accum.push(key);
}
return accum;
}, []);
this.filterEmitter.emit({
name: this.name,
value: value,
operator: 'IN'
});
this.itemsActive = value.length;
}, 1000);
}
public toggleClickMenu(e: Event) {
e.stopPropagation();
e.preventDefault();
this.menuShown = !this.menuShown;
}
public closeMenu(e: Event) {
this.menuShown = false;
}
public showDropDown() {
return this.menuShown ? 'block' : 'hide';
}
}
| typescript |
<link rel="stylesheet" href="/css/main.css"><div class="ocamldoc"><pre>sig
  type t = string
  val compare : Digest.t -> Digest.t -> int
  val string : string -> Digest.t
  val bytes : bytes -> Digest.t
  val substring : string -> int -> int -> Digest.t
  val subbytes : bytes -> int -> int -> Digest.t
  external channel : Pervasives.in_channel -> int -> Digest.t
    = "caml_md5_chan"
  val file : string -> Digest.t
  val output : Pervasives.out_channel -> Digest.t -> unit
  val input : Pervasives.in_channel -> Digest.t
  val to_hex : Digest.t -> string
  val from_hex : string -> Digest.t
end</pre></div> | html |
const config = require('./webpack.config');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
module.exports = Object.assign( {}, config, {
mode: 'production',
entry: {
example: './lib/example.tsx'
},
output: {
path: path.resolve(__dirname, 'doc'),
libraryTarget: 'umd',
},
plugins: [
new HtmlWebpackPlugin({
template: 'example.html',
filename: 'example.html'
})
],
}); | javascript |
<reponame>MisterSirCode/brainwine
{
"dungeon": true,
"loot": true,
"decay": true,
"mirrorable": true,
"replace": {
"back/wallpaper-1": [
"back/wallpaper-1",
"back/wallpaper-2",
"back/wallpaper-3",
"back/wallpaper-4",
"back/wallpaper-5",
"back/wallpaper-6",
"back/wallpaper-7",
"back/wallpaper-8",
"back/wallpaper-9",
"back/wallpaper-10",
"back/wallpaper-11",
"back/wallpaper-12"
],
"back/wallpaper-2": [
"back/wallpaper-1",
"back/wallpaper-2",
"back/wallpaper-3",
"back/wallpaper-4",
"back/wallpaper-5",
"back/wallpaper-6",
"back/wallpaper-7",
"back/wallpaper-8",
"back/wallpaper-9",
"back/wallpaper-10",
"back/wallpaper-11",
"back/wallpaper-12"
],
"building/fence-iron-1": [
"building/fence-iron-1",
"building/fence-iron-2"
],
"building/roof": [
"building/roof",
"building/roof-brown"
]
},
"corresponding_replace": {
"building/roof-edge": {
"key": "building/roof",
"values": {
"building/roof": "building/roof-edge",
"building/roof-brown": "building/roof-brown-edge"
}
}
},
"metadata": {
"711": {
"cd": true,
"m": "",
">": [[ 9, 19 ]]
}
}
} | json |
# chocolate-pizza
This is a website for the requirements to complete LAB10a which will be use HTML and CSS.
| markdown |
{
"id": "d57-204",
"text": "THE OHIO STATE UNIVERSITY\nNovice G, Fawcett, President\nCOLUMBUS 10\nCOLLEGE OF EDUCATION\nBureau of Educational Research\nMr. Roberts. Underwood\nNAEB Tape Network\nUniversity of Illinois\n119 Gregory Hall\nUrbana, Illinois\nDear Mr. Underwood:\nJuly 25, 1958\nnaeb head:,, A«r£Rs\nJr.\n^9 1958\nI have just chatted with Mr. <NAME>, program\ndirector of WOSU, about doing that series of quarter\nhour programs dealing with the Newsletter. I hope\nto have this done by the first of October and\nMr. Quale informs me that WOSU will run them\nfirst. He also indicated that for the Network you\nusually wanted to see a program in the middle of\nthe series.\nf\nSo I will do the series and then I will submit them to\nyou for possible distribution through the Network.\nSincerely\nED/bc"
} | json |
Begin typing your search above and press return to search.
GUWAHATI: Under an inspection carried out by a team of Legal Metrology department on Thursday, to check the inconsistencies in the retail and wholesale prices of potato and onion in the market, a case was registered against the unscrupulous traders. Visiting the major markets of the city, it was discovered that retail prices of potatoes amounted to Rs 14 - 20 per kg, while the wholesale price was found to be Rs 1000/- to 1500/- per quintal. Onions were priced at Rs 18 to 22 per kg, while the wholesale price was found to be Rs 1200 to 1700 per quintal. The traders have been directed to clearly display the prices of groceries on boards in their shops. | english |
For many, the 1983 World Cup win is the most defining moment in Indian cricket history, after which things changed. But there are plenty who would argue that moment actually came 12 years earlier, and resulted in the country falling irreversibly in love with the game. As the news crackled over radio sets on August 24, 1971 that India had pulled off a series win in England, there were reports of dancing in the streets and garlanding of radio sets.
Before 1971, India had beaten only one nation on an overseas tour – New Zealand. The team’s only three overseas Test wins had come in this 67/68 tour, while they had lost as many as 33 Tests. Tours of England, Australia, West Indies had ended in routs. In terms of records, India occupied a few unenviable positions. For example, they were the only Test team to have been bowled out twice in a day.
But in 1971, India pulled off three back-to-back series wins, a mark that has been vastly bettered in recent times, but something that was unthinkable even till the 1990s. In April ’71, India did the impossible by beating the Garry Sobers-led West Indies. Then in August, Ajit Wadekar and his boys took over the balcony at The Oval after winning in England, and Indian cricket would never be the same again.
“I have photos of people in Mumbai lining up the streets to greet the team after the 1971 series win in England. No Indian team in history has come back to a reception like that, before or after. Not even the 1983 team,” Rajdeep Sardesai, journalist and son of Dilip Sardesai, had said at the launch of his book Democracy XI in 2017.
In his book The Magic of Indian Cricket: Cricket and Society in India, Mihir Bose writes of how the success of 1971 changed the Indian public:
Speaking of the new self-identity the Indian cricket team discovered that year, Wadekar told ESPNCricinfo in 2006 about how he felt when enforcing his first follow-on in international cricket in the first Test of the ’71 West Indies series.
“I wanted to gain a psychological advantage by making the West Indies follow on – something unthinkable at that time. I strutted into the West Indies dressing-room and loudly proclaimed: “Hey Garry, West Indies have to follow on. They were stunned into silence,” Wadekar said.
Before India won in West Indies that year, the two teams had played 23 times, with West Indies winning 12 and drawing 11. India had never even managed to take a first-innings lead over them.
After consigning the hosts to the ignominy of a follow-on in the first Test, that ended in a draw, India won the second Test in Port of Spain. India also found unlikely heroes in Venkataraghvan and Salim Durrani with the ball who made up for Prasanna’s injury.
The rest of the matches in the series were drawn, giving India a 1-0 series win. It would take India another 35 years to win its next Test series in the Caribbean.
Later that year in England, Chandrashekhar, who had been left out of the West Indies series but drafted in as a “calculated gamble”, dismantled the home team at The Oval with figures of 6/38. India scripted another historic result.
When England, the No. 1 side of the time, toured India in a return series the next year, India won again, capping the most remarkable run in the national team’s history till then.
There were of course many factors contributing to the success of 1971 squad. The close-in fielding by Eknath Solkar, Syed Abid Ali’s consistency with the new ball, and the fight shown by Ajit Wadekar and Gundappa Viswanath in the middle order. But the two prime factors were India’s spin quartet: Bishan Singh Bedi, Erapalli Prasanna, Chandrashekhar and Srininas Venkataraghvan; and the emergence of a young Sunil Gavaskar, who looked capable of taking on the world.
“They couldn’t out Gavaskar at all,” goes a popular Lord Relator calypso song, composed in frustration during his debut series. Making his international debut in the West Indies on March 6 that year, Gavaskar became the first cricketer to score over 700 runs in his debut Test series, scoring 774 runs in four Tests.
Gavaskar could not replicate this form against England, but made an impression by putting a price on his wicket. Even in the drawn second Test, in which India hardly made an impression, and the British press wrote about how surprising it was that the visitors had managed to avoid defeat, The Cricketer noted that “…with the exception of Gavaskar and Eknath Solkar, their batsmen were ill at ease. ” Speaking after he retired, Gavaskar would say his 57 in the second Test was his all-time favourite knock because of the challenging circumstances he faced.
In the bowling department, 1971 was the year Chandrashekhar made a comeback to the national team after a run of injuries and bad luck, and was the wrecker-in-chief in the England series. Even if England had done their homework on Bedi and Prasanna, they had no answer to Chandrashekhar.
The skipper of that side explained what these victories meant to the nation’s cricketing establishment.
“The sense of inferiority we had while playing formidable teams on their soil vanished in 1971. Indians in general started thinking that they can also make it to the top,” Wadekar told PTI in 2011. | english |
<gh_stars>1-10
{
"ClassName": "Paint_Pisces_Fleetweek_Black_Red_Camo",
"Size": 1,
"Grade": 1,
"Type": "Paints.UNDEFINED",
"Classification": "Ship.Paints",
"Name": "C8 Pisces Nightbreak Livery",
"Description": "Discreetly soar through the night sky in the C8 Pisces with the Nightbreak livery, which is primarily black with red highlights.",
"Manufacturer": {
"Code": "",
"Name": "Anvil Aerospace"
},
"Tags": [
"Paint_Pisces",
"@Paint_Pisces_Fleetweek_Black_Red_Camo"
]
} | json |
#[macro_use]
extern crate smack;
use smack::*;
// @expect error
// @flag --float
fn main() {
let a = 6.0f32.verifier_nondet();
let b = 7.0f32.verifier_nondet();
smack::assume!(a >= 0.0);
smack::assume!(b == b);
smack::assert!(a + b >= b);
}
| rust |
Disrupt London Day One was a smashing success, and included speaking appearances from Sir Alex Ferguson of Manchester United, former Arsenal footballer; and sports broadcaster Thierry Henry (yep, there was plenty of football on our stage); Postmates’ Bastian Lehmann; and a host of investors from Sonali De Rycker and Andy McLoughlin to David Hornik.
But the magic truly begins when the Disrupt Battlefield kicks off.
Fifteen companies crossed our stage to launch their product in London today, but only four can pass through to the finals.
Tomorrow, these companies will have exactly six minutes to pitch their product, followed by a 12-minute question and answer session with esteemed judges. Those judges include Accel Partners’ Fred Destin, Hassle’s Alex Depledge, Passion Capital’s Eileen Burbidge, Balderton Capital’s Suranga Chandratillake, Talkdesk’s Cristina Fonseca, and TechCrunch Editor-in-Chief Matthew Panzarino.
So without any further ado, it is with pleasure that we announce the finalists of the TechCrunch Disrupt London 2015 Battlefield:
Jukedeck is a platform that lets users create custom, cheap, royalty-free soundtracks for their videos and/or podcasts, all without any musical talent. Users simply choose a tempo, mood, style and the length of the track and Jukedeck does all the heavy lifting. Users can get their first five songs free each month, and then pay $7 per track, while larger businesses pay $15 per soundtrack. There is even a $150 fee for the exclusive copyright over a user’s song.
Lystable helps companies manage the relationship between freelancers, vendors, and contractors, keeping track of which of these vendors or contractors has previously worked with the company, rankings of those freelancers, as well as offering messaging templates to reach out to workers quickly and painlessly. Lystable launched out of TechStars and has raised $3.5 million in seed funding.
Max is a last-mile delivery service for urban Africa, giving merchants a way to have their goods delivered to customers within three hours of the order being placed. The platform uses an API that hooks into text messaging and other ordering platforms, with pricing based on distance instead of weight. Moreover, around 70 percent of MAX couriers are full-time employees on branded motorcycles, with extra, crowd-sourced couriers who are paid per delivery.
Yoobic provides consumer-facing brands with the opportunity to monitor exactly how their items get displayed in retail spaces, ranging from the local corner store to a big-box store like Best Buy. Brands can engage with store managers and corporate marketing teams to monitor the pricing, placement and promotions around their products. The company even delivers brands with a store database, offering info around store layouts, size, aisles, and endcaps.
| english |
/*
* (C) Copyright 2021 <NAME> (https://bonigarcia.github.io/)
*
* 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 io.github.bonigarcia.webrtc.test;
import static io.github.bonigarcia.seljup.BrowserType.CHROME;
import static java.util.UUID.randomUUID;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.seljup.Arguments;
import io.github.bonigarcia.seljup.DockerBrowser;
import io.github.bonigarcia.webrtc.base.WebRtcBase;
class OpenViduTest extends WebRtcBase {
static final String APP_URL = "https://demos.openvidu.io/basic-videoconference/";
@Test
void test(
@Arguments({ "--use-fake-device-for-media-stream",
"--use-fake-ui-for-media-stream" }) ChromeDriver driver,
@Arguments({ "--use-fake-device-for-media-stream",
"--use-fake-ui-for-media-stream" })
@DockerBrowser(type = CHROME, size = NUM_PEERS) List<WebDriver> driverList)
throws Exception {
String roomName = randomUUID().toString();
log.debug("Benchmarking WebRTC room at {}", APP_URL);
// 1. Open webrtc-internals
openWebRtcInternals(driver);
// 2. Enter room with local browser (monitor)
log.debug("Entering {}", driver);
execute(() -> {
driver.get(APP_URL);
enterRoom(driver, roomName);
});
// 3. Enter room with dockerized browsers (load)
for (WebDriver wd : driverList) {
log.debug("Waiting {} seconds for new browser", BROWSERS_RATE_SEC);
waitSeconds(BROWSERS_RATE_SEC);
log.debug("Entering {}", wd);
execute(() -> {
wd.get(APP_URL);
enterRoom(wd, roomName);
});
}
// 4. Wait session time
log.debug("Waiting {} seconds with all participants", SESSION_TIME_SEC);
waitSeconds(SESSION_TIME_SEC);
// 5. Download WebRTC stats
downloadStats(driver);
}
void enterRoom(WebDriver driver, String roomName) {
By sessionSelector = By.id("sessionId");
driver.findElement(sessionSelector).clear();
driver.findElement(sessionSelector).sendKeys(roomName);
By joinSelector = By
.cssSelector("#join-dialog > form > p.text-center > input");
driver.findElement(joinSelector).click();
}
}
| java |
{"published": "2015-09-16T18:58:15Z", "media-type": "News", "title": "Gulf Coast State College Features New Culinary Facility", "id": "e583617c-17b0-457d-9e6f-3da53d4b6dfc", "content": "More Video... \r \n \r \nBAY COUNTY -- Student and faculty chefs at Gulf Coast State College share a passion in the kitchen. \n \nThis week, they are perfecting their recipes. \n \nThere is lots of space for student and faculty chefs to cook. Leading up to opening of the John Holley Dining Room this semester. \n \nThe kitchen space allows student to get real, hands-on experience. \n \n\"We have probably the best facilities I've ever worked in and I've been in the industry for about 10 to 12 years,\" <NAME>, Culinary Instuctor, said. \n \nGulf Coast State College offers kitchen management classes in the back of the house. \n \n\"What I'm making is a tangerine whipped cr\u00e8me, Tabitha Carty, a student, said. \"All that's really in it is heavy whipping cream, some powdered sugar.\" \n \nThis is <NAME>'s second semester at Gulf Coast, as he teaches students who have a hungry appetite. \n \n\"I take a lot of reward in that, especially when they get to learn something new that they've never seen,\" Infinger said. \n \nBut culinary instructors say the food isn't everything. \n \n\"Here at Gulf Coast State College we try to prepare them with not only the back of the house knowledge, but the front of the house knowledge as well.\" \n \nLunch will be served in the dining room starting Thursday.", "source": "WJHG"} | json |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE>Tcl_CreateTimerHandler manual page - Tcl Library Procedures</TITLE>
<link rel="stylesheet" href="../docs.css" type="text/css" media="all">
</HEAD>
<BODY><H2><a href="../contents.htm">Tcl8.5.1/Tk8.5.1 Documentation</a> <small>></small> <a href="contents.htm">TclLib</a> <small>></small> CrtTimerHdlr</H2>
<H3><A HREF="../UserCmd/contents.htm">Tcl/Tk Applications</A> | <A HREF="../TclCmd/contents.htm">Tcl Commands</A> | <A HREF="../TkCmd/contents.htm">Tk Commands</A> | <A HREF="../TclLib/contents.htm">Tcl Library</A> | <A HREF="../TkLib/contents.htm">Tk Library</A></H3>
<H3><A NAME="M2">NAME</A></H3>
Tcl_CreateTimerHandler, Tcl_DeleteTimerHandler - call a procedure at a given time
<H3><A NAME="M3">SYNOPSIS</A></H3>
<B>#include <tcl.h></B><BR>
Tcl_TimerToken<BR>
<B>Tcl_CreateTimerHandler</B>(<I>milliseconds, proc, clientData</I>)<BR>
<B>Tcl_DeleteTimerHandler</B>(<I>token</I>)<BR>
<H3><A NAME="M4">ARGUMENTS</A></H3>
<DL class="arguments">
<DT>int <B>milliseconds</B> (in)<DD>
How many milliseconds to wait before invoking <I>proc</I>.
<P><DT>Tcl_TimerProc <B>*proc</B> (in)<DD>
Procedure to invoke after <I>milliseconds</I> have elapsed.
<P><DT>ClientData <B>clientData</B> (in)<DD>
Arbitrary one-word value to pass to <I>proc</I>.
<P><DT>Tcl_TimerToken <B>token</B> (in)<DD>
Token for previously created timer handler (the return value
from some previous call to <B>Tcl_CreateTimerHandler</B>).
<P></DL>
<H3><A NAME="M5">DESCRIPTION</A></H3>
<B>Tcl_CreateTimerHandler</B> arranges for <I>proc</I> to be
invoked at a time <I>milliseconds</I> milliseconds in the
future.
The callback to <I>proc</I> will be made by <B><A HREF="../TclLib/DoOneEvent.htm">Tcl_DoOneEvent</A></B>,
so <B>Tcl_CreateTimerHandler</B> is only useful in programs that
dispatch events through <B><A HREF="../TclLib/DoOneEvent.htm">Tcl_DoOneEvent</A></B> or through Tcl commands
such as <B><A HREF="../TclCmd/vwait.htm">vwait</A></B>.
The call to <I>proc</I> may not be made at the exact time given by
<I>milliseconds</I>: it will be made at the next opportunity
after that time. For example, if <B><A HREF="../TclLib/DoOneEvent.htm">Tcl_DoOneEvent</A></B> is not
called until long after the time has elapsed, or if there
are other pending events to process before the call to
<I>proc</I>, then the call to <I>proc</I> will be delayed.
<P>
<I>Proc</I> should have arguments and return value that match
the type <B>Tcl_TimerProc</B>:
<PRE>typedef void Tcl_TimerProc(ClientData <I>clientData</I>);</PRE>
The <I>clientData</I> parameter to <I>proc</I> is a
copy of the <I>clientData</I> argument given to
<B>Tcl_CreateTimerHandler</B> when the callback
was created. Typically, <I>clientData</I> points to a data
structure containing application-specific information about
what to do in <I>proc</I>.
<P>
<B>Tcl_DeleteTimerHandler</B> may be called to delete a
previously created timer handler. It deletes the handler
indicated by <I>token</I> so that no call to <I>proc</I>
will be made; if that handler no longer exists
(e.g. because the time period has already elapsed and <I>proc</I>
has been invoked then <B>Tcl_DeleteTimerHandler</B> does nothing.
The tokens returned by <B>Tcl_CreateTimerHandler</B> never have
a value of NULL, so if NULL is passed to <B>Tcl_DeleteTimerHandler</B>
then the procedure does nothing.
<H3><A NAME="M6">KEYWORDS</A></H3>
<A href="../Keywords/C.htm#callback">callback</A>, <A href="../Keywords/C.htm#clock">clock</A>, <A href="../Keywords/H.htm#handler">handler</A>, <A href="../Keywords/T.htm#timer">timer</A>
<div class="copy">Copyright © 1995-1997 <NAME>.
Copyright © 1990 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
</div>
</BODY></HTML>
| html |
{"date":"2010-10-01","platform":"TV","images":{"small":"https://lain.bgm.tv/pic/cover/s/4e/38/8400_Rhh2j.jpg","grid":"https://lain.bgm.tv/pic/cover/g/4e/38/8400_Rhh2j.jpg","large":"https://lain.bgm.tv/pic/cover/l/4e/38/8400_Rhh2j.jpg","medium":"https://lain.bgm.tv/pic/cover/m/4e/38/8400_Rhh2j.jpg","common":"https://lain.bgm.tv/pic/cover/c/4e/38/8400_Rhh2j.jpg"},"summary":"「超级机器人大战OG」是Banpresto出品的原创世纪系列的战略角色扮演游戏,至今已在GBA平台上推出了「超级机器人大战OG」和「超级机器人大战OG2」,PS2平台上推出了以1、2代的合集为基础的「超级机器人大战OGS」和「超级机器人大战外传」。继2006年10月~2007年3月期间播放的TV动画「超级机器人大战OG」,今秋将推出以「超级机器人大战OG2」为背景展开的TV动画「超级机器人大战OG -The inspector-」,制作阵容与前作相比可谓进行了大换血。\r\n\r\nCAST:\r\n南部响介:森川智之\r\nExcellen Browning:水谷优子\r\nLamia Loveless:清水香里\r\nBrooklyn Luckfield:杉田智和\r\n水羽楠叶:高桥美佳子\r\n伊达隆圣:三木真一郎\r\nRaidiese Fujiwara Blanstein:置鲇龙太郎\r\n古林彩:冬马由美\r\n古林舞:折笠爱\r\nViletta Badim:田中敦子\r\n安藤正树:绿川光\r\nRyune Zoldark:日高奈留美\r\n白河愁:子安武人\r\nArado Balanga:鸡内一也\r\nSeolla Schweizer:かかずゆみ\r\nLatuni Subbota:平井理子\r\n樱花凪沙:根谷美智子\r\n水无濑大铁:柴田秀胜\r\nLefina Enfield:岩男润子\r\nSanger Somvold:小野健一\r\nRaetsel Fein Schmecker:稻田彻\r\nGuiliam Jaeger:田中秀幸\r\nWendoro:甲斐田雪\r\nMekiboss:石田彰\r\nVigaji:草尾毅\r\nAxel Almar:神奈延年","name":"スーパーロボット大戦OG -ジ・インスペクター-","name_cn":"超级机器人大战OG -The inspector-","tags":[{"name":"机战","count":70},{"name":"萝卜","count":51},{"name":"OG2","count":50},{"name":"2010年10月","count":30},{"name":"崩坏","count":25},{"name":"SRW","count":24},{"name":"TV","count":21},{"name":"OG","count":19},{"name":"超级机器人大战","count":19},{"name":"2010","count":15},{"name":"游戏改","count":13},{"name":"大张我信你啊","count":8},{"name":"原創世紀","count":6},{"name":"旭production","count":6},{"name":"蘿蔔","count":4},{"name":"CV閃","count":3},{"name":"robot","count":3},{"name":"十月番","count":3},{"name":"原创世纪","count":3},{"name":"草尾毅","count":3},{"name":"2010年","count":2},{"name":"动画","count":2},{"name":"大張正己","count":2},{"name":"旭プロダクション","count":2},{"name":"森川智之","count":2},{"name":"究极亡灵踢!","count":2},{"name":"2010年十月番","count":1},{"name":"robo","count":1},{"name":"大张你是故意的吧","count":1},{"name":"离游戏水准十万八千里","count":1}],"infobox":[{"key":"中文名","value":"超级机器人大战OG -The inspector-"},{"key":"别名","value":[{"k":"cn","v":"超级机器人大战原创世纪 -The inspector-"}]},{"key":"话数","value":"26"},{"key":"放送开始","value":"2010-10-01"},{"key":"放送星期","value":"5"},{"key":"官方网站","value":"http://www.suparobo.jp/srw_lineup/srw_ogin/"},{"key":"播放电视台","value":"テレビ愛知"},{"key":"原作","value":"SR Produce Team"},{"key":"导演","value":"大張正己"},{"key":"演出","value":"创通"},{"key":"作画监督","value":"椛岛洋介"},{"key":"音响监督","value":"亀山俊樹"},{"key":"动画制作","value":"旭Production"},{"key":"制作","value":"SRWOG PROJECT"}],"rating":{"rank":4830,"total":329,"count":{"1":5,"2":1,"3":4,"4":15,"5":53,"6":101,"7":94,"8":36,"9":14,"10":6},"score":6.3},"total_episodes":26,"collection":{"on_hold":58,"dropped":56,"wish":70,"collect":400,"doing":41},"id":8400,"eps":26,"volumes":0,"locked":false,"nsfw":false,"type":2} | json |
What's the story?
Austin Aries has finally shed some light on the case of the mystery banana, and according to him, it has nothing to do with Reddit. In a recent podcast interview, Aries revealed that the banana he carried whilst in WWE was called upon for reasons that were purely nutritional.
After Aries started showing up on WWE programming with a random banana in his possession, wrestling fans on the Squared Circle sub-Reddit had been quick to speculate that the prop was a subtle nod in their direction.
Weeks earlier, a Redditor had suggested that someone on WWE television should eat a banana to prove that they'd seen said Reddit post. So surely when Aries later did just that, it outed him as a closet Redditor, right?
Wrong. Speaking to Sam Roberts in an appearance on the Tomorrow Show, Aries himself claimed that the banana was simply there to give him "a nice little shot of some natural sugars and potassium. " His full quote, courtesy of Uproxx, was as follows:
"I’m just going to say this about the banana. The Hall Of Fame is long, okay? And I saw lots of people dressed to impress that night. Lots of nice suits. Lots of nice dresses. Let me tell you something, about three and a half hours in, I guarantee about 40 percent of that audience wished they had a banana in their pocket instead of a pocket square, because I got famished. I was running low on some energy, and that pocket square wouldn’t do me any good. But I got a nice little shot of some natural sugars and potassium, and then I just used my sleeve to wipe my mouth off. And I didn’t need the pocket square. So sometimes the thing comes in handy in a pinch. You never know. "
What's next?
Having negotiated his release from WWE back in early July, Aries will be free to presumably eat as many bananas as he wishes on the independent circuit once his non-compete agreement expires on October 5.
He's also currently selling merch on ProWrestlingTees. com to promote his new nutrition book Food Fight, some of which features, you guessed it, a banana.
If you thought Aries' interview snippet sounds tongue-in-cheek on paper, then giving the segment an actual listen will likely only reaffirm your suspicions. | english |
Sometimes genes don't help in any way. We are talking about a young hero who came from a popular Tollywood family.
He looks good but his acting skills are not meeting the required standards as per industry talk.
Right now this hero is acting in a film and the director got perturbed with his acting skills and called off the shoot all of a sudden and left for Goa. It seems that he told the hero to talk to him personally later.
Will the director give him training in acting or tell him to learn proper acting and come back to continue the shoot is the question now.
About Rs 40 Cr is invested on this film believing in the hero. It will be a problem for the director if he fails to score a hit.
The director is more conscious and working towards perfection because he has already made a flop recently.
One of the films this hero acted in is getting ready for release. We can understand his acting skills after watching. | english |
{
"token": "<PASSWORD>",
"full_token": "<PASSWORD>",
"tap": "homebrew/cask",
"name": [
"VESTA"
],
"desc": "Visualization for electronic and structural analysis",
"homepage": "https://jp-minerals.org/vesta/en/",
"url": "https://jp-minerals.org/vesta/archives/3.5.7/VESTA.dmg",
"appcast": "https://jp-minerals.org/vesta/en/changes.html",
"version": "3.5.7",
"versions": {
},
"installed": null,
"outdated": false,
"sha256": "5e7110f4c09a426fd6abc0db2b6ef1fc8288e8d4ffa393a22338d93c10d792ef",
"artifacts": [
[
"VESTA/VESTA.app"
],
{
"trash": [
"~/Library/Application Support/VESTA",
"~/Library/Preferences/VESTA.plist"
],
"signal": {
}
}
],
"caveats": null,
"depends_on": {
},
"conflicts_with": null,
"container": null,
"auto_updates": null
}
| json |
The Jammu and Kashmir National Panthers Party (JKNPP) on Thursday described the newly enacted domicile law as "an obnoxious piece of superimposed legislation" and accused the BJP government at the Centre of having betrayed the trust of the people.
"By throwing open the J&K employment avenues, except a part of Class-IV jobs, to the outside states, the BJP-led government has caused the greatest disappointment to the educated unemployed. They have betrayed the trust of J-K people," JKNPP chairman Harsh Dev Singh told reporters in Jammu.
Mr Singh staged a dharna against the domicile law and demanded its revocation.
Nearly eight months after withdrawal of Jammu and Kashmir's special status, the central government on Wednesday laid down rules for domicile which can now be given to anyone who has resided in the Union Territory for 15 years.
The Centre amended the Jammu and Kashmir Civil Services (Decentralisation and Recruitment) in which a clause for domicile category was introduced under which jobs up to Group-4 in the government were protected.
Under the new law, anyone who has resided for 15 years in Jammu and Kashmir or has studied for seven years and appeared in Class 10 and Class 12 examinations in an educational institution located in the Union Territory is a domicile.
Questioning the changes, Mr Singh said, "If the government had to issue such an obnoxious order, then why did it wait for around eight months? And why did it suspend the entire recruitment process in the new UT for so long? "
"The BJP government has crushed the sentiments of the J-K youth and trampled upon their aspirations. . . The youth have been belittled and betrayed," he said. | english |
<filename>pkg/cmd/project.go
/*
Package cmd Copyright 2021 VMware, Inc.
SPDX-License-Identifier: BSD-2-Clause
*/
package cmd
import (
"os"
"strings"
"github.com/olekukonko/tablewriter"
"github.com/sammcgeown/vra-cli/pkg/cmd/cloudassembly"
"github.com/sammcgeown/vra-cli/pkg/util/helpers"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/vmware/vra-sdk-go/pkg/models"
)
var (
admins string
members string
viewers string
operationTimeout int64
machineNamingTemplate string
sharedResources bool
)
// getProjectCommand represents the project command
var getProjectCommand = &cobra.Command{
Use: "project",
Short: "Get Projects",
Long: `Get all Projects, or get Project by Name or ID
Get all projects:
vra-cli get project
Get Projects by ID:
vra-cli get project --id <project ID>
Get Project by Name (case sensitive):
vra-cli get project --name <project name>`,
Run: func(cmd *cobra.Command, args []string) {
response, err := cloudassembly.GetProject(APIClient, projectName, id)
if err != nil {
log.Errorln("Unable to get Code Stream Projects: ", err)
}
var resultCount = len(response)
if resultCount == 0 {
// No results
log.Fatalln("No results found")
}
if APIClient.Output == "json" {
helpers.PrettyPrint(response)
} else if APIClient.Output == "export" {
// Export the Project
// if exportPath != "" {
// tmpDir, err := ioutil.TempDir(os.TempDir(), "vra-cli-*")
// if err != nil {
// log.Fatalln(err)
// }
// zipFile := filepath.Join(exportPath, p.Name+".zip")
// var zipFiles []string
// log.Debugln(zipFile)
// pipelines, _ := getPipelines("", "", p.Name, filepath.Join(tmpDir, p.Name, "pipelines"))
// //pipelineTable.SetHeader([]string{"Id", "Name", "Project", "Description"})
// for _, c := range pipelines {
// zipFiles = append(zipFiles, filepath.Join(tmpDir, p.Name, "pipelines", c.Name+".yaml"))
// //pipelineTable.Append([]string{c.ID, c.Name, c.Project, c.Description})
// }
// variables, _ := getVariable("", "", p.Name, filepath.Join(tmpDir, p.Name))
// //variableTable.SetHeader([]string{"Id", "Name", "Project", "Description"})
// if len(variables) > 0 {
// zipFiles = append(zipFiles, filepath.Join(tmpDir, p.Name, "variables.yaml"))
// }
// // for _, c := range variables {
// // //variableTable.Append([]string{c.ID, c.Name, c.Project, c.Description})
// // }
// endpoints, _ := getEndpoint("", "", p.Name, "", filepath.Join(tmpDir, p.Name, "endpoints"))
// //endpointTable.SetHeader([]string{"ID", "Name", "Project", "Type", "Description"})
// for _, c := range endpoints {
// zipFiles = append(zipFiles, filepath.Join(tmpDir, p.Name, c.Name+".yaml"))
// //endpointTable.Append([]string{c.ID, c.Name, c.Project, c.Type, c.Description})
// }
// if err := ZipFiles(zipFile, zipFiles, tmpDir); err != nil {
// log.Fatalln(err)
// }
// }
} else {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Id", "Name", "Description", "Admins", "Members", "Viewers"})
for _, p := range response {
table.Append([]string{*p.ID, p.Name, p.Description, helpers.UserArrayToString(p.Administrators), helpers.UserArrayToString(p.Members), helpers.UserArrayToString(p.Viewers)})
}
table.Render()
}
},
}
// createProjectCommand creates a project
var createProjectCommand = &cobra.Command{
Use: "project",
Short: "Create a Project",
Long: `Create a Project:
vra-cli create project --name "vra-cli-test" --description "Test from vRA CLI" --admins <EMAIL> --members <EMAIL>,<EMAIL> --viewers <EMAIL>,<EMAIL> --machineNamingTemplate 'bob-${###}' `,
Args: func(cmd *cobra.Command, args []string) error {
return nil
},
Run: func(cmd *cobra.Command, args []string) {
adminUsers := helpers.CreateUserArray(strings.Split(admins, ","))
memberUsers := helpers.CreateUserArray(strings.Split(members, ","))
viewerUsers := helpers.CreateUserArray(strings.Split(viewers, ","))
newProject, err := cloudassembly.CreateProject(APIClient, projectName, description, adminUsers, memberUsers, viewerUsers, nil, nil, operationTimeout, machineNamingTemplate, &sharedResources)
if err != nil {
log.Fatalln("Unable to create Project", err)
}
if APIClient.Output == "json" {
helpers.PrettyPrint(newProject)
} else if APIClient.Output == "export" {
} else {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Id", "Name", "Description", "Admins", "Members", "Viewers"})
table.Append([]string{*newProject.ID, newProject.Name, newProject.Description, helpers.UserArrayToString(adminUsers), helpers.UserArrayToString(memberUsers), helpers.UserArrayToString(viewerUsers)})
table.Render()
}
},
}
// updateProjectCommand creates a project
var updateProjectCommand = &cobra.Command{
Use: "project",
Short: "Update a Project",
Long: `Update a Project`,
Args: func(cmd *cobra.Command, args []string) error {
return nil
},
Run: func(cmd *cobra.Command, args []string) {
currentProject, err := cloudassembly.GetProject(APIClient, "", id)
if err != nil || len(currentProject) == 0 {
log.Fatalln("Unable to get Project", err)
}
var adminUsers, memberUsers, viewerUsers []*models.User
if admins != "" {
adminUsers = helpers.CreateUserArray(strings.Split(admins, ","))
} else {
adminUsers = currentProject[0].Administrators
}
if members != "" {
memberUsers = helpers.CreateUserArray(strings.Split(members, ","))
} else {
memberUsers = currentProject[0].Members
}
if viewers != "" {
viewerUsers = helpers.CreateUserArray(strings.Split(viewers, ","))
} else {
viewerUsers = currentProject[0].Viewers
}
newProject, err := cloudassembly.UpdateProject(APIClient, id, projectName, description, adminUsers, memberUsers, viewerUsers, nil, nil, operationTimeout, machineNamingTemplate, &sharedResources)
if err != nil {
log.Fatal("Unable to update Project", err)
}
if APIClient.Output == "json" {
helpers.PrettyPrint(newProject)
} else if APIClient.Output == "export" {
} else {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Id", "Name", "Description", "Admins", "Members", "Viewers"})
table.Append([]string{*newProject.ID, newProject.Name, newProject.Description, helpers.UserArrayToString(adminUsers), helpers.UserArrayToString(memberUsers), helpers.UserArrayToString(viewerUsers)})
table.Render()
}
},
}
// deleteProjectCommand deletes a project
var deleteProjectCommand = &cobra.Command{
Use: "project",
Short: "Delete a Project",
Long: `Delete a Project by ID
Delete by ID:
vra-cli delete project --id <project ID>`,
Run: func(cmd *cobra.Command, args []string) {
if id != "" {
err := cloudassembly.DeleteProject(APIClient, id)
if err != nil {
log.Errorln("Delete Project failed:", err)
}
log.Infoln("Pipeline id " + id + " deleted")
}
},
}
func init() {
// Get
getCmd.AddCommand(getProjectCommand)
getProjectCommand.Flags().StringVarP(&projectName, "name", "n", "", "Name of the Project (case sensitive)")
getProjectCommand.Flags().StringVarP(&id, "id", "i", "", "ID of the Project")
// Create
createCmd.AddCommand(createProjectCommand)
createProjectCommand.Flags().StringVarP(&projectName, "name", "n", "", "Name of the Project")
createProjectCommand.Flags().StringVarP(&description, "description", "d", "", "Description of the Project")
createProjectCommand.Flags().StringVar(&admins, "admins", "", "Comma separated list of email addresses to assign administrator role for this project")
createProjectCommand.Flags().StringVar(&members, "members", "", "Comma separated list of email addresses to assign member role for this project")
createProjectCommand.Flags().StringVar(&viewers, "viewers", "", "Comma separated list of email addresses to assign viewer role for this project")
createProjectCommand.Flags().Int64Var(&operationTimeout, "timeout", 0, "Operation Timeout setting for this project")
createProjectCommand.Flags().StringVar(&machineNamingTemplate, "machineNamingTemplate", "", "Machine naming template for this project")
createProjectCommand.Flags().BoolVar(&sharedResources, "sharedResources", false, "If true, Deployments are shared between all users in the project")
createProjectCommand.MarkFlagRequired("name")
// Update
updateCmd.AddCommand(updateProjectCommand)
updateProjectCommand.Flags().StringVarP(&id, "id", "i", "", "ID of the Project")
updateProjectCommand.MarkFlagRequired("id")
updateProjectCommand.Flags().StringVarP(&projectName, "name", "n", "", "Name of the Project")
updateProjectCommand.Flags().StringVarP(&description, "description", "d", "", "Description of the Project")
updateProjectCommand.Flags().StringVar(&admins, "admins", "", "Comma separated list of email addresses to assign administrator role for this project")
updateProjectCommand.Flags().StringVar(&members, "members", "", "Comma separated list of email addresses to assign member role for this project")
updateProjectCommand.Flags().StringVar(&viewers, "viewers", "", "Comma separated list of email addresses to assign viewer role for this project")
updateProjectCommand.Flags().Int64Var(&operationTimeout, "timeout", 0, "Operation Timeout setting for this project")
updateProjectCommand.Flags().StringVar(&machineNamingTemplate, "machineNamingTemplate", "", "Machine naming template for this project")
updateProjectCommand.Flags().BoolVar(&sharedResources, "sharedResources", false, "If true, Deployments are shared between all users in the project")
// Delete
deleteCmd.AddCommand(deleteProjectCommand)
deleteProjectCommand.Flags().StringVarP(&id, "id", "i", "", "ID of the Project to delete")
deleteProjectCommand.MarkFlagRequired("id")
}
| go |
import requests as reqlib
import os
import re
import random
import time
import pickle
import abc
import hashlib
import threading
from urllib.parse import urlparse
from purifier import TEAgent
from purifier.logb import getLogger
from enum import IntEnum
from typing import Tuple, List, Dict, Optional
class ScraperTimeout(Exception):
def __init__(self, ex):
self.ex = ex
def __str__(self):
return f"Timeout: {self.ex}"
class ScraperNot200(Exception):
def __init__(self, sc):
self.sc = sc
def __str__(self):
return f"Unexpected Status Code={self.sc}!"
class UnsupportedMIME(Exception):
def __init__(self, mime):
self.mime = mime
def __str__(self):
return f"Unsupported MIME={self.mime}!"
class Scraper(metaclass=abc.ABCMeta):
@abc.abstractmethod
def get(self, url):
pass
class ReqScraper(object):
def __init__(self,
page_cache_path="page_caches",
headers={'User-Agent': 'Mozilla/5.0'},
skip_cache=False,
supported_mime_set={"text/html"}):
self.page_cache_path = page_cache_path
if not os.path.isdir(self.page_cache_path):
os.makedirs(self.page_cache_path)
self.headers = headers
self.logger = getLogger(os.path.basename(self.__class__.__name__))
self.skip_cache = skip_cache
self.supported_mime_set = supported_mime_set
def _get_cache_path(self, url):
test_url_host = urlparse(url).netloc
url_md5 = hashlib.md5(url.encode('utf-8')).hexdigest()
cache_file_name = f"{test_url_host}_{url_md5}.txt"
cache_file_path = os.path.join(self.page_cache_path, cache_file_name)
return cache_file_path
def _del_from_cache(self, url):
cache_file_path = self._get_cache_path(url)
if os.path.isfile(cache_file_path):
self.logger.warning("Removing cache file={cache_file_path}...")
os.remove(cache_file_path)
def _get_from_cache(self, url):
cache_file_path = self._get_cache_path(url)
if os.path.isfile(cache_file_path):
self.logger.debug(f"Return content of {url} from cache...")
with open(cache_file_path, 'r', encoding='utf8') as fo:
return fo.read()
return None
def _save2cache(self, url, html_content):
cache_file_path = self._get_cache_path(url)
with open(cache_file_path, 'w', encoding='utf8') as fw:
fw.write(html_content)
def get(self, url):
if not self.skip_cache:
cache_text = self._get_from_cache(url)
if cache_text is not None:
return cache_text
self.logger.debug(f"Crawling {url}...")
try:
resp = reqlib.get(url, headers=self.headers, timeout=(5, 10))
if resp.ok:
mime = resp.headers['content-type'].split(';')[0].strip()
self.logger.debug(f"URL={url} with MIME={mime}...")
if mime.lower() not in self.supported_mime_set:
raise UnsupportedMIME(mime)
self._save2cache(url, resp.text)
return resp.text
else:
raise ScraperNot200(resp.status_code)
except Exception as e:
raise ScraperTimeout(e)
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
class ThreadState(IntEnum):
STOPPED = 0
RUNNING = 1
STOPPING = 2
class CrawlAgent(object):
def __init__(self, name, throttling_range=(1, 2)):
self.rs = ReqScraper(page_cache_path=f"{name}_cache")
self.et = TEAgent(
policy_path="policy",
disable_policy=True,
ext_title=True
)
self.logger = getLogger(os.path.basename(self.__class__.__name__))
self.throttling_range = throttling_range
def obsolete_cache(self, url):
self.rs._del_from_cache(url)
def handle(self, url:str, skip_throttling:bool=False) -> Tuple[str, str, List[str]]:
try:
if skip_throttling:
wait_in_sec = random.uniform(*self.throttling_range)
self.logger.debug(f"throttling wait {wait_in_sec}s...")
time.sleep(wait_in_sec)
url_content_html = self.rs.get(url)
is_succ, rst, handler = self.et.parse(
"text/html",
url,
url_content_html,
do_ext_link=True
)
if is_succ:
return (rst['title'], rst['text'], rst['all_links'])
else:
return (rst['title'], rst['text'], rst['all_links'])
except ScraperNot200 as e:
self.logger.warning(f"Fail to handle URL={url}: {str(e)}")
return None, None, None
except UnsupportedMIME as e:
self.logger.warning(f"Fail to handle URL={url}: {str(e)}")
return None, None, None
except ScraperTimeout as e:
time.sleep(2)
self.logger.warning(f"Fail to handle URL={url}: {str(e)}")
return None, None, None
class ExplorerWorker(threading.Thread):
def __init__(
self,
name:str,
url_ptn:str,
src_url:str,
test_run:int=-1,
page_saved_dir:Optional[str]=None):
super(ExplorerWorker, self ).__init__(name = name)
self.name = name
self.url_ptn = url_ptn
self.src_url = src_url
self.test_run = test_run
self.ca = CrawlAgent(name)
self.pc_dict = self._get_pc_dict()
''' Processed result cache: Key as URL; value as bool (True means this URL is crawled successfully)'''
self.state = ThreadState.STOPPED
''' Thread state: 0-> stopped; 1-> running; 2-> stopping'''
self.logger = getLogger(os.path.basename(self.__class__.__name__))
''' Logger object '''
self.page_saved_dir = page_saved_dir if page_saved_dir is not None else f"{self.name}_pages_output"
''' Path or directory to save dump page'''
self.stop_signal = f"STOP_{self.name}"
''' Stop signal file '''
if not os.path.isdir(self.page_saved_dir):
os.makedirs(self.page_saved_dir)
def _get_output_page_path(self, url):
url_host = urlparse(url).netloc
url_md5 = hashlib.md5(url.encode('utf-8')).hexdigest()
page_file_name = f"{url_host}_{url_md5}.txt"
page_file_path = os.path.join(self.page_saved_dir, page_file_name)
return page_file_path
def _get_pc_serialized_file(self) -> str:
return f"{self.name}_pc_dict.pkl"
def _get_pc_dict(self) -> Dict[str, bool]:
pkl_file = self._get_pc_serialized_file()
if os.path.isfile(pkl_file):
with open(pkl_file, 'rb') as fo:
return pickle.load(fo)
else:
return {}
def _serialized(self):
pkl_file = self._get_pc_serialized_file()
with open(pkl_file, 'wb') as fo:
pickle.dump(self.pc_dict, fo)
def run(self):
self.state = ThreadState.RUNNING
url_queue = [self.src_url]
pc = sc = fc = oc = 0
while self.state == ThreadState.RUNNING and url_queue:
if os.path.isfile(self.stop_signal):
os.remove(self.stop_signal)
self.logger.warning("Receive STOP signal!")
break
url = url_queue.pop(0)
pc += 1
if url not in self.pc_dict:
# New URL
self.logger.debug(f"Handling URL={url}...")
title, content, collected_urls = self.ca.handle(url)
if content is None:
self.pc_dict[url] = False
fc += 1
else:
if url != self.src_url:
self.pc_dict[url] = True
sc += 1
self.logger.info(bcolors.BOLD + f"Completed URL={url} ({len(url_queue):,d}/{pc:,d})" + bcolors.ENDC)
next_level_urls = list(filter(lambda u: re.match(self.url_ptn, u) is not None and "#" not in u, collected_urls))
if next_level_urls:
self.logger.debug(f"\tCollected {len(next_level_urls)} next level URL(s)")
url_queue.extend(list(set(next_level_urls) - set(url_queue)))
if content and "?" not in url:
page_output_path = self._get_output_page_path(url)
with open(page_output_path, 'w', encoding='utf8') as fw:
fw.write(f"{url}\n\n")
fw.write(f"{title}\n\n")
fw.write(f"{content}")
self.logger.debug(f"\tSaved page to {page_output_path}!")
else:
# Old URL
if not self.pc_dict[url]:
self.logger.info(f"Skip broken URL={url} in the past...")
continue
title, content, collected_urls = self.ca.handle(url, skip_throttling=True)
if collected_urls:
next_level_urls = list(filter(lambda u: re.match(self.url_ptn, u) is not None, collected_urls))
url_queue.extend(list(set(next_level_urls) - set(url_queue)))
oc += 1
self.logger.info(f"URL={url} is already handled...({len(url_queue):,d}/{pc:,d})")
continue
if self.test_run > 0:
if (sc + fc) > self.test_run:
self.logger.info(f"Exceed test_run={self.test_run} and therefore stop running...")
break
if pc % 1000 == 0:
self.logger.info(bcolors.OKBLUE + bcolors.BOLD + f"{pc} URL completed: sc={sc:,d}; fc={fc:,d}; oc={oc:,d}\n" + bcolors.ENDC)
self._serialized()
self.ca.obsolete_cache(self.src_url)
url_queue.append(self.src_url)
self.logger.warning(f"Serialized explorer result (name={self.name})...")
self._serialized()
self.logger.warning(f"Explorer is stopped! (name={self.name})...")
self.state = ThreadState.STOPPED
def stop(self):
self.logger.warning(f"Stopping explorer worker (name={self.name})...")
if self.state == ThreadState.RUNNING:
self.state = ThreadState.STOPPING
while self.state != ThreadState.STOPPED:
time.sleep(1)
| python |
#if !defined(SIP0X_PARSER_TOKENSIPVERSION_HPP__)
#define SIP0X_PARSER_TOKENSIPVERSION_HPP__
#include "parser/tokens/TokenAbstract.hpp"
#include "parser/tokens/Operators.hpp"
#include "parser/tokens/Token.hpp"
#include "parser/tokens/TokenRegex.hpp"
#include "parser/factory/FactoryContextSIPVersion.hpp"
namespace sip0x
{
namespace parser
{
// SIP-Version = "SIP" "/" 1*DIGIT "." 1*DIGIT
class TokenSIPVersion : public TokenAbstract {
protected:
Sequence<Token, TokenDigits, Token, TokenDigits> _sequence;
public:
TokenSIPVersion(void) : TokenAbstract("SIPVersion"),
_sequence(Token("SIP/"), TokenDigits(), Token("."), TokenDigits())
{
_sequence.disable_factory(true);
}
virtual ~TokenSIPVersion(void) { }
protected:
virtual ParserResult handle_read(sip0x::utils::InputTokenStream& iss, FactoryContext* ctx) const override {
return _sequence.read(iss, ctx);
}
virtual FactoryContext* create_factory(void) const override {
return new FactoryContextSIPVersion();
}
};
}
}
#endif // SIP0X_PARSER_TOKENSIPVERSION_HPP__
| cpp |
import styled, { css } from "styled-components";
import { tablet, maxPhone } from "../../utils/media";
const HeaderContainer = styled.header`
.nav-button {
cursor: pointer;
border-style: none;
background-color: transparent;
font-weight: 300;
font-size: 14px;
color: #fff;
}
.log-out-icon {
margin: 0 0 0 5px;
width: 18px;
height: 18px;
vertical-align: middle;
}
${tablet(css`
height: 75px;
padding-top: 5px;
text-align: center;
padding-bottom: 5px;
background: linear-gradient(to right, #5f6569 27%, #5f6569 100%) right
bottom no-repeat;
background-size: 100% 1px;
`)};
position: relative;
width: 100%;
${(props) =>
maxPhone(
props.isHidden ||
css`
position: fixed;
border-bottom: 1px solid #fff;
height: 100vh;
z-index: 99999999;
`
)};
`;
export default HeaderContainer;
| javascript |
‘Birdman’, Alejandro G Inarritu’s surreal comedy about an aging superstar, claimed the best picture Oscar besides best director and original screenplay wins at the 87th Oscars that saw an appeal from winners for equal rights.
(Read: Oscars 2015 fashion report: High collars and demure gowns on the Oscars red carpet)
The film, which clipped Richard Linklater’s ‘Boyhood’ in a neck-and-neck fight for the top award, also walked away with best cinematography gong.
(Read: Best Supporting Actress Patricia Arquette calls for women’s wage equality)
“Birdman” entered the race with nine nominations where it tied with “The Grand Budapest Hotel” and ironically they were equal in their wins too though Wes Anderson’s film largely won in technical categories like original score, hair and make up, costume and production design.
British star Eddie Redmayne interrupted Birdman’s march by walking away with the best actor trophy for his physically- transformative turn as physicist Stephen Hawking in “The Theory of Everything”.
It was a close call for the 33-year-old star as “Birdman” star Michael Keaton was his most fierce competitor. Other nominees were his fellow countryman Benedict Cumberbatch, Bradley Cooper and Steve Carell.
Julianne Moore finally won her first Oscar in the best actress category for her poignant portrayal of a mother and academic struggling with early-onset Alzheimer’s disease in “Still Alice”.
(Read: Oscars 2015: High collars and a show of colour on the red carpet)
She was the clear frontrunner in the category where her competitors included Marion Cotillard, Felicity Jones, Rosamund Pike and Reese Witherspoon.
A beaming Inarritu took to stage with the entire “Birdman” team to accept the top prize of the night where he joked about his poor English-speaking skills besides referring to last year’s best director winner Alfonso Cuaron.
“Maybe the next year government will reflect on immigration rules to the Academy. Two Mexicans in a row, that’s suspicious, I guess,” he joked.
(Read: Oscars 2015 List of Winners – Julianne Moore, Eddie Readmayne win Best Actors; Birdman Best Film)
Both the top acting categories honoured the indomitable spirit of people fighting rare diseases.
(See Pics: Scarlett Johannson, Lady Gaga, Nicole Kidman: The worst dressed at Oscars 2015)
Redmayne was visibly nervous as he walked up to the stage to receive his first ever Oscar trophy for portraying Hawking’s gradual physical decline after he was diagnosed with motor neuron disease (ALS) at the age of 21.
“I am fully aware that I am a lucky, lucky man. This Oscar belongs to the people around the world battling ALS. It belongs to one exceptional family, the Hawking family. I will be his custodian,” Redmayne said.
(PHOTOS: Julianne Moore, JLo, Cate Blanchett: Top 10 Best Dressed beauties of Oscars 2015)
Moore, 54, too threw light on the neurodegenerative disease that leads to memory loss, in her acceptance speech.
Patricia Arquette, who won the best supporting actress Oscar for her role of a struggling mother in Richard Linklater’s “Boyhood”, delivered an impassioned speech on women’s equality and got a standing ovation from Meryl Streep.
“To every woman who gave birth, to every tax payer and citizen of this nation, we have fought for everybody else’s equal rights. It is our time to have wage equality once and for all, and equal rights for women in the United States of America,” Arquette said as she read out her speech.
J K Simmons, the best supporting actor Oscar winner for “Whiplash” was at his kindest best as he paid tribute to his wife and children, a stark contrast to his bullying role.
Original song went to ‘Glory’ by John Legend and Common from civil rights drama “Selma”, whose exclusion from acting and direction nominations had sparked a debate about the lack of diversity in the Academy.
Both Common and Lengend talked about the attack on civil rights protesters, led by Martin Luther King Jr, on Edmund Pettus Bridge in 1965.
“This bridge was the landmark of the divided nation but it’s now a symbol for change. The spirit of the bridge transcends race, gender, religion, sexual orientation and social status,” said Common.
Best foreign film award went to Polish historical drama “Ida” by director Pawel Pawlikowski. It is the first Oscar for Poland despite nine earlier nominations.
India, which had sent “Liar’s Dice” in this category, had failed to secure a nomination. The last Oscars won by Indians was A R Rahman and Resul Pookutty’s awards in 2010 for “Slumdog Millionaire”.
‘Whiplash’ bagged a total of three awards after winning in sound mixing for Craig Mann, Ben Wilkins, Thomas Curley and film editing for Tom Cross besides Simmons’ best supporting actor gong.
Clint Eastwood’s Iraq-based drama ‘American Sniper’, which many fancied as the dark horse of this year’s race, had to satisfy itself with a lone Oscar in sound editing for Alan Robert Murray and Bub Asman.
Another lone winner was ‘The Imitation Game’, a biopic based on English mathematician and logician, Alan Turing, which won for adapted screenplay.
Sci-fi thriller ‘Interstellar’ took home the Academy Award for best special effects.
Ansel Elgort and Chloe Grace Moretz presented the award to Paul Franklin, Andrew Lockley, Ian Hunter and Scott Fisher for their work on Christopher Nolan’s space odyssey.
Walt Disney’s superhero action comedy film ‘Big Hero 6′ won the best animated feature film Oscar for its inspiring story of a teenager robotics prodigy, who forms a superhero team to combat a masked villain.
Laura Poitras’ “Citizenfour”, which captures whistleblower Edward Snowden’s NSA surveillance leak unfolding in real time, won the best documentary feature Oscar.
“The Phone Call” was named best live-action short film, while “Crisis Hotline: Veterans Press 1” won the best documentary short subject Oscar.
Best animated short film honour was given to ‘Feast’.
The 87th Academy Awards were hosted by Neil Patrick Harris, who kicked off the award show with dig on all white nominees, a musical number that included Anna Kendrick and Jack Black and dancing Stormtroopers.
He drew laughter as the actor turned up in his undies in an obvious reference to Michael Keaton’s memorable sprint through Time Square in his white undergarment in ‘Birdman’.
The ceremony held at Dolby Theatre honoured winners in 24 categories who were voted by over 6000 members of the Academy. | english |
<reponame>liuyi0501/IwaraCollector<filename>data/www/vgkqji7kmse5v3q6.json
{"title":"【東方MMD】大人レミフラ・ワカーメット姉妹の おねダリ 1080@60","author":"shbrtty2","description":"ご視聴ありがとうございます。<br><aundefinedhref='http://www.nicovideo.jp/watch/sm31074056'>http://www.nicovideo.jp/watch/sm31074056</a>undefinedの画質音質改善版です。","thumb":"//i.iwara.tv/sites/default/files/styles/thumbnail/public/videos/thumbnails/155046/thumbnail-155046_0001.jpg?itok=LfUFZtG9","download":"https://www.iwara.tv/api/video/vgkqji7kmse5v3q6","origin":"https://www.iwara.tv/videos/vgkqji7kmse5v3q6"} | json |
package com.Project3.Server.Service;
import static org.junit.Assert.assertEquals;
import javax.inject.Inject;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.Project3.Server.Domain.User;
@RunWith(SpringRunner.class)
@SpringBootTest
public class UserJSONParserTest {
@Inject
UserJSONParser userJSONParser;
User user;
String testString;
@Before
public void initializeVariables() {
JSONObject jsonObject = new JSONObject();
testString = "test";
try {
jsonObject.put("username", testString);
jsonObject.put("password", <PASSWORD>);
jsonObject.put("email", testString);
} catch (JSONException e) {
e.printStackTrace();
}
user = userJSONParser.parse(jsonObject);
}
@Test
public void parseTest() {
assertEquals(user.getUsername(), testString);
assertEquals(user.getPassword(), testString);
assertEquals(user.getEmail(), testString);
}
}
| java |
When Malvika Tiwari (55) was asked to remove a power bank that she was carrying in her luggage at New Delhi's Indira Gandhi International Airport, she picked up an argument with the airport staff. She lost her temper and hit the power bank hard on the floor. It exploded and she was promptly arrested under IPC sections 336 (deals with endangerment of life or personal safety of others) and 285 (deals with negligent conduct with respect to fire or combustible material).
The woman was taken to a police station by CISF personnel. The Delhi police slapped an FIR and arrested her. She apologized to the airport staff for the offences committed.
Although she is out on bail, the panic that she created is telling. Refusing to follow the rules and submit to the law is an offence. Nobody is an exception.
Follow us on Google News and stay updated with the latest! | english |
import Ember from 'ember';
import _ from 'npm:lodash';
import iso31662 from 'npm:iso-3166-2';
export default Ember.Component.extend({
populateDictionaryAndSetExistingValues: function() {
// populate country dictionary
let dictionary = _.sortBy(_.values(_.mapValues(iso31662.data, (value, key) => {
value['code'] = key;
return value;
})), 'name');
this.set('countryDictionary', dictionary);
// if operator has current values, select the appropriate country and state
let currentCountryCode = this.get('operator.country');
let currentStateCode = this.get('operator.state');
if (Ember.isPresent(currentCountryCode)) {
this.send('setCountry', _.find(this.countryDictionary, function(country) {
return country.code === currentCountryCode;
}));
}
if (Ember.isPresent(currentStateCode)) {
this.send('setState', _.find(this.stateDictionary, function(state) {
return state.code === currentStateCode;
}));
}
}.on('init'),
countryDictionary: [],
stateDictionary: [],
actions: {
handleFocus(select) {
select.actions.open();
},
setCountry(selectedCountry) {
this.set('selectedCountry', selectedCountry);
this.set('operator.country', selectedCountry.code);
this.set('stateDictionary', _.sortBy(_.values(_.mapValues(selectedCountry.sub, (value, key) => {
value['code'] = key;
return value;
})), 'name'));
},
setState(selectedState) {
this.set('selectedState', selectedState);
this.set('operator.state', selectedState.code);
}
}
});
| javascript |
import { Component, OnInit } from '@angular/core';
import { SocialAuthService } from 'angularx-social-login';
import { LoginService } from '../../services/login.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-navbar-begin-manager',
templateUrl: './navbar-begin-manager.component.html',
styleUrls: ['./navbar-begin-manager.component.css'],
})
export class NavbarBeginManagerComponent implements OnInit {
constructor(
private socialAuthService: SocialAuthService,
private loginService: LoginService,
private router: Router
) {}
ngOnInit(): void {}
logOut(): void {
this.loginService.logout().subscribe((res) => {
console.log('Call logout service ', res);
});
this.socialAuthService.signOut();
this.router.navigate(['login']).then((r) => {
if (r) {
console.log('Log out succeed!');
} else {
console.log('Log out failed');
}
});
}
}
| typescript |
/* Allow css grid to still work despite extra div see [https://github.com/woocommerce/woocommerce/issues/12191] */
.woocommerce {
display: contents;
}
.select2-selection {
margin-top: 12px!important;
margin-bottom: 25px!important;
border: 2px solid #000!important;
border-radius: 0!important;
height: 46px!important;
padding: 0 15px!important;
box-sizing: unset!important;
color: black!important;
padding: 0 36px 0 15px!important;
line-height: 48px!important;
white-space: nowrap!important;
overflow: hidden!important;
text-overflow: ellipsis!important;
}
.select2-selection__rendered {
color: black!important;
line-height: 28px!important;
padding: 10px 0px!important;
}
.select2-selection__arrow {
top: 10px!important;
right: 10px!important;
color: black;
}
.select2-selection__arrow b {
border-color: #000 transparent transparent transparent!important;
}
.select2-search__field,
.select2-dropdown {
border: 2px solid black!important;
border-radius: 0!important;
}
.select2-selection__rendered {
}
/* Basket/Checkout/Confirmation */
#basket-checkout-confirmation .form-field label abbr[title] {
text-decoration: none;
color: red;
}
#basket-checkout-confirmation {
margin: 145px 0 40px 0;
}
#basket-checkout-confirmation .breadcrumb {
grid-column: 3 / span 8;
}
#basket-checkout-confirmation .breadcrumb h4 {
height: 15px;
margin-bottom: 50px;
line-height: 2em;
}
#basket-checkout-confirmation .breadcrumb h4 .chevron {
width: 10px;
height: auto;
vertical-align: middle;
padding: 0 15px 3px 13px;
margin-bottom: 0;
}
#basket-checkout-confirmation .section-heading h4 {
margin-bottom: 15px;
}
.woocommerce-error,
.woocommerce-message {
display: block;
border-top: 0 !important;
color: #fff !important;
font-family: 'Poppins', sans-serif;
font-weight: 800;
font-size: 12px;
line-height: 1.4em;
letter-spacing: 1.8px;
text-transform: uppercase;
grid-column: 3 / span 8 !important;
padding: 20px;
margin-bottom: 50px;
}
.woocommerce-error li,
.woocommerce-message li {
list-style-type: none !important;
}
.woocommerce-message {
background-color: #32CD32 !important;
}
.woocommerce-error {
background-color: #FF6347 !important;
}
.woocommerce-message .button {
background-color: transparent !important;
border: 0 !important;
border-bottom: 1px solid #fff !important;
color: #fff !important;
text-decoration: none !important;
font-family: 'Poppins', sans-serif !important;
font-weight: 800 !important;
text-transform: uppercase !important;
font-size: 12px !important;
}
/* Main Content Area */
#basket-checkout-confirmation .product-list,
#basket-checkout-confirmation .billing-details,
#basket-checkout-confirmation .delivery-check,
#basket-checkout-confirmation .delivery-details,
#basket-checkout-confirmation .recurring-payments,
#basket-checkout-confirmation .payment-method,
#basket-checkout-confirmation .complete-order-button,
#basket-checkout-confirmation .order-confirmation {
grid-column: 3 / span 8;
margin-bottom: 60px;
}
#basket-checkout-confirmation .product-list .row {
border-top: 1px solid black;
padding: 20px 0;
}
#basket-checkout-confirmation .product-list .row.item .name {
grid-column: span 6;
display: flex;
align-items: center;
}
#basket-checkout-confirmation .product-list .row.item .quantity {
display: flex;
justify-content: center;
align-items: center;
}
#basket-checkout-confirmation .product-list.basket .row.item .quantity {
grid-column: span 3;
}
#basket-checkout-confirmation .product-list.order-summary .row.item .quantity {
grid-column: span 2;
}
#basket-checkout-confirmation .product-list .row.item .quantity .screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
position: absolute !important;
width: 1px;
}
#basket-checkout-confirmation .product-list .row.item .quantity input {
margin: 0;
padding: 0;
position: relative;
display: inline-block;
vertical-align: top;
background-color: transparent;
border: 2px solid black;
border-radius: 0;
text-align: center;
color: black;
}
#basket-checkout-confirmation .product-list .row.item .quantity .quantity-button {
z-index: 3;
cursor: pointer;
width: 50px;
height: 50px;
font-family: 'Work Sans', sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.4em;
letter-spacing: 0px;
text-transform: lowercase;
transition: all .3s;
}
#basket-checkout-confirmation .product-list .row.item .quantity .quantity-button:hover {
background-color: black;
color: white;
}
#basket-checkout-confirmation .product-list .row.item .quantity .quantity-button.minus {
border-right: none;
}
#basket-checkout-confirmation .product-list .item .quantity .quantity-button.plus {
border-left: none;
}
#basket-checkout-confirmation .product-list .row.item .quantity .quantity-counter {
z-index: 2;
width: calc(100% - 100px);
min-width: 46px;
height: 46px;
font-family: 'Poppins', sans-serif;
font-weight: 800;
font-size: 12px;
line-height: 1em;
letter-spacing: 1.8px;
text-transform: uppercase;
}
#basket-checkout-confirmation .product-list .row.item .price {
min-height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
#basket-checkout-confirmation .product-list.basket .row.item .price {
grid-column: span 2;
}
#basket-checkout-confirmation .product-list.order-summary .row.item .price {
grid-column: span 4;
justify-content: flex-end;
text-align: right;
}
#basket-checkout-confirmation .product-list .row.item .remove {
grid-column: span 1;
min-height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
#basket-checkout-confirmation .product-list .row.item .remove img {
width: 15px;
height: auto;
}
#basket-checkout-confirmation .product-list .row .coupon-code {
grid-column: span 8;
display: flex;
align-items: center;
}
#basket-checkout-confirmation .product-list .row .coupon-code input[type="text"] {
margin: 0 15px 0 0;
}
#basket-checkout-confirmation .product-list .row .coupon-code button {
margin: 0;
padding: 0 20px;
}
#basket-checkout-confirmation .product-list .row .update-basket-button {
grid-column: span 4;
text-align: right;
}
#basket-checkout-confirmation .product-list .row .update-basket-button button {
margin: 0;
padding: 0 20px;
}
#basket-checkout-confirmation .product-list .row.subtotal .heading,
#basket-checkout-confirmation .product-list .row.total .heading {
grid-column: span 8;
}
#basket-checkout-confirmation .product-list .row.subtotal .price,
#basket-checkout-confirmation .product-list .row.total .price {
grid-column: span 4;
text-align: right;
}
#basket-checkout-confirmation .product-list .row.delivery .flat {
grid-column: span 12;
text-align: right;
}
#basket-checkout-confirmation .product-list .row.delivery .heading {
grid-column: span 12;
}
#basket-checkout-confirmation .order-summary .row .title {
align-items: center;
display: grid;
}
#basket-checkout-confirmation .order-summary .row.delivery .price {
grid-column: span 4;
text-align: right;
}
#basket-checkout-confirmation .order-summary .row.delivery .heading {
grid-column: span 8;
}
#basket-checkout-confirmation .product-list .row.delivery label {
grid-column: span 12;
margin-top: 15px;
margin-bottom: 0px;
}
#basket-checkout-confirmation .product-list .row.checkout {
border-top: 0;
padding: 0;
}
#basket-checkout-confirmation .product-list .row.checkout p {
grid-column: span 6;
}
#basket-checkout-confirmation .product-list .row.checkout .checkout-button {
grid-column: span 6;
text-align: right;
}
#basket-checkout-confirmation .product-list .row.checkout .checkout-button button {
margin: 0;
}
#basket-checkout-confirmation .billing-details .section-heading h4,
#basket-checkout-confirmation .delivery-details .section-heading h4 {
padding-bottom: 15px;
border-bottom: 1px solid black;
margin-bottom: 25px;
}
#basket-checkout-confirmation .billing-details .form-field,
#basket-checkout-confirmation .delivery-details .form-field {
grid-column: span 6;
position: relative;
}
#basket-checkout-confirmation .billing-details .form-field.street-address,
#basket-checkout-confirmation .delivery-details .form-field.street-address {
grid-column: 1 / span 6;
}
#basket-checkout-confirmation .form-field label {
font-family: 'Poppins', sans-serif;
font-weight: 800;
font-size: 12px;
line-height: 1em;
letter-spacing: 1.8px;
text-transform: uppercase;
}
#basket-checkout-confirmation .form-field label abbr[title] {
text-decoration: none;
color: red;
}
#basket-checkout-confirmation .form-field input[type=text],
#basket-checkout-confirmation .form-field input[type=number],
#basket-checkout-confirmation .form-field input[type=email],
#basket-checkout-confirmation .form-field input[type=tel],
#basket-checkout-confirmation .form-field .country_to_state {
margin-top: 12px;
width: calc(100% - 34px);
margin-bottom: 25px;
}
/* Hide original select element */
/*#basket-checkout-confirmation .form-field select {
display: none;
}*/
#basket-checkout-confirmation .form-field .woocommerce-input-wrapper {
background-color: white;
margin-bottom: 25px;
}
/* Style the arrow inside the select element */
/*#basket-checkout-confirmation .form-field .woocommerce-input-wrapper:after {
position: absolute;
content: "";
top: 55px;
right: 15px;
width: 0;
height: 0;
border: 6px solid transparent;
border-color: black transparent transparent transparent;
}
*/
/* Point the arrow upwards when the select box is open (active) */
#basket-checkout-confirmation .form-field .select-selected.select-arrow-active:after {
border-color: transparent transparent black transparent;
top: 48px;
}
/* Style the selected item */
#basket-checkout-confirmation .form-field .select-selected {
margin-top: 12px;
height: 46px;
color: black;
padding: 0 36px 0 15px;
line-height: 48px;
border: 2px solid black;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Style items (options) list */
#basket-checkout-confirmation .form-field .country_to_state {
position: absolute;
background-color: white;
border: 2px solid black;
top: 79px;
left: 0;
right: 0;
z-index: 99;
height: 206px;
overflow: scroll;
}
/* Style the items (options) */
#basket-checkout-confirmation .form-field .country_to_state div {
display: flex;
align-items: center;
min-height: 50px;
color: black;
padding: 0 15px;
border: 1px solid;
border-color: transparent transparent black transparent;
cursor: pointer;
}
/* Hide the items when the select box is closed */
#basket-checkout-confirmation .form-field .select-hide {
display: none;
}
#basket-checkout-confirmation .form-field .country_to_state div:hover, .same-as-selected {
background-color: rgba(0,0,0,.1);
}
#basket-checkout-confirmation .delivery-check .checkbox-container .checkmark {
border: 2px solid black;
}
#basket-checkout-confirmation .delivery-check .checkbox-container .checkmark:after {
border: solid black;
border-width: 0 2px 2px 0;
}
#basket-checkout-confirmation .recurring-payments .section-heading h4 {
margin-bottom: 15px;
}
#basket-checkout-confirmation .product-list .row.item h3 {
grid-column: span 6;
}
#basket-checkout-confirmation .product-list.recurring-payments .row.item .heading {
grid-column: span 10;
}
#basket-checkout-confirmation .product-list.recurring-payments .row.item .price {
grid-column: span 2;
min-height: 0;
justify-content: flex-end;
text-align: right;
}
#basket-checkout-confirmation .payment-method .section-heading h4 {
padding-bottom: 15px;
border-bottom: 1px solid black;
margin-bottom: 0;
}
#basket-checkout-confirmation .payment-method .container-nested {
padding: 20px 0 0 0;
}
#basket-checkout-confirmation .payment-method .container-nested .radio-container {
grid-column: span 12;
}
#basket-checkout-confirmation .payment-method .container-nested .radio-container img {
height: 25px;
width: auto;
float: right;
margin-left: 5px;
}
#basket-checkout-confirmation .payment-method .form-field.card-number {
grid-column: span 6;
}
/* Style the arrow inside the select element */
#basket-checkout-confirmation .form-field .select-selected:after {
position: absolute;
content: "";
top: 55px;
right: 15px;
width: 0;
height: 0;
border: 6px solid transparent;
border-color: black transparent transparent transparent;
}
#basket-checkout-confirmation .payment-method .form-field.card-number i {
display: none;
position: relative;
background: no-repeat url(../img/credit-card.svg);
width: 40px;
height: 25px;
float: right;
margin-right: -23px;
margin-top: -53px;
z-index: 2;
}
#basket-checkout-confirmation .payment-method .form-field.expiry-date,
#basket-checkout-confirmation .payment-method .form-field.card-code {
grid-column: span 3;
}
#basket-checkout-confirmation .payment-method label {
font-family: 'Poppins', sans-serif;
font-weight: 800;
font-size: 12px;
letter-spacing: 1.8px;
text-transform: uppercase;
}
#basket-checkout-confirmation .payment-method input[type=text] {
margin-bottom: 10px;
}
#basket-checkout-confirmation .complete-order-button button {
margin: 0;
float: right;
}
#basket-checkout-confirmation .order-confirmation {
text-align: center;
}
#basket-checkout-confirmation .order-confirmation h1 {
grid-column: 3 / span 8;
margin-top: 60px;
margin-bottom: 40px;
}
#basket-checkout-confirmation .order-confirmation h3 {
grid-column: span 12;
margin-bottom: 50px;
}
#basket-checkout-confirmation .order-confirmation p {
grid-column: 3 / span 8;
margin-bottom: 40px;
}
@media all and (max-width: 1199px) {
#basket-checkout-confirmation {
margin: 225px 0 40px 0;
}
#basket-checkout-confirmation .breadcrumb {
grid-column: 2 / span 10;
}
#basket-checkout-confirmation .product-list,
#basket-checkout-confirmation .billing-details,
#basket-checkout-confirmation .delivery-check,
#basket-checkout-confirmation .delivery-details,
#basket-checkout-confirmation .recurring-payments,
#basket-checkout-confirmation .payment-method,
#basket-checkout-confirmation .complete-order-button,
#basket-checkout-confirmation .order-confirmation {
grid-column: 2 / span 10;
}
}
@media all and (max-width: 991px) {
#basket-checkout-confirmation .breadcrumb {
grid-column: span 12;
text-align: center;
}
#basket-checkout-confirmation .product-list,
#basket-checkout-confirmation .billing-details,
#basket-checkout-confirmation .delivery-check,
#basket-checkout-confirmation .delivery-details,
#basket-checkout-confirmation .recurring-payments,
#basket-checkout-confirmation .payment-method,
#basket-checkout-confirmation .complete-order-button,
#basket-checkout-confirmation .order-confirmation {
grid-column: span 12;
}
}
@media all and (max-width: 768px) {
#basket-checkout-confirmation {
margin: 278px 0 40px 0;
}
#basket-checkout-confirmation .billing-details .form-field,
#basket-checkout-confirmation .delivery-details .form-field {
grid-column: span 12;
}
#basket-checkout-confirmation .billing-details .form-field.street-address,
#basket-checkout-confirmation .delivery-details .form-field.street-address {
grid-column: span 12;
}
#basket-checkout-confirmation .payment-method .radio-container,
#basket-checkout-confirmation .payment-method input[type=text] {
margin-bottom: 25px;
}
#basket-checkout-confirmation .payment-method .form-field.card-number {
grid-column: span 12;
}
#basket-checkout-confirmation .payment-method .form-field.expiry-date,
#basket-checkout-confirmation .payment-method .form-field.card-code {
grid-column: span 6;
}
#basket-checkout-confirmation .order-confirmation h1,
#basket-checkout-confirmation .order-confirmation p {
grid-column: 2 / span 10;
}
}
@media all and (max-width: 575px) {
#basket-checkout-confirmation {
margin: 95px 0 0 0;
}
#basket-checkout-confirmation .container,
#basket-checkout-confirmation .container-nested {
grid-column-gap: 0;
}
#basket-checkout-confirmation .product-list .row.item h3 {
grid-column: span 12;
margin-bottom: 20px;
}
#basket-checkout-confirmation .product-list.basket .row.item .quantity {
grid-column: span 6;
}
#basket-checkout-confirmation .product-list.order-summary .row.item .quantity {
grid-column: span 2;
}
#basket-checkout-confirmation .product-list.basket .row.item .price {
grid-column: span 4;
}
#basket-checkout-confirmation .product-list.order-summary .row.item .price {
grid-column: span 10;
}
#basket-checkout-confirmation .product-list .row.item .remove {
grid-column: span 2;
}
#basket-checkout-confirmation .product-list .row .coupon-code {
grid-column: span 12;
display: inline;
}
#basket-checkout-confirmation .product-list .row .coupon-code input[type="text"] {
width: calc(100% - 34px);
margin-bottom: 20px;
}
#basket-checkout-confirmation .product-list .row .coupon-code button {
margin-bottom: 20px;
}
#basket-checkout-confirmation .product-list .row .update-basket-button {
grid-column: span 12;
text-align: left;
}
#basket-checkout-confirmation .product-list .row .update-basket-button button {
width: 100%;
}
#basket-checkout-confirmation .product-list .row.checkout p {
grid-column: span 12;
margin-bottom: 20px;
}
#basket-checkout-confirmation .product-list .row.checkout .checkout-button {
grid-column: span 12;
text-align: left;
}
#basket-checkout-confirmation .product-list .row.checkout .checkout-button button {
width: 100%;
margin-bottom: 0;
}
#basket-checkout-confirmation .payment-method .form-field.card-number,
#basket-checkout-confirmation .payment-method .form-field.expiry-date,
#basket-checkout-confirmation .payment-method .form-field.card-code {
grid-column: span 12;
}
#basket-checkout-confirmation .payment-method .container-nested .radio-container img {
height: 18px;
width: auto;
margin-left: 3px;
margin-top: 4px;
}
#basket-checkout-confirmation .complete-order-button button {
width: 100%;
}
#basket-checkout-confirmation .order-confirmation h1,
#basket-checkout-confirmation .order-confirmation p {
grid-column: span 12;
}
#basket-checkout-confirmation .order-confirmation h1 {
margin-top: 30px;
margin-bottom: 20px;
}
#basket-checkout-confirmation .order-confirmation h3 {
margin-bottom: 30px;
}
#basket-checkout-confirmation .order-confirmation p {
margin-bottom: 0px;
}
}
| css |
{"name":"<NAME>","id":"BY-3763","address":"Hochhausstr. 10 94051 Hauzenberg Haag","school_type":"Grundschule","fax":"08586 2566","phone":"08586 2566","website":null,"state":"BY","programs":{"programs":[]},"full_time_school":false,"lon":13.59597,"lat":48.616399}
| json |
// @flows
export const VARIABLE = 0xff;
export const PARAMETER = 0xffff;
// Parameters have variable-semantics but are not documentable separately. That's why
// they are given special treatment.
export type VariableType = VARIABLE | PARAMETER;
// A variable block records all the declared variable-symbols inside scope symbol.
export type VariableBlock = {
[id: string]: VariableType,
};
// The stack of variable blocks composes a variable-registry. Each variable-block
// corresponds to a scope symbol.
export type VariableRegistry = VariableBlock[];
// Only one registry exists at one time (per thread).
export const variableRegistry: VariableRegistry = [];
// No. of blocks in the registry (need not equal variableRegistry.length)
let registryBlocks = 0;
// Declare a parameter in the current block
export function declareParameter(id: string): void {
variableRegistry[registryBlocks - 1][id] = PARAMETER;
}
// Declare a variable in the parent block
export function declareVariable(id: string): void {
variableRegistry[registryBlocks - 2][id] = VARIABLE;
}
// Create a new block scope
export function createBlock(): void {
++registryBlocks;
if (variableRegistry.length < registryBlocks) {
let i = variableRegistry.length;
variableRegistry.length = registryBlocks;
for (; i < registryBlocks; i++) {
variableRegistry[i] = {};
}
} else {
variableRegistry[registryBlocks - 1] = {};
}
}
// Remove the last block scope
export function removeBlock(): void {
--registryBlocks;
}
// Clear all blocks
export function clearRegistry(): void {
registryBlocks = 0;
}
// If the given variable exists, find its variable-type
export function queryType(id: string): string {
for (let i = registryBlocks - 1; i >= 0; i--) {
const block = variableRegistry[i];
for (const vid in block) {
if (vid === id) {
return block[id];
}
}
}
return null;
}
| javascript |
<reponame>DocAdam/metrics<filename>_data/twitter/bazel-multiversion/METRICS-2021-01-25.json
{"datestamp": "2021-01-25", "nameWithOwner": "twitter/bazel-multiversion", "name": "bazel-multiversion", "commits": 85, "forkCount": 4, "issues": 0, "openIssues": 0, "closedIssues": 0, "pullRequests": 31, "openPullRequests": 0, "mergedPullRequests": 31, "closedPullRequests": 0, "stargazers": 9, "watchers": 5} | json |
<filename>Tables/7800a4e8-7853-4ec5-9e22-5885f708db58.json
{"relation": [["Article", "Editorial - More Than Strength and Muscle", "Letters To The Editor", "Weightlifting News", "Keys To Progress - The Fountain of Youth", "Teen-Age Nationals Report", "Teen-Age Mr America Results", "Introducing Curt Haywood", "Russian Training Methods - Part 7", "Weight Training At Villanova University", "First Impressions of a Novice", "Mr America Series - Achievement Through Dedication", "Lifter's Corner - Rick Holbrook", "Grapevine", "Behind The Scenes At The Mr America Show", "Boys' Club", "Nutrition and Energy", "Join The Hoffman Foundation", "Weight Training and the 400 Meter Run", "So You Want To Be An Athlete?", "Action Shots of the Seniors", "Should You Exist On A Minimum of Protein?", "Man Of The Month - <NAME>", "To The Ladies - Female Use of Gym Equipment", "<NAME> - Fit at 62", "Tips On Good Eating", "Ask The Doctor"], ["Author", "<NAME>", "", "", "<NAME>", "<NAME>", "", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>, <NAME>", "<NAME>", "", "<NAME>", "<NAME>", "<NAME>", "<NAME> Jr", "", "<NAME>", "", "<NAME>", "<NAME>", "<NAME>, <NAME>", "<NAME>"], ["page", "5", "8", "10", "12", "14", "16", "18", "20", "24", "26", "28", "32", "34", "36", "38", "40", "42", "43", "44", "46", "48", "50", "52", "56", "58", "82"]], "pageTitle": "Strength and Health", "title": "", "url": "http://musclememory.com/magCover.php?sh;196810;Strength+and+Health", "hasHeader": true, "headerPosition": "FIRST_ROW", "tableType": "RELATION", "tableNum": 0, "s3Link": "common-crawl/crawl-data/CC-MAIN-2015-32/segments/1438042988458.74/warc/CC-MAIN-20150728002308-00307-ip-10-236-191-2.ec2.internal.warc.gz", "recordEndOffset": 163393000, "recordOffset": 163384798, "tableOrientation": "HORIZONTAL", "textBeforeTable": "Table of Contents Strength and Health, October 1968", "textAfterTable": "\u00a9 MuscleMemory", "hasKeyColumn": true, "keyColumnIndex": 0, "headerRowIndex": 0} | json |
Secretary of Transportation Pete Buttigieg appeared to wear dress boots while surveying the train derailment on the ground in East Palestine, Ohio.
Buttigieg visited Ohio on Thursday nearly three weeks after the East Palestine train derailment spilled toxic chemicals into the environment.
The secretary appeared to be wearing leather dress boots, instead of heavy-duty shoes like work boots, while surveying damage in the city.
A Department of Transportation spokesperson told FOX News Digital that the shoes were "boots" but had no record of the brand.
"The secretary was wearing boots," the spokesperson said. "We do not have a record of what brand they are. "
"I would like to point you instead to the three-pronged plan he put out recently to increase rail safety and accountability, which is probably of more interest to the residents of East Palestine and any community with a rail line running through it right now than the Secretary’s choice of footwear, which is an entirely irrelevant topic," the spokesperson added.
Several Republicans online blasted Buttigieg for wearing "dress shoes" when surveying the toxic chemical spill in Ohio.
"Not shocked at all by Mayor Pete wearing dress shoes to East Palestine," Ohio Senate GOP spokesperson Tom Evans wrote.
During his first trip to East Palestine, Ohio, to survey the site of the catastrophic train derailment, U. S. Department of Transportation Secretary Pete Buttigieg ignored reporters’ questions while his press secretary attempted to handle the media.
The press secretary, Kerry Arndt, proceeded to get flustered upon realizing that the journalists were going to record her answers on video, demanding several times for them to turn off the cameras, or she would not answer any of their questions.
The tense exchange was captured on camera by Turning Point USA's Savannah Hernandez Thursday morning after Buttigieg arrived at the afflicted Ohio town.
In the video, Hernandez first approached the cabinet secretary and former South Bend, Indiana, mayor as he was speaking with locals. She asked, "Mayor Pete, why did it take you an entire two-and-a-half weeks to actually get here to respond to East Palestine? Will you apologize to the residents of this city for the slow response? "
Buttigieg completely ignored Hernandez and walked into a nearby building as his press secretary called out to the reporter, saying, "I’m his press person, I can help you. "
The secretary traveled down on Thursday after former President Trump visited the city, bringing bottled water and supplies.
FOX News Digital's Aubrie Spady and Gabriel Hayes contributed reporting. | english |
<gh_stars>1-10
http://data.doremus.org/expression/cb4191c5-791c-3f4a-bc38-3ae885fb02d9
http://data.doremus.org/expression/7b0a0b4d-6f9d-3712-8044-474c4432563f
http://data.doremus.org/expression/a5e9a7d7-1b73-3729-8563-e57584dd3b02
http://data.doremus.org/expression/af6cea9b-cdb1-3a9f-9327-7fcb010900c3
http://data.doremus.org/expression/19ad0dee-87a1-3383-ab0e-66a93071e966
http://data.doremus.org/expression/4339319e-7343-3d38-ad35-d4e1a444a0b2
http://data.doremus.org/expression/7b00f387-525a-3abc-8401-4744af2ecbad
http://data.doremus.org/expression/d62df44a-732d-3d34-bdc8-c367816511db
http://data.doremus.org/expression/f9ab4814-a110-30f7-bca5-b681c17c2804 | json |
import { ScriptBase } from '@villedemontreal/scripting';
import { ProjectType, tslintFix } from '../src';
import { libRoot } from '../src/utils/utils';
export class TsLintFixScript extends ScriptBase {
get name(): string {
return 'tslint-fix';
}
get description(): string {
return (
`Fix the project formating using the TSLint rules. ` +
`Note that some errors may not be fixable automatically and may` +
`need manual help.`
);
}
protected async main() {
await tslintFix(libRoot, ProjectType.NODE);
}
}
| typescript |
The New York Knicks had multiple picks from the first and second rounds of the 2021 NBA Draft, but traded a few of them away to teams like the Charlotte Hornets and LA Clippers on Thursday night.
Unable to move up in the draft, the New York Knicks selected three players in the first round, but two of those picks are headed elsewhere.
The Knicks had the No. 19 pick and selected forward Kai Jones from Texas, but they made this pick for Charlotte in exchange for a protected 2022 first-rounder. The trade will not be made official until the draft’s conclusion.
Guard Keon Johnson from Tennessee was taken by New York, but he will go to the Clippers in exchange for the No. 25 pick and a 2024 second-rounder.
#1. Pick No. 25: G Quentin Grimes (Houston)
Finally, the New York Knicks made a selection for themselves, taking 6-foot-5 guard Quentin Grimes from the University of Houston. In his third and final season in college, Grimes averaged 17. 8 points and 5. 7 rebounds while making 40. 3 percent from 3-point territory.
The 21-year old was a key player in Houston making it to the NCAA Final Four and earned AP Third-Team All-America honors and AAC Co-Player of the Year in his junior season. He’s a two-way guard who could be one of the most underrated players in the draft.
In the second round of the 2021 NBA Draft, the New York Knicks had the 32nd pick but they traded this away for two lower second round picks, Nos. 34 and 36 from the Oklahoma City Thunder.
#2. Pick No. 34: Rokas Jokubaitis (Lithuania)
The 6-foot-4 Rokas Jokubaitis is a point guard from Lithuania. Jokubaitis is a stash pick by the New York Knicks as he is signed with FC Barcelona in the EuroLeague on a four-year deal.
#3. Pick No. 36: Miles McBride (West Virginia)
The New York Knicks took West Virginia point guard Miles McBride with the 36th pick from OKC. A tough defensive guard, McBride was Second Team All-Big 12 in his sophomore season averaging 15. 9 points, 3. 9 rebounds and 4. 8 assists per game and shot 41. 4 percent from downtown.
#4. Pick No. 58: Jericho Sims (Texas)
Jericho Sims played four seasons for the Texas Longhorns. He’s 6-foot-10 and 245 pounds with a 44. 5-inch vertical leap. He’s an excellent defender and the New York Knicks will have another big man who can protect the paint. He could be one of the backups behind All-Star forward Julius Randle.
Sims averaged 9. 2 points, 7. 2 rebounds and 1. 1 blocks per game in his final collegiate season. | english |
{"nom":"Jarnosse","circ":"5ème circonscription","dpt":"Loire","inscrits":356,"abs":197,"votants":159,"blancs":3,"nuls":13,"exp":143,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":78},{"nuance":"LR","nom":"Mme <NAME>","voix":65}]} | json |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M7 13h10v-2c0-.88.39-1.67 1-2.22V6c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1v2.78c.61.55 1 1.34 1 2.22v2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M20 10c-.55 0-1 .45-1 1v4H5v-4c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-5c0-.55-.45-1-1-1z",
opacity: ".3"
}, "1"), /*#__PURE__*/_jsx("path", {
d: "M20 8V6c0-1.65-1.35-3-3-3H7C5.35 3 4 4.35 4 6v2c-1.65 0-3 1.35-3 3v5c0 1.65 1.35 3 3 3v1c0 .55.45 1 1 1s1-.45 1-1v-1h12v1c0 .55.45 1 1 1s1-.45 1-1v-1c1.65 0 3-1.35 3-3v-5c0-1.65-1.35-3-3-3zM6 6c0-.55.45-1 1-1h10c.55 0 1 .45 1 1v2.78c-.61.55-1 1.34-1 2.22v2H7v-2c0-.88-.39-1.67-1-2.22V6zm15 10c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1v-5c0-.55.45-1 1-1s1 .45 1 1v4h14v-4c0-.55.45-1 1-1s1 .45 1 1v5z"
}, "2")], 'ChairTwoTone'); | javascript |
<gh_stars>0
{
"name": "stl-status-chart",
"version": "1.0.0",
"description": "STL Status Chart",
"main": "gather_stats.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/STL.git#gh-pages"
},
"keywords": [
"chart"
],
"author": "Microsoft",
"license": "SEE LICENSE IN LICENSE.txt",
"bugs": {
"url": "https://github.com/microsoft/STL/issues"
},
"homepage": "https://github.com/microsoft/STL/tree/gh-pages#readme",
"dependencies": {
"@octokit/graphql": "^4.5.3",
"cli-progress": "^3.8.2",
"dotenv": "^8.2.0",
"luxon": "^1.24.1",
"node-fetch": "^3.1.0"
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 120,
"singleQuote": true,
"tabWidth": 4
}
}
| json |
Posted On:
The President of India, Smt Droupadi Murmu will visit Uttarakhand from December 8 to 9, 2022.
On December 8, 2022, the President will attend a civic reception to be hosted by the Government of Uttarakhand in Dehradun. She will also virtually inaugurate/lay foundation stones for various projects of Uttarakhand related to energy, education, roads, transport and urban development.
On December 9, 2022, the President will address the valedictory function of the 97th Common Foundation Course at the Lal Bahadur Shastri National Academy of Administration (LBSNAA), Mussoorie. On the same day, she will also grace the annual convocation of Doon University at Dehradun.
| english |
import { OnInit, Component } from "@angular/core";
import * as microsoftTeams from '@microsoft/teams-js';
@Component({
selector: 'config',
templateUrl: './config.component.html'
})
export class ConfigComponent implements OnInit {
constructor() { }
ngOnInit() {
console.log('ngOnInit');
// initialize teams
microsoftTeams.initialize();
// get context
microsoftTeams.getContext((context: microsoftTeams.Context) => {
console.log('getContext');
this.setValidityState(true);
});
microsoftTeams.settings.registerOnSaveHandler((saveEvent: microsoftTeams.settings.SaveEvent) => {
// Calculate host dynamically to enable local debugging
let host = "https://" + window.location.host;
microsoftTeams.settings.setSettings({
contentUrl: host + "/#/home",
suggestedDisplayName: "Questions",
removeUrl: host + "/remove",
entityId: "1"
});
saveEvent.notifySuccess();
});
}
public setValidityState(val: boolean) {
microsoftTeams.settings.setValidityState(val);
}
}
| typescript |
New Delhi, Dec 15: Following the reports of three students committing suicide in Kota, the National Human Rights Commission (NHRC) has served notices to the Rajasthan government, Union Secretary of Higher Education and the Chairperson of the National Medical Commission (NMC).
The apex human rights body took cognizance of the incident following media reports which said that the students of a coaching centre committed suicide in two separate incidents within 12 hours. In a statement, NHRC said that there is a need to regulate private coaching institutes.
According to the statement, the students were preparing for competitive exams. The incident has brought attention back to the punishing pressure that teenagers face at private institutes in the city because there are only a limited number of seats available for those wishing to pursue technical and medical education.
The Commission has stated that the contents of the media story, if genuine, constitute a "grave concern" of human rights. Kota has been a hotspot of private coaching centres for National Entrance Eligibility Test (NEET) aspirants over the years.
The Commission stated that it believes there is a need to develop a regulatory system, and because higher education regulation is a State responsibility, the burden of such a mechanism will rest on the State, in consultation with the Central government.
In its notices, the NHRC has sought reports from the Chief Secretary of Rajasthan, Union Secretary of Higher Education and the NMC Chairperson on the incident. In light of the high number of student suicides recorded, it must also detail the actions taken or planned to be done by the state regarding the regulatory framework to oversee the private coaching schools, the NHRC stated in the statement.
Furthermore, it must include the formulation of a long-term plan to adequately address the issue of psychological and behavioural abnormalities of students undergoing coaching in various private institutes in Kota, including the parents, so that they do not feel lonely or under huge pressure of expectation from family members and friends, it added.
According to the statement, the Union Secretary of Higher Education is expected to inform about the formulation of the National Action Plan for a proportional increase in seats in technical and medical education, as well as the mechanism to get rid of the rat race of getting admission in private coaching centres to achieve success in competitive examinations like JEE and NEET.
The NMC Chairperson is expected to inform about the launch of some progressive and student-friendly mechanisms for achieving NEET success without being subjected to enormous mental and psychological pressure while undergoing coaching in private institutions, according to the statement.
Two of the deceased, according to the media report that was published on December 13, were from Bihar while the third one was from Madhya Pradesh. According to the statement, all three of the students were enrolled in coaching sessions for the NEET, a test for medical institutions.
A thorough report is likely to be submitted by the Chief Secretary of Rajasthan, according to the media report. | english |
# Top Hat Code Styles
When starting a new project, please use the appropriate linter configuration from this folder to ensure that code style remains consistent.
You can use the @tophat/eslint-config package available from NPM:
```
npm install @tophat/eslint-config # ... plus some other packages!
```
**Please see the [@tophat/eslint-config repo](https://github.com/tophat/eslint-config) for a list of all the packages needed to use linting with prettier, react, and jest.**
And modify your `.eslintrc.json`
```json
{
"extends": [
"@tophat",
"@tophat/eslint-config/jest"
]
}
```
| markdown |
{% extends "site_base.html" %}
{% load humanize %}
{% block head_title %}{{ object.text }}{% endblock %}
{% block body_base %}
<section class="lemma-entry">
<div class="container">
<h1><span class="pk">{{ object.pk }}.</span> <span class="text">{{ object.text }}</span></h1>
<div class="row">
<div class="col">
<div class="definition-list">
{% for definition in object.definitions.all %}
<div class="definition">
<div class="shortdef">{{ definition.shortdef }}</div>
<div class="source">{{ definition.source }}</div>
</div>
{% endfor %}
</div>
</div>
<div class="col">
<table class="table table-sm">
<thead>
<tr><th> <th class="text-right">count<th class="text-right">freq. per 10K</tr>
</thead>
<tbody>
<tr><th>core<td class="text-right">{{ object.core_count|intcomma }}<td class="text-right">{{ core_freq }}</tr>
<tr><th>corpus<td class="text-right">{{ object.corpus_count|intcomma }}<td class="text-right">{{ corpus_freq }}</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="row">
<div class="col-7">
<h3>Editions by Text Group ({{ editions_count }})</h3>
<p>* indicates part of the core corpus</p>
<table class="table table-sm">
<thead>
<tr><th>work<th class="text-right">count<th class="text-right">freq.<th class="text-center">log ratio</tr>
</thead>
{% for text_group,editions in text_groups.items %}
<tr><th colspan="4" class="text-group">{{ text_group.1 }}</th></tr>
{% for edition in editions %}
<tr{% if filter == edition.text_edition.cts_urn %} class="table-active"{% endif %}>
<td><a href="{% url 'lemma_detail' object.pk %}?filter={{ edition.text_edition.cts_urn }}">{{ edition.text_edition.work_label }}</a>{% if edition.text_edition.is_core %}*{% endif %}
<td width="10%" class="text-right">{{ edition.lemma_count|intcomma }}
<td width="10%" class="text-right">{{ edition.frequency }}
<td width="20%" class="frequency text-center" style="white-space: nowrap;">{% spaceless %}
{% if edition.ratio is not None %}
{% include "deep_vocabulary/_ratio.html" with item=edition %}
{% endif %}
{% endspaceless %}
</td>
</tr>
{% endfor %}
{% endfor %}
</table>
</div>
<div class="col">
{% if filter %}
<h3>Passages ({{ passages.count }} of {{ object.passages.count|intcomma }})</h3>
<div class="card bg-light edition-card">
<div class="card-body">
<span class="pull-right"><a href="{% url 'lemma_detail' object.pk %}">remove</a></span>
<h4 class="card-title"><a href="{% url 'word_list' filtered_edition.cts_urn %}">{{ filtered_edition.text_group_label }}, {{ filtered_edition.work_label }}</a></h4>
<div class="card-text">
<p><tt>{{ filter }}</tt></p>
<a href="{% url 'reader_redirect' filter %}" target="_blank">read in Scaife Viewer <i class="fa fa-external-link"></i></a>
</div>
</div>
</div>
{% if passages.count < 1000 %}
<table class="table table-sm">
<thead>
<tr>
<th>passage
<th>
<th>count
</tr>
</thead>
{% for lemma_passage in passages.all %}
<tr>
<th>
{{ lemma_passage.reference }}
</th>
<td class="text-center">
<a href="{% url 'word_list' lemma_passage.cts_urn %}">word list</a>
<span class="text-muted">|</span>
<a href="{% url 'reader_redirect' lemma_passage.cts_urn %}" target="_blank">read <i class="fa fa-external-link"></i></a>
</td>
<td class="text-right">
{{ lemma_passage.count }}
</td>
</tr>
{% endfor %}
{% else %}
<p>Too many to show.</p>
{% endif %}
{% else %}
<h3>Passages ({{ object.passages.count|intcomma }})</h3>
<p>Select a work on the left to show passages in that work containing
<b>{{ object.text }}</b>.
{% endif %}
</div>
</div>
</div>
</section>
{% endblock %}
| html |
<filename>one-statement/FruitBowl.java
public class FruitBowl {
public static void main(String[] args) {
System.out.print(new java.util.Scanner(System.in).nextInt() / 6);
}
}
| java |
<filename>services/tracing/public/cpp/trace_event_args_allowlist.cc
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/tracing/public/cpp/trace_event_args_allowlist.h"
#include "base/bind.h"
#include "base/strings/pattern.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
#include "base/trace_event/trace_event.h"
namespace tracing {
namespace {
// Each allowlist entry is used to allowlist an array arguments for a
// single or group of trace events.
struct AllowlistEntry {
// Category name of the interested trace event.
const char* category_name;
// Pattern to match the interested trace event name.
const char* event_name;
// List of patterns that match the allowlisted arguments.
const char* const* arg_name_filter;
};
const char* const kScopedBlockingCallAllowedArgs[] = {
"file_name", "function_name", "source_location", nullptr};
const char* const kPeekMessageAllowedArgs[] = {"chrome_message_pump", nullptr};
const char* const kMemoryDumpAllowedArgs[] = {
"count", "dumps", "function", "top_queued_message_tag", nullptr};
const char* const kRendererHostAllowedArgs[] = {
"class", "line", "should_background", "has_pending_views",
"bytes_allocated", nullptr};
const char* const kUIAllowedArgs[] = {"chrome_window_handle_event_info",
nullptr};
const char* const kV8GCAllowedArgs[] = {"num_items", "num_tasks", nullptr};
const char* const kTopLevelIpcRunTaskAllowedArgs[] = {"chrome_task_annotator",
nullptr};
// TODO(ddrone): add args once creation_location_iid is parsed
const char* const kMemoryPressureEventsAllowedArgs[] = {
"chrome_memory_pressure_notification", nullptr};
const AllowlistEntry kEventArgsAllowlist[] = {
// Args recorded in perfetto protos and exported by trace processor JSON
// exporter:
{"__metadata", "thread_name", nullptr},
{"__metadata", "process_name", nullptr},
{"__metadata", "process_uptime_seconds", nullptr},
{"base", "MemoryPressureListener::Notify",
kMemoryPressureEventsAllowedArgs},
{"base", "MessagePumpForUI::ProcessNextWindowsMessage PeekMessage",
kPeekMessageAllowedArgs},
{"base", "MultiSourceMemoryPressureMonitor::OnMemoryPressureLevelChanged",
kMemoryPressureEventsAllowedArgs},
{"base", "ScopedAllowBaseSyncPrimitivesOutsideBlockingScope",
kScopedBlockingCallAllowedArgs},
{"base", "ScopedAllowBlocking", kScopedBlockingCallAllowedArgs},
{"base", "ScopedAllowIO", kScopedBlockingCallAllowedArgs},
{"base", "ScopedBlockingCall*", kScopedBlockingCallAllowedArgs},
{"base", "ScopedMayLoadLibraryAtBackgroundPriority",
kScopedBlockingCallAllowedArgs},
{"browser", "TabLoader::OnMemoryPressure",
kMemoryPressureEventsAllowedArgs},
{"browser", "KeyedServiceFactory::GetServiceForContext", nullptr},
{"ipc", "GpuChannelHost::Send", nullptr},
{"ipc", "SyncChannel::Send", nullptr},
{"memory", "RenderThreadImpl::OnMemoryPressure",
kMemoryPressureEventsAllowedArgs},
{"shutdown", "*", nullptr},
{"startup", "PrefProvider::PrefProvider", nullptr},
{"startup", "TestAllowlist*", nullptr},
{"toplevel", "*", nullptr},
{"ui", "HWNDMessageHandler::OnWndProc", kUIAllowedArgs},
{"ui", "HWNDMessageHandler::OnDwmCompositionChanged", kUIAllowedArgs},
{TRACE_DISABLED_BY_DEFAULT("cpu_profiler"), "*", nullptr},
{TRACE_DISABLED_BY_DEFAULT("lifecycles"), "task_posted_to_disabled_queue",
nullptr},
{TRACE_DISABLED_BY_DEFAULT("toplevel.ipc"), "TaskAnnotator::RunTask",
kTopLevelIpcRunTaskAllowedArgs},
{TRACE_DISABLED_BY_DEFAULT("user_action_samples"), "UserAction", nullptr},
// Needs conversion to perfetto protos:
{"__metadata", "chrome_library_address", nullptr},
{"__metadata", "chrome_library_module", nullptr},
{"__metadata", "stackFrames", nullptr},
{"__metadata", "typeNames", nullptr},
{"renderer_host", "*", kRendererHostAllowedArgs},
// Redefined the string since MemoryDumpManager::kTraceCategory causes
// static initialization of this struct.
{TRACE_DISABLED_BY_DEFAULT("memory-infra"), "*", kMemoryDumpAllowedArgs},
{TRACE_DISABLED_BY_DEFAULT("system_stats"), "*", nullptr},
{TRACE_DISABLED_BY_DEFAULT("v8.gc"), "*", kV8GCAllowedArgs},
{nullptr, nullptr, nullptr}};
const char* kMetadataAllowlist[] = {"chrome-bitness",
"chrome-dcheck-on",
"chrome-library-name",
"clock-domain",
"config",
"cpu-*",
"field-trials",
"gpu-*",
"highres-ticks",
"hardware-class",
"last_triggered_rule",
"network-type",
"num-cpus",
"os-*",
"physical-memory",
"product-version",
"scenario_name",
"trace-config",
"user-agent",
nullptr};
} // namespace
bool IsTraceArgumentNameAllowlisted(const char* const* granular_filter,
const char* arg_name) {
for (int i = 0; granular_filter[i] != nullptr; ++i) {
if (base::MatchPattern(arg_name, granular_filter[i]))
return true;
}
return false;
}
bool IsTraceEventArgsAllowlisted(
const char* category_group_name,
const char* event_name,
base::trace_event::ArgumentNameFilterPredicate* arg_name_filter) {
DCHECK(arg_name_filter);
base::CStringTokenizer category_group_tokens(
category_group_name, category_group_name + strlen(category_group_name),
",");
while (category_group_tokens.GetNext()) {
base::StringPiece category_group_token =
category_group_tokens.token_piece();
for (int i = 0; kEventArgsAllowlist[i].category_name != nullptr; ++i) {
const AllowlistEntry& allowlist_entry = kEventArgsAllowlist[i];
DCHECK(allowlist_entry.event_name);
if (base::MatchPattern(category_group_token,
allowlist_entry.category_name) &&
base::MatchPattern(event_name, allowlist_entry.event_name)) {
if (allowlist_entry.arg_name_filter) {
*arg_name_filter = base::BindRepeating(
&IsTraceArgumentNameAllowlisted, allowlist_entry.arg_name_filter);
}
return true;
}
}
}
return false;
}
bool IsMetadataAllowlisted(const std::string& metadata_name) {
for (size_t i = 0; kMetadataAllowlist[i] != nullptr; ++i) {
if (base::MatchPattern(metadata_name, kMetadataAllowlist[i])) {
return true;
}
}
return false;
}
} // namespace tracing
| cpp |
package com.ksyun.ks3.utils;
import java.util.Date;
/**
* @author lijunwei[<EMAIL>]
*
* @date 2014年10月20日 下午6:24:02
*
* @description
**/
public class Timer {
private static long t;
public static Long start()
{
t = new Date().getTime();
return t;
}
public static Long end()
{
return new Date().getTime() - t;
}
}
| java |
`HTML`即HyperText Markup Language——超文本标记语言,是标准通用标记语言下的一个应用。超文本的意思就是指页面内可以包含图片、链接,甚至音乐、程序等非文字元素。
网页文件本身是一种文本文件,通过在文本文件中添加标记符,可以告诉浏览器如何显示其中的内容;然后浏览器按照顺序阅读文件,根据标记解释和显示内容,实现特定的内容展示。所以说,网页的本质就是超级文本标记语言,通过结合使用其他web技术(脚本语言、网关接口、组件等),可以创造出丰富的、功能强大的网页。
超文本标记语言文档制作不是很复杂,但是功能很强大,支持不同数据格式的文件镶入。随着技术的发展,HTML也从1993年的第一版持续发展到2014年的HTML5 ,这当中伴随着web技术的巨大变迁,web技术也从1.0发展到了3.0 。目前web技术也在从web3.0中的知识有序共建向web4.0的知识分配发展,这种全民web共享知识创建财富的趋势促使普通人也需要了解HTML。在标记语言发展中,出现了各式各样的分类:`VML、UML、MML、CML、XHTML、XML`等。本文仅仅指最基础的网页`HTML5.0`。
# 1、HTML基础之HTML标签
## 什么是标签?
超文本标记语言之所以这么强大,主要在于编写时的标记和解释的标记,我们称之为标签。标签(tag)是HTML语言最基本的元素和组成部分,它使网页可以划分范围、内容区域、解释区域以及相应的引用。也就是说,==标签是一种符号,一种能够使网页内各种内容相互区分的符号、且使内容或数据更加有序的、特殊并约定俗称的符号==。
和一般的语言一样,一般我们都会以hello起步,如下面一段代码可以在浏览器上显示`hello html`,该段为`html`文件最基础的结构,涵盖了基础标签:
第2行`<!DOCTYPE html>`为文档类型声明标签;
第4行`<html></html>`为文档根标签;
第6行`<head></head>`标签内包含关于文档的信息;
第8-10行`<meta>` 元素内可提供有关页面的元信息(meta-information),比如针对搜索引擎和更新频度的描述和关键词等;
第12行`<title></title>`标签内定义文档的标题;
第15行`<body></body>`标签内定义文档的主体。其中包含文档的所有内容(比如文本、图像、颜色、图形等等)。
```html
<!-- 文档声明类型-->
<!DOCTYPE html>
<!-- html文档的根标签-->
<html lang="zh-cn">
<!-- 网页头部信息,用来做网页的基本配置 -->
<head>
<!-- 网页字符编码 -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- 网页在浏览器窗口中显示的标题 -->
<title>HTML基本结构</title>
</head>
<!-- 此标签中写网页中显示的内容 -->
<body>
hello html!
</body>
</html>
```
可以很清晰的看到,**除了个别标签外,几乎所有的标签均为成对出现,且由一对尖括号组成**,这个要牢记。由于标签众多,且目前学习资料及其丰富,本文仅粗略简单的介绍一些常用标签,具体的深入了解,笔者向大家推荐W3school的html参考手册和官方文档查询。
## HTML常用标签与分类
根据经常使用的功能,我们这里把常用的标签分为以下几类:
- 文章标签:h1~h6、p、br、span、bdo、pre、acronym、abbr、blockquote、q、ins等。
- 字体样式标签:i、b、strong、em、code、samp等。
- 列表标签:ul、ol、li、dl、dt、dd
- 超链接标签: a
- 多媒体标签:img、audio、video、map、area、object、param等
- 表格标签:table、td、tr、th、thead、tbody、tfoot、col、colgtoup、caption
- 表单标签:form、input、button、label、option、textarea、select、optgroup、fieldset、legend
- 布局标签:div
- 文档标签:html、head、body、title、meta、style、link、script、noscript、base等
- 特殊字符
- 其他标签
接下来我们介绍其中一些频繁使用的一些标签。
### 常见文档标签
| 标签名 | 描述 |
| ------------- | ----------------------------------- |
| style | 定义文档中的样式。一般通过CSS来设置html元素样式 |
| link | 定义两个连接文档之间的关系,如外链的css文件、js文件等 |
| script | 定义一段脚本 |
| noscript | 用来定义在脚本未被执行时的替代内容(文本)。常用在浏览器不支持脚本时。 |
| base | 规定页面中所有链接的基准 url |
| <!--…—> | 注释标签,用于在源文档中插入注释 |
### h1-h6标题标签
h1-h6标签代表里面的元素默认样式相应的为一级标题到六级标题。此标签必须成对出现。`<h1>`定义最大的标题,`<h6>`定义最小的标题。由于 h 元素拥有确切的语义,因此应当慎重地选择恰当的标签层级来构建文档的结构,相反,我们应当使用层叠样式表CSS定义来达到漂亮的显示效果。
实例:
注:后面标签介绍一般仅仅为单个标签修改,所以除了一些案例,后续代码块默认不展示body标签外的内容以及结果展示。
```html
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>02_标题标签</title>
</head>
<body>
<h1>一级标题</h1>
<h2>二级标题</h2>
<h3>三级标题</h3>
<h4>四级标题</h4>
<h5>五级标题</h5>
<h6>六级标题</h6>
</body>
</html>
```

### p段落标签与br换行标签
p标签用来定义段落,成对出现。
```html
<p> 人工智能(Artificial Intelligence)
<br />
英文缩写为AI
</p>
```
### 几种字体样式标签
```html
<i>斜体</i>
<b>粗体</b>
<strong>重要的文本</strong>
<code>代码样式文本</code>
```
### 超链接标签a
定义超链接,它用于从一个页面连接到另一个页面。
```Html
<a href="http://www.baidu.com" target="_blank">跳转百度</a>
```
上面这行代码中href是指链接的目标URL,target为在何处打开目标URL(`_blank`指在浏览器新标签页打开)。其他标签a的属性如下:
| 属性 | 描述 |
| -------- | ---------------------------------------- |
| href | 链接的目标 URL |
| hreflang | 规定目标 URL 的基准语言。仅在 href 属性存在时使用。 |
| media | 规定目标 URL 的媒介类型。默认值:all。仅在 href 属性存在时使用。 |
| ping | 由空格分隔的 URL 列表,当用户点击该链接时,这些 URL 会获得通知。仅在 href 属性存在时使用。 |
| rel | 规定当前文档与目标 URL 之间的关系。仅在 href 属性存在时使用。 |
| target | 在何处打开目标 URL。仅在 href 属性存在时使用。 |
| type | 规定目标 URL 的 MIME 类型。仅在 href 属性存在时使用。 |
### 图像标签img
```html
<img src="./images/banner.jpg" alt="人工智能">
```
上面这行代码是指打开路径在`./images/banner.jpg`的图片,当图片不能加载显示时,网页显示人工智能。img标签的主要属性有:
| 属性 | 值 | 描述 |
| ------ | ---- | --------------- |
| alt | | 定义有关图片的短的描述 |
| src | | 要显示图像的url |
| height | px、% | 定义图像高度 |
| ismap | url | 把图像定义为服务器端的图像映射 |
| usemap | url | 把图像定义为客户端的图像映射 |
| width | px、% | 定义图像宽度 |
| vspace | px | 定义图像顶部、底部的空白 |
### 列表标签
ul标签用来定义无序列表;ol标签用来定义有序列表;li标签定义列表项。
```Html
<ul>
<li>Coffee</li>
<li>Tea</li>
</ul>
<ol>
<li>Coffee</li>
<li>Tea</li>
</ol>
<ol>
<li value="8">Coffee</li>
<li>Tea</li>
</ol>
```
其中,ol标签的属性有:
| 属性 | 值 | 描述 |
| ----- | ------------------------------------------------- | ----------------------------------------------------- |
| type | A、 a、 I、 i、 1、 disc、 square、 circle | 规定列表序号的类型。不赞成使用。一般使用CSS替代实现。 |
| value | number_of_list_item | 不赞成使用。一般使用CSS替代实现。 |
### 表格标签
如下代码实现了一个最常见的简历表格。
```html
<table border="1px">
<tr>
<td class="header" colspan="5">基本情况</td>
</tr>
<tr>
<td width="15%">姓 名</td>
<td width="25%"></td>
<td width="15%">性 别</td>
<td width="25%"></td>
<td width="20%" rowspan="5"><img src="./images/head.jpg" alt="程序员"></td>
</tr>
<tr>
<td>民 族</td>
<td></td>
<td>出生日期</td>
<td></td>
</tr>
<tr>
<td>政治面貌</td>
<td></td>
<td>健康情况</td>
<td></td>
</tr>
<tr>
<td>籍 贯</td>
<td></td>
<td>学 历</td>
<td></td>
</tr>
<tr>
<td>电子信箱</td>
<td></td>
<td>联系电话</td>
<td></td>
</tr>
</table>
```
其中,table标签定义表格,在它定义的内部,可以放置表格的标题、表格行、表格列、表格单元以及其他的表格;tr标签定义表格中的行;td标签定义表格中的一个单元格,它有两个属性:
| td属性 | 值 | 描述 |
| ------- | ------ | ------ |
| rowspan | number | 跨行的单元格 |
| colspan | number | 跨列的单元格 |
### 表单标签
如下一段代码实现一个常用的网站注册表单。
```html
<h3>注册表单</h3>
<!-- action 为要将数据提交到哪个url -->
<!-- method 为发送数据时的请求方式 get post等 -->
<form action="" method="get">
<p>
<label for="">username</label>
<!-- name 为在提交数据时的字段/键 -->
<!-- placeholder 占位提示 -->
<input type="text" name="username" placeholder="请输入用户名">
</p>
<p>
<label for="">password</label>
<input type="password" name="password">
</p>
<p>
<label for="">gender</label>
<!-- 单选 -->
<!-- cheacked 为默认选择选项 -->
<!-- value为要提交的值 -->
<input type="radio" name='gender' checked value="0">男
<input type="radio" name='gender' value="1">女
</p>
<p>
<label for="">hobby</label>
<!-- 多选 -->
<input type="checkbox">人工智能
<input type="checkbox">数据分析
<input type="checkbox">计算数学
<input type="checkbox">机器学习
<input type="checkbox">软件开发
</p>
<p>
<label for="">page_picture</label>
<!-- 文件 -->
<input type="file">
</p>
<p>
<label for="">homeland</label>
<!-- 文件 -->
<select>
<option value="">shannxi</option>
<option value="">Beijing</option>
<option value="">Shanghai</option>
<option value="">guangzhou</option>
</select>
</p>
<p>
<label style="float:left" for="">Personal profile</label>
<!-- 文本区域 -->
<textarea cols="30" rows="5">请输入文字</textarea>
</p>
<p>
<input type="submit" value="提 交">
<input type="reset" value="重置">
<input type="button" value="普通按钮">
</p>
</form>
```

在这段代码中我们使用了form标签、label标签、input标签、select标签、option标签和textarea标签。这些标签含义如下表所示:
| 标签 | 描述 |
| -------- | ------------------------------------------------------------ |
| form | 创建供用户输入的表单。 表单可包含文本域,复选框,单选按钮等等。表单用于向指定的 URL 传递用户数据。 |
| label | 定义控件的标注。 如果在 label 元素内点击文本,就会触发此控件。就是说,当用户选择该标签时,浏览器就会自动将焦点转到和标签相关的表单控件上。 |
| input | 定义输入字段,用户可在其中输入数据。最常用它的type属性、name属性。 |
| select | 创建下拉列表 |
| option | 定义下拉列表中的一个选项 |
| textarea | 定义一个文本区域 (text-area) (一个多行的文本输入区域)。用户可在此文本区域中写文本。在一个文本区中,您可输入无限数量的文本。文本区中的默认字体是等宽字体 (fixed pitch)。 |
form标签的常用属性有:
| form属性 | 描述 |
| -------------- | ------------------------------------ |
| action | 定义一个 URL。当点击提交按钮时,向这个 URL 发送数据。 |
| data | 供自动插入数据。 |
| method | 用于向 action URL 发送数据的 HTTP 方法。默认是 GET |
| target | 在何处打开目标 URL。 |
| replace | 定义表单提交时所做的事情。 |
| accept | 处理该表单的服务器可正确处理的内容类型列表(用逗号分隔) |
| accept-charset | 表单数据的可能的字符集列表(逗号分隔)。默认值是 "unknown" |
| enctype | 用于对表单内容进行编码的 MIME 类型 |
<font color=blue>提示</font>: method最常见的两种方式为GET和POST,它们的区别如下:
| | GET | POST |
| -------- | ---------------------------------------- | ---------------------------------------- |
| 后退按钮/刷新 | 无害 | 数据会被重新提交(浏览器应该告知用户数据会被重新提交)。 |
| 书签 | 可收藏为书签 | 不可收藏为书签 |
| 缓存 | 能被缓存 | 不能缓存 |
| 编码类型 | application/x-www-form-urlencoded | application/x-www-form-urlencoded 或 multipart/form-data。为二进制数据使用多重编码。 |
| 历史 | 参数保留在浏览器历史中。 | 参数不会保存在浏览器历史中。 |
| 对数据长度的限制 | 是的。当发送数据时,GET 方法向 URL 添加数据;URL 的长度是受限制的(URL 的最大长度是 2048 个字符)。 | 无限制。 |
| 对数据类型的限制 | 只允许 ASCII 字符。 | 没有限制。也允许二进制数据。 |
| 安全性 | 与 POST 相比,GET 的安全性较差,因为所发送的数据是 URL 的一部分。在发送密码或其他敏感信息时绝不要使用 GET ! | POST 比 GET 更安全,因为参数不会被保存在浏览器历史或 web 服务器日志中。 |
| 可见性 | 数据在 URL 中对所有人都是可见的。 | 数据不会显示在 URL 中。 |
label标签属性:
| label属性 | 值 | 描述 |
| ------- | ------------------- | ------------------------------ |
| for | id_of_another_field | 定义 label 针对哪个表单元素。设置为表单元素的 id。 |
input标签常用属性有:
| input标签属性 | 值 | 描述 |
| ------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| type | button checkbox date datetime datetime-local email file hidden image month number password radio range reset submit text time url week | 指示 input 元素的类型。默认值是 "text" |
| name | field_name | 为 input 元素定义唯一的名称。一般用于字段识别 |
| autocomplete | | 自动补全 |
| checked | 布尔值 | 指示此 input 元素首次加载时应当被选中。注释:请与 type="checkbox" 及 type="radio" 配合使用。 |
| pattern | | 正则表达式 |
| required | 布尔值 | 定义输入字段的值是否是必需的。 |
| value | | 对于按钮、重置按钮和确认按钮:定义按钮上的文本。对于图像按钮:定义传递向某个脚本的此域的符号结果。对于复选框和单选按钮:定义 input 元素被点击时的结果。对于隐藏域、密码域以及文本域:定义元素的默认值。注:不能与 type="file" 一同使用。注:与 type="checkbox" 和 type="radio" 一同使用时,此元素是必需的。 |
| maxlength | number | 定义文本域中所允许的字符最大数目 |
| placeholder | | 定义输入框预显示的内容 |
| autofocus | 布尔值 | 当页面加载时,使输入字段获得焦点。 |
select标签属性:
| select标签属性 | 值 | 描述 |
| ---------- | ----------- | ------------------------------ |
| name | unique_name | 定义下拉列表的唯一标识符 |
| multiple | 布尔值 | 多选选项, 当该属性为 true 时,规定可一次选定多个项目 |
| autofocus | 布尔值 | 在页面加载时使这个 select 字段获得焦点 |
| data | url | 供自动插入数据 |
| disabled | 布尔值 | 当该属性为 true 时,会禁用该菜单 |
| form | 布尔值 | 定义 select 字段所属的一个或多个表单 |
option标签属性:
| option标签属性 | 值 | 描述 |
| ---------- | -------- | ------------------------------ |
| value | text | 定义送往服务器的选项值 |
| selected | selected | 规定选项(在首次显示在列表中时)表现为选中状态。 |
| disabled | disabled | 规定此选项应在首次加载时被禁用 |
| label | text | 定义当使用 `<optgroup>` 时所使用的标注 |
textarea标签常见属性:
| textarea标签属性 | 值 | 描述 |
| ------------ | ------ | ------------------------- |
| rows | number | 规定了文本区内可见的行数 |
| cols | number | 规定了文本区内可见的列数 |
| name | | 为此文本区规定的一个名称 |
| form | | 定义该 textarea 所属的一个或多个表单。 |
| autofocus | 布尔值 | 在页面加载时,使这个 textarea 获得焦点。 |
### div标签与span标签
div标签为块标签,span标签为行内块标签。
### 特殊字符

## HTML标签常见全局属性
一般我们通过标签来标记文本,通过CSS3来设置样式。不管采用何种方式来设置样式,均需要在设置前选中一些标签才能对其操作。所以,html5.0提供了标签的全局属性,基本如下表:
| 全局属性名 | 描述 |
| --------------- | -------------------------- |
| class | 规定元素的一个或多个类名(引用样式表中的类) |
| id | 规定元素的唯一 id |
| style | 规定元素的行内 CSS 样式 |
| draggable | 规定元素是否可拖动 |
| dropzone | 规定在拖动被拖动数据时是否进行复制、移动或链接 |
| dir | 规定元素中内容的文本方向 |
| contextmenu | 规定元素的上下文菜单。上下文菜单在用户点击元素时显示 |
| accesskey | 规定激活元素的快捷键 |
| hidden | 规定元素仍未或不再相关 |
| lang | 规定元素内容的语言 |
| tabindex | 规定元素的tab键次序 |
| title | 规定有关元素的额外信息 |
| translate | 规定是否应该翻译元素内容 |
| spellcheck | 规定是否对元素进行拼写和语法检查 |
| contenteditable | 规定元素内容是否可编辑 |
| data-* | 用于存储页面或应用程序的私有定制数据 |
| markdown |
<filename>RAVL2/MSVC/include/Ravl/PatternRec/DesignFuncPCA.hh
#include "../.././PatternRec/Modeling/DimensionReduction/DesignFuncPCA.hh"
| cpp |
[{"province":"四川省","city":"阿坝藏族羌族自治州","area":"小金县","name":"小金县美沃乡邮政代办所","code":"624299","address":"四川省阿坝州小金县美沃乡","phone":"0837-2790000"},{"province":"四川省","city":"阿坝藏族羌族自治州","area":"小金县","name":"小金县崇德乡邮政代办所","code":"624299","address":"四川省阿坝州小金县崇德乡","phone":"15808372086"},{"province":"四川省","city":"阿坝藏族羌族自治州","area":"小金县","name":"小金县老营乡邮政代办所","code":"624299","address":"四川省阿坝州小金县老营乡","phone":"0837-2799404"},{"province":"四川省","city":"阿坝藏族羌族自治州","area":"小金县","name":"小金县东大街邮政支局","code":"624299","address":"四川省阿坝州小金县小金县美兴镇","phone":"0837-2781318"},{"province":"四川省","city":"阿坝藏族羌族自治州","area":"小金县","name":"小金县八角乡邮政代办所","code":"624299","address":"四川省阿坝州小金县八角乡","phone":"0837-2799615"},{"province":"四川省","city":"阿坝藏族羌族自治州","area":"小金县","name":"小金县结斯乡邮政代办所","code":"624299","address":"四川省阿坝州小金县结斯乡","phone":"0837-2790900"}] | json |
<gh_stars>0
import { useState, useRef, useEffect } from "react";
import {
AuthenticationDetails,
CognitoUser,
CognitoUserAttribute,
CognitoUserPool,
CognitoUserSession,
} from "amazon-cognito-identity-js";
import { AWSCognitoAuthState } from "./enums";
import { AWSCognitoAuthProps, AWSCognitoAuthStorage, AWSCognitoAuthPoolInfo } from "./types";
export function useAWSCognitoAuth(
poolInfo: AWSCognitoAuthPoolInfo,
customStorage?: () => AWSCognitoAuthStorage
): AWSCognitoAuthProps {
if (!customStorage) customStorage = () => window.localStorage;
const cognitoUserPoolRef = useRef<CognitoUserPool>(
new CognitoUserPool({ UserPoolId: poolInfo.poolId, ClientId: poolInfo.clientId, Storage: customStorage() })
);
const cognitoUserRef = useRef<CognitoUser | null>(null);
const [authState, setAuthState] = useState<AWSCognitoAuthState>(AWSCognitoAuthState.SessionChecking);
const [authError, setAuthError] = useState<string | null>(null);
const [passwordChangeUserAttributes, setPasswordChangeUserAttributes] = useState<CognitoUserAttribute[] | null>(
null
);
useEffect(() => {
checkAuth();
}, []);
return {
state: authState,
authError,
login,
};
async function checkAuth() {
try {
setAuthState(AWSCognitoAuthState.SessionChecking);
const session = await getSession(cognitoUserPoolRef.current);
if (session?.isValid()) {
setAuthState(AWSCognitoAuthState.Authorized);
} else {
setAuthState(AWSCognitoAuthState.NotAuthorized);
}
} catch (e) {
console.log(e);
setAuthState(AWSCognitoAuthState.NotAuthorized);
}
}
async function login(username: string, password: string) {
setAuthState(AWSCognitoAuthState.Authorizing);
cognitoUserRef.current = new CognitoUser({
Username: username,
Pool: cognitoUserPoolRef.current,
});
cognitoUserRef.current.authenticateUser(
new AuthenticationDetails({
Username: username,
Password: password,
}),
{
onSuccess: () => {
setAuthState(AWSCognitoAuthState.Authorized);
},
onFailure: error => {
setAuthState(AWSCognitoAuthState.AuthorizingError);
console.error(error);
// setAuthError(error);
},
newPasswordRequired: (userAttributes: CognitoUserAttribute[]) => {
setAuthState(AWSCognitoAuthState.PasswordChangeRequired);
setPasswordChangeUserAttributes(userAttributes);
},
}
);
}
}
async function getSession(cognitoUserPool: CognitoUserPool): Promise<CognitoUserSession | null> {
const user = cognitoUserPool.getCurrentUser();
if (!user) return null;
return new Promise((resolve, reject) => {
user.getSession((error: any, session: CognitoUserSession) => {
if (error) {
reject(error);
return;
}
if (session) {
resolve(session);
return;
}
resolve(null);
});
});
}
| typescript |
The government will finally launch its one-stop portal for foreign and domestic investors on September 22, in a major step to help entrepreneurs secure the plethora of clearances needed to establish and run a business in India.
More than half a decade after it was initially announced as an integral component of Prime Minister’s Narendra Modi’s Make in India plan, the single-window portal has finally been given finishing touches by the Department for Promotion of Industry and Internal Trade (DPIIT).
The one-stop digital portal has been in the making since 2016 but had run into a plethora of administrative and implementation challenges. It had also missed several deadlines over this period.
Aimed at raising the ease of doing business manifold, the portal can be used to properly scout for investment opportunities across India, get deep data regarding land, labour, logistics and costs, as well as to get in touch with government agencies on the ground. It is expected to provide time-bound approvals and real-time status updates to investors.
Most importantly, it can be used to obtain all the requisite Central and State clearances and approvals required to start and continue business operations in India.
“Keeping in mind the large number of touchpoints such as District, State and Central governments, along with regulatory bodies, the portal has been designed to work as a centralised investment clearance cell,” an official said. It will provide end-to-end facilitation support, including pre-investment advisory, information related to land banks, and facilitate clearances at the Central and State level, as proposed in a Budget 2020-21 announcement.
The cell will integrate the existing clearance systems of the various Ministries and Departments of the Centre and of the State governments without disrupting the existing IT portals of Ministries and will have a single, unified application form. This will eliminate the need for domestic and foreign investors and entrepreneurs to visit multiple platforms/offices, which remains a major pain point for them.
The Economic Survey 2020-21 shows that to start manufacturing in India, a person, on average, needs to abide by 6,796 compliance items mandated by 51 Central and State laws.
Apart from the slow pace of policy movement itself, the portal was held up due to issues such as differences between States regarding available infrastructure and the lack of efficient data on land banks.
Since 2016, the Centre has been prodding States to map the available land at their disposal and create clusters of well-connected land banks that can attract foreign investment. But the level of work in this area varies widely among States with State legislatures struggling to amend regulations on common lands in panchayat areas to open them up to industrial development.
Also, heavily populated States such as West Bengal, Bihar and Uttar Pradesh have struggled to create industrial land parcels, while conflicts around land have risen.
In 2020, the government had initially integrated the Industrial Information System (IIS) portal with the Geographic Information System of six States. The combined data was mapped and a user interface created.
Read all the Latest News , Breaking News and Ukraine-Russia War Live Updates here. | english |
New Delhi: Sixteen years after they were first inducted, the Indian Air Force (IAF) has had mixed results from two aerostats it had deployed along the western borders with Pakistan. As a result, replacing these is now much further down in the list of priorities, ThePrint has learnt.
An aerostat is a helium-filled balloon tethered to the ground but operating at an altitude of about 15,000 feet, in contrast to the Chinese spy balloons, which fly at over 60,000 feet.
While China is in the news over its spy balloon — which the US says was also deployed against India — sources said weather conditions don’t allow New Delhi to operate such balloons, which are more of a “nuisance” than their utility to pick up actual key intelligence inputs.
However, The Washington Post reported that the Chinese spy balloon that crashed off the Hawaiian islands last June yielded helpful information, including about the nature of the technology Beijing is using, besides giving insight into how it actually flies.
Some of the balloons are fitted with electro-optical sensors or digital cameras that, depending on their resolution, can capture highly precise images, the report said, citing officials. They are also equipped with radio signal and satellite transmission capability.
In 2019, ThePrint had reported that China deployed balloon-borne radars across the Indian frontier in Tibet, similar to India’s aerostats.
Following the recommendation of the Kargil Review Committee, the IAF had purchased two aerostats — also known as the Tethered Aerostat Radar System or TARS — for surveillance at a cost of over Rs 300 crore in 2007.
Sources in the defence and security establishment said that while the balloon itself was American, there was a lot of Israeli equipment on board.
Aerostats are fitted with long-range radars, signal intelligence systems and meteorological instruments, among others. While military radars do have the ability to operate at long distances, being high in the air allows them to beat the limitations of the Earth’s curvature and other surface blocks.
The aerostat has the ability to pick up all take-offs and landings or large-scale military movements within a range of 100-600 km, depending on the kind of equipment on board and weather conditions.
“The aerostat operations are limited by weather conditions. For example, if the weather is bad, it has to be brought down. If there is cloud or smog, the radars don’t work effectively. The response of the aerostats has been mixed,” a source said.
Sources explained that the IAF wanted to purchase more aerostats but eventually gave up the idea, and that the issue has moved much further down in its list of priorities.
“When the IAF had got it first, it was an excellent system for surveillance” the source said.
The IAF feels that the answer to continuous surveillance is more airborne early warning and control aircraft (AWACS).
“AWACS is not weather dependent and can be deployed any time. It is able to move rather than remain stationary in one location,” a second source said.
Sources said the IAF has been upgrading the equipment on board the aerostat from time to time and is looking at indigenous systems.
The wind conditions are not favourable for India to deploy spy balloons, one of the sources said, explaining that the wind in this region is from west to the east, i. e. from Pakistan towards India. This means that while Pakistan can deploy such a balloon, it is not feasible for India.
Similarly, China also cannot deploy spy balloons targeting India unless they are operated from Pakistan.
However, despite the Chinese claims that it was the wind that took their balloon over American territory, Forbes reports that atmospheric modeling and smart algorithms allow a balloon to change altitude to catch wind in any desired direction, and even to circle around a given point on the ground.
The U. S. military has been carrying out trials of similar balloons for years. Not only did algorithms allow a balloon to stay within in a 30 mile circle by 2018, there has been a steady improvement as well.
US National Security Council spokesman John Kirby has said that the Chinese balloon was not merely drifting but had propellers and steering to give it a measure of control, even as it was swept along in the high-altitude jet stream winds. Thus, there’s a lot of technology that goes into these balloons, which rely on much more than just wind for navigation.
(Edited by Tony Rai) | english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.