text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
When it comes to technology,we’ve been trained to expect more for less. Devices get more powerful each year,while prices stay the same or drop. With the new Nexus 7 tablet,Google hopes we’re willing to pay more for more.
The new tablet comes with a $30 price increase over last year’s model. At $229 for the base model,it is still a bargain and 30 per cent cheaper than Apple’s $329 iPad Mini. The display is sharper and the sound is richer than the old model. There’s now a rear camera for taking snapshots. The new Nexus 7 is the first device to ship with Android 4. 3,which lets you create profiles to limit what your kids can do on your tablet when you’re not around.
Amazon. com Inc’s $199 Kindle Fire HD is cheaper,but it doesn’t give you full access to the growing library of Android apps for playing games,checking the weather,tracking flights,reading the news and more. The Nexus 7 does.
It’s a fine complement to your smartphone if it’s running Google’s Android,the dominant operating system on phones these days even as Apple commands the market for tablet computers with its full-size iPad and iPad Mini. Unless you tell it not to,apps you use on the phone will automatically appear on the Nexus 7,so you can switch from device to device seamlessly. When you are signed in,bookmarks will also transfer over Google’s Chrome Web browser,as will favorite places on Google Maps.
If you were already looking at last year’s Nexus 7 model,then go ahead and pay $30 more for the latest.
Although screen dimensions are identical,the new Nexus 7 has a higher pixel density,at 323 pixels per inch compared with 216 on the old model.
Sound is much better with speakers on the left and the right side of the tablet,held horizontally. Although they are technically back facing,the speakers are placed along a curved edge in such a way that sound seems to project outward and not away from you.
The new Nexus 7 also feels more comfortable. It’s 17 percent thinner and 5 percent narrower. The old model was a tad too wide to grip comfortably.
The new Nexus ships with a camera app,something last year’s model didn’t really need because it had only a front-facing camera,for videoconferencing. With the new rear,5-megapixel camera,you can take photos and video of what’s in front of you.
As for the restricted profiles that come with Android 4. 3,it’s a good idea,though it still has kinks. When you set up a profile for your kid,you pick which apps to enable. Don’t want your kid to be surfing the Web unrestricted? Then keep the Chrome browser disabled. Don’t want him or her on Facebook? Keep that app disabled,too. The app store is also disabled. If you do allow access to a particular app,though,then it’s full access. There’s no filtering to block porn and other questionable material,for instance.
And although the new tablet is the first to ship with Android 4. 3,it’s available to download on other devices,including last year’s Nexus 7.
What the new tablet does offer is the promise of a longer battery life _ up to 10 hours for Web surfing and nine hours for video streaming. Last year’s model was rated at eight hours.
There’s no question the new model is better and worth the price increase.
Choosing between the new Nexus 7 and the iPad Mini is tougher.
If you already have an iPhone,the iPad Mini will be a nice complement. You won’t have to buy music,video and apps twice,for instance. You might want to wait until this fall,though,to see whether Apple comes out with a new model.
It’s a tougher call if you have an Android phone.
By volume,the two systems have a comparable number of apps. But I’ve found that many larger app developers have made versions only for the iPhone and the iPad.
Android is good in that many apps designed for a phone’s smaller screen are automatically adapted to take advantage of a tablet’s larger screen. On the iPad,apps that aren’t optimized for it are squeezed into a smaller window the size of an iPhone. Blow it up to full screen,and it looks distorted. But that’s not as glaring on the Mini as it is on the full-size iPad. And having apps automatically change their layout isn’t the same as designing them for the tablet from scratch,as is the case with the hundreds of thousands of apps optimized for the iPad.
The Nexus 7’s screen is much sharper than that on the iPad Mini,which has the non-HD display technology of the iPad 2 from 2011 ancient in the world of mobile gadgets. The Nexus 7 is also a tad lighter,by 6 percent.
That said,the iPad Mini has a larger screen,measuring 7. 9 inches diagonally compared with 7 inches on the Nexus. And the iPad Mini has had a rear camera from the start. The iPad Mini also has Siri,a voice assistant that is feistier than Google Now on the Nexus. If you prefer Google Now for its ability to give you information you need to know without even asking,you can download it on the Mini. You can’t get Siri on the Nexus.
If you do get the Nexus 7,it supports wireless charging,so you can get rid of the messy wiring. The device comes only with a standard microUSB charger to plug in,so you’ll have to buy a Qi-compatible wireless charger yourself.
The $229 base model comes with 16 gigabytes of storage. For $40 more,or $269,you get twice the storage. Both will go on sale in the U. S. next Tuesday. A 32-gigabyte model with 4G cellular capability will cost $349. By contrast,the iPad Mini starts at $329. A 32-gigabyte version with 4G costs $559.
Even with the price increase,Google has Apple beaten on price. The Nexus 7 may lack the cachet and many of the apps that the iPad Mini has,but you’ll be able to do a lot with it. I hope technology companies won’t make price hikes a habit,but this one is made palatable by the device’s richer display,sound and camera.
The updated Nexus 7 sports a sharper,7-inch screen and better sound through dual speakers. It now has a rear,5-megapixel camera to complement a 1. 2-megapixel front-facing camera. It comes with an Android update that features the ability to create restricted accounts for kids.
It also comes with a higher price tag. The base model with 16 gigabytes costs $229,or $30 more than last year’s model. A 32-gigabyte model costs $269,or $20 more. A 32-gigabyte model with 4G cellular capability will cost $349,$50 more than before.
The device is made by AsusTek Computer Inc. ,working from Google’s design. | english |
- 5 hrs ago From Genetics To Climate: Is The Dengue Virus Changing?
- 7 hrs ago World Mojito Day: The Mojito Diet, Can This Classic Cocktail Help You Lose Weight?
This morning, we have a surprise for you - rava roti! In South India, rava roti is a common breakfast meal which is generally loved by all. Kids of all ages indulge in this healthy breakfast treat for stamina through the day. The older folks only love this recipe because it is light on the tummy, easy for digestion.
However, to prepare this healthy rava roti recipe it requires a lot of patience and time. The rava which is used to make the roti should be fried a little before preparing to add in a little flavour to the roti. The only reason why many prefer having rava roti for breakfast is only because you can combine any side dish with it. A variety of chutneys or other gravies can be paired with the roti.
To make this yummy and healthy rava roti recipe, here is a simple procedure for you to follow. Take a look:
- Rava - 1 Cup (fried a little)
- Coconut - 3 Tbsp (grated)
- Ginger - 1/4 tsp (grated)
- Chillies - 2-3 green (finely chopped)
Procedure:
- To begin - First you need to mix all ingredients together with the help of water, to form flexible dough.
- When done, keep the dough aside for at least 20 minutes.
- After the time period, start by taking a small portion of the dough and make the round shaped rotis.
- As soon as you are done, pat it on a greased tava.
- Cook until slightly brown over a medium or low flame.
- Make sure that you flip the rava roti on both the sides for it to cook well.
Your rava roti is now ready to serve. You can only enjoy this yummy and healthy breakfast recipe when hot. | english |
#include "qplacemanagerenginegooglemaps.h"
#include "qplacesearchreplygooglemaps.h"
#include "qplacecategoriesreplygooglemaps.h"
#include "qplacesearchsuggestionreplyimpl.h"
#include <QtCore/QUrlQuery>
#include <QtCore/QXmlStreamReader>
#include <QtCore/QRegularExpression>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkReply>
#include <QtPositioning/QGeoCircle>
#include <QtLocation/private/unsupportedreplies_p.h>
#include <QtCore/QElapsedTimer>
namespace
{
QString SpecialPhrasesBaseUrl = QStringLiteral("http://wiki.openstreetmap.org/wiki/Special:Export/Nominatim/Special_Phrases/");
QString nameForTagKey(const QString &tagKey)
{
if (tagKey == QLatin1String("aeroway"))
return QPlaceManagerEngineGooglemaps::tr("Aeroway");
else if (tagKey == QLatin1String("amenity"))
return QPlaceManagerEngineGooglemaps::tr("Amenity");
else if (tagKey == QLatin1String("building"))
return QPlaceManagerEngineGooglemaps::tr("Building");
else if (tagKey == QLatin1String("highway"))
return QPlaceManagerEngineGooglemaps::tr("Highway");
else if (tagKey == QLatin1String("historic"))
return QPlaceManagerEngineGooglemaps::tr("Historic");
else if (tagKey == QLatin1String("landuse"))
return QPlaceManagerEngineGooglemaps::tr("Land use");
else if (tagKey == QLatin1String("leisure"))
return QPlaceManagerEngineGooglemaps::tr("Leisure");
else if (tagKey == QLatin1String("man_made"))
return QPlaceManagerEngineGooglemaps::tr("Man made");
else if (tagKey == QLatin1String("natural"))
return QPlaceManagerEngineGooglemaps::tr("Natural");
else if (tagKey == QLatin1String("place"))
return QPlaceManagerEngineGooglemaps::tr("Place");
else if (tagKey == QLatin1String("railway"))
return QPlaceManagerEngineGooglemaps::tr("Railway");
else if (tagKey == QLatin1String("shop"))
return QPlaceManagerEngineGooglemaps::tr("Shop");
else if (tagKey == QLatin1String("tourism"))
return QPlaceManagerEngineGooglemaps::tr("Tourism");
else if (tagKey == QLatin1String("waterway"))
return QPlaceManagerEngineGooglemaps::tr("Waterway");
else
return tagKey;
}
}
static bool addAtForBoundingArea(const QGeoShape &area,
QUrlQuery *queryItems)
{
QGeoCoordinate center = area.center();
if (!center.isValid())
return false;
queryItems->addQueryItem(QStringLiteral("location"),
QString::number(center.latitude()) +
QLatin1Char(',') +
QString::number(center.longitude()));
// for google maps the shape has to be a circle
QGeoCircle* cirle = new QGeoCircle(area);
if(cirle != NULL)
{
qreal radiusCorrected = cirle->radius();
if(radiusCorrected < 1)
radiusCorrected = 1;
queryItems->addQueryItem(QStringLiteral("radius"),
QString::number(radiusCorrected));
}
return true;
}
QPlaceManagerEngineGooglemaps::QPlaceManagerEngineGooglemaps(const QVariantMap ¶meters,
QGeoServiceProvider::Error *error,
QString *errorString)
: QPlaceManagerEngine(parameters), m_networkManager(new QNetworkAccessManager(this)),
m_categoriesReply(0)
{
// if (parameters.contains(QStringLiteral("ors.useragent")))
// m_userAgent = parameters.value(QStringLiteral("ors.useragent")).toString().toLatin1();
// else
// m_userAgent = "Qt Location based application";
if (parameters.contains(QStringLiteral("googlemaps.places.apikey")))
m_apiKey = parameters.value(QStringLiteral("googlemaps.places.apikey")).toString().toLatin1();
else
m_apiKey = parameters.value(QStringLiteral("googlemaps.apikey")).toString().toLatin1();
// if (parameters.contains(QStringLiteral("Ors.places.host")))
// m_urlPrefix = parameters.value(QStringLiteral("Ors.places.host")).toString();
// else
m_urlPrefix = QStringLiteral("https://maps.googleapis.com/maps/api/place");
*error = QGeoServiceProvider::NoError;
errorString->clear();
}
QPlaceManagerEngineGooglemaps::~QPlaceManagerEngineGooglemaps()
{
}
QPlaceSearchReply *QPlaceManagerEngineGooglemaps::search(const QPlaceSearchRequest &request)
{
bool unsupported = false;
// Only public visibility supported
unsupported |= request.visibilityScope() != QLocation::UnspecifiedVisibility &&
request.visibilityScope() != QLocation::PublicVisibility;
unsupported |= request.searchTerm().isEmpty() && request.categories().isEmpty();
if (unsupported)
return QPlaceManagerEngine::search(request);
QUrlQuery queryItems;
queryItems.addQueryItem(QStringLiteral("format"), QStringLiteral("jsonv2"));
//queryItems.addQueryItem(QStringLiteral("accept-language"), QStringLiteral("en"));
QGeoRectangle boundingBox;
QGeoShape searchArea = request.searchArea();
switch (searchArea.type()) {
case QGeoShape::CircleType: {
QGeoCircle c(searchArea);
qreal radius = c.radius();
if (radius < 0)
radius = 50000;
boundingBox = QGeoRectangle(c.center().atDistanceAndAzimuth(radius, -45),
c.center().atDistanceAndAzimuth(radius, 135));
break;
}
case QGeoShape::RectangleType:
boundingBox = searchArea;
break;
default:
;
}
if (!boundingBox.isEmpty()) {
queryItems.addQueryItem(QStringLiteral("bounded"), QStringLiteral("1"));
QString coordinates;
coordinates = QString::number(boundingBox.topLeft().longitude()) + QLatin1Char(',') +
QString::number(boundingBox.topLeft().latitude()) + QLatin1Char(',') +
QString::number(boundingBox.bottomRight().longitude()) + QLatin1Char(',') +
QString::number(boundingBox.bottomRight().latitude());
queryItems.addQueryItem(QStringLiteral("viewbox"), coordinates);
}
QStringList queryParts;
if (!request.searchTerm().isEmpty())
queryParts.append(request.searchTerm());
foreach (const QPlaceCategory &category, request.categories()) {
QString id = category.categoryId();
int index = id.indexOf(QLatin1Char('='));
if (index != -1)
id = id.mid(index+1);
queryParts.append(QLatin1Char('[') + id + QLatin1Char(']'));
}
queryItems.addQueryItem(QStringLiteral("q"), queryParts.join(QLatin1Char('+')));
QVariantMap parameters = request.searchContext().toMap();
QStringList placeIds = parameters.value(QStringLiteral("ExcludePlaceIds")).toStringList();
if (!placeIds.isEmpty())
queryItems.addQueryItem(QStringLiteral("exclude_place_ids"), placeIds.join(QLatin1Char(',')));
queryItems.addQueryItem(QStringLiteral("addressdetails"), QStringLiteral("1"));
QUrl requestUrl(m_urlPrefix);
requestUrl.setQuery(queryItems);
QNetworkReply *networkReply = m_networkManager->get(QNetworkRequest(requestUrl));
QPlaceSearchReplyGooglemaps *reply = new QPlaceSearchReplyGooglemaps(request, networkReply, this);
connect(reply, SIGNAL(finished()), this, SLOT(replyFinished()));
connect(reply, SIGNAL(error(QPlaceReply::Error,QString)),
this, SLOT(replyError(QPlaceReply::Error,QString)));
return reply;
}
QPlaceSearchSuggestionReply *QPlaceManagerEngineGooglemaps::searchSuggestions(const QPlaceSearchRequest &query)
{
bool unsupported = false;
unsupported |= query.visibilityScope() != QLocation::UnspecifiedVisibility &&
query.visibilityScope() != QLocation::PublicVisibility;
unsupported |= !query.categories().isEmpty();
unsupported |= !query.recommendationId().isEmpty();
if (unsupported) {
QPlaceSearchSuggestionReplyImpl *reply = new QPlaceSearchSuggestionReplyImpl(0, this);
connect(reply, SIGNAL(finished()), this, SLOT(replyFinished()));
connect(reply, SIGNAL(error(QPlaceReply::Error,QString)),
this, SLOT(replyError(QPlaceReply::Error,QString)));
QMetaObject::invokeMethod(reply, "setError", Qt::QueuedConnection,
Q_ARG(QPlaceReply::Error, QPlaceReply::BadArgumentError),
Q_ARG(QString, "Unsupported search request options specified."));
return reply;
}
QUrl requestUrl(m_urlPrefix + QStringLiteral("/autocomplete/json"));
QUrlQuery queryItems;
queryItems.addQueryItem(QStringLiteral("input"), query.searchTerm());
if (!addAtForBoundingArea(query.searchArea(), &queryItems)) {
QPlaceSearchSuggestionReplyImpl *reply = new QPlaceSearchSuggestionReplyImpl(0, this);
connect(reply, SIGNAL(finished()), this, SLOT(replyFinished()));
connect(reply, SIGNAL(error(QPlaceReply::Error,QString)),
this, SLOT(replyError(QPlaceReply::Error,QString)));
QMetaObject::invokeMethod(reply, "setError", Qt::QueuedConnection,
Q_ARG(QPlaceReply::Error, QPlaceReply::BadArgumentError),
Q_ARG(QString, "Invalid search area provided"));
return reply;
}
requestUrl.setQuery(queryItems);
QNetworkReply *networkReply = sendRequest(requestUrl);
QPlaceSearchSuggestionReplyImpl *reply = new QPlaceSearchSuggestionReplyImpl(networkReply, this);
connect(reply, SIGNAL(finished()), this, SLOT(replyFinished()));
connect(reply, SIGNAL(error(QPlaceReply::Error,QString)),
this, SLOT(replyError(QPlaceReply::Error,QString)));
return reply;
}
QPlaceReply *QPlaceManagerEngineGooglemaps::initializeCategories()
{
// Only fetch categories once
if (m_categories.isEmpty() && !m_categoriesReply) {
m_categoryLocales = m_locales;
m_categoryLocales.append(QLocale(QLocale::English));
fetchNextCategoryLocale();
}
QPlaceCategoriesReplyGooglemaps *reply = new QPlaceCategoriesReplyGooglemaps(this);
connect(reply, SIGNAL(finished()), this, SLOT(replyFinished()));
connect(reply, SIGNAL(error(QPlaceReply::Error,QString)),
this, SLOT(replyError(QPlaceReply::Error,QString)));
// TODO delayed finished() emission
if (!m_categories.isEmpty())
reply->emitFinished();
m_pendingCategoriesReply.append(reply);
return reply;
}
QString QPlaceManagerEngineGooglemaps::parentCategoryId(const QString &categoryId) const
{
Q_UNUSED(categoryId)
// Only a two category levels
return QString();
}
QStringList QPlaceManagerEngineGooglemaps::childCategoryIds(const QString &categoryId) const
{
return m_subcategories.value(categoryId);
}
QPlaceCategory QPlaceManagerEngineGooglemaps::category(const QString &categoryId) const
{
return m_categories.value(categoryId);
}
QList<QPlaceCategory> QPlaceManagerEngineGooglemaps::childCategories(const QString &parentId) const
{
QList<QPlaceCategory> categories;
foreach (const QString &id, m_subcategories.value(parentId))
categories.append(m_categories.value(id));
return categories;
}
QList<QLocale> QPlaceManagerEngineGooglemaps::locales() const
{
return m_locales;
}
void QPlaceManagerEngineGooglemaps::setLocales(const QList<QLocale> &locales)
{
m_locales = locales;
}
void QPlaceManagerEngineGooglemaps::categoryReplyFinished()
{
QNetworkReply *reply = qobject_cast<QNetworkReply *>(sender());
if (!reply)
return;
reply->deleteLater();
QXmlStreamReader parser(reply);
while (!parser.atEnd() && parser.readNextStartElement()) {
if (parser.name() == QLatin1String("mediawiki"))
continue;
if (parser.name() == QLatin1String("page"))
continue;
if (parser.name() == QLatin1String("revision"))
continue;
if (parser.name() == QLatin1String("text")) {
// parse
QString page = parser.readElementText();
QRegularExpression regex(QStringLiteral("\\| ([^|]+) \\|\\| ([^|]+) \\|\\| ([^|]+) \\|\\| ([^|]+) \\|\\| ([\\-YN])"));
QRegularExpressionMatchIterator i = regex.globalMatch(page);
while (i.hasNext()) {
QRegularExpressionMatch match = i.next();
QString name = match.capturedRef(1).toString();
QString tagKey = match.capturedRef(2).toString();
QString tagValue = match.capturedRef(3).toString();
QString op = match.capturedRef(4).toString();
QString plural = match.capturedRef(5).toString();
// Only interested in any operator plural forms
if (op != QLatin1String("-") || plural != QLatin1String("Y"))
continue;
if (!m_categories.contains(tagKey)) {
QPlaceCategory category;
category.setCategoryId(tagKey);
category.setName(nameForTagKey(tagKey));
m_categories.insert(category.categoryId(), category);
m_subcategories[QString()].append(tagKey);
emit categoryAdded(category, QString());
}
QPlaceCategory category;
category.setCategoryId(tagKey + QLatin1Char('=') + tagValue);
category.setName(name);
if (!m_categories.contains(category.categoryId())) {
m_categories.insert(category.categoryId(), category);
m_subcategories[tagKey].append(category.categoryId());
emit categoryAdded(category, tagKey);
}
}
}
parser.skipCurrentElement();
}
if (m_categories.isEmpty() && !m_categoryLocales.isEmpty()) {
fetchNextCategoryLocale();
return;
} else {
m_categoryLocales.clear();
}
foreach (QPlaceCategoriesReplyGooglemaps *reply, m_pendingCategoriesReply)
reply->emitFinished();
m_pendingCategoriesReply.clear();
}
void QPlaceManagerEngineGooglemaps::categoryReplyError()
{
foreach (QPlaceCategoriesReplyGooglemaps *reply, m_pendingCategoriesReply)
reply->setError(QPlaceReply::CommunicationError, tr("Network request error"));
}
void QPlaceManagerEngineGooglemaps::replyFinished()
{
QPlaceReply *reply = qobject_cast<QPlaceReply *>(sender());
if (reply)
emit finished(reply);
}
void QPlaceManagerEngineGooglemaps::replyError(QPlaceReply::Error errorCode, const QString &errorString)
{
QPlaceReply *reply = qobject_cast<QPlaceReply *>(sender());
if (reply)
emit error(reply, errorCode, errorString);
}
void QPlaceManagerEngineGooglemaps::fetchNextCategoryLocale()
{
if (m_categoryLocales.isEmpty()) {
qWarning("No locales specified to fetch categories for");
return;
}
QLocale locale = m_categoryLocales.takeFirst();
// FIXME: Categories should be cached.
QUrl requestUrl = QUrl(SpecialPhrasesBaseUrl + locale.name().left(2).toUpper());
m_categoriesReply = m_networkManager->get(QNetworkRequest(requestUrl));
connect(m_categoriesReply, SIGNAL(finished()), this, SLOT(categoryReplyFinished()));
connect(m_categoriesReply, SIGNAL(error(QNetworkReply::NetworkError)),
this, SLOT(categoryReplyError()));
}
QNetworkReply *QPlaceManagerEngineGooglemaps::sendRequest(const QUrl &url)
{
QUrlQuery queryItems(url);
queryItems.addQueryItem(QStringLiteral("key"), m_apiKey);
QUrl requestUrl = url;
requestUrl.setQuery(queryItems);
QNetworkRequest request;
request.setUrl(requestUrl);
request.setRawHeader("Accept", "application/json");
// request.setRawHeader("Accept-Language", createLanguageString());
return m_networkManager->get(request);
}
| cpp |
[{"type":"dictionary","name":"IIRFilterOptions","inheritance":"AudioNodeOptions","members":[{"type":"field","name":"feedforward","extAttrs":[],"idlType":{"type":"dictionary-type","extAttrs":[],"generic":"sequence","nullable":false,"union":false,"idlType":[{"type":"dictionary-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"double"}]},"default":null,"required":true},{"type":"field","name":"feedback","extAttrs":[],"idlType":{"type":"dictionary-type","extAttrs":[],"generic":"sequence","nullable":false,"union":false,"idlType":[{"type":"dictionary-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"double"}]},"default":null,"required":true}],"extAttrs":[],"partial":false},{"type":"interface","name":"IIRFilterNode","inheritance":"AudioNode","members":[{"type":"operation","name":"getFrequencyResponse","idlType":{"type":"return-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"void"},"arguments":[{"type":"argument","name":"frequencyHz","extAttrs":[],"idlType":{"type":"argument-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"Float32Array"},"default":null,"optional":false,"variadic":false},{"type":"argument","name":"magResponse","extAttrs":[],"idlType":{"type":"argument-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"Float32Array"},"default":null,"optional":false,"variadic":false},{"type":"argument","name":"phaseResponse","extAttrs":[],"idlType":{"type":"argument-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"Float32Array"},"default":null,"optional":false,"variadic":false}],"extAttrs":[],"special":""}],"extAttrs":[{"type":"extended-attribute","name":"Pref","rhs":{"type":"string","value":"\"dom.webaudio.enabled\""},"arguments":[]},{"type":"extended-attribute","name":"Constructor","rhs":null,"arguments":[{"type":"argument","name":"context","extAttrs":[],"idlType":{"type":"argument-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"BaseAudioContext"},"default":null,"optional":false,"variadic":false},{"type":"argument","name":"options","extAttrs":[],"idlType":{"type":"argument-type","extAttrs":[],"generic":"","nullable":false,"union":false,"idlType":"IIRFilterOptions"},"default":null,"optional":false,"variadic":false}]}],"partial":false}] | json |
{
"@metadata": {
"authors": [
"<NAME>",
"MokaAkashiyaPT"
]
},
"inputbox-tryexact": "Tentar la spresson eisata"
}
| json |
<filename>HeejinKim/java/homework/25th_1/src/Snaiper.java
public class Snaiper extends Adventurer{
final int SNIPER_BONUS = 500; //레벨업
final float SNIPER_MAJOR_COEF = 3.1f; //계수로 사용
final float SNIPER_MINOR_COEF = 1.5f;
public Snaiper(){
super();
sniperPromotionBonus();
}
public void sniperPromotionBonus(){ //레벨업 스탯 계수
pAtk += (SNIPER_BONUS * SNIPER_MAJOR_COEF);
str += (MINOR * SNIPER_MINOR_COEF);
con += (MINOR * SNIPER_MINOR_COEF);
dex += (MAJOR * SNIPER_MAJOR_COEF);
agi += (MAJOR * SNIPER_MAJOR_COEF);
iq += MINOR;
men += MINOR;
}
public int calcBurstShotDamage (Object target ) { //펜릴 자체를 오브젝트로 만들자자
return (int) (5 * (pAtk - target.pDef) *
( (dex - target.con) * 1.5 + (agi - target.con) * 1.2) );
}
//스킬은 하나만
@Override
public void qSkill() {
}
}
| java |
The Kannada and Culture Department has invited applications from art troupes from the district for sponsoring them. The selection will be held separately for four categories — folk troupes, music, dance and theatre. The application forms are available at Kannada and Culture Department Office at Kalamandira. The last date for submission of application forms is July 20. For more details, call Ph: 0821-2513225. | english |
{
"name": "load_test_nodejs",
"version": "1.0.0",
"description": "Test Server Load Using Node Js",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rlama7/loadTestNodeJS.git"
},
"keywords": [
"Load",
"Test",
"Server",
"Load",
"NodeJS"
],
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/rlama7/loadTestNodeJS/issues"
},
"homepage": "https://github.com/rlama7/loadTestNodeJS#readme",
"dependencies": {
"axios": "^0.20.0",
"child_process": "^1.0.2",
"minimist": "^1.2.5"
}
}
| json |
NFL joint practices are one of the most interesting parts of the offseason. After they were prohibited in 2020 due to Covid, they are most important than ever.
Earlier this year, the league announced that the regular season would be expanded to 17 games: the NFL’s biggest ever season. To accommodate the extra game, the preseason has been cut from 4 games to 3.
On top of this, the coronavirus has once again affected certain aspects of the offseason, specifically voluntary activities like OTAs. Of course, minicamp and training camp will go ahead as normal, but coaches undoubtedly have a harder job preparing their team for the season.
This is why the return of joint practices are good news for NFL teams. Plus, one can hope for another iconic moment like DeAndre Hopkins snatching a trash talking DeAngelo Hall’s ankles back in 2015.
Which NFL Teams Will Have Joint Practices in 2021?
Today, 9news reported that the Broncos and Vikings are finalizing plans to hold a joint practice in August. The 2 teams play their first preseason game against each other on August 14th and US Bank Stadium. The practices would likely be held in the week leading up to game, at the Vikings’ training facility in Eagan.
Earlier, other teams also confirmed their plans to hold joint practices. Rams HC Sean McCoy, a fan of joint practices, said the team would train with the Cowboys and the Raiders at some point in the offseason.
The Buccaneers and Titans also have tentative plans to work together. They have already done it in 2018, and Tom Brady and Tennessee HC Mike Vrabel have a unique relationship, going back to their time as teammates in Boston.
Other teams are likely to announce joint practices over the next month or so. The Patriots have plans to work with the Eagles and Giants, 2 NFC East teams who they’ve played twice each in the Super Bowl.
In contrast, Lions head coach Dan Campbell expects his team to practice alone this year. “I actually did reach out to some coaches, and I’ll be honest with you, I got in on it a little bit late,” he said.
| english |
<filename>fhirVersions/hl7.fhir.r3.core-3.0.2/package/CodeSystem-v2-0933.json
{"resourceType":"CodeSystem","id":"v2-0933","meta":{"profile":["http://hl7.org/fhir/StructureDefinition/shareablecodesystem"]},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status","valueString":"External"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":0}],"url":"http://hl7.org/fhir/v2/0933","identifier":{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.18.434"},"version":"2.8.2","name":"v2 Intended Procedure Type","status":"active","experimental":false,"publisher":"HL7, Inc","contact":[{"telecom":[{"system":"url","value":"http://hl7.org"}]}],"description":"FHIR Value set/code system definition for HL7 v2 table 0933 ( Intended Procedure Type)","caseSensitive":false,"valueSet":"http://hl7.org/fhir/ValueSet/v2-0933","content":"complete","concept":[{"code":"2RC","display":"Double Red Cells"},{"code":"GRN","display":"Granulocytes"},{"code":"HEM","display":"Hemachromatosis"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/codesystem-comments","valueString":"Stem Cells and other cells classified as Hematopoietic"}],"code":"HPC","display":"Hematopoietic Progenitor Cells"},{"code":"LYM","display":"Lymphocytes"},{"code":"PLS","display":"Plasma"},{"code":"PLT","display":"Platelets"},{"code":"PNP","display":"Platelets and Plasma"},{"code":"PNR","display":"Platelets and Red Cells"},{"code":"PPR","display":"Platelets, Plasma, and Red Cells"},{"code":"THA","display":"Therapeutic Apheresis"},{"code":"THW","display":"Therapeutic Whole Blood"},{"code":"WBL","display":"Whole Blood"}]} | json |
RAY, A.N.
RAY, A.N.
SIKRI, S.M. (CJ) GROVER, A.N.
PALEKAR, D.G.
Tariff Act 1934--S. 44--Whether notification under S. 44 is applicable to the fact find circumstances of the case.
The appellant on 26th July 1966 filed, shipping bill in triplicate before the Joint Chief Controller of Imports and Exports for the porpose of obtaining export licences in respect of 10,160. metric tonnes of iron ore. On 28 July 1966 export licence was granted to the appellant. On 30 July 1966 the agents of the vessel made an application to the Asstt. Collector of Customs, for the grant of entry outward to the said vessel to load iron ore, which was granted- on the same day with permission to ship cargo on board the said vessel. On 1 August, the appellant presented to the Customs authority under section 50 of the Customs Act, 1962., shipping bills in triplicate and the Customs authority made several endorsements on the shipping bill on the same day. On, the2 August 1966, further endorsements-on the shipping bill was made by the Customs authority indicating that the shipment was inspected, checked and payment was made in full.
On 2 August 1966, a notification was issued by the Ministry of Commerce imposing a duty at the rate of Rs. 10 per metric tonne on lumpy iron ore. and on 28 January 1967, the Customs authority issued a notice to the appellant notifying that goods actually shipped by the appellant were subject to export duty and the appellant was liable to pay Rs. 98044 and the appellant was called upon to show cause as to why the amount should not be recovered from him.
The appellant contended that the shipping bill was presented to the., Customs authority and the entry outward to-the ship was given prior to 2 August, 1966 when the notification came into force and so, the notification under S. 4A of the Tariff Act 1934 was not applicable to the consignment in question. The Customs authorities held that the appellant was liable to pay the export duty. The appellant impeached the order before the Judicial Commissioner Who also upheld the order of the Customs authorities.
The only question which arose for decision before this Court was whether the shipment and export of iron ore by the appellant became liable to the said duty introduced on 2 August 1966. The appellant contended that the shipping bill was presented on 1 August, 1966 and the order of the Customs authorities for entry outwards to the vessel was also given on 1 August 1966 and so, the export in the present case was not liable to payment of duty imposed on 2 August 1966. The Customs authorities however contended that the vessel arrived at Marmagoa barhour on 3 August 1966 and the vessel commenced loading on 3 August, 1966, and therefore, under s. 16(i) of the Customs Act 1962, the shipping 875 bill which had been presented before the date of entry outwards "shall be, deemed to be presented at the earliest on 3 August 1966 when the vessel in question arrived.
Allowing the appeal,
CIVIL APPELLATE JURISDICTION : Civil Appeal No. 2137 of 1968.
Appeal from the judgment and order dated April 5, 1968 of the Judicial Commissioner's Court , G a, Daman and Diu in Writ Petition No. 9 of'1967.
Soli Sorabji, P. C. Bhartari, B. D. Bharucha, J. B.
Dadachanj'i and Ravinder Narain, for the appellant.
Jagadish Swarup, Solicitor-General of India, Govind Das and B. D. Sharma, for the respondents.
The Judgment of the Court was delivered by Raj, J. This is an appeal by certificate from the, judgment dated 5 April, 1968 of the Court of the Judicial Commissioner, Goa, Daman and Diu at Panaji.
The appellant challenged the levy of export duty of Rs.
98044 on 9804-40 metric tonnes of iron ore shipped on S.S.
'Ardenode' on 3 August, 1966 at the rate of Rs. 10 per metric tonne.
The appellant on 26 July, 1966 filed shipping bill in triplicate before the Joint Chief Controller of Imports and Exports Panaji, Goa for the purpose of obtaining export licence in respect of 10,160 metric tonnes of iron ore. On 28 July, 1966 export licence was granted to the appellant.
971 appeal to voters that voting for Congress would amount to a sin.. Reading the evidence in print one gets the impression that each witness came prepared to play the part assigned to him.
Exhibit R-1/8 dated 26 August, 1966 is a notice for a meeting of the Congress Committee at Singoli. Exhibit R- 1/50 dated 26 August, 1966 is the draft resolution of that committee meeting., It is written by the respondent.
Exhibit R-1/5 dated 26 August, 1966 contains the minutes of the meeting at Singoli. Exhibit R-1/6 contains the minutes of the meeting of the Congress committee at Singoli on 2 October, 1966. These documents show that Paras Ram, Bhanwar Lai and Ram Chandra Sharma were connected with the Congress Organisation. The respondent was also associated with the Congress committee. The minutes showed that Ratan Lai Petlia was a member of the committee. The respondent's witnesses stated that Ratan Lai Petlia was a worker of the Jan Sangh. The reason for saying so was that Ratan Lai Petlia was cited by the appellant as a witness. The records show that Ratan Lai Petlia was associated with the Congress Organisation. Patan Lai Petlia R. 1 W. 10 said that he was associated with the Congress Organisation at Singoli. He denied that Swamiji of Bhanpura made any appeal to the voters that voting for Congress would amount to the sin of killing cow. The respondent's witnesses wanted to condemn Ratan Lai Petlia by saying that Ratan Lai Petlia made arrangements for Jan Sangh. That is another illustration of the partisan character of the respondent's witnesses.
Nathu Lal P.W. 19 was believed by the High Court. It tran- spired in the evidence that Nathu Lai became liable to pay Rs. 372.06 to Krishi Sewa Sehkari Samiti and also to account for 73 bags of super-phosphate. Nathu Lai signed the document R-1/15. At the time of giving evidence he said it was Chhote Lai who promised to pay and account for the phosphate. He did not rest content with that position. He said that he signed the document as a member. The High Court did not consider these justified criticisms of the evidence adduced on behalf of th respondent, Manna Lai P.W. 20 gave evidence not only about the speech of Swamiji of Bhanpura at Singoli on 15 February, 1967 but also of the speech of the appellant at Singoli on 29 January, 1967. As to the appellant's speech Manna Lai said that the appellant talked of 'cow killing Congress 10 times' and that is how he remembered the speech. He narrated the speech of the appellant like other witnesses in the same language.
Manna Lai said that Swamiji of Bhanpura spoke about voting for dharma and cow. Manna Lal came to court from Singoli along with Ram Chandra Sharma.
The overwhelming impression produced by the witnesses on behalf of the respondent is that they were all prepared on the same 876 Hiralal & Co. agents of the vessel S. S. 'Ardenode' made an application to the Assistant Collector of Customs, Marmagoa for the grant of entry outwards to the said vessel to load iron ore.
On 30 July, 1966 the Assistant Collector of Customs, Marmagoa made an order granting entry outwards to the said vessel S.S.
Ardenode and also gave permission to ship cargo on board the said vessel.
On 1 August, 1966 the appellant presented to the Customs authorities under section 50 of the Customs Act, 1962, (herein- after called the Act), shipping bills in triplicate, dated 26 July, 1966. The appellant in accordance with the provisions of section 50 of the Act at the foot of the shipping bill subscribed to a declaration as to the truth of the contents of the shipping bills. On 1 August, 1966 the Customs authorities made these entries on the shipping- bill 'rotation No. 730 Sd/ 1 August, 1966 'Let export after examination if necessary Sd/- 1 August, 1966' and. 'E.F.No. 3/1/8/1966'. The abbreviation 'E.F.' means Export Fee. On 2 August 1966 the Customs authorities made further endorsements on the shipping bill. These endorsements were PI as usual and checked des'; 'Inspected the lot-2-barges- checlkeci des'; and Pd in full'.
On 2 August, 1966 there was a notification issued, by the Ministry of Commerce in exercise of powers conferred by section 4-A of the Indian Tariff Act, 1934 amending the second schedule to the Tariff Act. The relevant item in the said schedule introduced by way amendment is 28 and the name of the article is lumpy iron ore and the rate of duty is Rs. 10 per tonne.
The S.S. Ardenode arrived at Marmagoa at 23.20 hours on 2 August, 1966. The vessel arrived at Marmagoa Inner Harbour on (3) August, 1966 at 07.50 hour-,. The vessel commenced loading the cargo on 3 August, 1966.
The Customs authorities on 28 January, 1967 issued a notice to the appellant notifying that the goods actually shipped by the appellant were subject to export duty at the rate of Rs. 10 Per metric tonne and the custom duty amounting to Rs. 98044 which was not levied in respect of the consignment was due from the appellant and the appellant was called upon in accordance with section 28 of the Act as to why the amount should not be recover- ed from the appellant.
The appellant contended before the Customs authorities that the shipping bill was presented to the Customs authorities and the entry outwards to the ship S.S. Ardenode was given prior to 2 August, 1966 when no duty was payable in respect of the export of the goods in question. The appellant, therefore, contended 877 the notification under section 4-A of the Tariff Art 1934 was not applicable to the consignment and no duty was payable in respect of the export of the having regard to the provisions of section 16 of the Customs Act. It may also be stated that the appellant impeached the vires of the notification.
The Customs authorities on 19 April, 1967 held that by virtue of the provisions of section 16(1) of the Act the shipping bill shall be deemed to have been presented at the earliest on 3 August, 1966 when the vessel in question arrived. The export duty was levied with effect from 2 August, 1966. The Customs authorities therefore held that the appellant was liable to pay the export duty.
The appellant impeached the order of the Customs authorities under Article 226 of the Constitution in the Court of the Judicial Commissioner, Goa, Daman and Diu, Panaji. The Judicial Commissioner upheld the order of the Customs authorities.
The entire controversy in the present appeal is whether shipment and export of iron ore by the appellant became liable to the said duty introduced on 2 August, 1966.
The relevant provisions for the purpose of the present appeal are to be found in section 16 which deals with date for determination of rate of duty and tariff valuation of export goods and sections 39, 50 and 51 which deal with loading of export goods on vessel and clearance of goods for exportation.
Section 16 is as follows :- "16(1). The rate of duty and tariff valuation, if any, applicable to any export goods, shall be the rate and valuation in force- (a) in the case of goods entered for export under section 50, on the date on which a shipping bill or a bill of export in respect of such goods is presented under that section;
(b) in the case of any other goods, on the date of payment of duty;
Provided that if the shipping bill has been presented before the date of entry outwards of the vessel by which the goods are to be exported, the shipping bill shall be deemed to have been presented on the date of such entry outwords.
(2) The provisions of this section shall not apply to baggage and goods exported by post.
L1061supCI/27 878 The appellant contended that the shipping bill was presented on 1 August, 1966 and the order of the Customs authorities for entry outwards to the vessel was also given on 1 August, 1966, and, therefore, the export in the present case was not liable to payment of duty imposed on 2 August, 1966. The Customs authorities on the other hand contended that the vessel arrived at Marmagoa on 3 August, 1966 and the vessel commenced loading on 3 August, 1966, and, therefore, the shipping bill which had been presented before the date of entry outwards 'shall be deemed to be presented at the earliest on 3 August, 1966 when the vessel in question arrived'.
The shipping bill under the Customs Act means a shipping bill referred to in section 50 of the Act. Section 50 is as follows:
"50(1). The exporter of any goods shall make entry thereof by presenting to the proper officer in the case of goods to be exported in a vessel or aircraft, a shipping bill, and in the case of goods to be exported by land, a bill of export in the prescribed form.
(2) The exporter of any goods, while presenting a shipping bill or bill of export, shall at the foot thereof make and subscribe to a declaration as to the truth of its contents".
In the present case, it is common case that the shipping bill was presented to the Customs authorities on 1 August, 1966 and the Customs authorities made several endorsements on the shipping bill on the same day. These endorsements permitted export after examination, if necessary. The further endorsements on the shipping bill on 2 August, 1966 indicated that the shipment was inspected, checked and payment in full was made.
Section 51 of the Act is as follows :- "Where the proper officer is satisfied that any goods entered for export are not prohibited goods and the exporter has paid the duty, if any, assessed thereon and any charges payable under this Act in respect of the same, the proper officer may make an order permitting clearance and loading of goods for exportation".
In the present case, the Customs authorities made endorsement on the shipping bill on 1 August, 1966 permitting export after examination, if necessary. The shipping bill described the goods as 'free goods'. Export licence was also granted on that shipping bill. Sections 50 and 51 of the Act deal with entry of goods for exportation and clearance of goods for exportation. The word 880 where the shipping bill was in anticipation of the arrival of any vessel of before an order Was given for entry outwards of the vessel the shipping bill must be deemed to have been delivered on the date on which that vessel arrived or entry outwards was given whichever was later. Under the provisions of section 38 of the 1878 Act the Customs authorities had power to apply the rate in force on the date of the arrival of the vessel. Under section 16 of the 1962 Act it is not permissible to do so. The statute does not contain such a provision. Section 16 of the 1962 Act speaks of the fictional date only in relation to the order of date of entry outwards of the vessel. In the present case, the order of entry outwards of the vessel was made prior to 2 August, 1966. Therefore, the Customs authorities, in the impugned order acted without jurisdiction in imposing duty on the export by holding that the date of entry outwards of the vessel was the date "when the vessel arrived".
For the foregoing reasons the appellant is entitled to an order cancelling the notice dated 28 January, 1967 by which the Customs authorities demand duty from the appellant. The order of the Judicial Commissioner is set aside. There will be a writ setting aside the notice dated 28 January, 1967 and an order for bearing the respondents from taking any steps or proceedings pursuant to the notice dated 28 January, 1967. There will also be an order quashing the order of the Assistant Collector of Customs dated 19 April, 1967 which gave effect to the notice and held the appellant liable to pay the export duty. The appeal Is allowed.
In the facts and circumstances of the case each party will pay and bear their owm costs.
S.C. Appeal allowed.
| english |
Israel has launched a first-of-its-kind project to flow desalinated water from the Mediterranean to the Sea of Galilee in the northeast of the country.
Jerusalem: Israel has launched a first-of-its-kind project to flow desalinated water from the Mediterranean to the Sea of Galilee in the northeast of the country.
With a cost of about 1 billion shekels ($284 million), it is one of the largest water projects in Israel, said a statement issued by the Israel Water Authority.
The project, initiated by the authority and Mekorot, the national water company, will help keep the water level of the Sea of Galilee, a natural water source and national emergency reservoir in dry years, Xinhua news agency reported, citing the statement.
Following droughts between 2013 and 2018, which caused the suspension of water pumping from the Sea of Galilee, the idea to flow desalinated seawater to the lake emerged.
The project will allow water supply throughout the year for the needs of the Israeli economy, including agriculture, alongside regular water supply to Jordan in accordance with the peace agreements between the two countries.
The current first phase of the project includes a section of about 30 km in the Central Galilee region.
In the second phase, pumping stations and ponds will be built near the central city of Rosh HaAyin, to allow the flow of excessive Mediterranean water from new desalination facilities, wells and other sources to the north. | english |
class SettingsCalibration:
"""Период калибровки"""
first_period = 0 # ПК1
second_period = 1 # ПК2
third_period = 2 # ПК3
periods = {
first_period: 1,
second_period: 2,
third_period: 60,
}
class SettingsSpaceCycles:
"""Число циклов космоса"""
cos1 = 0 # КОС1
cos2 = 1 # КОС2
cycles = {
cos1: 2,
cos2: 30,
}
class SettingsBlackBodyCycles:
"""Число циклов абсолютно черного тела (АЧТ)"""
abb1 = 0 # АЧТ1
abb2 = 1 # АЧТ2
cycles = {
abb1: 2,
abb2: 30,
}
class SettingsLane:
"""Полоса обзора"""
first = 0 # ПО1
second = 1 # ПО2
third = 2 # ПО3
fourth = 3 # ПО4
class SettingsGain:
"""Коэффициент усиления"""
gain1 = 0 # КУ1
gain2 = 1 # КУ2
gain3 = 2 # КУ3
class SettingsInterferometerModule:
"""Температура модуля интерферометра (МИ)"""
tim1 = 0 # ТМИ1
tim2 = 1 # ТМИ2
tim3 = 2 # ТМИ3
temperatures = {
tim1: 20.,
tim2: 18.,
tim3: 15.,
}
| python |
<reponame>luis-martinez/cli-games<gh_stars>10-100
{
"name": "maze-escape",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"ansi-escapes": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.2.1.tgz",
"integrity": "<KEY>
"requires": {
"type-fest": "^0.5.2"
}
},
"type-fest": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.5.2.tgz",
"integrity": "<KEY>
}
}
}
| json |
The first ODI match of the Australia Women vs Ireland Women series will see Ireland Women (IR-W) square off against Australia Women (AU-W) at the Castle Avenue in Dublin on Sunday, July 23. Ahead of this exciting match, here's all you need to know about the IR-W vs AU-W Dream11 Prediction, today's playing 11s, fantasy cricket tips, and the pitch report.
Australia Women lost their last ODI series against England Women 2-1 and would try to make a strong comeback in this series. Ireland Women, on the other hand, lost their last series against West Indies Women 2-0.
Given their pedigree, Australia Women are expected to win the upcoming encounter.
The first ODI match of the Australia Women vs Ireland Women series will be played from July 23 at the Castle Avenue in Dublin. The game is set to start at 3:30 pm IST. The live score & commentary of the game can be followed in the Sportskeeda Live Score section.
The pitch at Castle Avenue in Dublin looks good for both batters and bowlers. Bowlers, especially pacers, are expected to find a lot of assistance in the initial overs. Spinners will play an important role in getting wickets in the middle phase of the innings.
The last women's ODI match played on this pitch was between Ireland Women and South Africa Women in 2022, where a total of 367 runs were scored at a loss of 15 wickets.
IR-W - Will be playing their first match of the series.
AU-W - Will be playing their first match of the series.
A Healy is no doubt the best wicket-keeper pick for today's match as she will bat in the top order and has a high chance of scoring well. She is expected to play well in today's match. B Mooney is another good pick for today's nail-biting match.
G Lewis and E Perry are the top batter options for today's Dream11 team. P Litchfield played exceptionally well in the last series, so she is also a good pick for today's Dream11 fantasy team.
L Delany and A Gardner are the best all-rounder picks for the Dream11 team as they will be playing maximum overs during the middle phase of the match. T McGrath is another good all-rounder pick for today's Dream11 team.
The top bowler picks for today's Dream11 team are G Wareham and J Jonassen. Both have bowled brilliantly in the last few matches, and are also expected to bowl in death overs. A King is another good pick for the Dream11 team.
A Gardner will bat in the middle order and also complete her quota of overs, making her the safest pick for the captaincy. She is expected to play a crucial role in today's nail-biting match.
Since the pitch is well-balanced, you can pick E Perry as she will bat in the top order and will also bowl a few overs. You can make her the captain of the grand league teams.
As the pitch is well-balanced, it is advisable to pick at least four all-rounders, who will bat in the top order and also bowl their quota of overs. Making them the captain or vice-captain is another good way to gain maximum points and win grand leagues.
| english |
<reponame>dfirence/pe-compass-samples<gh_stars>1-10
{"pe_name":"taskschd.dll","pe_type":523,"pe_size":759488,"pe_subsystem":3,"pe_subsystem_caption":"The Windows character (Cosole UI) subsystem","pe_path":"c:\\Windows\\WinSxS\\amd64_microsoft-windows-taskscheduler-client_31bf3856ad364e35_10.0.18362.387_none_99a90a0630084f07\\taskschd.dll","pe_timedate_stamp":2271433924,"pe_timedate_human":"2041-12-23T17:52:04.000Z","ImageDLLImports":[{"name":"msvcrt.dll","imports":41,"functions":["??0exception@@QEAA@AEBQEBD@Z","??0exception@@QEAA@AEBQEBDH@Z","??0exception@@QEAA@AEBV0@@Z","??1exception@@UEAA@XZ","??1type_info@@UEAA@XZ","?terminate@@YAXXZ","?what@exception@@UEBAPEBDXZ","_CxxThrowException","_XcptFilter","__C_specific_handler","__CxxFrameHandler3","__dllonexit","_amsg_exit","_initterm","_lock","_onexit","_purecall","_unlock","_vsnwprintf","_wcsicmp","_wcsnicmp","_wcstoui64","_wtol","free","iswdigit","iswspace","malloc","memcmp","memcpy","memcpy_s","memmove","memmove_s","memset","realloc","wcscat_s","wcschr","wcscmp","wcscpy_s","wcsncmp","wcsncpy_s","wcsrchr"]},{"name":"oleaut32.dll","imports":0,"functions":[]},{"name":"api-ms-win-core-synch-l1-1-0.dll","imports":5,"functions":["DeleteCriticalSection","EnterCriticalSection","InitializeCriticalSection","InitializeCriticalSectionEx","LeaveCriticalSection"]},{"name":"api-ms-win-core-libraryloader-l1-2-0.dll","imports":8,"functions":["DisableThreadLibraryCalls","FreeLibrary","GetModuleFileNameW","GetModuleHandleExW","GetModuleHandleW","GetProcAddress","LoadLibraryExW","LoadStringW"]},{"name":"api-ms-win-core-localization-l1-2-0.dll","imports":3,"functions":["GetThreadLocale","GetThreadPreferredUILanguages","SetThreadLocale"]},{"name":"api-ms-win-core-errorhandling-l1-1-0.dll","imports":5,"functions":["GetLastError","RaiseException","SetLastError","SetUnhandledExceptionFilter","UnhandledExceptionFilter"]},{"name":"api-ms-win-core-string-l2-1-0.dll","imports":1,"functions":["CharNextW"]},{"name":"api-ms-win-core-registry-l1-1-0.dll","imports":4,"functions":["RegCloseKey","RegGetValueW","RegOpenKeyExW","RegQueryInfoKeyW"]},{"name":"api-ms-win-core-file-l1-1-0.dll","imports":3,"functions":["CompareFileTime","FileTimeToLocalFileTime","LocalFileTimeToFileTime"]},{"name":"api-ms-win-core-sysinfo-l1-1-0.dll","imports":3,"functions":["GetLocalTime","GetSystemTimeAsFileTime","GetTickCount"]},{"name":"api-ms-win-core-shlwapi-legacy-l1-1-0.dll","imports":1,"functions":["PathFindFileNameW"]},{"name":"ntdll.dll","imports":7,"functions":["EtwTraceMessage","RtlNtStatusToDosError","RtlSubscribeWnfStateChangeNotification","RtlUnsubscribeWnfNotificationWaitForCompletion","RtlUnsubscribeWnfStateChangeNotification","WinSqmAddToStream","WinSqmIsOptedIn"]},{"name":"api-ms-win-core-timezone-l1-1-0.dll","imports":4,"functions":["FileTimeToSystemTime","SystemTimeToFileTime","SystemTimeToTzSpecificLocalTime","TzSpecificLocalTimeToSystemTime"]},{"name":"api-ms-win-core-kernel32-legacy-l1-1-0.dll","imports":1,"functions":["GetComputerNameW"]},{"name":"api-ms-win-core-registry-l1-1-1.dll","imports":2,"functions":["RegDeleteKeyValueW","RegSetKeyValueW"]},{"name":"api-ms-win-core-heap-l2-1-0.dll","imports":2,"functions":["LocalAlloc","LocalFree"]},{"name":"api-ms-win-security-base-l1-1-0.dll","imports":8,"functions":["CopySid","EqualSid","GetLengthSid","GetSidIdentifierAuthority","GetSidSubAuthority","GetSidSubAuthorityCount","IsValidSid","IsWellKnownSid"]},{"name":"api-ms-win-core-heap-l1-1-0.dll","imports":6,"functions":["GetProcessHeap","HeapAlloc","HeapDestroy","HeapFree","HeapReAlloc","HeapSize"]},{"name":"api-ms-win-core-string-l1-1-0.dll","imports":1,"functions":["WideCharToMultiByte"]},{"name":"api-ms-win-core-processenvironment-l1-1-0.dll","imports":1,"functions":["ExpandEnvironmentStringsW"]},{"name":"api-ms-win-core-synch-l1-2-0.dll","imports":1,"functions":["Sleep"]},{"name":"api-ms-win-core-rtlsupport-l1-1-0.dll","imports":3,"functions":["RtlCaptureContext","RtlLookupFunctionEntry","RtlVirtualUnwind"]},{"name":"api-ms-win-core-processthreads-l1-1-0.dll","imports":4,"functions":["GetCurrentProcess","GetCurrentProcessId","GetCurrentThreadId","TerminateProcess"]},{"name":"api-ms-win-core-profile-l1-1-0.dll","imports":1,"functions":["QueryPerformanceCounter"]},{"name":"rpcrt4.dll","imports":7,"functions":["I_RpcExceptionFilter","NdrClientCall3","RpcBindingFree","RpcBindingFromStringBindingW","RpcBindingSetAuthInfoExW","RpcStringBindingComposeW","RpcStringFreeW"]},{"name":"api-ms-win-core-delayload-l1-1-1.dll","imports":1,"functions":["ResolveDelayLoadedAPI"]},{"name":"api-ms-win-core-delayload-l1-1-0.dll","imports":1,"functions":["DelayLoadFailureHook"]}],"ImageDLLExports":{"exports":4,"functions":["DllCanUnloadNow","DllGetClassObject","DllRegisterServer","DllUnregisterServer"]},"ImageHashSignatures":{"md5":"72ca36bbfeb739b71a7aed322aff26ff","sha2":"3951cc3510c4909c9f6d89a8d12828d9a6a8108fc2481852a4dcad49efea3308"}} | json |
us I think.
it's not really part of our vocabulary.
I wondered where to raise this and decided to do it here.
"Describe what you changed".
(Briefly describe the changes you have made)".
summary culture, are asked to "Describe what you changed", they may answer:
is concerned, but it's not so helpful in the context of recent changes.
what you changed" -> (I changed) "the year".)
summary box? The requirements I can think of are:
as I wrote above.
will read them in Recent Changes and in reviewing previous article versions.
too much additional text.
“We're living in pieces,
| english |
{"h":[{"d":[{"e":["`Miliyokan~ `na~ `wama~ `ko~ `'a'adopen~.父親他們把獵廠巡視了。"],"f":"把…周圍巡視了、圍繞了。"},{"e":["`Miliyokan~ `a~ `niyaro'~.所巡視的村子。"],"f":"指巡視周圍的、圍繞的(對象、地方)。"}]}],"stem":"liyok","t":"miliyokan"} | json |
The recruitment drive for the ACF/RFO 2020 position will be conducted for 200 vacancies.
Uttar Pradesh Public Service Commission (UPPSC), as reported earlier, has begun the application process for the Combined State/Upper Subordinate Service (PCS), Assistant Conservator of Forest (ACF) and Range Forest Officer (RFO) 2020 recruitment on April 21st. All the candidates who are interested in applying for the same can do so at the official website, uppsc.up.nic.in.
The 2020 PCS/ACF-RFO recruitment drive is being conducted to fill 200 vacancies. The last day to pay the application fees is May 18th and the last day to submit the application form online is May 21st, 2020.
The candidate must at minimum have attained a graduate degree. Further requirements for each position can be check on the official notification. The candidates must not be below 21 years or above 40 years with relaxation for candidates from reserved categories.
Here is the direct link to check UPPSC ACF/RFO 2020 official notification.
Candidates have to go through three stages of selection process - Preliminary, Main, and Personality Test. The preliminary exam will consist of two compulsory MCQ papers for 200 marks each. Candidates who clear this stage will appear for the Main exam which will be a written exam after which a Viva-Voce/Personality test round will be conducted.
How to apply for UPPSC PCS/ACF-RFO 2020 examination:
- Visit the UPPSC official website.
- Click on the link to apply for PCS/ACF-RFO 2020 examination displayed prominently on the home page.
- Click on the ‘Apply’ button against the relevant advertisement.
- Go through the three stage of application - Registration, Fee Payment, and Application and submit the form.
- Take a print out of the submitted application for future reference.
Students are requested to submit the forms through their mobile phones or personal computers and to avoid venturing out to use public computers to submit the forms. If going to a cybercafe or using a public computer is essential, then care must be taken to put on a mask, to santise the computer before and after its use, and to maintain physical distancing as much as possible as a COVID-19 precaution.
| english |
Director-producer Maneesh Sharma on growing up on a Bollywood diet, educating himself on filmmaking and his long wait to make the thriller of his life.
You have been toying with the idea of directing Fan for a long time. When did you first pitch it to Shah Rukh Khan?
It so happens I was not the first one to tell him about it. When Adi (Aditya Chopra, chairman of Yash Raj Films) was meeting Shah Rukh for Jab Tak Hai Jaan (2012), he told him about Fan as well and they were figuring out his dates. Shah Rukh was wrapping up Ra. One at that time. After hearing the story of Fan, he said he would do both the films and asked Adi to decide which one he wanted to make first. So, it was about matching our schedules — Shah Rukh had to finish Jab Tak… and I had to wrap up Shuddh Desi Romance (2013). I would not have made the film had he not agreed. Or, I would have taken 10 years to deal with the fact and then thought of what to do with the story.
When you had conceptualised Fan, did you imagine using VFX and prosthetics so extensively?
On paper, it was mentioned that the ‘fan’ would be a young boy played by Shah Rukh. We all knew we would need the support of VFX and make-up to achieve that. We had no idea how difficult it was going to be. After a lot of research and trials, we arrived at what we now call ‘the look of Gaurav’. Aryan, the superstar Gaurav is obsessed with, was the result of a more organic process — the director and actor discussing the character and the pitch of performance.
Gaurav was physically draining — three-and-a-half hours of make-up and then shooting with an actor with 32 VFX markers on his face required for the post-production work. What we were seeing on the monitor during the shoot was not going to be there eventually. I had to say okay to a take imagining how it would look like after four months of post-production.
Before Fan, you have directed rom-coms such as Band Baaja Baaraat and Ladies Vs Ricky Bahl. What made you attempt a thriller?
The only film I ever wanted to make was Fan. After assisting in YRF productions like Fanaa (2006) and Aaja Nachle (2007), there was a kind of understanding with Adi that if I make a film, he would back it. I bounced the idea off him in 2006. However, he categorically said that Fan is too ambitious and expensive to be my first film. Instead, he asked me to come up with a story that we would both be excited about. Band Baaja Baarat took shape after that.
Being a Delhi boy, was it a conscious decision to make the city such a big part of Band Baaja Baraat?
The personality of a filmmaker always reflects in his films — had the film not been set in Delhi, my viewpoint and understanding of people would still have been showcased in it.
The Delhi we tried to show had not been cinematically explored before. Khosla Ka Ghosla (2006) did try to show a Delhi beyond Humayun’s Tomb and India Gate, Do Dooni Char (2010) too showed an interesting aspect of the city. For me, the hook was the aspiration of middle-class Indians. Though Bittu is endearing, at an emotional level, I associate more with Shruti’s character. Just the way Shruti knew she wanted to be a wedding planner, I knew I’d make a film.
When did you realise that you want to pursue a career in cinema?
Since my days at Delhi Public School, RK Puram, I was clear about doing something related to cinema. I dedicated a lot of time to theatre during school and college. I did English plays with Barry John and musicals with Delhi Music Theatre. That apart, I used to watch a lot of Hindi films on television and in cinema halls. My family had its own VHS collection and prominent among them were titles like Chalti Ka Naam Gaadi (1958), Guide (1965), Angoor (1982) and a number of Amitabh Bachchan films. Once I turned 12, I preferred going to theatres to watch movies. If I really liked a film, I would watch it a couple of times. I have watched several Shah Rukh Khan films as well as Salman Khan’s hits like Maine Pyar Kiya (1989) and Hum Aapke Hain Koun…! (1994) many times.
And then you went to the California Institute of Arts for a master’s degree in filmmaking.
I was always very clear that I would like to go to Mumbai to pursue filmmaking. Since the production of feature films, ad films and music videos were far and few between in Delhi, I had no exposure. So I chose to go about it in a structured manner and joined the three-year course at CalArts.
Did it change your ideas about cinema?
I was the youngest in the class, not to mention the least exposed when it came to cinema of every kind, barring Bollywood. I had not even watched The Godfather. I especially remember a Korean classmate who was 38 years old and had made some 40 one-hour features for television. I had not even seen a camera or a film set in my life till then. Yet, I had to educate myself within the system, perform really well to be eligible for scholarships. I had my run of watching Wong Kar-Wai, Pedro Almodóvar and my favourite, Krzysztof Kieslowski, at one go.
And then, you returned to the heartland of Hindi cinema. Why?
By the time I graduated, I was very clear that I would return to India — while others were deconstructing Andrei Tarkovsky, I was giving presentations on Dilwale Dulhania Le Jayenge (1995).
Your films have great soundtracks. Why did you give it a miss in Fan.
Forget about me, Shah Rukh often has great song sequences in his films. But since we wanted to make a relentless thriller, we believed it can do without songs. We created one song, Jabra Fan, to put the characters in place and use it as a marketing tool.
How difficult was it to shoot the scene of one Shah Rukh chasing another?
It was very difficult, and not just because it had two Shah Rukhs running. For nine days in Croatia’s Dubrovnik, he did a nine-hour schedule with an injured knee. Every day, he would be given painkiller injections before he ran. He would be treated again in the afternoon and after pack-up. He was in great pain, but he was so accommodating.
You turned producer with Dum Laga Ke Haisha (2015), which won a National Award. Was it always on the cards?
I had never planned to produce movies. Sharat Katariya and I were working together and trying to develop some ideas. At some point, we thought I would direct the script he would write. One day, Sharat gave me the script of Dum Laga Ke Haisha and sought my feedback. Since he wanted to direct it, I mentioned it to Adi. After hearing the brief, Adi suggested that I should produce it. In fact, I was busy with the pre-production of Fan when this conversation happened. I will soon be producing another film, Akshay Roy’s directorial debut Meri Pyaari Bindu.
Click for more updates and latest Bollywood news along with Entertainment updates. Also get latest news and top headlines from India and around the world at The Indian Express. | english |
CDash.controller('QueryTestsController',
function QueryTestsController($scope, $rootScope, $filter, apiLoader, filters, multisort) {
$scope.loading = true;
// Pagination settings.
$scope.pagination = [];
$scope.pagination.filteredBuilds = [];
$scope.pagination.currentPage = 1;
$scope.pagination.maxSize = 5;
// Check if we have a cookie for number of tests to display.
var num_per_page_cookie = $.cookie('queryTests_num_per_page');
if(num_per_page_cookie) {
$scope.pagination.numPerPage = parseInt(num_per_page_cookie);
} else {
$scope.pagination.numPerPage = 25;
}
// Hide filters by default.
$scope.showfilters = false;
// Check for filters
$rootScope.queryString['filterstring'] = filters.getString();
// Check for sort order cookie.
var sort_order = [];
var sort_cookie_value = $.cookie('cdash_query_tests_sort');
if(sort_cookie_value) {
sort_order = sort_cookie_value.split(",");
}
$scope.orderByFields = sort_order;
apiLoader.loadPageData($scope, 'api/v1/queryTests.php');
$scope.finishSetup = function() {
// Hide test output context by default.
$scope.cdash.showmatchingoutput = false;
// Check for label filters
$scope.cdash.extrafilterurl = filters.getLabelString($scope.cdash.filterdata);
$scope.cdash.builds = $filter('orderBy')($scope.cdash.builds, $scope.orderByFields);
$scope.pageChanged();
};
$scope.showfilters_toggle = function() {
$scope.showfilters = !$scope.showfilters;
filters.toggle($scope.showfilters);
};
$scope.pageChanged = function() {
var begin = (($scope.pagination.currentPage - 1) * $scope.pagination.numPerPage)
, end = begin + $scope.pagination.numPerPage;
if (end > 0) {
$scope.pagination.filteredBuilds = $scope.cdash.builds.slice(begin, end);
} else {
$scope.pagination.filteredBuilds = $scope.cdash.builds;
}
};
$scope.updateOrderByFields = function(field, $event) {
multisort.updateOrderByFields($scope, field, $event);
$scope.cdash.builds = $filter('orderBy')($scope.cdash.builds, $scope.orderByFields);
$scope.pageChanged();
$.cookie('cdash_query_tests_sort', $scope.orderByFields);
};
$scope.numTestsPerPageChanged = function() {
$.cookie("queryTests_num_per_page", $scope.pagination.numPerPage, { expires: 365 });
$scope.pageChanged();
};
$scope.toggleShowMatchingOutput = function() {
$scope.cdash.showmatchingoutput = !($scope.cdash.showmatchingoutput);
};
});
| javascript |
<reponame>soroushj/ghpr-dataset-raw
{
"active_lock_reason": null,
"assignee": null,
"assignees": [],
"author_association": "MEMBER",
"body": "Our e2e tests for creating external load balancers currently verify that the test is able to connect to the application running in the cluster, but not that the automatically created firewalls don't expose more than they should. Ensuring no more than necessary is exposed is arguably just as important as what we currently test, if not more so.\n\n@fabioy @thockin \n",
"closed_at": "2016-12-17T02:55:30Z",
"closed_by": {
"avatar_url": "https://avatars0.githubusercontent.com/u/13653959?v=4",
"events_url": "https://api.github.com/users/k8s-github-robot/events{/privacy}",
"followers_url": "https://api.github.com/users/k8s-github-robot/followers",
"following_url": "https://api.github.com/users/k8s-github-robot/following{/other_user}",
"gists_url": "https://api.github.com/users/k8s-github-robot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/k8s-github-robot",
"id": 13653959,
"login": "k8s-github-robot",
"node_id": "MDQ6VXNlcjEzNjUzOTU5",
"organizations_url": "https://api.github.com/users/k8s-github-robot/orgs",
"received_events_url": "https://api.github.com/users/k8s-github-robot/received_events",
"repos_url": "https://api.github.com/users/k8s-github-robot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/k8s-github-robot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/k8s-github-robot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/k8s-github-robot"
},
"comments": 0,
"comments_url": "https://api.github.com/repos/kubernetes/kubernetes/issues/25488/comments",
"created_at": "2016-05-11T18:45:04Z",
"events_url": "https://api.github.com/repos/kubernetes/kubernetes/issues/25488/events",
"html_url": "https://github.com/kubernetes/kubernetes/issues/25488",
"id": 154314151,
"labels": [],
"labels_url": "https://api.github.com/repos/kubernetes/kubernetes/issues/25488/labels{/name}",
"locked": false,
"milestone": null,
"node_id": "MDU6SXNzdWUxNTQzMTQxNTE=",
"number": 25488,
"performed_via_github_app": null,
"repository_url": "https://api.github.com/repos/kubernetes/kubernetes",
"state": "closed",
"title": "Test that external load balancers' firewalls don't expose more than they should",
"updated_at": "2016-12-17T02:55:30Z",
"url": "https://api.github.com/repos/kubernetes/kubernetes/issues/25488",
"user": {
"avatar_url": "https://avatars3.githubusercontent.com/u/7085343?v=4",
"events_url": "https://api.github.com/users/a-robinson/events{/privacy}",
"followers_url": "https://api.github.com/users/a-robinson/followers",
"following_url": "https://api.github.com/users/a-robinson/following{/other_user}",
"gists_url": "https://api.github.com/users/a-robinson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/a-robinson",
"id": 7085343,
"login": "a-robinson",
"node_id": "MDQ6VXNlcjcwODUzNDM=",
"organizations_url": "https://api.github.com/users/a-robinson/orgs",
"received_events_url": "https://api.github.com/users/a-robinson/received_events",
"repos_url": "https://api.github.com/users/a-robinson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/a-robinson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/a-robinson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/a-robinson"
}
} | json |
<reponame>leogsouza/geeksforgeeks
package jumpsearch
import (
"math"
)
// JumpSearch performs a jump search
func JumpSearch(arr []int, x int) int {
n := len(arr)
step := int(math.Floor(math.Sqrt(float64(n))))
var prev int
for arr[min(step, n)-1] < x {
prev = step
step += int(math.Floor(math.Sqrt(float64(n))))
if prev >= n {
return -1
}
}
for arr[prev] < x {
prev++
if prev == min(step, n) {
return -1
}
}
if arr[prev] == x {
return prev
}
return -1
}
func min(a, b int) int {
if a < b {
return a
}
return b
}
| go |
<gh_stars>0
import os
import configparser
import json
import time
from IO.inputConfigParser import InputConfigParser
from IO.redisDB import RedisDB
from optimization.ModelException import MissingKeysException
from optimization.controllerDiscrete import OptControllerDiscrete
from optimization.controllerMpc import OptControllerMPC
from optimization.controllerStochasticTestMulti import OptControllerStochastic
#from optimization.controllerStochasticTestPebble import OptControllerStochastic
from prediction.machineLearning import MachineLearning
from prediction.prediction import Prediction
from prediction.pvPrediction import PVPrediction
from utils_intern.constants import Constants
from utils_intern.messageLogger import MessageLogger
class ThreadFactory:
def __init__(self, model_name, control_frequency, horizon_in_steps, dT_in_seconds, repetition, solver, id,
optimization_type, single_ev, restart):
self.id = id
self.logger = MessageLogger.get_logger(__name__, id)
self.model_name = model_name
self.control_frequency = control_frequency
self.horizon_in_steps = horizon_in_steps
self.dT_in_seconds = dT_in_seconds
self.repetition = repetition
self.solver = solver
self.optimization_type = optimization_type
self.single_ev = single_ev
self.redisDB = RedisDB()
self.pyro_mip_server = None
#restart = True
self.restart = restart
def getFilePath(self, dir, file_name):
# print(os.path.sep)
# print(os.environ.get("HOME"))
project_dir = os.path.dirname(os.path.realpath(__file__))
data_file = os.path.join("/usr/src/app", dir, file_name)
return data_file
def startOptControllerThread(self):
self.logger.info("Creating optimization controller thread")
self.logger.info("Number of repetitions: " + str(self.repetition))
self.logger.info("Output with the following control_frequency: " + str(self.control_frequency))
self.logger.info("Optimization calculated with the following horizon_in_steps: " + str(self.horizon_in_steps))
self.logger.info("Optimization calculated with the following dT_in_seconds: " + str(self.dT_in_seconds))
self.logger.info("Optimization calculated with the following model: " + self.model_name)
self.logger.info("Optimization calculated with the following solver: " + self.solver)
self.logger.info("Optimization calculated with the following optimization_type: " + self.optimization_type)
self.redisDB.set("Error mqtt" + self.id, False)
#self.logger.debug("Error mqtt " + str(self.redisDB.get("Error mqtt" + self.id)))
# Creating an object of the configuration file (standard values)
try:
config = configparser.RawConfigParser()
config.read(self.getFilePath("optimization/resources", "ConfigFile.properties"))
except Exception as e:
self.logger.error(e)
# Loads the solver name if it was not given thorough the endpoint command/start/id
if not self.model_name:
self.model_name = config.get("SolverSection", "model.name")
self.logger.debug("This is the model name: " + self.model_name)
self.model_path = os.path.join(config.get("SolverSection", "model.base.path"), self.model_name) + ".py"
self.logger.debug("This is the path of the model: " + str(self.model_path))
# Loads the solver name if not specified in command/start/id
if not self.solver:
self.solver_name = config.get("SolverSection", "solver.name")
else:
self.solver_name = self.solver
self.logger.debug("Optimization calculated with the following solver: " + self.solver_name)
##############################################################################################
output_config = None
try:
# Reads the registry/output and stores it into an object
path = os.path.join(os.getcwd(), "optimization/resources", str(self.id), "Output.registry.mqtt")
if not os.path.exists(path):
self.logger.debug("Output.registry.mqtt not set, only file output available")
else:
with open(path, "r") as file:
output_config = json.loads(file.read())
except Exception as e:
self.logger.error("Output.registry.mqtt not set, only file output available")
try:
# Reads the registry/input and stores it into an object
path = os.path.join(os.getcwd(), "optimization/resources", str(self.id), "Input.registry.file")
if not os.path.exists(path):
input_config_file = {}
self.logger.debug("Not Input.registry.file present")
else:
with open(path, "r") as file:
input_config_file = json.loads(file.read())
self.logger.debug("Input.registry.file found")
except Exception as e:
self.logger.error("Input file not found")
input_config_file = {}
self.logger.error(e)
try:
# Reads the registry/input and stores it into an object
path = os.path.join(os.getcwd(), "optimization/resources", str(self.id), "Input.registry.mqtt")
if not os.path.exists(path):
input_config_mqtt = {}
self.logger.debug("Not Input.registry.mqtt present")
else:
with open(path, "r") as file:
input_config_mqtt = json.loads(file.read())
self.logger.debug("Input.registry.mqtt found")
except Exception as e:
self.logger.error("Input file not found")
input_config_mqtt = {}
self.logger.error(e)
persist_base_path = config.get("IO", "persist.base.file.path")
persist_base_path = os.path.join(os.getcwd(), persist_base_path, str(self.id), Constants.persisted_folder_name)
input_config_parser = InputConfigParser(input_config_file, input_config_mqtt, self.model_name, self.id,
self.optimization_type, persist_base_path, self.restart)
missing_keys = input_config_parser.check_keys_for_completeness()
if len(missing_keys) > 0:
raise MissingKeysException("Data source for following keys not declared: " + str(missing_keys))
opt_values = input_config_parser.get_optimization_values()
self.redisDB.set(self.id+":opt_values", json.dumps(opt_values))
self.prediction_threads = {}
self.prediction_names = input_config_parser.get_prediction_names()
if self.prediction_names is not None and len(self.prediction_names) > 0:
for prediction_name in self.prediction_names:
flag = input_config_parser.get_forecast_flag(prediction_name)
if flag:
self.logger.info("Creating prediction controller thread for topic " + str(prediction_name))
topic_param = input_config_parser.get_params(prediction_name)
parameters = json.dumps(
{"control_frequency": self.control_frequency, "horizon_in_steps": self.horizon_in_steps,
"topic_param": topic_param, "dT_in_seconds": self.dT_in_seconds, "type": "load"})
self.redisDB.set("train:" + self.id + ":" + prediction_name, parameters)
opt_values = input_config_parser.get_optimization_values()
self.prediction_threads[prediction_name] = Prediction(config, self.control_frequency,
self.horizon_in_steps, prediction_name,
topic_param, self.dT_in_seconds, self.id,
output_config, "load", opt_values)
self.prediction_threads[prediction_name].start()
self.pv_lstm_names = input_config_parser.get_pv_lstm_names()
if self.pv_lstm_names is not None and len(self.pv_lstm_names) > 0:
for pv_lstm_name in self.pv_lstm_names:
flag = input_config_parser.get_forecast_flag(pv_lstm_name)
if flag:
self.logger.info("Creating pv lstm controller thread for topic " + str(pv_lstm_name))
topic_param = input_config_parser.get_params(pv_lstm_name)
parameters = json.dumps(
{"control_frequency": self.control_frequency, "horizon_in_steps": self.horizon_in_steps,
"topic_param": topic_param, "dT_in_seconds": self.dT_in_seconds, "type": "pv"})
self.redisDB.set("train:" + self.id + ":" + pv_lstm_name, parameters)
opt_values = input_config_parser.get_optimization_values()
self.prediction_threads[pv_lstm_name] = Prediction(config, self.control_frequency,
self.horizon_in_steps, pv_lstm_name,
topic_param, self.dT_in_seconds, self.id,
output_config, "pv", opt_values)
self.prediction_threads[pv_lstm_name].start()
self.non_prediction_threads = {}
self.non_prediction_names = input_config_parser.get_pv_prediction_names()
if self.non_prediction_names is not None and len(self.non_prediction_names) > 0:
for non_prediction_name in self.non_prediction_names:
flag = input_config_parser.get_forecast_flag(non_prediction_name)
if flag:
self.non_prediction_threads[non_prediction_name] = PVPrediction(config, output_config,
input_config_parser,
self.id,
self.control_frequency,
self.horizon_in_steps,
self.dT_in_seconds,
non_prediction_name)
self.non_prediction_threads[non_prediction_name].start()
# Initializing constructor of the optimization controller thread
if self.optimization_type == "MPC":
self.opt = OptControllerMPC(self.id, self.solver_name, self.model_path, self.control_frequency,
self.repetition, output_config, input_config_parser, config,
self.horizon_in_steps,
self.dT_in_seconds, self.optimization_type)
elif self.optimization_type == "discrete":
self.opt = OptControllerDiscrete(self.id, self.solver_name, self.model_path, self.control_frequency,
self.repetition, output_config, input_config_parser, config,
self.horizon_in_steps,
self.dT_in_seconds, self.optimization_type)
elif self.optimization_type == "stochastic":
self.opt = OptControllerStochastic(self.id, self.solver_name, self.model_path,
self.control_frequency, self.repetition, output_config,
input_config_parser, config, self.horizon_in_steps,
self.dT_in_seconds, self.optimization_type, self.single_ev)
try:
####starts the optimization controller thread
self.logger.debug("Mqtt issue " + str(self.redisDB.get("Error mqtt" + self.id)))
if "False" in self.redisDB.get("Error mqtt" + self.id):
self.opt.start()
self.logger.debug("Optimization object started")
return 0
else:
self.redisDB.set("run:" + self.id, "stopping")
self.stopOptControllerThread()
self.redisDB.set("run:" + self.id, "stopped")
self.logger.error("Optimization object could not be started")
return 2
except Exception as e:
self.logger.error(e)
return 1
def stopOptControllerThread(self):
try:
# stop as per ID
for name, obj in self.prediction_threads.items():
self.redisDB.remove("train:" + self.id + ":" + name)
obj.Stop()
for name, obj in self.non_prediction_threads.items():
obj.Stop()
self.logger.info("Stopping optimization controller thread")
self.opt.Stop()
self.logger.info("Optimization controller thread stopped")
return "Optimization controller thread stopped"
except Exception as e:
self.logger.error(e)
return e
def is_running(self):
return not self.opt.get_finish_status()
def update_training_params(self, key, parameters):
while True:
self.redisDB.set(key, parameters)
time.sleep("60")
| python |
<gh_stars>1-10
{
"id": "d1481-22",
"text": "PROGRAM POOLING\nFor the day which the great networks * anxious to maintain their virtual\nmonopoly over *he conduits for radio talent, have for so long sought to defer\nid here. One of radio's greatest needs can now be met, Through transcription#\nan independent outlet for creative writer# is available, unfettered by the\nadvertisers9 fear of giving anyone offense or their narrow preconceptions of\n\"what goes.\" Quality programs of enduring interest (for repeated use), or\ntailor-made for special occasions or particular localities, can be made avail¬\nable to all.\nPRODUCTION CENTER\nBut who is going to write them, produce and act. them? Educator* and\nothers Interested in radioes public service need to establish rapidly (oih a\nwill soon be in the field) a radio production center, to undertake the sped} :\n<;ask of building up the market for public service program# by quality produc\nThis may yet prove to be a revolution in broadcasting, and, consequently, in t\nadvancement of our culture and the perfection of democracy Some of the r.cU\naspects of the center's establishment are worth sketching in The prise ty r\nfor the center's output would be public service FM and AM stations A\n(and ultimately lucrative) market will be local commercial stations as \\.ho mcr : t\nof the center's products is orogresaively demonstrated There will be r ru\nsscope for exports to countries abroad.\nRADIO CENTER STAFF\nThe staff of the center need not be large. Ever half a doren writer *\nreal talent could work miracles, supported by an eouivalent team of producer-\nconcerned to heave radio out of its artistic nit They will need adequate\nremuneration, more than a pittance But the salaries offered to a few top- o to,\nwriters and producers in commercial radio are not necessary Artists are no\ngold diggers. Many writers and producers in commercial radio today would fl\nsacrifice a fortune for artistic freedom There will be those who , return!u,-\nfrom the war, will feel nauseated by the commercialism that has been sup a\non the integrity of self-expression. They will go to great lengths to aw\na return to the old humiliating bondage Many will have new thoughts, frerh\nvision to communicate, tempered and refined in the fire of war*s experience\nPublic service broadcasting and the production center will attract the\nProduction costs will not be high. Stars and their astronomical re*\nare not necessary to good casting. This is a fetish and a fiction imposed or\nus by commercial radio. There are already rumer as in -tanc^s of programs by\nunknown writers and producers presented with unknown casta which have won\naudiences than competing programs in the big-money category"
} | json |
// (c) Copyright 2016 Hewlett Packard Enterprise Development LP
//
// 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 sdk
import (
"go/ast"
"strings"
"github.com/notional-labs/csec"
)
type blocklistedImport struct {
gosec.MetaData
Blocklisted map[string]string
}
func unquote(original string) string {
copy := strings.TrimSpace(original)
copy = strings.TrimLeft(copy, `"`)
return strings.TrimRight(copy, `"`)
}
func (r *blocklistedImport) ID() string {
return r.MetaData.ID
}
func (r *blocklistedImport) Match(n ast.Node, c *gosec.Context) (*gosec.Issue, error) {
if node, ok := n.(*ast.ImportSpec); ok {
if description, ok := r.Blocklisted[unquote(node.Path.Value)]; ok {
return gosec.NewIssue(c, node, r.ID(), description, r.Severity, r.Confidence), nil
}
}
return nil, nil
}
// NewBlocklistedImports reports when a blocklisted import is being used.
// Typically when a deprecated technology is being used.
func NewBlocklistedImports(id string, conf gosec.Config, blocklist map[string]string) (gosec.Rule, []ast.Node) {
return &blocklistedImport{
MetaData: gosec.MetaData{
ID: id,
Severity: gosec.Medium,
Confidence: gosec.High,
},
Blocklisted: blocklist,
}, []ast.Node{(*ast.ImportSpec)(nil)}
}
// NewUnsafeImport fails if any of "unsafe", "reflect", "crypto/rand", "math/rand" are imported.
func NewUnsafeImport(id string, conf gosec.Config) (gosec.Rule, []ast.Node) {
return NewBlocklistedImports(id, conf, map[string]string{
// unsafe exposes memory bugs
"unsafe": "Blocklisted import unsafe",
// reflect allows reading private fields and calling private
// methods from other pkgs.
"reflect": "Blocklisted import reflect",
// runtime data can be parsed to get pointer values.
// but without unsafe, does it matter?
"runtime": "Blocklisted import runtime",
// rand is non-deterministic.
// TODO: module.RandomizedParams takes a math/rand.Rand
"math/rand": "Blocklisted import math/rand",
"crypto/rand": "Blocklisted import crypto/rand",
})
}
| go |
If you have a question for her like, "What did you have for morning meal? She's like, "If I can see it clearly, they ought to have some modern technology to be able to do that." That is happening on Twitch nowadays. She's an international audio speaker and also writer. Lois is the author of Fearless Entrepreneurs while Angel wrote Get Discovered. Join Amy Honey as well as Jamie Honey as they speak with authors Lois Koffi as well as Angel Tuccy. She signs up with Amy Honey and also Jamie Honey and also Collect the Cash writer Dee Bowden to speak about the monetary injury most women face. In this episode, he joins Amy and Jamie Honey to share the tale behind guide as well as the lessons he gained from conference fantastic mompreneurs throughout the world. On each episode, we talk to authors in the mindset, financial resources, and also fun categories. It's something excellent to be seen as well as be a part of all of the enjoyable that you are having regularly. Having collaborated with mompreneurs almost his entire occupation, he realized how powerful Mompreneurship is to working mamas having problems stabilizing their family and career, leading him to create the powerful book, Mother Industrialist. I know that being a business owner with a small service resembles having your own infant.
What is Pligg?
Pligg is an open source content management system that lets you easily create your own user-powered website.
| english |
- In the introduction briefly state key facts of Antarctica show the location using a diagram.
- In the body first quote the environmental concerns in detail.
Explain the human impact too. Discuss the importance of it in detail.
- Conclude with the need to save Antarctica with sense of urgency.
| english |
package org.easyframe.fastjson.parser;
public abstract class AbstractJSONParser {
}
| java |
package hu.bme.aut.plaenty.model;
/**
* Light values converted from lux to three levels
* typical lux values:
* 30 000 - 100 000 - direct sunlight - HIGH level
* 10 000 lux - ambient daylight - NORMAL level
* 1000 lux - overcast daylight - LOW level below this
* 400 lux - sunset/sunrise
* 0.01 - 1 lux - night (moonlight)
*/
public enum LightLevel {
LOW(0), NORMAL(1000), HIGH(30000);
public final double minValue;
private LightLevel(double minValue) {
this.minValue = minValue;
}
}
| java |
In part 1, we looked at the rise of Federer during the reign of Sampras. Now, in part 2, we look at the rivalry between Nadal and Federer.
The Swiss had not changed with the modern times. He had not adopted to the changing physical game. He still played what was a transition between the serve and volley and the modern baseline game. That was a mistake that cost him many titles. Federer never was a great mover on the court and he never did attempt to become one. He would always stick on to his strategy and would always toy with his opponents. But Nadal was not one to be toyed with. Nadal’s power, pace and stamina easily outmatched Federer’s slow, precision and technique-based game.
Federer was class. He played with grace, elegance and had the touch of a genius. He would glissade his way past opponents who would look clueless against his magic. His intricate forehands, the delicate dropshots, the backhand winners were something to be admired. But in sports, very rarely did grace win over athleticism. Brian Lara was an elegant player, but Sachin, who did not possess what Lara did, always prevailed over Lara.
Rafael Nadal, on the other hand, was an embodiment of athleticism, a livewire on the court, someone who was equivalent to a raging bull in terms of determination, courage, passion. He had the burning desire to win and every shot he hit was like a bullet. Federer virtually had no answer to this. Rafael Nadal, on his day, would just shatter Federer to nothing. His mere presence on the courts intimidated the opponent.
Just after Nadal came another face that would trouble Federer. This time it was the Australian Open. Experts and fans were looking for another classic Federer-Nadal final, with many believing Federer would win due to Nadal being ill-equipped on hard courts.
But again, fate had decided something contrary to that.
Two new faces emerged out of the blues to shine in the tournament. One was Jo-Wilfried Tsonga who announced his arrival by sending Murray home in the first round. The next was Djokovic. Although not a new face, few expected the 21-year old Serbian third seed to win the tournament. He defeated Federer in straight sets in the semifinal with an exuberant display of strength, stamina and athleticism. This had marked the arrival of a new rival to Federer.
As the dayd progressed, Federer’s life on the tour became increasingly tough. Andy Murray, another of the new breed of physical baseliners, had established a better head-to-head record against Federer.
The 2008 French Open was another tournament which had Nadal’s name etched all over it. Every Federer fan hoped for a change of name on the Roland Garros trophy but that seemed a far-fetched dream to Federer. Clay was never Federer’s forte but Nadal’s domination of Federer in the final seemed like Federer would never pick up a tennis racquet again. Rafael Nadal had demolished and humiliated Roger Federer in the final with a straight sets victory.
He was just the proverbial mile away from achieving greatness. Between him and greatness was only the title at tennis’s own colosseum.
Federer had won the last 5 times at the All England Lawn Tennis Club and was bidding to equal William Renshaw’s record of 6 consecutive titles. Federer had danced his way into the final and Nadal had bullied his way by destroying all his opponents with equal ease. Many were doubtful whether Federer would win after seeing him dominated by Nadal in the French Open but still they maintained that Federer would prevail on his favourite surface. He was unbeaten at the Wimbledon for 41 matches when the final came.
What turned out on that day was one of the greatest matches in the history of tennis and the longest ever Wimbledon final, lasting for 4 hrs 48 min. Rafael Nadal had defeated the magnificent Roger Federer for the first time in Wimbledon as Federer made an unforced error on Nadal’s fifth match point. That match remains as one of the best ever witnessed in the open era. That day signalled the shift of regime from the exuberant Swiss to the blustering Spaniard.
Nadal had shown himself to be one of the best players of the open era. He was at the peak of his career and playing the best tennis. When Nadal was on form, no one could go anywhere near him which is warranted by the record number of Masters Titles held by Nadal.
But, every man has a demon.
Nadal had one too. No, in fact two.
We’ll look at that in part 2.
| english |
Hello steemians di mana pun anda berada, kembali lagi di diary ku hari ini, semoga anda semuanya dalam keadaan sehat, bahagia selalu dan di lindungi oleh yang maha kuasa.
Pagi hari deringan sendu terdengar di jam yang sama setiap paginya, aku mengambil handphone dan segera ku matikan, aku bergegas bangun dan segera menuju kamar mandi, selesai membersihkan diri aku berpakaian secepat mungkin karena ibu ku sudah menunggu di luar rumah, beliau mengajak ku hari ini ini pergi ke pasar ikan.
Selesai berpakaian aku pergi ke pasar Meureudu, aku parkir motor ku di tempat yang sudah di sediakan, setelah itu aku berjalan beriringan dengan ibu ku, tempat yang kami tuju pertama di tempat penjual ikan, setiba di tempat penjual ikan, ibu ku menanyakan harga ikan dan kami membeli beberapa kilo ikan.
Dan setelah membeli ikan, aku langsung membawa ikan tersebut dan kami melanjutkan perjalanan ke tempat penjual ayam, setelah membeli ayam kami melanjutkan perjalanan membeli kue getok, setelah itu kami kembali pulang ke rumah, hari ini ibu mengajak ku belanja ikan untuk persiapan khanduri 44 hari meninggalnya nenek.
Setelah menyantap makan siang dengan ayam goreng yang tidak pernah bosan aku santap setiap harinya, aku beristirahat sejenak sambil bermain Handphone di kamar ku, tidak lama kemudian aku tertidur, aku terbangun ketika mendengar suara telepon dari @ikhsan01, dia mengajak ku untuk menemani dia tugas menjadi wasit di turnamen sepak bola.
Hari ini pertandingan yang sangat seru, dengan pemain berlebel pemain liga 2 Indonesia, pertandingan yang sangat menghibur dan tegang, kedua tim saling menjual serangan yang cukup berbahaya, setelah pertandingan sepak bola selesai aku pun kembali pulang bersama @ikhsan01.
Sebelum kami pulang ke rumah aku di ajak oleh @ikhsan01 makan bakso kesukaan nya, maklum lagi cair uang tugas wasit jadi dia mengajak ku, setelah selesai menikmati bakso kami pun langsung pulang ke rumah masing-masing, setiba di rumah aku bergegas menuju kamar mandi, dan setelah itu aku melaksanakan sholat maghrib, malam hari ini aku tidak terlalu sibuk setelah sholat karena aku tidak membuka kios ku hari ini.
Pada malam aku hanya bersantai sejenak di rumah, dan sekitar jam 11 malam aku di jemput kembali oleh @ikhsan01 dia mengajak ku untuk membeli omlet di kota Meureudu, karena udah telat kami membungkus omlet tersebut dan makan di rumah, setiba di rumah aku menikmati omlet yang baru kami beli, sambil mengkurasi beberapa akun menggunakan akun @steemseacurator.
Semoga teman-teman semua senang membaca kegiatan saya hari ini.
| english |
<filename>python/scripts/copy_pin.py
#!/usr/bin/env python
#
# Copying a pin is not representative of typical user behavior on Pinterest.
#
# This script is intended to demonstrate how to use the API to developers,
# and to provide functionality that might be convenient for developers.
# For example, it might be used as part of a program to generate an
# account to be used to test an API-based application.
#
import argparse
import sys
from os.path import abspath, dirname, join
sys.path.append(abspath(join(dirname(__file__), "..", "src")))
from api_config import ApiConfig
from arguments import common_arguments
def main(argv=[]):
"""
This script copies a pin to a board, both of which are specified by identifiers
that can be found using the get_user_pins.py and get_user_boards.py script.
If a section identifier is specified in addition to a board identifier,
this script will copy the pin to the board section. Section identifiers can be
found using the get_board.py script. A section identifier may not be specified
without a board identifier.
"""
parser = argparse.ArgumentParser(description="Copy a Pin")
parser.add_argument("-p", "--pin-id", required=True, help="source pin identifier")
parser.add_argument("-m", "--media", help="media path or id")
parser.add_argument(
"-b", "--board-id", required=True, help="destination board identifier"
)
parser.add_argument("-s", "--section", help="destination board section")
common_arguments(parser)
args = parser.parse_args(argv)
# get configuration from defaults and/or the environment
api_config = ApiConfig(verbosity=args.log_level, version=args.api_version)
# imports that depend on the version of the API
from access_token import AccessToken
from oauth_scope import Scope
from pin import Pin
access_token = AccessToken(api_config, name=args.access_token)
access_token.fetch(scopes=[Scope.READ_PINS, Scope.WRITE_BOARDS, Scope.WRITE_PINS])
pin = Pin(args.pin_id, api_config, access_token)
pin_data = pin.get()
print("source pin:")
Pin.print_summary(pin_data)
new_pin_data = pin.create(pin_data, args.board_id, args.section, args.media)
print("new pin:")
Pin.print_summary(new_pin_data)
if __name__ == "__main__":
main(sys.argv[1:])
| python |
India has always been close to his heart, said Hyderabad-born CEO of Microsoft Satya Nadella. The inspiration from playing cricket and the experiences from studying in different parts of the country helped Mr. Nadella chart out one of the biggest transformations in the history of Microsoft.
In an interview with Business Line , Mr. Nadella said India continues to be a source of learning.
Mr. Nadella also said that it was not enough for countries like India to celebrate diffusion of technology; they also needed to ensure that technology was used for better productivity. | english |
Motorola Moto Buds 600 ANC, a new pair of truly wireless stereo (TWS) earbuds can now be purchased separately by customers, the company announced on Wednesday. These earphones were previously available as part of the Motorola Edge 30 Fusion package in the US. Even though Motorola is best known for its smartphones, the Lenovo-owned company has dabbled in sound technology and products such as earbuds, headphones, and wireless speakers. Motorola Sound already has a decent portfolio aimed at various price segments. The new TWS earphones is an upgrade from the company's previous model, and are claimed to provide better sound clarity and call quality, along with support for active noise cancellation.
According to the company, the Moto Buds 600 ANC is priced at $149.99 (roughly Rs 12,400) in the US. The TWS earbuds were previously available as part of the Motorola Edge 30 Fusion package. Customers will be able to select one of two colours: Winetasting and Jet Black. Motorola is yet to announce details of availability of the earbuds in India.
The earbuds are designed with a stem and slightly slanted pods on top. They are equipped with silicone ear tips to ensure that active noise cancellation works properly. The charging case has an oval shape with rounded edges. It resembles a box of face powder. A physical button can be found in the centre of the vacant space on one side of the charging case. This button activates the pairing mode on the earbuds.
The company has equipped the Moto Buds 600 ANC with multipoint technology, allowing the earbuds to connect to two devices simultaneously. The earbuds support Google's Fast Pair technology, which allows them to appear immediately on a compatible Android device. The earbuds also support Google Assistant, which can be accessed by long-tapping them. It comes with a mono mode that lets the user use just one earbud while the other is charging in the case.
The Moto Buds 600 ANC has a battery life of 26 hours when used with the charging case. This is an improvement over the previous model. While the charging case includes a USB Type-C port for wired charging, the Moto Buds 600 ANC also supports wireless charging. The earbuds also have an IPX5 rating for water resistance, according to the Motorola.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
<filename>index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Zaloon</title>
<!-- CSS -->
<link href="favicon.ico" rel="icon">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<nav class="white" role="navigation">
<div class="nav-wrapper container">
<a id="logo-container" href="#" class="brand-logo">
<img src="img/logo.png" class="logo">
</a>
<ul class="right hide-on-med-and-down">
<li><a class="waves-effect waves-light btn pink lighten-3">Contact Us</a></li>
</ul>
<ul id="nav-mobile" class="side-nav">
<li><a href="#">Navbar Link</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
<div id="index-banner" class="parallax-container">
<div class="section no-pad-bot">
<div class="container">
<br><br>
<h1 class="header center"><span class="transluscent-pink">An African Inspired Hair Salon</span></h1>
<div class="row center">
<h5 class="header col s12 light"><span class="transluscent-pink">The best seat in town.</span></h5>
</div>
<br><br>
</div>
</div>
<div class="parallax"><img src="img/background1.jpg" alt="Unsplashed background img 1"></div>
</div>
<div class="container">
<div class="section">
<!-- Icon Section -->
<div class="row center">
<h3 class="pink-text darken-4">Our Services</h3>
</div>
<div class="row">
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center brown-text"><i class="material-icons">flash_on</i></h2>
<h5 class="center">Haircuts</h5>
<p class="light">We did most of the heavy lifting for you to provide a default stylings that incorporate our custom components. Additionally, we refined animations and transitions to provide a smoother experience for developers.</p>
</div>
</div>
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center brown-text"><i class="material-icons">group</i></h2>
<h5 class="center">Customer Experience Focused</h5>
<p class="light">By utilizing elements and principles of Material Design, we were able to create a framework that incorporates components and animations that provide more feedback to users. Additionally, a single underlying responsive system across all platforms allow for a more unified user experience.</p>
</div>
</div>
<div class="col s12 m4">
<div class="icon-block">
<h2 class="center brown-text"><i class="material-icons">settings</i></h2>
<h5 class="center">Good Place</h5>
<p class="light">We have provided detailed documentation as well as specific code examples to help new users get started. We are also always open to feedback and can answer any questions a user may have about Materialize.</p>
</div>
</div>
</div>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section no-pad-bot">
<div class="container">
<div class="row center">
<h5 class="header col s12 light">A modern responsive front-end framework based on Material Design</h5>
</div>
</div>
</div>
<div class="parallax"><img src="img/background2.jpg" alt="Unsplashed background img 2"></div>
</div>
<div class="container">
<div class="section">
<div class="row">
<div class="col s12 center">
<h3><i class="mdi-content-send brown-text"></i></h3>
<h4>Contact Us</h4>
<p class="left-align light">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam scelerisque id nunc nec volutpat. Etiam pellentesque tristique arcu, non consequat magna fermentum ac. Cras ut ultricies eros. Maecenas eros justo, ullamcorper a sapien id, viverra ultrices eros. Morbi sem neque, posuere et pretium eget, bibendum sollicitudin lacus. Aliquam eleifend sollicitudin diam, eu mattis nisl maximus sed. Nulla imperdiet semper molestie. Morbi massa odio, condimentum sed ipsum ac, gravida ultrices erat. Nullam eget dignissim mauris, non tristique erat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;</p>
</div>
</div>
</div>
</div>
<div class="parallax-container valign-wrapper">
<div class="section no-pad-bot">
<div class="container">
<div class="row center">
<h5 class="header col s12 light">A modern responsive front-end framework based on Material Design</h5>
</div>
</div>
</div>
<div class="parallax"><img src="img/background3.jpg" alt="Unsplashed background img 3"></div>
</div>
<footer class="page-footer pink darken-3">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Zaloon</h5>
<p class="grey-text text-lighten-4">Zaloon is a prototype of an awesome website that is yet to be developed. This is powered by GitHub Pages, MaterializeCSS and Jekyll.</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
Made by <a class="brown-text text-lighten-3" href="http://zorexsalvo.com"><NAME></a>
</div>
</div>
</footer>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.js"></script>
<script src="js/init.js"></script>
</body>
</html>
| html |
# encoding: utf-8
from django.forms.models import model_to_dict
from django.db.models import Model
from django.core.files import File
from django.db.models.fields.files import FieldFile
from rest_framework import serializers, relations, fields as rest_fields
from datetime import datetime
from enum import Enum
from corekit import utils
from decimal import Decimal
import json
import yaml
from collections import OrderedDict
class BaseModelSerializer(serializers.ModelSerializer):
def to_representation(self, instance):
"""
Object instance -> Dict of primitive datatypes.
"""
ret = OrderedDict()
fields = [field for field in self.fields.values()
if not field.write_only]
for field in fields:
try:
attribute = field.get_attribute(instance)
# except SkipField:
except:
continue
if attribute is not None:
represenation = field.to_representation(attribute)
if represenation is None:
# Do not seralize empty objects
continue
if isinstance(represenation, list) and not represenation:
# Do not serialize empty lists
continue
ret[field.field_name] = represenation
return ret
def dump(self):
return BaseModelSerializer.to_json(self.data)
class ExportModelSerializer(serializers.ModelSerializer):
def __init__(self, *args, **kwargs):
self.verbose_field = kwargs.pop('verbose_field', True)
super(ExportModelSerializer, self).__init__(*args, **kwargs)
def to_representation(self, instance):
'''(override)'''
ret = OrderedDict()
fields = self._readable_fields
for field in fields:
# translated field names
if self.verbose_field:
name = u"{}".format(self.Meta.model._meta.get_field(
field.field_name).verbose_name)
else:
name = field.field_name
try:
attribute = field.get_attribute(instance)
except rest_fields.SkipField:
continue
check_for_none = \
attribute.pk if isinstance(attribute, relations.PKOnlyObject) \
else attribute # NOQA
if check_for_none is None:
ret[name] = ''
else:
val = field.to_representation(attribute)
ret[name] = '' if val is None else val
return ret
class BaseObjectSerializer(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, Model):
return model_to_dict(obj)
if isinstance(obj, FieldFile):
return {'url': obj.url, 'name': obj.name}
if isinstance(obj, Enum):
return obj.value
if isinstance(obj, datetime):
return obj.isoformat()
if isinstance(obj, Decimal):
return str(obj)
if isinstance(obj, object):
ex = obj._excludes if hasattr(obj, '_excludes') else {}
vals = obj._customes.copy() if hasattr(obj, '_customs') else {}
vals.update(getattr(obj, '__dict__', {}))
return dict([(k, v) for k, v in vals.items()
if k not in ex and not k.startswith('_') and v])
return super(BaseObjectSerializer, self).default(obj)
@classmethod
def to_json(cls, obj, *args, **kwargs):
return json.dumps(obj, cls=cls, *args, **kwargs)
@classmethod
def to_json_file(cls, obj, name=None, *args, **kwargs):
name = name or u"{}.json".format(cls.__name__)
return File(
utils.contents(cls.to_json(obj, *args, **kwargs)), name=name)
@classmethod
def load_json(cls, jsonstr, *args, **kwargs):
return json.loads(jsonstr, *args, **kwargs)
@classmethod
def to_yaml(cls, obj, *args, **kwargs):
return yaml.safe_dump(obj, *args, **kwargs)
@classmethod
def to_dict(cls, obj, *args, **kwargs):
return json.loads(cls.to_json(obj, *args, **kwargs))
| python |
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum EquipmentSlot {
None,
MainHand,
OffHand,
BothHands,
}
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct EquippedItems {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub main_hand: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub off_hand: Option<String>,
}
| rust |
<filename>notes/fmt_mmx8_wpg.py<gh_stars>1-10
# MegamanX8 wpg plugin by Zheneq
# https://github.com/Zheneq/Noesis-Plugins
from inc_noesis import *
import noesis
#rapi methods should only be used during handler callbacks
import rapi
#registerNoesisTypes is called by Noesis to allow the script to register formats.
#Do not implement this function in script files unless you want them to be dedicated format modules!
def registerNoesisTypes():
handle = noesis.register("MegamanX8 Texture Archive", ".wpg")
noesis.setHandlerTypeCheck(handle, noepyCheckType)
noesis.setHandlerLoadRGBA(handle, noepyLoadRGBA)
# noesis.setHandlerWriteRGBA(handle, noepyWriteRGBA)
# noesis.addOption(handle, "-shift", "<arg> is texture shift from the beginning of data block", noesis.OPTFLAG_WANTARG)
# noesis.addOption(handle, "-size", "<arg> is size of texture in bytes", noesis.OPTFLAG_WANTARG)
return 1
#check if it's this type based on the data
def noepyCheckType(data):
return WPGFile([], data = data).check
def noepyLoadRGBA(data, texList):
return WPGFile(texList, data = data).load()
class WPGFile:
HEADERSIZE = 32
TGAHEADERSIZE = 18
def __init__(self, texList, name = None, map = None, path = None, data = None):
self.name = name
if not self.name: self.name = rapi.getInputName().split('\\')[-1].split('/')[-1]
self.map = map
self.texList = texList
if data:
self.bs = NoeBitStream(data)
elif path:
texFile = open(path, 'rb').read()
self.bs = NoeBitStream(texFile)
else:
print("WPG: No input provided!")
self.bs.seek(0)
header = self.bs.readBytes(self.HEADERSIZE).decode('ascii').split('\0')[0]
self.check = header == "wpg"
def load(self):
self.count = 0
if not self.check:
return 0
if self.map:
for x in self.map:
self.load_sub(self.HEADERSIZE + x['shift'], x['size'])
else:
cursor = self.HEADERSIZE
while cursor < self.bs.dataSize:
tex = self.load_sub(cursor, self.bs.dataSize - cursor)
if not tex:
break
if tex.pixelType == noesis.NOESISTEX_RGBA32:
BPP = 4
elif tex.pixelType == noesis.NOESISTEX_RGB24:
BPP = 3
else:
BPP = 4
print("Unsupported pixel type")
cursor += tex.width * tex.height * BPP + self.TGAHEADERSIZE
print("Loaded", self.count, "textures")
return self.count
def load_sub(self, start, size):
self.bs.seek(start)
buffer = self.bs.readBytes(size)
tex = rapi.loadTexByHandler(buffer, '.tga')
if not tex:
return 0
tex.name = "{0}.{1:02}.tga".format(self.name, self.count)
self.count += 1
self.texList.append(tex)
return tex | python |
<reponame>kevinmilly/K-Base-frontend
import { Inject } from '@angular/core';
import { Input } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
@Component({
selector: 'kb-popup-example',
template: `
<div class="example-container">
<img src="{{gifImage}}" alt="Example instructional gif">
</div>
`,
styleUrls: ['./popup-example.component.scss']
})
export class PopupExampleComponent implements OnInit {
@Input() gifImage:string = '';
constructor(@Inject(MAT_DIALOG_DATA) public data:string) { }
ngOnInit(): void {
this.gifImage = this.data;
}
}
| typescript |
Governments should offer loss guarantees through gap funding for clean energy transition, said Kotak Mahindra Bank CEO Uday Kotak on Saturday. He said the move will require substantial capital pool as well.
“We have no choice but to go beyond capital that expects returns. Capital that is ready to take losses; this needs to come from businesses,” he said at the B20 Summit.
“We also need to ensure that the solution is not worse than the problem and doesn’t make it worse in the long term.” He also said funding for clean technology initiatives must stem from businesses in collaboration with governments. Other panellist highlighted that enormous amount of capital to finance the climate transition is needed.
Mark Carney, UN Special Envoy for Climate Action and Finance, Co-Chair, GFANZ and Chair and Head of Transition Investing, Brookfield Asset Management, said, “We need to focus on transition finance, particularly for the challenging hard-to-abate sectors and the workers and communities associated with these sectors.” He said that $100-150 billion should flow yearly from developed countries to emerging economies to help them transition. Mark E Tucker, group chairman, HSBC Holdings, UK, said HSBC has pledged to provide $1 trillion by 2030 towards climate transition.
| english |
## Generate Forecast, MPS or Independent Demand from Planning Bills (PB.P1)
<PageHeader />
##

**Job ID** Enter a unique ID if you wish to enter and save the parameters to
this procedure for future use. If you only need to run the procedure and do
not want to save your entry then you may leave this field empty.
**Destination** Select the destination for the output from this procedure.
**Process** Select the method to be used for processing the report. Foreground
is always available and must be used when output is directed to anything other
than a system printer (i.e. printers spooled through the database on the host
computer.) Depending on your setup there may be various batch process queues
available in the list that allow you to submit the job for processing in the
background or at a predefined time such as overnight. A system printer must be
specified when using these queues.
**Format** Select the format for the output. The availability of other formats
depends on what is allowed by each procedure. Possible formats include Text,
Excel, Word, PDF, HTML, Comma delimited and Tab delimited.
**Layout** You may indicate the layout of the printed page by specifying the
appropriate setting in this field. Set the value to Portrait if the page is to
be oriented with the shorter dimension (usually 8.5 inches) at the top or
Landscape if the longer dimension (usually 11 inches) is to be at the top.
Portrait will always be available but Landscape is dependent on the output
destination and may not be available in all cases.
**Copies** Enter the number of copies to be printed.
**Run Process** Click on the button to run the process. This performs the save
function which may also be activated by clicking the save button in the tool
bar or pressing the F9 key or Ctrl+S.
**F)orecast M)PS I)ndependent Demand** Enter the letter "F" if you want the
system to generate the sales forecast from the planning bill or enter "M" if
you want to create master schedule items, or enter "I" to create independent
demand.
**Explode Planning Bills** You have the option of loading the forecast or
master schedule based on the dates and quantities as they were manually
defined at each level of the planning bills, or you may choose to have the
requirements from the higher level planning bills exploded so that the
requirements for the lower level planning bills are a function of their
relationship to the higher level planning bills. Check this box if you want
the explosion to be done or leave unchecked if not.
Warning! It is important that you do not answer yes to the "Use Planning Bills" option in [ MPS.P1 ](../../../../../../../../../../../../../../rover/AP-OVERVIEW/AP-ENTRY/AP-E/AP-E-1/CURRENCY-CONTROL/PO-E/PO-E-1/PLAN-CONTROL/PLAN-CONTROL-1/MPS-P1) if you are loading sales forecast with the explode option set to yes in this procedure. Answering yes to both options will have the effect of overstating the forecast for the lower level items (e.g. both a sales and production forecast will be shown for these items).
**Plan Group** Enter the planning group that applies to the planning bill that
you wish to process.
**Last Status Message** Contains the last status message generated by the
program.
**Last Status Date** The date on which the last status message was generated.
**Last Status Time** The time at which the last status message was generated.
<badge text= "Version 8.10.57" vertical="middle" />
<PageFooter /> | markdown |
<gh_stars>0
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.InvestorMaterialInfo;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: antfortune.stock.qualified.investor.apply response.
*
* @author auto create
* @since 1.0, 2022-01-20 11:15:37
*/
public class AntfortuneStockQualifiedInvestorApplyResponse extends AlipayResponse {
private static final long serialVersionUID = 2477242464884738724L;
/**
* 签约协议号
*/
@ApiField("agreement_no")
private String agreementNo;
/**
* 用户在支付宝总资产获取时间
*/
@ApiField("alipay_asset_time")
private String alipayAssetTime;
/**
* 支付宝金融总资产金额,单位元;精度到分
*/
@ApiField("alipay_total_asset")
private String alipayTotalAsset;
/**
* 余额宝首次交易时间,格式yyyyMMdd
*/
@ApiField("first_yeb_trade_day")
private String firstYebTradeDay;
/**
* 是否有合投材料
*/
@ApiField("has_material")
private Boolean hasMaterial;
/**
* 材料列表
*/
@ApiListField("material_list")
@ApiField("investor_material_info")
private List<InvestorMaterialInfo> materialList;
/**
* 码商收入金额,单位元;精度到分
*/
@ApiField("total_income")
private String totalIncome;
/**
* traceId,用来唯一定位某次调用,方便问题排查
*/
@ApiField("trace_id")
private String traceId;
public void setAgreementNo(String agreementNo) {
this.agreementNo = agreementNo;
}
public String getAgreementNo( ) {
return this.agreementNo;
}
public void setAlipayAssetTime(String alipayAssetTime) {
this.alipayAssetTime = alipayAssetTime;
}
public String getAlipayAssetTime( ) {
return this.alipayAssetTime;
}
public void setAlipayTotalAsset(String alipayTotalAsset) {
this.alipayTotalAsset = alipayTotalAsset;
}
public String getAlipayTotalAsset( ) {
return this.alipayTotalAsset;
}
public void setFirstYebTradeDay(String firstYebTradeDay) {
this.firstYebTradeDay = firstYebTradeDay;
}
public String getFirstYebTradeDay( ) {
return this.firstYebTradeDay;
}
public void setHasMaterial(Boolean hasMaterial) {
this.hasMaterial = hasMaterial;
}
public Boolean getHasMaterial( ) {
return this.hasMaterial;
}
public void setMaterialList(List<InvestorMaterialInfo> materialList) {
this.materialList = materialList;
}
public List<InvestorMaterialInfo> getMaterialList( ) {
return this.materialList;
}
public void setTotalIncome(String totalIncome) {
this.totalIncome = totalIncome;
}
public String getTotalIncome( ) {
return this.totalIncome;
}
public void setTraceId(String traceId) {
this.traceId = traceId;
}
public String getTraceId( ) {
return this.traceId;
}
}
| java |
{"packages":{"wpackagist-theme\/soft-team":{"1.0.0":{"name":"wpackagist-theme\/soft-team","version":"1.0.0","version_normalized":"1.0.0.0","uid":330446,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/theme\/soft-team.1.0.0.zip"},"source":{"type":"svn","url":"https:\/\/themes.svn.wordpress.org\/soft-team\/","reference":"1.0.0"},"homepage":"https:\/\/wordpress.org\/themes\/soft-team\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-theme"},"1.0.1":{"name":"wpackagist-theme\/soft-team","version":"1.0.1","version_normalized":"1.0.1.0","uid":330447,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/theme\/soft-team.1.0.1.zip"},"source":{"type":"svn","url":"https:\/\/themes.svn.wordpress.org\/soft-team\/","reference":"1.0.1"},"homepage":"https:\/\/wordpress.org\/themes\/soft-team\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-theme"},"1.0.2":{"name":"wpackagist-theme\/soft-team","version":"1.0.2","version_normalized":"1.0.2.0","uid":330448,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/theme\/soft-team.1.0.2.zip"},"source":{"type":"svn","url":"https:\/\/themes.svn.wordpress.org\/soft-team\/","reference":"1.0.2"},"homepage":"https:\/\/wordpress.org\/themes\/soft-team\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-theme"},"1.0.3":{"name":"wpackagist-theme\/soft-team","version":"1.0.3","version_normalized":"1.0.3.0","uid":330449,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/theme\/soft-team.1.0.3.zip"},"source":{"type":"svn","url":"https:\/\/themes.svn.wordpress.org\/soft-team\/","reference":"1.0.3"},"homepage":"https:\/\/wordpress.org\/themes\/soft-team\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-theme"},"1.0.4":{"name":"wpackagist-theme\/soft-team","version":"1.0.4","version_normalized":"1.0.4.0","uid":330450,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/theme\/soft-team.1.0.4.zip"},"source":{"type":"svn","url":"https:\/\/themes.svn.wordpress.org\/soft-team\/","reference":"1.0.4"},"homepage":"https:\/\/wordpress.org\/themes\/soft-team\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-theme"}}}} | json |
Virginia 'Ginny' Burton got into drugs at the age of 6. She was a heroin addict for a very time, remained homeless for years and even spent time in prison.
But somehow, she battled her way back from the darkness and charted a success story for herself. Now, aged 48, she is a university graduate. Needless to say, her remarkable journey has gone viral.
Burton was first introduced to drugs when she was 6. By the time she was 23, she started doing heroin, according to reports.
Her severe addiction took a toll on her personal life and she was homeless for several years.
The 48-year-old, who is now a Political Science graduate from the University of Washington in Seattle, shared two pictures of herself on Facebook last month, and also explained, in brief, the battles she fought to become successful.
The first picture showed her at the peak of her addiction, while the other showed her wearing her graduation gown and cap.
The post now has over 7,500 shares, 5,000 reactions, and more than 600 comments.
The inspirational post was also picked up by several media houses and Facebook groups, who all congratulated Burton forn turning her life around.
In a follow-up post, Burton thanked her well-wishers for their love and support.
"Most of my journey was not graceful, however, it has been beautiful and TREMENDOUSLY painful. But, I would not change a moment of it. This is just the beginning for me. I share openly so others know there is hope for them to change," she wrote.
She further explained that she didn't come from a wealthy family and lost her parents to 'health problems associated with lifestyle choices'.
She then revealed her own siblings were fighting their own battles of survival in their own way.
Today, Burton is involved with a non-profit organisation which has helped her in many ways. | english |
<gh_stars>0
export function isEmptyElement(element: any): boolean;
//# sourceMappingURL=utils.d.ts.map | typescript |
{
"names": [
"libdile_tvregion.so.1",
"libdile_tvregion.so.1.0.0"
],
"symbols": [
"DILE_TVREGION_getHWOptCountry",
"DILE_TVREGION_getTVRegion",
"_Z11cmdlinePathB5cxx11",
"_Z11modelIdPathB5cxx11",
"_Z23setCmdLinePath4UnitTestRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_Z23setModelIdPath4UnitTestRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN21TVRegionModelIdParser11getTVRegionEv",
"_ZN21TVRegionModelIdParser19getTVRegionByStringERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN21TVRegionModelIdParserC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN21TVRegionModelIdParserC1Ev",
"_ZN21TVRegionModelIdParserC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN21TVRegionModelIdParserC2Ev",
"_ZN21TVRegionModelIdParserD1Ev",
"_ZN21TVRegionModelIdParserD2Ev",
"_ZN22TVRegionHWOptionParser11getTVRegionEv",
"_ZN22TVRegionHWOptionParser15getHWOptCountryEv",
"_ZN22TVRegionHWOptionParser19getTVRegionByStringERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN22TVRegionHWOptionParser20getTVRegionByCmdLineB5cxx11Ev",
"_ZN22TVRegionHWOptionParser25getAreaOptionNumByCmdLineEv",
"_ZN22TVRegionHWOptionParser27getTVRegionByAreaOptioinNumEi",
"_ZN22TVRegionHWOptionParser30getHWOptCountryByAreaOptionNumEi",
"_ZN22TVRegionHWOptionParserC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN22TVRegionHWOptionParserC1Ev",
"_ZN22TVRegionHWOptionParserC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE",
"_ZN22TVRegionHWOptionParserC2Ev",
"_ZN22TVRegionHWOptionParserD1Ev",
"_ZN22TVRegionHWOptionParserD2Ev",
"_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev",
"_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev",
"_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag",
"_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag",
"_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructISt19istreambuf_iteratorIcS2_EEEvT_S8_St18input_iterator_tag",
"_ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEENS0_5__ops16_Iter_equals_valIS8_EEET_SH_SH_T0_St26random_access_iterator_tag",
"_ZTIN7pbnjson18JValueArrayElementE",
"_ZTSN7pbnjson18JValueArrayElementE",
"_ZTVN7pbnjson18JValueArrayElementE"
],
"needed": [
"libpbnjson_cpp.so.2",
"libstdc++.so.6",
"libgcc_s.so.1",
"libc.so.6"
]
} | json |
PAN Indian star Prabhas fans are on cloud nine as the release date of the action thriller Salaar has been announced. But before Salaar Prabhas will be seen in the mythological film Adipurush. The film will also be coming in IMAX 3D format.
Prabhas plays Raghava in the film and his look is yet to be revealed. Today a fan-made concept art featuring Prabhas went viral on social media. It showcased Prabhas in the Lord Rama avatar and it is very nicely done.
Tanhaji fame Om Raut helmed this film that is based on the epic Ramayana. Krithi Sanon plays the female lead while Said Ali Khan plays the antagonist. The film releases on 12th January 2023 during the Sankranti season.
Articles that might interest you:
| english |
Supreme Court asked a private school to explain irregularities in giving marks to Class 10 students.
By India Today Web Desk: The Supreme Court on Monday heard a plea filed by 24 students from Class 10 against a private school, St Xavier International School, Bhubaneswar, Odisha for demanding money and forcing them to take admission to the school to get better marks. A bench headed by Justice A M Khanwilkar took note of the submission of the lawyer of the students.
"The counsel for the petitioner submits that in terms of liberty granted by this court, a copy of the petition has been given to the respondents. None appeared for Respondent 3 (school). Accordingly, issue notice returnable on February 14. . . ,” ordered the bench, which also comprised Justices Dinesh Maheshwari and C T Ravikumar.
Students these days are filing petitions at the top for a number of reasons, including fee hikes, marks distribution, fairness, and accuracy in NEET exams, among others.
(With PTI inputs) | english |
package templates
func New() *Template {
return &Template{
ID: "main",
Name: "Main",
Package: "",
Environments: []*Environment{
{Name: "Level", Type: "string", Env: "LOG_LEVEL", Default: "info"},
{Name: "Debug", Type: "bool", Env: "DEBUG"},
},
Properties: []*Property{
{Name: "Logger", Type: "*zap.Logger", Default: "logger"},
{Name: "Config", Type: "*Config", Default: "config"},
{Name: "Error", Type: "chan error", Default: "make(chan error, math.MaxUint8)"},
{Name: "Ctx", Type: "context.Context"},
{Name: "ctxCancel", Type: "context.CancelFunc"},
{Name: "WaitGroup", Type: "*sync.WaitGroup", Default: "new(sync.WaitGroup)"},
},
Libraries: []*Library{
{Name: "go.uber.org/zap", Version: "^1.9.1"},
{Name: "{{.Repo}}/signals"},
{Name: "math"},
{Name: "io"},
{Name: "context"},
{Name: "sync"},
{Name: "time"},
},
Models: map[string]string{},
TemplateSetter: BlankFunction,
TemplateSetterFunction: BlankFunction,
TemplateRunFunction: BlankFunction,
TemplateClosers: BlankFunction,
Templates: func(config *Config) (strings map[string]string) {
strings = map[string]string{
"main.go": `package main
import (
"{{.Repo}}/app"
)
func main() {
application, err := app.New()
if err != nil {
panic(err)
}
defer application.Close()
application.Start()
}
`,
"app/config.go": `package app
import (
"github.com/caarlos0/env"
)
type Config struct {
{{.Env}}
}
func NewConfig() (cfg *Config, err error) {
cfg = new(Config)
return cfg, env.Parse(cfg)
}
`,
"app/logger.go": `package app
import (
"fmt"
"go.uber.org/zap"
)
type Logger struct {
logger *zap.Logger
}
func NewLogger(level string) (*zap.Logger, error) {
cfg := zap.NewProductionConfig()
cfg.Level = zap.NewAtomicLevelAt(zap.DebugLevel)
atom := zap.NewAtomicLevel()
err := atom.UnmarshalText([]byte(level))
if err != nil {
return nil, err
}
cfg.Level = atom
return cfg.Build()
}
func (l *Logger) Printf(format string, args ...interface{}) {
l.logger.Warn(fmt.Sprintf(format, args...))
}
func (l *Logger) Println(v ...interface{}) {
l.logger.Warn(fmt.Sprint(v...))
}
`,
"app/app.go": `package app
import (
{{.Repos}}
)
type Application struct {
{{.Props}}
}
{{.Models}}
func New() (*Application, error) {
config, err := NewConfig()
if err != nil {
return nil, err
}
logger, err := NewLogger(config.Level)
if err != nil {
return nil, err
}
logger.Debug("debug mode on")
app := &Application{
{{.PropsValue}}
}
app.Ctx, app.ctxCancel = context.WithCancel(context.Background())
defer func() {
if err != nil {
app.Close()
}
}()
{{.Setter}}
return app, nil
}
func (app *Application) Close() {
app.Logger.Debug("Application stops")
{{.Closers}}
}
func (app *Application) Start() {
defer app.Stop()
{{.Runners}}
{{- if eq .ServiceType "lambda"}}
lambda.Start(app.Lambda)
{{- else}}
select {
case err := <-app.Error:
app.Logger.Panic("service crashed", zap.Error(err))
case <-app.Ctx.Done():
app.Logger.Error("service stops via context")
case sig := <-signals.WaitExit():
app.Logger.Info("service stop", zap.Stringer("signal", sig))
} {{- end}}
}
func (app *Application) Stop() {
app.Logger.Info("service stopping...")
app.ctxCancel()
{{- if eq .ServiceType "lambda"}}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Millisecond)
{{- else}}
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
{{- end}}
go func() {
defer cancel()
app.WaitGroup.Wait()
}()
<-ctx.Done()
if ctx.Err() != context.Canceled {
app.Logger.Panic("service stopped with timeout")
} else {
app.Logger.Info("service stopped with success")
}
}
func (app *Application) Closer(closer io.Closer, scope string) {
if closer != nil {
if err := closer.Close(); err != nil {
app.Logger.Warn("closer error", zap.String("scope", scope), zap.Error(err))
}
}
}
{{.SetterFunction}}
`,
"signals/signals.go": `package signals
import (
"os"
"os/signal"
"syscall"
)
// WaitExit waits while user don't press Ctrl+C
func WaitExit() chan os.Signal {
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
return sigs
}
`,
"Dockerfile": `FROM alpine:latest as alpine
RUN apk --no-cache add tzdata zip ca-certificates
WORKDIR /usr/share/zoneinfo
# -0 means no compression. Needed because go's
# tz loader doesn't handle compressed data.
RUN zip -r -0 /zoneinfo.zip .
FROM golang:1.12 AS builder
# build via packr hard way https://github.com/gobuffalo/packr#building-a-binary-the-hard-way
RUN go get -u github.com/gobuffalo/packr/... && \
go get -u github.com/golang/dep/cmd/dep
WORKDIR /go/src/{{.Repo}}
ADD . .
RUN dep ensure && \
packr && \
CGO_ENABLED=0 GOOS=linux go build -o /go/bin/{{.Name}} . && \
packr clean
FROM busybox:latest
# configurations
EXPOSE 4000
WORKDIR /root
# the timezone data:
ENV ZONEINFO /zoneinfo.zip
COPY --from=alpine /zoneinfo.zip /
# the tls certificates:
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# the main program:
COPY --from=builder /go/bin/{{.Name}} ./{{.Name}}
CMD ["./{{.Name}}"]
`,
"README.md": `# About
TODO
## Config [ENV]
{{.MdCode}}go
package app
type Config struct {
{{.Env}}
}
{{.MdCode}}
`,
"Gopkg.toml": `# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
[prune]
go-tests = true
unused-packages = true
{{.DepLibs}}
`,
}
return
},
}
}
| go |
<reponame>WayneJz/COMP9041-18S2
(function() {
'use strict';
// write your js here.
const outputwindow = document.getElementById('output');
setInterval(function (){
outputwindow.classList.toggle('hide');
}, 1000);
}());
| javascript |
Here’s all you need to know about Naim Audio: When Bentley Motors was looking for a premium audio package to plug into its luxury autos, it hired this legendary British hi-fi brand. And Naim just released the Mu-so Qb, a wireless speaker that’s a scaled-down version of its entry-level Mu-so, the $1,500 boombox that Apple employees blast hellishly loud after they close up shop.
Anyone who’s visited an Apple store in the past year probably has seen the Mu-so: a long, low modernist box that looks like something Jony Ive sketched on a napkin. The Mu-so Qb morphs the form-factor into an 8.6-inch cube. It may have a footprint smaller than a toaster, but the Qb retains signature Mu-so touches: subtly contoured grill; glass touchscreen; an extruded heat sink that looks more artistic than functional; and an illuminated acrylic base that makes the Qb appear as if its hovering above a mag-lev plinth.
All programming and functions are controlled via the Qb touchscreen and your iOS/Android device. If the latency of iPhone taps annoys you, spring for the optional remote. I don’t know what’s more bizarre: that Naim took the time to design an obsolete interface, or that it charges just $20 for it. That interface is middling, by the way. The Naim app is short on features and visually uninspired, but glitch-free and easy to use. The budge-proof cable inputs are discreetly tucked in back, with every port a multi-format music lover needs: 3.5mm analog, optical, USB, and Ethernet. Minimalist yet conspicuous in a post-modern Patrick Bateman kind of way, the Mu-so Qb is the ideal wireless speaker to prop out a glass sheathed designer apartment on the west side of Manhattan.
The construction exudes quality and craftsmanship. The touchscreen disc, encircled by a ring of milled aluminum, has the same look, heft, and addictive haptic feedback as the one on Naim’s flagship “Statement” amp. The rest of the details—from the zero-tolerance seams to the removable speaker grill, which looks and feels like it was engineered to military spec—benefit from the same uncompromising manufacturing standards.
Peek behind that grill, and you’ll see another thing that distinguishes the Qb from its big brother. The Mu-so is a 450-watt beast with six custom drivers. The Qb is a 300-watt mini-me beast with five custom drivers: two microfiber dome tweeters, two mids and a single woofer.
Not to worry, bassheads: The woofer gets an added infrasound kick from two “pistonic bass radiators” and a dedicated 100-watt amp. What keeps this black box from cleaving asunder during a house party? The Qb cabinet is a single piece of injection-molded, glass-filled (20 percent) polymer. This means more strength, rigidity, and damping. Jolly good show, Naim eggheads.
The supporting cast includes Bluetooth (apt/X), AirPlay, Spotify Connect, Tidal and the usual Internet radio suspects. It also can tap your music library over UPnP (universal plug and play) and sample rates up to 48kHz via Wi-Fi.
It can’t play DSD files, but neither can any other wireless speaker. If you’re in a hi-res mood, it will support 24/192kHz listening sessions but only via the Ethernet port. The Qb is also down with multi-room playback; up to five other Naim devices can be synced to the same network. That’s good news for robber barons who wish to strike envy in the hearts of Sonos-loving houseguests.
What makes this small cube play so big is largely the digital amps and 32-bit digital signal processor borrowed from the “Naim For Bentley” system. But be forewarned: the soundstage is narrow. As in “beaming” kind of narrow, a word audiophiles use when describing tweeters that shoot like lasers. The tweets and mids are offset and angled to conjure a credible left-right sonic dispersion. Still, at less than eight inches wide, straying off center is a fidelity drop. Stand on axis, though, and everything’s hunky dory.
Miles Davis’ horn on Ascenseur pour l’échafaud is clear without being overly bright, and Kanye’s bass line on Jay-Z’s The Blueprint has an infrasound punch that sounds like it was tuned to lure the 18-24 demo. The midrange is a tad muddy, especially when playing mp3s, but that comes with the Wi-Fi territory. The two EQ settings, which tweak the signal for optimum listening pleasure, depending on whether the unit is positioned close to or far away from the wall, is a bonus: better acoustics through algorithms.
The Naim Mu-so Qb sounds good. But it doesn’t sound nearly as good as the Devialet Phantom, the wireless reigning champ we reviewed last year. The Qb lacks the power, clarity, and crazy bass extension of the Phantom. On the other hand, you could buy two Qbs for what it costs to take home a single Phantom.
If your living room is modestly sized and owning a Naim system has been a lifelong dream, then click the buy button. You could choose a premium wireless speaker for less that would sound almost as good as the Qb—some may claim even a bit better (see: B&W Zeppelin). But you wouldn’t get to play with that wonderfully engineered touchscreen wheel or experience the pleasure of seeing the iconic Naim logo illuminated from across a darkened room. That’s what you’re paying for. Despite the custom drivers and 32-bit DSP, this isn’t an audiophile product—it’s a lifestyle product. And, as Patrick Bateman would point out, that’s money well spent.
| english |
Britain’s competition watchdog is investigating whether Amazon is harming competition and hurting consumers by giving an unfair advantage to merchants that pay for extra services.
(Sign up to our Technology newsletter, Today’s Cache, for insights on emerging themes at the intersection of technology, business and policy. Click here to subscribe for free. )
The Competition and Markets Authority’s formal investigation said Wednesday that it will look into concerns that the ecommerce giant is abusing its dominance to undermine rivals, echoing similar investigations carried out by the European Union’s executive Commission and Germany’s antitrust agency.
Amazon said it will work closely with the CMA during the investigation.
While Amazon supplies some of the products that it sells online, many others are from third-party merchants and retailers, and provides them with essential services to make sales.
The Markets Authority said it will consider whether Amazon gives an unfair edge to merchants using optional services that cost extra, including storage, packaging and delivery.
With millions of customers in Britain, “it’s right that we carefully investigate whether Amazon is using third-party data to give an unfair boost to its own retail business and whether it favours sellers who use its logistics and delivery services – both of which could weaken competition,” the watchdog’s general counsel, Sarah Cardell, said in a prepared statement.
It’s also important to have a competitive market for British merchants selling on Amazon, Ms. Cardell said.
“Any loss of competition is a loss to consumers and could lead to them paying more for products, being offered lower quality items or having less choice,” Ms. Cardell added.
The investigation will focus on how Amazon chooses suppliers for the so-called Buy Box, which shows customers one-click “Buy Now” or “Add to Basket” options. Also under scrutiny is the eligibility criteria for offers under the premium Prime label and the collection and use of data. | english |
Thiruvananthapuram: The Kerala Police probing the recovery of 266 live bullets from an uninhabited land near the Nellikode by-pass road in Kozhikode have decided to move into the neighbouring state of Karnataka after some leads surfaced.
According to the experts, the recovered bullets are used in . 22 rifles, which are normally possessed by rifle clubs and the police use them mainly for training purposes.
The scientific examination of the live bullets revealed that these bullets were manufactured by three companies in India and one was of foreign origin.
Some of the bullets were 15 years old, while some were around five years old.
According to sources, the probe team has identified the manufacturers of some of these bullets and will soon get in touch with them to get their list of clients.
The police are also trying to find out more clues by examining CCTV footage of the area from where this was recovered.
The probe team is also focussing its probe to Rifle Clubs in both these states.
It was last week that a team of professionals, who were measuring a piece of land near the uninhabited land, found a few bullet-like articles there.
Initially, they thought it might be beads used in making metal jewellery, but a Motor Transport official, who was also present, correctly identified them as bullets.
The local police were informed. On Tuesday, when a detailed inspection was done by the bomb squad, they found a packet and opened it to find about 255 bullets.
During further search, they recovered a target used by Rifle Clubs and it was found out that only one bullet was fired.
Preliminary finding of the police probe team hints that the bullets might have been abandoned by someone.
(With IANS and PTI inputs) | english |
package org.nico.seeker.convert;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
/**
*
* @author nico
* @version 创建时间:2017年9月2日 上午11:30:57
*/
public class ConvertUtils {
/**
* map转为url请求参数
* @param map
* @return
*/
public static String map2UrlParams(Map<String, Object> map){
StringBuffer cache = new StringBuffer("?");
if(map != null){
for(Entry<String, Object> entry: map.entrySet()){
cache.append(entry.getKey());
cache.append("=");
cache.append(entry.getValue().toString());
cache.append("&");
}
}
cache.delete(cache.length() - 1, cache.length());
return cache.toString();
}
}
| java |
<filename>code/571544.json
[{"province":"海南省","city":"万宁市","area":"万宁市","name":"东岭邮政支局","code":"571544","address":"海南省万宁市北大镇东岭农场","phone":"0898-62325006"}] | json |
{"data":{"id":74971,"title":"Kylie","primoId":"","slug":"","shortcode":"BoWQa3mF6sf","imageUrl":"https:\/\/dxlab.sl.nsw.gov.au\/images-newselfwales\/selfie-1538715659576-.jpg","content":"Besties #newselfwales","imageType":"instagram_selfie","date":"2018-10-08 14:13:34","dateText":"","timestamp":1538305127,"instagramUsername":"oh_hi_its_kylie","featuredMedia":{"sourceUrl":"https:\/\/dxlab.sl.nsw.gov.au\/images-newselfwales\/selfie-1538715659576-.jpg","sizes":{"medium":{"sourceUrl":"https:\/\/dxlab.sl.nsw.gov.au\/images-newselfwales\/selfie-1538715659576--300x300.jpg","width":300,"height":300,"__typename":"MediaSize"},"full":{"sourceUrl":"https:\/\/dxlab.sl.nsw.gov.au\/images-newselfwales\/selfie-1538715659576-.jpg","width":720,"height":720,"__typename":"MediaSize"},"__typename":"MediaSizes"},"__typename":"Media"},"__typename":"NewSelfWalesInstagramSelfie"}} | json |
{
"name": "ThaiChain",
"chain": "TCH",
"network": "mainnet",
"rpc": [
"https://rpc.dome.cloud"
],
"faucets": [],
"nativeCurrency": {
"name": "ThaiChain Ether",
"symbol": "TCH",
"decimals": 18
},
"infoURL": "https://thaichain.io",
"shortName": "tch",
"chainId": 7,
"networkId": 7
}
| json |
<gh_stars>10-100
package com.xunlei.tdlive;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.xunlei.tdlive.util.XLog;
// compiled from: LivePlayerActivity.java
class ac implements OnClickListener {
final /* synthetic */ LivePlayerActivity a;
ac(LivePlayerActivity livePlayerActivity) {
this.a = livePlayerActivity;
}
public void onClick(DialogInterface dialogInterface, int i) {
if (i == 1) {
XLog.e("LivePlayerActivity", "\u4e3b\u52a8\u5173\u95ed\u623f\u95f4");
this.a.e.a(true);
this.a.b("\u4e3b\u52a8\u5173\u95ed\u623f\u95f4");
}
}
}
| java |
<!DOCTYPE HTML>
<HTML>
<head>
<h1>A Day in the Acedemic Life of Jake Hill</h1>
<p>Welcome! This app will take you through a chronological journey of 24 hours in a
College Student's life! Click a link to continue</p>
</head>
<body>
<div id = "container">
<div>
<h3>
| html |
<reponame>skyskyskyha/hearthstone-battlegrounds-tools<filename>src/renderer/suspension/pages/handbook.tsx
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import clsx from 'clsx'
import type { IMinion } from '@hbt-org/core'
import _ from 'lodash'
import Layout from '@suspension/components/Layout'
import SwitchBattleAndHandbook from '@suspension/components/SwitchBattleAndHandbook'
import MinionCard from '@suspension/components/MinionCard'
import Text from '@suspension/components/Text'
import useMinions from '@shared/hooks/useMinions'
interface TierList {
[techLevel: number]: IMinion[]
}
interface TierRaceList {
[race: string]: Record<string, IMinion[]>
}
function groupByTier(list: IMinion[]) {
return list.reduce<TierList>((acc, cur) => {
const { techLevel } = cur
if (techLevel) {
return {
...acc,
[techLevel]: Array.isArray(acc[techLevel])
? [...acc[techLevel], cur]
: [cur],
}
}
return acc
}, {})
}
function groupByRace(list: TierList) {
return Object.keys(list).reduce<TierRaceList>((acc, cur) => {
const minions = list[parseInt(cur, 10)]
return {
...acc,
[cur]: _.groupBy(minions, (value) => value.race ?? 'INVALID'),
}
}, {})
}
function getTierCN(techLevel: number) {
switch (techLevel) {
case 1:
return '一'
case 2:
return '二'
case 3:
return '三'
case 4:
return '四'
case 5:
return '五'
case 6:
return '六'
default:
return '一'
}
}
function getRaceCN(race: string) {
switch (race) {
case 'INVALID':
return '中立'
case 'MURLOC':
return '鱼人'
case 'DEMON':
return '恶魔'
case 'MECHANICAL':
return '机械'
case 'ELEMENTAL':
return '元素'
case 'BEAST':
return '野兽'
case 'PIRATE':
return '海盗'
case 'DRAGON':
return '龙'
case 'ALL':
return '所有'
default:
return '中立'
}
}
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
},
switch: {},
switchItem: {
display: 'inline-block',
width: 34,
filter: 'grayscale(1)',
transition: `all ${theme.transitions.easing.sharp} ${theme.transitions.duration.shortest}ms`,
'&:hover': {
filter: 'grayscale(0.2) drop-shadow(0px 0px 2px #f9cd0d)',
},
},
switchItemActive: {
filter: 'grayscale(0) drop-shadow(0px 0px 6px #f9cd0d)',
},
group: {},
title: {
fontSize: 18,
textAlign: 'center',
marginTop: theme.spacing(1),
marginBottom: theme.spacing(2),
},
minions: {},
race: {
marginBottom: theme.spacing(1),
},
}))
const Handbook: React.FC = () => {
const classes = useStyles()
const { minions } = useMinions()
const techLevelData = groupByTier(
minions.filter((v) => !!v.battlegroundsPremiumDbfId && v.official)
)
const techLevelRaceData = groupByRace(techLevelData)
const [currentTier, setCurrentTier] = React.useState<number>(1)
return (
<Layout className={classes.root}>
<SwitchBattleAndHandbook current="handbook" />
<div className={classes.switch}>
{[1, 2, 3, 4, 5, 6].map((techLevel) => (
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
<img
className={clsx(classes.switchItem, {
[classes.switchItemActive]: techLevel === currentTier,
})}
src={
require(`@shared/assets/images/techLevel-${techLevel}.png`)
.default
}
alt="techLevel"
onClick={() => setCurrentTier(techLevel)}
key={techLevel}
/>
))}
</div>
<div className={classes.group}>
<div className={classes.title}>
<Text>{`${getTierCN(currentTier)}星酒馆`}</Text>
</div>
<div className={classes.minions}>
{techLevelRaceData?.[currentTier] &&
Object.keys(techLevelRaceData?.[currentTier])?.map((race) => {
const raceMinions = techLevelRaceData?.[currentTier]?.[race]
return (
<div key={race}>
<Text className={classes.race} color="#45331d" stroke={false}>
{getRaceCN(race)}
</Text>
{raceMinions?.map((minion) => (
<MinionCard
minionName={minion.name}
props={{ TECH_LEVEL: currentTier.toString() }}
key={minion.id}
/>
))}
</div>
)
})}
</div>
</div>
</Layout>
)
}
export default Handbook
| typescript |
Jeddah: Saudi Arabia defeated Palestine 96-72 in the FIBA Asia Cup qualifying tournament on Sunday, sending a wave of cheer in the Indian camp as that win paved the way for India to qualify for the finals scheduled in July, 2022, in Jakarta.
India, who had lost 80-61 to the Saudis in their first Group H match on Friday, had overcome Palestine 79-77 in a thriller on Saturday and needed the hosts to either beat Palestine or lose by a huge margin, to qualify for the finals.
The Saudis won Sunday's match comfortably and finished with two wins while India ended second in the three-team group with one win and one defeat. Palestine lost both their matches and thus finished third.
India and Saudi Arabia thus qualified for the FIBA Asia Cup finals and joined 13 teams -- hosts Indonesia, Australia, Bahrain, China, Iran, Japan, Jordan, Kazakhstan, South Korea, Lebanon, New Zealand, the Philippines, and Syria -- that have already qualified for the 16-team competition. The 16th team will be decided via a two-match series between Chinese Taipei and Guam.
India had finished third in the first round of qualifiers in Group D behind Lebanon and Bahrain and made it to the second qualifying stage. India have qualified for every Asia Cup edition since 1976 except in 1993. The fourth place in 1975 is their best-ever performance in this competition.
Jeddah: Saudi Arabia defeated Palestine 96-72 in the FIBA Asia Cup qualifying tournament on Sunday, sending a wave of cheer in the Indian camp as that win paved the way for India to qualify for the finals scheduled in July, 2022, in Jakarta. | english |
Some on #MedTwitter are really shook bc #NurseTwitter is filled with nurses who “don’t know there place”. Got that right! You say we can’t do xyz, yet we defy the medical patriarchy anyway. Y’all try to block our progress, yet we’re resilient & we regroup and overcome.
The Nursing of yesteryear is gone! It’s not coming back, we will continue to move forward, regardless of what y’all say to do, even if it’s in baby steps. Even if it means going back to the drawing after some setbacks. But we will continue forward, best you can do is join us.
#MedTwitter, #NurseTwitter has never required your permission to be great and to grow and change, and more nurses are waking up to that. We’ve got a lot of work to do internally, but we will not become stagnant. We will not ask permission to be great.
| english |
{% extends "layout.html" %}
{% block page_title %}
{{ common.serviceName }} - GOV.UK
{% endblock %}
{% block proposition_header %}
<!-- blank to remove the proposition header -->
{% endblock %}
{% block header_class %}
<!-- blank to remove the proposition header -->
{% endblock %}
{% block content %}
{% endblock %}
| html |
{
"id": 59385322,
"name": "<NAME>",
"is_illegal": false,
"is_custom": false,
"text": "Equip only to a \"Koa\u0027ki Meiru\" monster. If it battles a LIGHT or DARK monster, destroy that monster without applying damage calculation. When the equipped monster is removed from the field and this card is sent to the Graveyard, you can return this card to your hand.",
"images": [
"https://storage.googleapis.com/ygoprodeck.com/pics/59385322.jpg"
],
"type": "Spell",
"spell_type": "Equip"
} | json |
Get all the latest news on coronavirus and more delivered daily to your inbox. Sign up here.
President Trump announced Friday that the Food and Drug Administration (FDA) has authorized the emergency use of Gilead Science's experimental antiviral drug remdesivir to treat coronavirus patients after early results of a clinical study indicated the drug helps speed recovery.
Trump announced the news at the White House alongside Gilead CEO Daniel O’Day and FDA Commissioner Stephen Hahn.
"FDA's emergency authorization of remdesivir, two days after the National Institutes of Health's clinical trial showed promising results, is a significant step forward in battling COVID-19 and another example of the Trump Administration moving as quickly as possible to use science to save lives," Health and Human Services Secretary Alex Azar said in a statement.
"NIH, FDA, and scientists across America and around the world have worked tirelessly with patients to get us this new potential treatment for COVID-19," he added. "The seamless cooperation between government and private industry under the President's all-of-America approach to COVID-19 is getting treatment options to patients in record time. "
The emergency use order allows the drug to be distributed to health care providers and administered to hospitalized COVID-19 patients.
"Today's action is an important step in our efforts to collaborate with innovators and researchers to provide sick patients timely access to new therapies where appropriate, while at the same time supporting research to further evaluate whether they are safe and effective," said Hahn.
Dr. Anthony Fauci, the nation's top infectious disease expert and the director of the National Institute of Allergy and Infectious Diseases, praised the drug Wednesday. He said preliminary results from an NIH study found 1,063 patients tested with Remdesivir took 11 days to recover versus 15 days for others.
“The data shows that remdesivir has a clear-cut significant positive effect in diminishing the time to recovery,” he said during a White House press conference on Wednesday.
Gilead has said it would donate its available stock of the drug and is ramping up production to make more.
The FDA normally requires evidence of a drug's effectiveness after rigorously-controlled patient studies before it can be brought to market. In the case of health emergencies, the agency can waive certain standards id the drugs potential benefits outweigh the risks.
No drugs are approved now for treating the coronavirus, and remdesivir will still need formal approval.
The FDA previously approved emergency use authorization to malaria drug hydroxychloroquine after it was touted by Trump. No evidence exists that it works as a treat for COVID-19 paitients.
The Associated Press contributed to this report. | english |
{% extends "base.html" %}
{% block page_title %}{{ playlist['name'] }}{% endblock %}
{% block page_content %}
<!-- Projects Row -->
<div class="row">
<div class="col-sm-3">
<a href="{{ playlist['url'] }}">
<img class="img-responsive playlist" src="{{ playlist['image'] }}" alt="playlist cover art">
</a>
</div>
<div class="col-sm-9">
<p class="lead">{{ playlist['description'] }}</p>
<p><b>{{ playlist['count'] }} tracks</b></p>
<p> </p>
<p>
<a href="{{ playlist['uri'] }}" class="btn btn-large btn-success"><i class="fab fa-spotify"></i> Open in Spotify App</a>
</p>
<p>
<a href="{{ playlist['url'] }}" class="btn btn-large btn-success"><i class="fa fa-globe"></i> Open in Spotify Web</a>
</p>
<p> </p>
<table class="table table-striped">
<thead>
<tr>
<td>Title</td>
<td>Artist</td>
<td>Spotify</td>
<td>Preview</td>
</tr>
</thead>
<tbody>
{% for item in playlist['items'] %}
<tr>
<td>{{ item['name'] }}</td>
<td>{{ item['artist'] }}</td>
<td>
<a href="{{ item['uri'] }}" class="btn btn-large btn-success"><i class="fab fa-spotify"></i></a>
</td>
<td>
{% if item['url_listen'] %}
<div class="vid-wrapper">
<video controls="" name="media" style="height: 30px; width: 300px; display: inline-block; vertical-align: middle;">
<source src="{{ item['url_listen'] }}" type="audio/mpeg">
</video>
</div>
{% else %}
<p> </p>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<!-- /.row -->
{% endblock %}
| html |
<reponame>sunyongtao87/dbsyncer
package org.dbsyncer.connector.enums;
/**
* 表类型
*
* @author AE86
* @version 1.0.0
* @date 2021/08/26 21:13
*/
public enum TableTypeEnum {
/**
* 表
*/
TABLE("TABLE"),
/**
* 视图
*/
VIEW("VIEW");
private String code;
TableTypeEnum(String code) {
this.code = code;
}
/**
* 是否视图类型
*
* @param type
* @return
*/
public static boolean isView(String type) {
return VIEW.getCode().equals(type);
}
public String getCode() {
return code;
}
} | java |
One person was killed while another was severely injured after a car rammed into two rickshaws at Thane's Eastern Express Highway on Wednesday night, police said.
"A car rammed into two rickshaws and a car on Thane's Eastern Express Highway in which the rickshaw driver died on the spot and one person was injured. After the accident, the car driver fled leaving the car on the spot," according to the police.
The deceased has been identified as Abhimanyu Arjun Prajapati.
The injured person identified as Ahmed Ansari is an advocate by profession. Ansari has suffered injuries on his head and legs, police said.
The police have registered a case and are looking for the absconding driver.
Further investigation is underway.
READ ALSO: | english |
Ahmadabad: A 17-year-old girl has been gang-raped after she was kidnapped and forcibly fed country-made liquor on the outskirts of Bhuj town of Kutch district of Gujarat. Kutch West Superintendent of Police Saurabh Singh said that on March 16, four people have been arrested in connection with the incident in a field at the foot of a hill in Bhujia area. He said that the victim was found lying unconscious and was taken to the hospital by the local people.
The Superintendent of Police further said that she had gone to the farm with a friend. Where the accused made him drink alcohol and also drank himself. After that he gang-raped her. Based on his complaint, four people were arrested. The victim remembers that a man had raped her. After this she was not conscious due to drinking alcohol. The second accused has admitted to raping her. Investigation is on to find out whether the other two accused also raped the victim after she fainted.
Bhuj B Division Police has registered a case against the four accused under sections 366, 328, 376,114 of IPC. Along with this, a case has also been registered under the provisions of POCSO. Another officer involved in the investigation said that more than one person had raped the victim and the medical report of the victim is awaited to find out. They have identified the accused as Hussain Kakal, Rahul Sathwara, Valji Vadhiyara and Mahesh Maheshwari. All of them were sent to police custody for 10 days.
Violence with 8-year-old girl in Bihar, blindfolded after gang rape, then murdered" | english |
// Time Example
//
// This example is a simple HH:MM clock.
extern crate chan;
extern crate env_logger;
extern crate leechbar;
extern crate time;
use leechbar::{Bar, BarBuilder, Component, Foreground, Text};
use std::time::Duration;
use std::thread;
// Store important state for the component
pub struct Time {
bar: Bar,
last_content: String,
last_text: Option<Text>,
}
// Create the component from a `Bar`
// This can be obtained by calling `.clone()` on your bar
impl Time {
pub fn new(bar: Bar) -> Self {
Self {
bar,
last_text: None,
last_content: String::new(),
}
}
}
// Implement all necessary trait methods
impl Component for Time {
// In here the new time is calculated
// If the time changed, the component will redraw
fn update(&mut self) -> bool {
// Get the current time and format it
let time = time::now();
let content = format!("{:02}:{:02}", time.tm_hour, time.tm_min);
// Check if the time has changed since the last draw
if content != self.last_content {
// Create a new text using X
let text = Text::new(&self.bar, &content, None, None);
if let Ok(text) = text {
// If the creation was successful, add the new text
// Otherwise don't change the text
self.last_text = Some(text);
// Update the `last_content` for checking the next time
self.last_content = content;
}
// Redraw after the content has changed
true
} else {
// Don't redraw if nothing has changed
false
}
}
// Draw the text that's currently stored in `self`
fn foreground(&self) -> Foreground {
// Check if text is `None`
if let Some(ref last_text) = self.last_text {
// Draw text if it exists
last_text.clone().into()
} else {
// Draw empty foreground if text is `None`
Foreground::new()
}
}
// Update component every 5 seconds
// It will only redraw when the time has changed and `update` returns `true`
fn redraw_timer(&mut self) -> chan::Receiver<()> {
// Create a channel for sending out the redraw messages
let (tx, rx) = chan::sync(0);
// Spawn a new thread that loops forever
thread::spawn(move || {
loop {
// Wait 5 seconds, then send an empty message to request a redraw
thread::sleep(Duration::from_secs(5));
tx.send(());
}
});
rx
}
}
fn main() {
// Start the logger
env_logger::init();
// Create a new bar
let mut bar = BarBuilder::new().spawn().expect("Unable to spawn bar");
// Add an instance of the component to the bar
let comp = Time::new(bar.clone());
bar.add(comp);
// Start the event loop that handles all X events
bar.start_event_loop();
}
| rust |
Actor Yami Gautam has tied the knot with her Uri: The Surgical Strike director Aditya Dhar. The actor took to social media on Friday to make the announcement.
Actor Yami Gautam has tied the knot with her Uri: The Surgical Strike director Aditya Dhar. The actor took to social media on Friday to make the announcement.
She shared a picture of her and Aditya at their wedding ceremony, and quoted the poet Rumi in her caption. She wrote, "In your light, I learn to love - Rumi. With the blessings of our family, we have tied the knot in an intimate wedding ceremony today. Being very private people, we celebrated this joyous occasion with our immediate family. "
She continued, "As we embark on the journey of love and friendship, we seek all your blessings and good wishes. Love, Yami and Aditya. "
The couple's friends and colleagues wished them well in the comments section. Actor Sobhita Dhulipala wrote, "This is so heartening. Many many congratulations! " Vaani Kapoor commented, "Congratulations," and added a heart emoji. Actor Dia Mirza, who recently tied the knot herself, wrote, "Congratulations Yami and Aditya. Lots of love and best wishes to a wonderful journey ahead! "
Aditya made his directorial debut with the blockbuster Uri, which starred Vicky Kaushal in the lead role. "Aditya’s passion about the film is infectious and the amount of extensive research he has done is amazing. I am really thrilled to be part of this film," Yami had said in a statement at the time. The filmmaker is currently working on his follow-up, The Immortal Ashwatthama, also starring Vicky.
Yami, meanwhile, made her debut opposite Ayushmann Khurrana in Vicky Donor. She has also appeared in films such as Kaabil and Bala. She was last seen in Ginny Weds Sunny. | english |
Monsoon has knocked on our doors and as much as we enjoy its showers and breezes, there is no getting around that it’s the germiest season, with bacterias and viruses are common that make people sick. Now with food being the primary source of catching germs, it becomes imperative for us to keep what we eat, safe and pure during the rainy seasons.
So, here are some safety tips for fresh fruits, cooked and uncooked food that will help keep your food safe and will abate the risk of contracting risks of catching infections.
As you take extra care of your personal hygiene in the monsoons, it also calls for some additional safety and care for the eatables you buy from the market, especially fruits and veggies. These perishable items home a number of bacterias and molds if kept for a longer time. Thus, always buy fresh and clean vegetables and fruits.
It is better to avoid half-cooked or uncooked food like salads. Make sure you properly cook what you eat during the monsoons. When exposed to heat, any potential germ that could make its way to your system gets destroyed. Thus, try and consume freshly and fully cooked meals during the rainy seasons.
While it seems tempting to keep some of the leftover food in a container and refrigerate it so that you don’t have to cook anything the other day, please don’t. Storing leftovers can be recipe for disaster in the monsoons as stored food is more prone to bacteria and germs.
A refrigerator is a place where you store most of your food and it’s essential to take care of its hygiene as well. An unclean refrigerator can be a place to germs and can degrade the quality of food, especially in the monsoons when the moisture in the air, depletes the air inside the fridge. Also, ensure that you don’t overfill the refrigerator as it may lead to spoilage of fresh products. | english |
define(['jquery', 'handlebars', 'base/collection-layout-view', 'tag/tag-view', "common/filter-view", "common/sort-view","common/pager-view"],
function ($, Handlebars, CollectionLayoutView, TagView, FilterView, SortView, PagerView) {
var TagokHeadView = CollectionLayoutView.extend({
title: "Tagok",
el: '[data-role="main-placeholder"]',
template: Handlebars.compile($('#temp-view-tag-list-head').html())
});
var TagokCollectionView = Marionette.CompositeView.extend({
el: '[data-role="list-placeholder"]',
constructor: function(args){
Marionette.CompositeView.prototype.constructor.call(this,args);
this.collection.url && this.collection.fetch({ reset: true, pending: true, ready: false });
this.listenTo(this.collection, 'ready',this.render);
},
templateHelpers: function() {
return {
collection: this.collection,
}
},
template: Handlebars.compile($('#temp-view-tag-list').html()),
childView: TagView
//render:function(){
// if (this.collection.mode.pending || !this.collection.length) {
// this.parent.sortView && this.parent.sortView.$el.hide();
// }
// else {
// this.parent.sortView && this.parent.sortView.$el.show();
// }
// Marionette.CompositeView.prototype.render.call(this);
//}
});
var TagokFilterView = FilterView.extend({
el: '[data-role="filter-placeholder"]',
template: Handlebars.compile($('#temp-view-filter').html())
});
var TagokSortView = SortView.extend({
el: '[data-role="sort-placeholder"]',
template: Handlebars.compile($('#temp-view-sort').html())
});
var TagokPagerView = PagerView.extend({
el: '[data-role="pager-placeholder"]',
template: Handlebars.compile($('#temp-view-pager').html())
});
return {
TagokCollectionView: TagokCollectionView,
TagokHeadView: TagokHeadView,
TagokFilterView: TagokFilterView,
TagokSortView: TagokSortView,
TagokPagerView: TagokPagerView
};
}); | javascript |
Facebook CEO Mark Zuckerberg met with President Donald Trump in the Oval Office of the White House on Thursday. And while Zuck didn’t bother to mention the meeting on any of his social media channels, the president proudly posted a photo of the two men shaking hands on Facebook, Twitter, and Instagram (which is also owned by Facebook).
Zuckerberg, arguably the most powerful person in the world as the leader of a company with data on over 2.3 billion people, was in Washington, D.C. on Thursday to meet with a number of legislators. One legislator, Republican Senator Josh Hawley of Missouri, even told Zuckerberg to sell off Instagram and WhatsApp, an idea that the billionaire Facebook founder was not willing to entertain.
Zuckerberg’s sit-down with President Trump reportedly included Dan Scavino, the White House Director of Social Media, but was not open to journalists and news photographers. A Facebook spokesperson told CBS News that the meeting with Trump was “good” and “constructive,” though the tech giant did not respond to questions from Gizmodo.
President Trump has repeatedly denounced the heads of social media companies like Twitter and Facebook over the past few years, claiming without evidence that they harbor an anti-conservative bias and restrict the speech of Trump supporters. Trump has even asked why supposedly liberal institutions aren’t censored on platforms like Facebook, a question that would seem to contradict his alleged support for free speech.
Zuckerberg also met with Democratic Senator Mark Warner of Virginia this week to discuss the future of social media. Warner organized a dinner in Washington on Wednesday night where they talked about Libra, Facebook’s digital currency that’s already controversial all around the world. Zuck told Warner that Facebook and the Libra Association, a Switzerland-based group of companies, would not launch the cryptocurrency until they got buy-in from U.S. financial regulators, according to the Washington Post.
Trump supporters who use Facebook left thousands of comments on the White House photo to express their disgust with Zuckerberg, and demonstrated just how vital and insightful these social media platforms can be for a functioning democracy like the United States.
“Ask him when his crews are going to quite (sic) suppressing conservatives views!” one Facebook user wrote.
“How is he allowed at the white House he sensors (sic) conservatives and tampers with elections,” another user said.
“Pls suspensed (sic) all account communist,” wrote another Facebook user.
Took the words right out of my mouth.
I can’t wait for the 2020 presidential election. It’s going to be both normal and good. It’s tough to predict the future, but at least we can all count on those two things. The next election will be normal and it will be good.
Update, 9:25 am: Daniel Roberts, a Facebook spokesperson, just sent Gizmodo this statement via email:
Mark is in Washington, D.C., meeting with policymakers to hear their concerns and talk about future internet regulation. He also had a good, constructive meeting with President Trump at the White House today.
“Mark” is presumably Mark Zuckerberg, though it’s nice to know that people at Facebook aren’t too formal and like to use first names when issuing official press releases. Facebook said that it didn’t have anything more to share about the meeting.
Update, 2:35pm: The White House just published a new photo to its Flickr account and there’s another familiar face that appears in that meeting.
Yes, that’s Jared Kushner in the middle, the president’s son-in-law and a man who’s supposed to be bringing peace to the Middle East. How’s that going, Jared?
Frankly, Zuck doesn’t look too excited to be there. But maybe he always looks like that.
| english |
T. O. P of K-pop boy band Big Bang will go to the moon next year.
T. O. P of K-pop boy band Big Bang will go to the moon next year.
According to dearMoon project website on the 9th, Japanese billionaire Yusaku Maezawa, who established online shopping mall Jojo Town, announced the list of eight crew members who will travel to the moon in a SpaceX spacecraft with him.
The dearMoon project is a first civilian moon mission led by Maezawa.
The eight crew members are all artists, and T. O. P is the only Korean.
Along with T. O. P, American DJ Steve Aoki, American YouTuber Tim Dodd, Czech choreographer Yemi A. D. , Irish photographer Rhiannon Adam, British photographer Karim Iliya, American filmmaker Brendan Hall and Indian actor Dev Joshi are included.
T. O. P. said, "As a Korean artist, I want the dearMoon project to inspire the world, give people hope and make anyone with a dream that anything is possible. "
Maejawa said, "I'm very excited to have amazing people travel to the moon with me. I'm expecting what inspiring creation they will create in space. "
Next year, the eight people will travel around the moon's orbit and return to Earth for a total of six days on a spacecraft Starship developed by Elon Musk's SpaceX. It will not land on the moon.
Maezawa initially said he would invite 6-8 artists to board, but later selected crew members by competition.
Maezawa previously had a 12-day space trip on the International Space Station (ISS) on Russian spacecraft Soyuz last year. He reportedly spent 10 billion yen (about 96 billion won) on the space trip.
However, there is no plan for when the Starship spacecraft will be launched.
SpaceX has developed a prototype of the Starship spacecraft for moon and Mars exploration, but has yet to succeed in orbital spaceflight. (ANI/Global Economic)
( With inputs from ANI ) | english |
Chahal to Smith, no run, skids down leg. Smith misses the tuck. Dhoni appeals but it was not off the bat. Did it brush the pad?
| english |
import copy
from .reduplication import RegexTest
from .common_functions import check_for_regex
class LexRule:
"""
A class that represents a regex-based second order lexical
rule. Rules are applied after the primary morphological
analysis has been completed and are used to add fields
to the words which have certain combinations of features
in their morphological analyses.
Each rule must indicate either a lemma or a stem to which
it is applicable.
"""
def __init__(self, g, dictRule, errorHandler=None):
self.g = g
self.errorHandler = errorHandler
self.rxWhat = None
self.stem = None
self.lemma = None
self.searchFields = []
self.addFields = []
for obj in dictRule['content']:
if obj['name'] == 'search':
self.process_search(obj['content'])
elif obj['name'] == 'add':
self.process_add(obj['content'])
else:
self.raise_error('Unrecognized field in a lexical rule description: ',
obj)
def raise_error(self, message, data=None):
if self.errorHandler is not None:
self.errorHandler.RaiseError(message, data)
def apply(self, wf):
if wf.stem != self.stem and wf.lemma != self.lemma:
return None
for rxTest in self.searchFields:
if not check_for_regex(wf, rxTest, errorHandler=self.errorHandler,
checkWordform=True):
return None
wfNew = copy.deepcopy(wf)
wfNew.otherData += self.addFields
return wfNew
def process_search(self, dictRules):
for rule in dictRules:
field = rule['name']
value = rule['value']
if type(value) != str:
self.raise_error('Wrong field in a lexical rule.', value)
continue
if field == 'lex':
self.lemma = value
elif field == 'stem':
self.stem = value
else:
self.searchFields.append(RegexTest(field, value, errorHandler=self.errorHandler))
def process_add(self, dictRules):
for rule in dictRules:
field = rule['name']
value = rule['value']
self.addFields.append((field, value))
| python |
According to Sky Germany, Chelsea have made contact with Bayern Munich forward Robert Lewandowski over a potential move in June.
Signing a new striker is manager Thomas Tuchel's top priority this summer. Chelsea are keen on signing Dortmund sensation Erling Haaland and have also spoken to Harry Kane's representatives.
However, Sky Germany reports that if Chelsea convince Robert Lewandowski to join them, the Blues are ready to give up on signing both Kane and Haaland.
Despite qualifying for the Champions League final, Chelsea do not have a striker who can consistently score 20 goals a season. Tuchel is said to be unhappy about Timo Werner missing numerous goalscoring chances in recent weeks.
Chelsea are not the only club trying to secure Robert Lewandowski's services. According to French outlet L'Equipe, PSG are also keeping a close eye on Lewandowski's situation at Bayern Munich. According to the report, PSG will look to bring in Robert Lewandowski if they lose Kylian Mbappe in the summer window.
Barcelona are also said to be chasing Robert Lewandowski as the Catalan giants look to bolster their attack ahead of next season.
Chelsea are the latest club to attempt signing the 32-year old centre-forward. The Blues have repeatedly failed to sign a consistent goalscorer since Diego Costa left the club in 2017. They have spent big on the likes of Alvaro Morata and Timo Werner, with both failing to live up to the hype.
Despite Robert Lewandowski turning 33 in August, Chelsea owner Roman Abramovich has no concerns about sanctioning the deal. The Poland international has been in sensational form this season. He has scored 47 goals in just 39 appearances this season, 40 of which have come in the Bundesliga.
Transfermarkt currently values Robert Lewandowski at €60 million, which is a hefty sum to pay for a striker turning 33 in a few months. However, going by Lewandowski's form, €60 million can be a great short-term investment for Chelsea. The Polish international would also cost half of what either Haaland or Kane would go for. | english |
<filename>src/migrations/cron.ts<gh_stars>1-10
import { Converter } from './abstract'
/**
* From: http://blockheadsfans.com/messagebot/extension/Bibliofile/biblio_cron_messages
* => ex.messages.push({message: message.value, minutes: minutes.value});
* To: https://gitcdn.xyz/repo/Bibliofile/BHMB-Cron-Messages/master/build/bundle.js
* => messages.push({ message: message.value, minutes: minutes.value });
*/
export class CronConverter implements Converter {
id = 'bibliofile/cron'
supports (key: string) {
return key === 'biblio_cron_messages_messages'
}
convert (_key: string, data: string): { key: string; data: string } {
return { key: 'messages', data }
}
}
| typescript |
export {
PositionedOverlay,
PositionedOverlayProps,
PreferredPosition,
PreferredAlignment,
OverlayDetails,
} from './PositionedOverlay';
| typescript |
const fs = require('fs');
const _ = require('lodash');
const Fili = require('fili');
const m = require('mathjs');
const mkdirp = require('mkdirp');
const { Matrix, Vector } = require('vectorious');
const brain = require('brain.js');
const dateformat = require('dateformat');
const BLDA = require('./blda');
function normalize(min, max, v) {
return (v - min) / (max - min);
}
function winsor(percentile, arr) {
let rv = arr.slice();
const len = rv.length;
const mean = m.mean(rv);
const std = m.std(rv);
rv = rv.map(v => (v - mean) / std);
const percentage = percentile / 100 / 2;
const min = m.min(rv);
// const min = m.quantileSeq(rv, percentage);
const max = m.max(rv);
// const max = m.quantileSeq(rv, 1 - percentage);
for (let i = 0; i < len; i++) {
if (rv[i] < min) rv[i] = min;
else if (rv[i] > max) rv[i] = max;
// rv[i] = normalize(min, max, rv[i]);
}
return rv;
}
function decimator(arr) {
const rv = [];
for (let i = 0; i < arr.length; i++) {
if (i % 4 == 0) rv.push(arr[i]);
}
return rv;
}
function getFeatureVector(data) {
return _.flatten(data);
}
function getEpochData(data, key = 0) {
return getFeatureVector(data
.map(e => e.slice(key, key + 128))
.map(winsor.bind(null, 5))
.map(decimator));
}
function filterLp(arr) {
const iirCalculator = new Fili.CalcCascades();
const iirFilterCoeffs = iirCalculator.lowpass({
order: 3,
characteristic: 'butterworth',
Fs: 128,
Fc: 16,
});
const iirFilter = new Fili.IirFilter(iirFilterCoeffs);
return iirFilter.multiStep(arr);
}
function filterHp(arr) {
const iirCalculator = new Fili.CalcCascades();
const iirFilterCoeffs = iirCalculator.highpass({
order: 3,
characteristic: 'butterworth',
Fs: 128,
Fc: 1,
});
const iirFilter = new Fili.IirFilter(iirFilterCoeffs);
return iirFilter.multiStep(arr);
}
function filter(arr) {
return filterHp(filterLp(arr));
}
function l(...args) {
console.log(...args);
}
function getPredictedSymbol(predictions, coeff) {
predictions = _.map(predictions, (v, k) => [k, v]);
predictions.sort((a, b) => b[1] - a[1]);
if (predictions[0][1] >= predictions[1][1] * coeff) {
l(predictions.map(p => [p[0], p[1].toFixed(2)]).map(p => p.join(': ')).join(' '));
return predictions[0];
}
return null;
}
function classify(net, data) {
const targets = {};
let lastTarget = null;
data.forEach((run, i) => {
if (lastTarget && lastTarget != run.target || i == data.length - 1) {
l(`${lastTarget} done. predicted:`, ...getPredictedSymbol(targets[lastTarget], 1));
}
const target = lastTarget = run.target;
const o = net.run(run.input);
targets[target] = targets[target] || {};
l(o[0] > 0.3 ? 'y' : ' ', run.matrix, o[0].toFixed(2), run.matrix.includes(target) ? '+' : '');
run.matrix.split('').forEach((symbol) => {
targets[target][symbol] = targets[target][symbol] || -1;
// targets[target][symbol] = targets[target][symbol] * (2 ** o[0]) || Math.E;
if (o[0] > 0.3) {
if (targets[target][symbol] == -1) targets[target][symbol] = 1;
targets[target][symbol] *= 2 + o[0];
}
});
});
}
function prepareElectrodesData(data, channels) {
data = data.map(record => channels.map(c => record.levels[c]));
return new Matrix(data)
.transpose()
.toArray()
.map(v => new Vector(v).toArray())
.map(filter);
}
function getSessionFromRecording(r, channels) {
const electrodesData = prepareElectrodesData(r.data.electrodes, channels);
const displayTimeKeys = Object.keys(r.data.display);
const matrixKeys = Object.keys(r.data.matrix);
const dataLength = r.data.electrodes.length;
const targets = {};
displayTimeKeys.forEach((k, i) => {
const symbol = r.data.display[k];
const nextDisplayKey = displayTimeKeys[i + 1] || dataLength;
const matrixKeysForTarget = matrixKeys
.slice(matrixKeys.indexOf(k), matrixKeys.indexOf(nextDisplayKey));
const matrix = matrixKeysForTarget
.map(key => r.data.matrix[key])
.map(t => (t.map(u => u[1]).join('')));
const electrodes = electrodesData.map(e => e.slice(+k, +nextDisplayKey));
const epochs = matrixKeysForTarget.map((key, index) => ({
data: getEpochData(electrodes, key - k),
label: matrix[index].includes(symbol) ? 1 : 0,
matrix: matrix[index],
target: symbol,
}));
targets[symbol] = {
target: symbol,
times: r.data.time.slice(+k, +nextDisplayKey),
electrodes,
keys: { from: +k, to: +nextDisplayKey },
matrix,
matrixKeys: matrixKeysForTarget,
epochs,
};
});
return targets;
}
function formatDataForNN(targets) {
return _.flatten(targets.map(t => t.epochs))
.map(e => ({
input: e.data,
output: [e.label],
matrix: e.matrix,
target: e.target,
}));
}
function splitSessionIntoTrainingAndTest(targets, ratio) {
const targetKeys = Object.keys(targets);
const targetsArr = targetKeys.map(k => targets[k]);
const trainingTargets = targetsArr.splice(0, targetKeys.length * ratio);
l(trainingTargets.map(t => t.target));
return {
training: formatDataForNN(trainingTargets),
test: formatDataForNN(targetsArr),
};
}
function train(data, channels, modelFilename) {
if (modelFilename) {
const { model, opts } = require(modelFilename);
const net = new brain.NeuralNetwork(opts);
return net.fromJSON(model);
}
const opts = {
// activation: 'leaky-relu',
learningRate: 0.01,
// hiddenLayers: [240, 160, 80, 32],
};
const net = new brain.NeuralNetwork(opts);
const o = net.train(data, {
log: true,
// iterations: 100,
// errorThresh: 0.0005,
});
l(o);
mkdirp.sync('./nn-models');
const savedData = {
opts: {
// activation: net.activation,
learningRate: net.learningRate,
sizes: net.sizes,
errorThresh: net.errorThresh || brain.NeuralNetwork.trainDefaults.errorThresh,
channels,
},
model: net.toJSON(),
output: o,
};
const filename = `./nn-models/${savedData.opts.learningRate}-${savedData.opts.sizes.join('|')}-${dateformat(new Date(), 'yyyy.mm.dd_HH.MM.ss')}.json`;
fs.writeFileSync(filename, JSON.stringify(savedData, null, '\t'));
return net;
}
function trainBLDA(data, channels, modelFilename, cb) {
const classifier = new BLDA();
if (modelFilename) {
const model = require(modelFilename);
classifier.evidence = model.evidence;
classifier.alpha = model.alpha;
classifier.beta = model.beta;
classifier.p = model.p;
classifier.w = model.w;
cb && cb(classifier);
return classifier;
}
classifier.train(data.vectors, data.labels, () => {
if (!modelFilename) {
mkdirp.sync('./blda-models');
const filename = `./blda-models/${dateformat(new Date(), 'yyyy.mm.dd_HH.MM.ss')}.json`;
fs.writeFileSync(filename, JSON.stringify(classifier, null, '\t'));
}
cb && cb(classifier);
});
}
module.exports = {
filter,
l,
getEpochData,
classify,
getSessionFromRecording,
prepareElectrodesData,
splitSessionIntoTrainingAndTest,
train,
trainBLDA,
};
| javascript |
The tragic incident in which a four-year-old boy, Viraj Kumar, was mauled to death by a pack of stray dogs in Bahomajra village of Khanna on Monday has once again exposed the district administration’s failure to control the menace of stray dogs.
Despite innocent lives being snuffed out due to dog bite, there is still no concrete plan in place for sterilisation of dogs in rural areas of the district such as Khanna, Raikot, Doraha, Jagraon and other areas falling outside the municipal corporation (MC) limits. Even in Ludhiana city, where the civic body is handling the dog sterilisation project, the situation is no good, with residents raising hue and cry over the increasing number of stray dogs and dog bite cases.
As per the information, as many as 7,416 dog bite cases were reported in 2019 (including those from outside MC limits).
Earlier a Right to Information (RTI) plea filed in 2019 had revealed that 7,619 cases of dog bite were reported at the civil hospital from January 1, 2018, to March 31, 2019. This also includes the dog bite cases reported from the areas outside MC limits.
Fund-starved municipal councils in the district and lack of adequate space for construction of dog sterilisation centres have been a major hurdle in preventing the rising population of stray dogs.
Sources in the Ludhiana MC said some representatives from the additional deputy commissioner (development) office had also contacted the civic body for starting a dog sterilisation project in areas outside the MC limits in 2018. However, the project never saw the light of day and canines remained a constant threat to the lives of residents.
Deputy commissioner (DC) Pradeep Kumar Agrawal said the administration is looking for possible solution and the matter was also discussed with MC officials during the review meeting conducted by local MP Ravneet Bittu at Bachat Bhawan on Tuesday.
“At the time of emergency, the administration asks the animal husbandry department to conduct sterilisation of stray dogs in particular area or village. However, we are working to find a permanent solution for the problem,” said Agrawal, adding that he had also asked the MC officials to see if stray dogs from other sub-divisions or villages could be sterilised at MC’s facility as the civic body is already taking up the project in the city.
The DC, however, said they can also come up with some more centres in rural areas, but the transportation of dogs remains a major constraint for the project, said the DC.
Meanwhile, Lok Insaaf Party (LIP) leader Sarabjeet Singh Kang on Tuesday met the family of four-year-old Viraj Kumar, who was mauled by a pack of stray dogs a day before. Kang said they will take up the matter with the administration. “No anti-rabies vaccine was available at the hospital. We will also ask the administration to shift the garbage dump situated near the victim’s house as a large number of stray dogs rummage in it for food,” Kang said. | english |
{"leaflet.freedraw.js":"sha256-yItqyqNV6eGP7qs3msBBnVscH0cT5GvLs5Lm6FoJ11Y=","leaflet.freedraw.min.js":"sha256-aTVuSJCap8a0PE5upAhBto9VT3Jjqe990FLwBXLQ2I4="}
| json |
/*
Copyright 2017-2019 Google Inc. All Rights Reserved.
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.
*/
#include "lullaby/tools/common/file_utils.h"
#if defined(_MSC_VER)
#include <direct.h> // Windows functions for directory creation.
#else
#include <sys/stat.h>
#endif
#include <fstream>
#include <string>
namespace lull {
namespace tool {
bool DefaultLoadFile(const char* filename, bool binary, std::string* out);
static LoadFileFunction g_load_file_fn = DefaultLoadFile;
void SetLoadFileFunction(LoadFileFunction fn) {
if (fn) {
g_load_file_fn = fn;
} else {
g_load_file_fn = DefaultLoadFile;
}
}
bool FileExists(const char* filename) {
std::ifstream file(filename, std::ios::binary);
return file ? true : false;
}
bool DefaultLoadFile(const char* filename, bool binary, std::string* out) {
std::ifstream file(filename, binary ? std::ios::binary : std::ios::in);
if (!file) {
return false;
}
file.seekg(0, std::ios::end);
out->resize(file.tellg());
file.seekg(0, std::ios::beg);
file.read(const_cast<char*>(out->c_str()), out->size());
return true;
}
bool LoadFile(const char* filename, bool binary, std::string* out) {
return g_load_file_fn(filename, binary, out);
}
bool SaveFile(const void* bytes, size_t num_bytes, const char* filename,
bool binary) {
std::ofstream file(filename, binary ? std::ios::binary : std::ios::out);
if (!file) {
return false;
}
file.write(reinterpret_cast<const char*>(bytes), num_bytes);
file.close();
return true;
}
bool CopyFile(const char* dst, const char* src) {
std::ifstream srcfile(src, std::ios::binary);
std::ofstream dstfile(dst, std::ios::binary);
if (srcfile.is_open() && dstfile.is_open()) {
dstfile << srcfile.rdbuf();
return true;
}
return false;
}
static int MakeDir(const char* sub_dir) {
#if defined(_MSC_VER)
return _mkdir(sub_dir);
#else
static const mode_t kDirectoryMode = 0755;
return mkdir(sub_dir, kDirectoryMode);
#endif
}
bool CreateFolder(const char* directory) {
if (directory == nullptr || *directory == 0) {
return true;
}
std::string dir = directory;
for (size_t slash = 0; slash != std::string::npos;) {
// Find the next sub-directory (after the last one we just created).
slash = dir.find_first_of("\\/", slash + 1);
// If slash is npos, we take the entire `dir` and create it.
const std::string sub_dir = dir.substr(0, slash);
// Create the sub-directory (or continue if the directory already exists).
const int result = MakeDir(sub_dir.c_str());
if (result != 0 && errno != EEXIST) {
return false;
}
}
return true;
}
} // namespace tool
} // namespace lull
| cpp |
import os.path
from depthaware.data.base_dataset import *
from PIL import Image
import time
def make_dataset_fromlst(dataroot, listfilename):
"""
NYUlist format:
imagepath seglabelpath depthpath HHApath
"""
images = []
segs = []
depths = []
HHAs = []
with open(listfilename) as f:
content = f.readlines()
for x in content:
imgname, segname, depthname, HHAname = x.strip().split(' ')
images += [os.path.join(dataroot, imgname)]
segs += [os.path.join(dataroot, segname)]
depths += [os.path.join(dataroot, depthname)]
HHAs += [os.path.join(dataroot, HHAname)]
return {'images':images, 'segs':segs, 'HHAs':HHAs, 'depths':depths}
class SUNRGBDDataset(BaseDataset):
def __init__(self, opt):
self.opt = opt
np.random.seed(int(time.time()))
self.paths_dict = make_dataset_fromlst(opt.dataroot, opt.list)
self.len = len(self.paths_dict['images'])
# self.label_weight = torch.Tensor(label_weight)
self.datafile = 'sunrgbd_dataset.py'
def __getitem__(self, index):
#self.paths['images'][index]
# print self.opt.scale,self.opt.flip,self.opt.crop,self.opt.colorjitter
img = np.asarray(Image.open(self.paths_dict['images'][index]))#.astype(np.uint8)
HHA = np.asarray(Image.open(self.paths_dict['HHAs'][index]))[:,:,::-1]
seg = np.asarray(Image.open(self.paths_dict['segs'][index])).astype(np.uint8)-1
depth = np.asarray(Image.open(self.paths_dict['depths'][index])).astype(np.uint16)
assert (img.shape[0]==HHA.shape[0]==seg.shape[0]==depth.shape[0])
assert (img.shape[1]==HHA.shape[1]==seg.shape[1]==depth.shape[1])
depth = np.bitwise_or(np.right_shift(depth,3),np.left_shift(depth,16-3))
depth = depth.astype(np.float32)/120. # 1/5 * depth
params = get_params_sunrgbd(self.opt, seg.shape, maxcrop=.7)
depth_tensor_tranformed = transform(depth, params, normalize=False,istrain=self.opt.isTrain)
seg_tensor_tranformed = transform(seg, params, normalize=False,method='nearest',istrain=self.opt.isTrain)
if self.opt.inputmode == 'bgr-mean':
img_tensor_tranformed = transform(img, params, normalize=False, istrain=self.opt.isTrain, option=1)
HHA_tensor_tranformed = transform(HHA, params, normalize=False, istrain=self.opt.isTrain, option=2)
else:
img_tensor_tranformed = transform(img, params, istrain=self.opt.isTrain, option=1)
HHA_tensor_tranformed = transform(HHA, params, istrain=self.opt.isTrain, option=2)
# print img_tensor_tranformed
# print(np.unique(depth_tensor_tranformed.numpy()).shape)
# print img_tensor_tranformed.size()
return {'image':img_tensor_tranformed,
'depth':depth_tensor_tranformed,
'seg': seg_tensor_tranformed,
'HHA': HHA_tensor_tranformed,
'imgpath': self.paths_dict['segs'][index]}
def __len__(self):
return self.len
def name(self):
return 'sunrgbd_dataset'
class SUNRGBDDataset_val(BaseDataset):
def __init__(self, opt):
self.opt = opt
np.random.seed(8964)
self.paths_dict = make_dataset_fromlst(opt.dataroot, opt.vallist)
self.len = len(self.paths_dict['images'])
def __getitem__(self, index):
#self.paths['images'][index]
img = np.asarray(Image.open(self.paths_dict['images'][index]))#.astype(np.uint8)
HHA = np.asarray(Image.open(self.paths_dict['HHAs'][index]))[:,:,::-1]
seg = np.asarray(Image.open(self.paths_dict['segs'][index])).astype(np.uint8)-1
depth = np.asarray(Image.open(self.paths_dict['depths'][index])).astype(np.uint16)
depth = np.bitwise_or(np.right_shift(depth,3),np.left_shift(depth,16-3))
depth = depth.astype(np.float32)/120. # 1/5 * depth
assert (img.shape[0]==HHA.shape[0]==seg.shape[0]==depth.shape[0])
assert (img.shape[1]==HHA.shape[1]==seg.shape[1]==depth.shape[1])
params = get_params_sunrgbd(self.opt, seg.shape, test=True)
depth_tensor_tranformed = transform(depth, params, normalize=False,istrain=self.opt.isTrain)
seg_tensor_tranformed = transform(seg, params, normalize=False,method='nearest',istrain=self.opt.isTrain)
# HHA_tensor_tranformed = transform(HHA, params,istrain=self.opt.isTrain)
if self.opt.inputmode == 'bgr-mean':
img_tensor_tranformed = transform(img, params, normalize=False, istrain=self.opt.isTrain, option=1)
HHA_tensor_tranformed = transform(HHA, params, normalize=False, istrain=self.opt.isTrain, option=2)
else:
img_tensor_tranformed = transform(img, params, istrain=self.opt.isTrain, option=1)
HHA_tensor_tranformed = transform(HHA, params, istrain=self.opt.isTrain, option=2)
return {'image':img_tensor_tranformed,
'depth':depth_tensor_tranformed,
'seg': seg_tensor_tranformed,
'HHA': HHA_tensor_tranformed,
'imgpath': self.paths_dict['segs'][index]}
def __len__(self):
return self.len
def name(self):
return 'sunrgbd_dataset_Val'
| python |
<gh_stars>0
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');
body * {
font-family: 'Noto Sans KR', sans-serif;
/* color: rgb(34, 34, 34); */
/* color: rgb(90, 90, 90); */
box-sizing: border-box;
height: 100%;
}
.page_bg {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100%;
background-image: linear-gradient( 135deg, #6B73FF 10%, #000DFF 100%);
z-index: -100;
}
main {
min-height: 100vh;
margin: 0;
padding: 0;
padding-bottom: 100px;
/* background-image: linear-gradient( 135deg, #6B73FF 10%, #000DFF 100%); */
/* background: #DCE35B;
background: -webkit-linear-gradient(to right, #45B649, #DCE35B);
background: linear-gradient(to right, #45B649, #DCE35B); */
/* height: 100vh; */
}
h1, h2, ul, li {
margin: 0;
padding: 0;
}
input, button {
border: none;
background-color: #fff;
}
h1.title {
text-align: center;
font-size: 40px;
color: #fff;
padding: 80px 0 40px;
font-weight:600;
text-shadow: 1px 1px 10px rgba(0,0,0,.25);
}
.book_wrap {
background-color: rgba(255, 255, 255, 1);
/* background-color: rgba(255, 255, 255, 0.9); */
width: 82%;
max-width: 850px;
max-width: 800px;
margin: 0 auto;
padding: 30px 50px;
border-radius: 17px;
box-shadow: 0px 0px 20px rgba(0, 0, 0, .22);
}
.inputs_wrap{
/* background-color: rgb(82, 91, 255); */
background-color: rgb(73, 82, 255);
/* background-image: linear-gradient( 135deg, rgb(88, 96, 255) 10%, #223FFF 100%); */
background-image: linear-gradient( 135deg, rgb(100, 107, 255) 10%, rgb(57, 67, 255) 100%);
/* background-image: linear-gradient( 135deg, #636efe 10%, #475cff 100%); */
padding: 20px 25px;
border-radius: 11px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.book_label {
color: rgb(0, 9, 170);
color: #fff;
font-size: 21px;
text-shadow: 1px 1px 5px rgba(0,0,0,.2);
}
.book_input {
margin-left: 18px;
padding: 0 10px;
height: 30px;
max-width: 150px;
vertical-align: baseline;
font-size: 15px;
border-radius: 10px;
/* border: 2px solid #fff; */
/* background-color: rgba(255, 255, 255, 0.2); */
}
@media screen and (max-width: 875px) {
div.div:first-child {
margin-bottom: 15px;
}
div.div {
width: 100%;
display: flex;
justify-content: space-between;
}
.book_input {
margin: 0;
max-width: 43%;
}
.inputs_wrap{
padding: 25px;
}
}
ul.info_list {
margin-top: 40px;
padding: 0 5px;
/* background-color: #fff;
border-radius: 11px; */
}
@media screen and (max-width: 540px) {
main {
padding-bottom: 70px;
}
/* h1.title {
padding: 60px 0 40px;
} */
.book_wrap{
width: 85%;
padding: 40px 37px;
}
/* .inputs_wrap {
border-radius: 13px;
padding: 20px 25px;
} */
div.div {
width: 100%;
display: block;
margin-bottom: 5px !important;
}
.book_input {
min-width: 100%;
margin: 8px 0 5px 0;
}
}
.info_list::after{
display: block;
content: "";
clear: both;
}
li.info {
color: rgb(0, 9, 170);
color: rgb(35, 40, 143);
float: left;
color: rgb(49, 54, 143);
list-style: none;
display: flex;
align-items: center;
/* margin: 0 10px 5px; */
width: 33.3%;
text-align: center;
margin-bottom: 5px;
font-weight: 500;
letter-spacing: -0.5px;
}
.info span {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
li.info:nth-child(3n -1) {
display: flex;
justify-content: center;
}
li.info:nth-child(3n) {
display: flex;
justify-content: flex-end;
}
@media screen and (max-width: 875px) {
ul.info_list {
padding: 0;
}
li.info {
width: 50%;
justify-content: center !important;
}
/* li.info:nth-child(2n -1) {
padding-left: 10px;
justify-content: flex-start;
}
li.info:nth-child(2n) {
padding-right: 10px;
justify-content: flex-end;
}
li.info {
justify-content: center !important;
} */
}
.info_btn {
background-color: #fff;
/* background-color: rgba(255, 255, 255, 0); */
/* font-size: 14px; */
box-sizing: border-box !important;
color: rgb(46, 51, 141);
font-weight: 500;
border-radius: 30px;
margin-left: 10px;
/* background-color: rgb(92, 100, 255); */
background-image: linear-gradient( 135deg, rgba(100, 107, 255, .9) 10%, rgba(57, 67, 255, .9) 100%);
/* background-image: linear-gradient( 135deg, rgb(100, 107, 255) 10%, rgb(57, 67, 255) 100%); */
/* background-color: rgb(57, 67, 255); */
color: #fff;
}
.info_btn:hover, .info_btn:focus {
/* background-color: rgb(59, 69, 255);
color: #fff; */
background-color: rgba(255, 255, 255, 1);
background-image: none;
/* background-image: linear-gradient( 135deg, rgb(100, 107, 255) 10%, rgb(57, 67, 255) 100%); */
color: rgb(57, 67, 255);
border: 1px solid rgb(57, 67, 255);
padding: 0px 6px 1px;
}
@media screen and (max-width: 615px) {
li.info {
width: 100%;
padding: 0 !important;
font-size: 18px;
letter-spacing: 0;
margin-bottom: 8px;
align-items: center;
}
li.info:nth-child(n) {
justify-content: center;
}
}
/* fontawesome */
.fas {
font-size: 18px;
transform: translateY(-2px);
}
.fa-phone-alt {
text-shadow: 1px 1px 0;
}
| css |
package com.zhan_dui.animetaste;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ListView;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.zhan_dui.adapters.AnimationListAdapter;
import com.zhan_dui.data.ApiConnector;
import com.zhan_dui.modal.Animation;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayList;
/**
* Created by daimajia on 14-2-7.
*/
public class GuessActivity extends ActionBarActivity implements AbsListView.OnScrollListener{
private Context mContext;
private LayoutInflater mInflater;
private ListView mListView;
private AnimationListAdapter mAnimationAdapter;
private View mFooterView;
private boolean mGetting;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_category);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
setTitle(getString(R.string.guess));
mContext = this;
mGetting = false;
mInflater = (LayoutInflater)mContext.getSystemService(LAYOUT_INFLATER_SERVICE);
mListView = (ListView)findViewById(android.R.id.list);
if(savedInstanceState != null && savedInstanceState.containsKey("Animations")){
ArrayList<Animation> animations = savedInstanceState.getParcelableArrayList("Animations");
mAnimationAdapter = AnimationListAdapter.build(mContext,animations);
}else{
mAnimationAdapter = AnimationListAdapter.build(mContext,null);
}
mFooterView = mInflater.inflate(R.layout.footer_view,null);
mFooterView.findViewById(R.id.empty_text).setVisibility(View.INVISIBLE);
mFooterView.findViewById(R.id.empty_progress).setVisibility(View.VISIBLE);
mListView.addFooterView(mFooterView);
mListView.setAdapter(mAnimationAdapter);
mListView.setOnScrollListener(this);
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putParcelableArrayList("Animations",mAnimationAdapter.getAnimationData());
}
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
if(mGetting){
return;
}
if(view.getLastVisiblePosition() == totalItemCount - 1){
mGetting = true;
ApiConnector.instance().getRandom(20,new JsonHttpResponseHandler(){
@Override
public void onSuccess(final JSONObject response) {
super.onSuccess(response);
new Thread(){
@Override
public void run() {
super.run();
try{
JSONArray animes = response.getJSONObject("data").getJSONObject("list").getJSONArray("anime");
final ArrayList<Animation> animations = Animation.build(animes);
runOnUiThread(new Runnable() {
@Override
public void run() {
mAnimationAdapter.addAnimationsFromArrayList(animations);
mAnimationAdapter.notifyDataSetChanged();
}
});
}catch (Exception e){
}
}
}.start();
}
@Override
public void onFinish() {
super.onFinish();
mGetting = false;
}
});
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case android.R.id.home:
finish();
return true;
}
return super.onOptionsItemSelected(item);
}
}
| java |
<gh_stars>0
/*
* Copyright (c) 2009 <NAME> and innoQ Deutschland GmbH
*
* <NAME>: http://www.schloepke.de/
* innoQ Deutschland GmbH: http://www.innoq.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.jbasics.net.mediatype;
import java.util.regex.Pattern;
import org.jbasics.checker.ContractCheck;
import org.jbasics.types.tuples.Pair;
/**
* Class holding a parsed media type as of RFC2616.
*
* @author <NAME>
* @since 1.0
*/
public class MediaType extends MediaTypeRange {
/**
* Regular expression string to check type and subtype validitiy.
*/
public static final String TYPE_SUBTYPE_REGEX = "^[a-zA-Z][a-zA-Z0-9+-.]*$";
/**
* Pattern to validate the type / subtype value.
*/
public static final Pattern TYPE_SUBTYPE_MATCHER = Pattern.compile(MediaType.TYPE_SUBTYPE_REGEX);
/**
* Application XML media type constant.
*/
public static final MediaType APPLICATION_XML_TYPE = MediaType.valueOf("application/xml");
/**
* Text/Plain media type constant.
*/
public static final MediaType TEXT_PLAIN_TYPE = MediaType.valueOf("text/plain");
/**
* Text/Html media type constant.
*/
public static final MediaType TEXT_HTML_TYPE = MediaType.valueOf("text/html");
/**
* application/xhtml+xml media type constant.
*/
public static final MediaType APPLICATION_XHTML_TYPE = new MediaType("application", "xhtml+xml");
/**
* Parses a media type from its string representation as of RFC 2616.
*
* @param mediaTypeString The media type string to parse.
* @return The parsed Media Type.
* @throws IllegalArgumentException If the media type is malformed and does not comply to RFC
* 2616.
*/
public static MediaType valueOf(final String mediaTypeString) {
return RFC2616MediaTypeParser.parseMediaType(mediaTypeString);
}
/**
* Creates a media type with the given type, subtype and its parameters.
*
* @param type The type.
* @param subType The sub type.
* @param parameters The parameters as key value pairs.
*/
public MediaType(final String type, final String subType, final Pair<String, String>... parameters) {
super(type, subType, parameters);
}
/**
* Validated the type.
*
* @param typeString The type.
* @return The validated and may modified type string.
* @see org.jbasics.net.mediatype.MediaTypeRange#processTypeString(java.lang.String)
*/
@Override
protected String processTypeString(final String typeString) {
return ContractCheck.mustMatchPattern(typeString, MediaType.TYPE_SUBTYPE_MATCHER, "typeString");
}
/**
* Validated the sub type.
*
* @param subTypeString The sub type.
* @return The validated and may modified sub type string.
* @see org.jbasics.net.mediatype.MediaTypeRange#processSubtypeString(java.lang.String)
*/
@Override
protected String processSubtypeString(final String subTypeString) {
return ContractCheck.mustMatchPatternOrBeNull(subTypeString, MediaType.TYPE_SUBTYPE_MATCHER, "subTypeString");
}
/**
* Derives a new MediaType with the given parameters instead of the original ones.
*
* @param parameters The parameters to use for the derived one.
* @return The derived media type.
*/
public MediaType deriveWithNewParameters(final Pair<String, String>... parameters) {
return new MediaType(getType(), getSubType(), parameters);
}
}
| java |
<reponame>allprojects/thesis-consyst-operation-types
package de.tuda.stg.consys.checker;
import com.sun.source.tree.ClassTree;
import javax.lang.model.type.DeclaredType;
public class SubConsistencyVisitor extends ConsistencyVisitorImpl {
public SubConsistencyVisitor(SubConsistencyChecker checker) {
super(checker);
}
@Override
protected ConsistencyAnnotatedTypeFactory createTypeFactory() {
return new SubConsistencyAnnotatedTypeFactory((SubConsistencyChecker) checker);
}
@Override
public void processClassTree(ClassTree classTree) {
SubConsistencyChecker classChecker = (SubConsistencyChecker) checker;
classChecker.enableInternalReporting();
super.processClassTree(classTree);
if (classChecker.hasFailureOccurred()) {
DeclaredType classType = atypeFactory.getAnnotatedType(classTree).getUnderlyingType();
((SubConsistencyAnnotatedTypeFactory) atypeFactory).addDisallowedReplication(classType, classChecker.getSrc());
}
classChecker.disableInternalReporting();
}
}
| java |
While most now accept that metabolic dysfunction* is at the root of today's chronic disease epidemic, we can't seem to agree on what causes this in the first place.
Once metabolic dysfunction has occurred, humans certainly become carbohydrate intolerant, and lowering the intake of this macronutrient can be quite helpful in this situation, but it's not the root of the problem.
If carbs didn't cause the problem, what did? The most compelling evidence points to metabolic dysfunction arising at the level of fat cells (adipocytes), which become overdistended.
How did these adipocytes get so full?
Excess dietary linoleic acid.
Excess dietary linoleic acid.
Polyunsaturated fats caused the fire, carbohydrates just fuel the blaze. To correct the problem we have to remove both.
*Metabolic dysfunction seems to be better terminology than "insulin resistance." Though the latter term is widely used, it's an inaccurate descriptor and misses much of the important nuance. If you don't know the difference here, it's time to do your homework.
| english |
An astounding 34 years since its education policy was last revised, India is again at the cusp of a glorious and historic reform with the announcement of the National Education Policy (NEP) 2020.
Timely and progressive, NEP marks a monumental development in the country’s education system.
Issue of medium of instruction:
- The medium of instruction has been a way of perpetuating class and caste structures in India. Accepting this reality will help us make sense of the language policy since Independence as well as the New Education Policy 2020 (NEP, 2020).
- NEP 2020 has many positives, including not making Hindi compulsory in South Indian states.
- The pedagogically relevant and politically sensitive issue of the medium of instruction, the policy seems to follow the well-trodden path.
- It says that the mother-tongue or the regional language would be the “preferred” mode of instruction till Class 5, possibly Class 8.
- Over the years, while school enrolment has increased, the quality of education in bhasha schools invariably government schools has deteriorated. At the same time, most students from the well-off sections have opted out of them.
- This shift from bhasha schools to English-medium schools first happened in the metros, then in middle-level cities and has reached the villages now. The bhasha schools have begun drawing children from the Bahujan Samaj.
Basha schools (regional languages) children suffer from two handicaps:
- First, the extremely poor quality of education in most bhasha schools — with exceptions in states such as Kerala and Tamil Nadu.
- Second, such children rarely have a tradition of education in their families and find it very difficult to compete with their peers who have a much better financial background, better education and proficiency in English.
- But the benefit of expanding education is that such children, who would not ask for a better deal earlier, are now making their demands clear.
- One remembers the agitation in 2014 when the Hindi-speaking students were arguing that the higher education system is loaded against the bhasha medium students, especially at the UPSC level.
- There is a conflict between what the educationists say — one understands the subject best in the mother-tongue, we as a nation should not lose such a multitude of languages, studying in the English-medium leads to gaps in the understanding of one’s own society and what the parents think is necessary for the economic survival of their children.
- So, parents send their kids to English-medium schools as soon as they can afford it. The bhasha medium students do not get the coveted jobs and the disparity between the two widens.
- In fact, the document, iterated over the last few years, is an ode to the ideals of public policy, factoring in voices of every stakeholder from experts to teachers and the common man.
- It is informed by insights from 2.5 lakh gram panchayats across the country.
Concerns that need to be addressed:
NEP 2020 does not tackle the issue of inequity that arises out of the medium of instruction.
The document pays lip-service to the promotion of bhashas, but the policy will end up reinforcing the status quo. The English-medium schools will continue as they are, rather more of them will sprout.
But the agitation of 2014 could be a harbinger of the possible political unacceptability of this “manner of doing things”.
One could let all students study English from an earlier age. Admittedly, this goes against the basic principles of education, and the non-elite will face more problems in studying English.
But an exposure to basic English from a very young age in bhasha schools through rhymes, simple sentences could make learning the language later much easier.
Making special funds available for English-teaching at panchayat or zila parishad level schools could also help. These could be some steps in making school education somewhat more egalitarian.
The challenge is to implement this policy in letter and spirit. There is a need to create comprehensive, efficient and realistic guidelines and framework.
Moral and Basic education is the need of the hour:
In sum, the NEP will strengthen the fundamentals of moral and basic education and provide opportunities for equitable and qualitative development that is sensitive to local cultural contexts and global possibilities.
This, in turn, will lead to the development of an innovative, analytical, just and aware Indian consciousness expediting the development of a prosperous and self-reliant nation (Aatmanirbhar Bharat).
As with every policy, the real test of NEP will be translating it to action.
Backed by expeditious and effective implementation in sync with its spirit, NEP could shape the lives of our future generations.
Through a robust education system, leveraging the full potential of its demographic dividend, India has taken a giant leap towards establishing itself as a knowledge superpower.
Way Forward:
The policy aims for the all-round growth of every student in scholastic and co-scholastic domains and emphasises educating the students, teachers, and parents to nurture their potential to serve the nation.
Its flexibility allows learners to select their preferred field of study and subsequent path in life following their academic and professional inclination and interests.
The policy will prove extremely beneficial in dismantling hierarchies and barriers between different knowledge streams by providing easy and accessible methodologies.
It will promote co-curricular activities and learning techniques in professional and academic streams. This will pave the way for a new multi/trans-disciplinary education system.
The NEP will help to replace the rote method of learning and examination-based education with a system based on conceptual understanding that aims to hone the student’s analytical skills.
| english |
{
"source": "Coursera",
"description": "Statistical inference is the process of drawing conclusions about populations or scientific truths from data. There are many modes of performing inference including statistical modeling, data oriented strategies and explicit use of designs and randomization in analyses. Furthermore, there are broad theories (frequentists, Bayesian, likelihood, design based, …) and numerous complexities (missing data, observed and unobserved confounding, biases) for performing inference. A practitioner can often be left in a debilitating maze of techniques, philosophies and nuance. This course presents the fundamentals of inference in a practical approach for getting things done. After taking this course, students will understand the broad directions of statistical inference and use this information for making informed choices in analyzing data. Learn how to draw conclusions about populations or scientific truths from data. This is the sixth course in the Johns Hopkins Data Science Course Track.",
"contents": "In this class students will learn the fundamentals of statistical inference. Students will receive a broad overview of the goals, assumptions and modes of performing statistical inference. Students will be able to perform inferential tasks in highly targeted settings and will be able to use the skills developed as a roadmap for more complex inferential challenges.",
"requirements": "R programming, mathematical aptitude. As part of the Data Science specialization, students should refer to the set of course dependencies here https:\/\/d396qusza40orc.cloudfront.net\/rprog\/doc\/JHDSS_CourseDependencies.pdf.",
"effort": "7-9 hours\/week",
"language": "en",
"url": "https:\/\/www.coursera.org\/course\/statinference",
"title": "Statistical Inference",
"courseraId": "1303",
"subjects": "Mathematics, Information, Tech & Design, Statistics and Data Analysis"
} | json |
<reponame>reactDev037/component-user-manager-backend
'use strict';
module.exports = function(group) {
};
| javascript |
Darren Till fires back at UFC Hall of Famer Khabib Nurmagomedov for criticizing Khamzat Chimaev on missing weight at the recently concluded UFC 279.
Darren ‘The Gorilla’ Till has issued a statement in response to Khabib ‘The Eagle’ Nurmagomedov’s criticism of Chimaev’s missed weight controversy at UFC 279. Till said, “Khabib’s missed weight like five times, man....” We have more details on his comments below.
What Happened with Chimaev During UFC 279?
During the weigh-ins for the UFC 279 events, Chimaev missed weight by 7.5 pounds for his fight with UFC veteran Nate Diaz. This was a major spanner-in-the-works for UFC President Dana White and his crew and they went scrambling to look for replacement opponents for both Diaz and Chimaev himself. Thankfully Tony Ferguson stepped in to fight Diaz and Chimaev fought Kevin Holland at UF C279.
Chimaev’s missed weight sparked a lot of criticism from many corners of the global ma community. One of the most noticeable criticisms came from Khabib Nurmagomedov, the former UFC lightweight champion and one of the greatest fighters of all time in UFC history.
The Eagle was speaking at a charity event when he decided to speak on Chimaev’s missed weight and ensuing disrespectful behavior. According to the former lightweight champ, Chimaev has not surrounded himself with the ‘right’ people. Nurmagomedov was particularly critical of ‘Borz’ for not showing any remorse for missing weight and ‘flipping the bird’ to booing fans at UFC 279.
What was Darren Till’s response to Khabib Nurmagomedov regarding his comments on Khamzat Chimaev?
In response to Nurmagomedov’s stinging comments, Darren Till, who is Chimaev’s training partner made the following statement to ESPN.
In July this year, Darren Till was slammed by Twitter users for some offensive memes on Instagram. He subsequently got banned from Instagram for his offensive memes. He has been accused of homophobia and transphobia as the memes ridiculed gay and transgender people.
According to Liverpool Echo, a local British news channel, the one of the posts mocking transgender pregnancies was was reported to Merseyside Police who have said that “enquiries are ongoing”. Till has a pretty large following on Twitter with 350,000 followers and about as many on Instagram as well.
He has also been live on Instagram in a verbal spate with local Liverpool police.
When will Darren Till next make an appearance in the Octagon?
At present, ‘The Gorilla’ is 18-4 in MMA and scheduled for a fight in December this year. He will be going up against Dricus du Plessis, who is 17-2 in MMA, for a middleweight bout as part of the UFC 282 fight card in Las Vegas. Will ‘Borz’ come out to support his training partner during his fight?
Are there more backstage incidents involving Chimaev and other UFC stars like the altercation between Chimaev and Paulo Costa at the UFC Performance Institute likely in the future? UFC fans and MMA lovers can only speculate for now!
| english |
<filename>src/user-service/proto/user/user.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/user/user.proto
package go_micro_srv_user
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
import (
client "github.com/asim/go-micro/v3/client"
server "github.com/asim/go-micro/v3/server"
context "golang.org/x/net/context"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 用户信息
type User struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Company string `protobuf:"bytes,3,opt,name=company,proto3" json:"company,omitempty"`
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) {
return fileDescriptor_9b283a848145d6b7, []int{0}
}
func (m *User) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_User.Unmarshal(m, b)
}
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_User.Marshal(b, m, deterministic)
}
func (m *User) XXX_Merge(src proto.Message) {
xxx_messageInfo_User.Merge(m, src)
}
func (m *User) XXX_Size() int {
return xxx_messageInfo_User.Size(m)
}
func (m *User) XXX_DiscardUnknown() {
xxx_messageInfo_User.DiscardUnknown(m)
}
var xxx_messageInfo_User proto.InternalMessageInfo
func (m *User) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *User) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *User) GetCompany() string {
if m != nil {
return m.Company
}
return ""
}
func (m *User) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func (m *User) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
type Request struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_9b283a848145d6b7, []int{1}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Request.Unmarshal(m, b)
}
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
}
func (m *Request) XXX_Merge(src proto.Message) {
xxx_messageInfo_Request.Merge(m, src)
}
func (m *Request) XXX_Size() int {
return xxx_messageInfo_Request.Size(m)
}
func (m *Request) XXX_DiscardUnknown() {
xxx_messageInfo_Request.DiscardUnknown(m)
}
var xxx_messageInfo_Request proto.InternalMessageInfo
type Response struct {
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_9b283a848145d6b7, []int{2}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Response.Unmarshal(m, b)
}
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
}
func (m *Response) XXX_Merge(src proto.Message) {
xxx_messageInfo_Response.Merge(m, src)
}
func (m *Response) XXX_Size() int {
return xxx_messageInfo_Response.Size(m)
}
func (m *Response) XXX_DiscardUnknown() {
xxx_messageInfo_Response.DiscardUnknown(m)
}
var xxx_messageInfo_Response proto.InternalMessageInfo
func (m *Response) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
func (m *Response) GetUsers() []*User {
if m != nil {
return m.Users
}
return nil
}
func (m *Response) GetErrors() []*Error {
if m != nil {
return m.Errors
}
return nil
}
type Token struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"`
Errors *Error `protobuf:"bytes,3,opt,name=errors,proto3" json:"errors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Token) Reset() { *m = Token{} }
func (m *Token) String() string { return proto.CompactTextString(m) }
func (*Token) ProtoMessage() {}
func (*Token) Descriptor() ([]byte, []int) {
return fileDescriptor_9b283a848145d6b7, []int{3}
}
func (m *Token) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Token.Unmarshal(m, b)
}
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Token.Marshal(b, m, deterministic)
}
func (m *Token) XXX_Merge(src proto.Message) {
xxx_messageInfo_Token.Merge(m, src)
}
func (m *Token) XXX_Size() int {
return xxx_messageInfo_Token.Size(m)
}
func (m *Token) XXX_DiscardUnknown() {
xxx_messageInfo_Token.DiscardUnknown(m)
}
var xxx_messageInfo_Token proto.InternalMessageInfo
func (m *Token) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *Token) GetValid() bool {
if m != nil {
return m.Valid
}
return false
}
func (m *Token) GetErrors() *Error {
if m != nil {
return m.Errors
}
return nil
}
type Error struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Error) Reset() { *m = Error{} }
func (m *Error) String() string { return proto.CompactTextString(m) }
func (*Error) ProtoMessage() {}
func (*Error) Descriptor() ([]byte, []int) {
return fileDescriptor_9b283a848145d6b7, []int{4}
}
func (m *Error) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Error.Unmarshal(m, b)
}
func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Error.Marshal(b, m, deterministic)
}
func (m *Error) XXX_Merge(src proto.Message) {
xxx_messageInfo_Error.Merge(m, src)
}
func (m *Error) XXX_Size() int {
return xxx_messageInfo_Error.Size(m)
}
func (m *Error) XXX_DiscardUnknown() {
xxx_messageInfo_Error.DiscardUnknown(m)
}
var xxx_messageInfo_Error proto.InternalMessageInfo
func (m *Error) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *Error) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func init() {
proto.RegisterType((*User)(nil), "go.micro.srv.user.User")
proto.RegisterType((*Request)(nil), "go.micro.srv.user.Request")
proto.RegisterType((*Response)(nil), "go.micro.srv.user.Response")
proto.RegisterType((*Token)(nil), "go.micro.srv.user.Token")
proto.RegisterType((*Error)(nil), "go.micro.srv.user.Error")
}
func init() { proto.RegisterFile("proto/user/user.proto", fileDescriptor_9b283a848145d6b7) }
var fileDescriptor_9b283a848145d6b7 = []byte{
// 374 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4d, 0x6b, 0xdb, 0x40,
0x10, 0xb5, 0x3e, 0x6d, 0x8f, 0x69, 0xa1, 0x43, 0x4b, 0x17, 0xf7, 0x62, 0x74, 0x2a, 0x94, 0xaa,
0xc5, 0x3d, 0x16, 0x43, 0x8d, 0x31, 0xbe, 0xab, 0x1f, 0x77, 0x55, 0x1a, 0xda, 0xa5, 0x92, 0x56,
0xdd, 0x5d, 0x2b, 0xe4, 0x9f, 0xe4, 0x9f, 0xe5, 0xef, 0x84, 0x1d, 0xd9, 0x21, 0x21, 0xb2, 0x13,
0x72, 0x91, 0xe6, 0xbd, 0x79, 0xda, 0x99, 0x7d, 0x0f, 0xc1, 0x9b, 0x56, 0x2b, 0xab, 0x3e, 0xed,
0x0d, 0x69, 0x7e, 0xa4, 0x8c, 0xf1, 0xd5, 0x1f, 0x95, 0xd6, 0xb2, 0xd0, 0x2a, 0x35, 0xba, 0x4b,
0x5d, 0x23, 0xe9, 0x20, 0xfc, 0x69, 0x48, 0xe3, 0x4b, 0xf0, 0x65, 0x29, 0xbc, 0x85, 0xf7, 0x7e,
0x9a, 0xf9, 0xb2, 0x44, 0x84, 0xb0, 0xc9, 0x6b, 0x12, 0x3e, 0x33, 0x5c, 0xa3, 0x80, 0x71, 0xa1,
0xea, 0x36, 0x6f, 0x2e, 0x45, 0xc0, 0xf4, 0x11, 0xe2, 0x6b, 0x88, 0xa8, 0xce, 0x65, 0x25, 0x42,
0xe6, 0x7b, 0x80, 0x73, 0x98, 0xb4, 0xb9, 0x31, 0x17, 0x4a, 0x97, 0x22, 0xe2, 0xc6, 0x2d, 0x4e,
0xa6, 0x30, 0xce, 0xe8, 0xff, 0x9e, 0x8c, 0x4d, 0xae, 0x3c, 0x98, 0x64, 0x64, 0x5a, 0xd5, 0x18,
0xc2, 0x0f, 0x10, 0xba, 0xbd, 0x78, 0x93, 0xd9, 0xf2, 0x6d, 0xfa, 0x60, 0xe3, 0xd4, 0xad, 0x9b,
0xb1, 0x08, 0x3f, 0x42, 0xe4, 0xde, 0x46, 0xf8, 0x8b, 0xe0, 0x9c, 0xba, 0x57, 0xe1, 0x67, 0x88,
0x49, 0x6b, 0xa5, 0x8d, 0x08, 0x58, 0x2f, 0x06, 0xf4, 0x5b, 0x27, 0xc8, 0x0e, 0xba, 0x84, 0x20,
0xfa, 0xa1, 0xfe, 0x51, 0xe3, 0x2e, 0x68, 0x5d, 0x71, 0x70, 0xa8, 0x07, 0x8e, 0xed, 0xf2, 0x4a,
0x96, 0xec, 0xd2, 0x24, 0xeb, 0xc1, 0xbd, 0x31, 0xde, 0x93, 0xc6, 0xac, 0x20, 0x62, 0xc2, 0xb9,
0x5e, 0xa8, 0x92, 0x78, 0x4a, 0x94, 0x71, 0x8d, 0x0b, 0x98, 0x95, 0x64, 0x0a, 0x2d, 0x5b, 0x2b,
0x55, 0x73, 0x08, 0xe4, 0x2e, 0xb5, 0xbc, 0xf6, 0x61, 0xe6, 0xee, 0xf9, 0x9d, 0x74, 0x27, 0x0b,
0xc2, 0x6f, 0x10, 0x6f, 0x34, 0xe5, 0x96, 0xf0, 0x94, 0x23, 0xf3, 0x77, 0x03, 0x8d, 0x63, 0x06,
0xc9, 0x08, 0x57, 0x10, 0xec, 0xc8, 0x3e, 0xfb, 0xf3, 0x0d, 0xc4, 0x3b, 0xb2, 0xeb, 0xaa, 0xc2,
0xf9, 0xa0, 0x90, 0x73, 0x7f, 0xec, 0x90, 0xaf, 0x10, 0xae, 0xf7, 0xf6, 0xef, 0xe9, 0x25, 0x86,
0x7c, 0xe5, 0xb4, 0x92, 0x11, 0x6e, 0xe1, 0xc5, 0x2f, 0x17, 0x46, 0x6e, 0xa9, 0x0f, 0xf0, 0xa4,
0xf8, 0xdc, 0x31, 0xbf, 0x63, 0xfe, 0x6f, 0xbe, 0xdc, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x8e,
0xef, 0xc9, 0x50, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ client.Option
var _ server.Option
// Client API for UserService service
type UserServiceClient interface {
Create(ctx context.Context, in *User, opts ...client.CallOption) (*Response, error)
Get(ctx context.Context, in *User, opts ...client.CallOption) (*Response, error)
GetAll(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
Auth(ctx context.Context, in *User, opts ...client.CallOption) (*Token, error)
ValidateToken(ctx context.Context, in *Token, opts ...client.CallOption) (*Token, error)
}
type userServiceClient struct {
c client.Client
serviceName string
}
func NewUserServiceClient(serviceName string, c client.Client) UserServiceClient {
if c == nil {
c = client.NewClient()
}
if len(serviceName) == 0 {
serviceName = "go.micro.srv.user"
}
return &userServiceClient{
c: c,
serviceName: serviceName,
}
}
func (c *userServiceClient) Create(ctx context.Context, in *User, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.serviceName, "UserService.Create", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) Get(ctx context.Context, in *User, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.serviceName, "UserService.Get", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) GetAll(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) {
req := c.c.NewRequest(c.serviceName, "UserService.GetAll", in)
out := new(Response)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) Auth(ctx context.Context, in *User, opts ...client.CallOption) (*Token, error) {
req := c.c.NewRequest(c.serviceName, "UserService.Auth", in)
out := new(Token)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userServiceClient) ValidateToken(ctx context.Context, in *Token, opts ...client.CallOption) (*Token, error) {
req := c.c.NewRequest(c.serviceName, "UserService.ValidateToken", in)
out := new(Token)
err := c.c.Call(ctx, req, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for UserService service
type UserServiceHandler interface {
Create(context.Context, *User, *Response) error
Get(context.Context, *User, *Response) error
GetAll(context.Context, *Request, *Response) error
Auth(context.Context, *User, *Token) error
ValidateToken(context.Context, *Token, *Token) error
}
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) {
s.Handle(s.NewHandler(&UserService{hdlr}, opts...))
}
type UserService struct {
UserServiceHandler
}
func (h *UserService) Create(ctx context.Context, in *User, out *Response) error {
return h.UserServiceHandler.Create(ctx, in, out)
}
func (h *UserService) Get(ctx context.Context, in *User, out *Response) error {
return h.UserServiceHandler.Get(ctx, in, out)
}
func (h *UserService) GetAll(ctx context.Context, in *Request, out *Response) error {
return h.UserServiceHandler.GetAll(ctx, in, out)
}
func (h *UserService) Auth(ctx context.Context, in *User, out *Token) error {
return h.UserServiceHandler.Auth(ctx, in, out)
}
func (h *UserService) ValidateToken(ctx context.Context, in *Token, out *Token) error {
return h.UserServiceHandler.ValidateToken(ctx, in, out)
}
| go |
{
"@odata.context": "https://mock.sharepoint.com/sites/mockSite/_api/$metadata#Users",
"value": [
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(10)",
"@odata.editLink": "Web/GetUserById(10)",
"Id": 10,
"IsHiddenInUI": false,
"LoginName": "i:0#.w|dprodmgd105\\_spocrwl_191095",
"Title": "DProdMGD105\\_spocrwl_191095",
"PrincipalType": 1,
"Email": "",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": {
"NameId": "s-1-5-21-3512487515-1654632051-378519610-8132",
"NameIdIssuer": "urn:office:idp:activedirectory"
},
"UserPrincipalName": null
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(11)",
"@odata.editLink": "Web/GetUserById(11)",
"Id": 11,
"IsHiddenInUI": false,
"LoginName": "c:0(.s|true",
"Title": "Everyone",
"PrincipalType": 4,
"Email": "",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": null,
"UserPrincipalName": null
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(9)",
"@odata.editLink": "Web/GetUserById(9)",
"Id": 9,
"IsHiddenInUI": false,
"LoginName": "c:0-.f|rolemanager|spo-grid-all-users/6e0195b2-cbbe-4e98-81ec-60492d60db3b",
"Title": "Everyone except external users",
"PrincipalType": 4,
"Email": "",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": null,
"UserPrincipalName": null
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(7)",
"@odata.editLink": "Web/GetUserById(7)",
"Id": 7,
"IsHiddenInUI": false,
"LoginName": "c:0o.c|federateddirectoryclaimprovider|288d6d48-3a21-4eab-af43-0454788980f1",
"Title": "mockSite Members",
"PrincipalType": 4,
"Email": "<EMAIL>",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": null,
"UserPrincipalName": null
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(8)",
"@odata.editLink": "Web/GetUserById(8)",
"Id": 8,
"IsHiddenInUI": true,
"LoginName": "c:0o.c|federateddirectoryclaimprovider|288d6d48-3a21-4eab-af43-0454788980f1_o",
"Title": "mockSite Owners",
"PrincipalType": 4,
"Email": "<EMAIL>",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": true,
"UserId": null,
"UserPrincipalName": null
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(12)",
"@odata.editLink": "Web/GetUserById(12)",
"Id": 12,
"IsHiddenInUI": false,
"LoginName": "i:0#.f|membership|<EMAIL>",
"Title": "<NAME>",
"PrincipalType": 1,
"Email": "<EMAIL>",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": {
"NameId": "100320005d1f547f",
"NameIdIssuer": "urn:federation:microsoftonline"
},
"UserPrincipalName": "<EMAIL>"
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(1073741822)",
"@odata.editLink": "Web/GetUserById(1073741822)",
"Id": 1073741822,
"IsHiddenInUI": false,
"LoginName": "i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint",
"Title": "SharePoint App",
"PrincipalType": 1,
"Email": "",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": {
"NameId": "app<EMAIL>",
"NameIdIssuer": "TrustedProvider:00000003-0000-0ff1-ce00-000000000000"
},
"UserPrincipalName": null
},
{
"@odata.type": "#SP.User",
"@odata.id": "https://mock.sharepoint.com/sites/mockSite/_api/Web/GetUserById(1073741823)",
"@odata.editLink": "Web/GetUserById(1073741823)",
"Id": 1073741823,
"IsHiddenInUI": false,
"LoginName": "SHAREPOINT\\system",
"Title": "System Account",
"PrincipalType": 1,
"Email": "",
"Expiration": "",
"IsEmailAuthenticationGuestUser": false,
"IsShareByEmailGuestUser": false,
"IsSiteAdmin": false,
"UserId": {
"NameId": "S-1-0-0",
"NameIdIssuer": "urn:office:idp:activedirectory"
},
"UserPrincipalName": null
}
]
} | json |
<gh_stars>0
{
"Name": "faction.spellcaster",
"Registry ID": "ancientwarfarenpc:faction.spellcaster",
"Class": "net.shadowmage.ancientwarfare.npc.entity.faction.NpcFactionSpellcasterWizardry"
} | json |
{
"name": "option-cache",
"description": "Simple API for managing options in JavaScript applications.",
"version": "0.1.4",
"homepage": "https://github.com/jonschlinkert/option-cache",
"author": {
"name": "<NAME>",
"url": "https://github.com/jonschlinkert"
},
"repository": {
"type": "git",
"url": "git://github.com/jonschlinkert/option-cache.git"
},
"bugs": {
"url": "https://github.com/jonschlinkert/option-cache/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/jonschlinkert/option-cache/blob/master/LICENSE-MIT"
}
],
"keywords": [
"app",
"cache",
"config",
"configuration",
"define",
"disable",
"disabled",
"enable",
"enabled",
"extend",
"get",
"javascript",
"node.js",
"obj",
"object",
"opt",
"option",
"options",
"opts",
"set",
"setup"
],
"main": "index.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha -R spec"
},
"devDependencies": {
"mocha": "*",
"should": "^4.0.4"
},
"dependencies": {
"kind-of": "^0.1.0",
"lodash": "^2.4.1"
},
"_id": "option-cache@0.1.4",
"_shasum": "cafeb77bf10fcb58bc64e9c76a6c1223123495de",
"_from": "option-cache@>=0.1.4 <0.2.0",
"_npmVersion": "1.4.9",
"_npmUser": {
"name": "jonschlinkert",
"email": "<EMAIL>"
},
"maintainers": [
{
"name": "jonschlinkert",
"email": "<EMAIL>"
}
],
"dist": {
"shasum": "cafeb77bf10fcb58bc64e9c76a6c1223123495de",
"tarball": "http://registry.npmjs.org/option-cache/-/option-cache-0.1.4.tgz"
},
"directories": {},
"_resolved": "https://registry.npmjs.org/option-cache/-/option-cache-0.1.4.tgz"
}
| json |
A subscription to JoVE is required to view this content.
You will only be able to see the first 2 minutes.
The JoVE video player is compatible with HTML5 and Adobe Flash. Older browsers that do not support HTML5 and the H.264 video codec will still use a Flash-based video player. We recommend downloading the newest version of Flash here, but we support all versions 10 and above.
If that doesn't help, please let us know.
This protocol is intended to describe porcine hepatocyte isolation and ex vivo gene delivery to cure models of metabolic diseases via autologous cell transplantation. Although this particular model enjoys unique advantages that favor successful therapy, the application is a relevant foundation to address additional diseases and indications.
Ex vivo gene therapy and autologous cell transplantation for the treatment of inborn errors of metabolism in the liver is an important alternative to the therapy for these disorders. And allows us to not only treat these disorders, but figure out the biomass necessary to be able to achieve a therapeutic result. This approach also avoids the significant consequences of immunosuppression and other consequences with different types of therapies.
In the current context, we're using this approach to treat hereditary tyrosinemia type 1. However, the idea is that this will be a platform approach to treat a multitude of different liver diseases with minimal alteration. It's important to be able to visualize this technique because there's some variability when it comes to visualizing the efficiency of the perfusion, which is essential to getting viable hepatocytes for the transplantation.
Surgical procedure performed by Robert Kaiser and Joseph Lillegard. Cell isolation performed by Zeji Du, Bruce Amiot. UAU cell purification and ex vivo transduction of the cells was done by Caitlin VanLith.
Preparation of the animals and the OR prep was done by Kari Allen and Laurie Hillin. To perform the initial port site entry, perform an open Hasson technique cephalad to the umbilicus of an anesthetized, up to three-month-old, large, white farm pig. Introducing a 12 millimeter trocar into the abdominal cavity, where the peritoneum is visible.
When the trocar is in place, pass a 5 millimeter 30 degree scope through the entry port and insufflate the abdomen with carbon dioxide to 15 millimeters of mercury. Under direct visualization with the laparoscopic camera, place 2 additional 5 millimeter ports, triangulating on the left lateral lobe of the liver. And place the laparoscope in one the new ports.
Identify the left lateral segment of the liver at the point of the major fissure of the left lobe that separates the medial and left lateral segments. And use a surgical stapler to secure the vascular structures and the hepatic vein along this fissure. Transect the parenchyma through this fissure using sequential firings and 60, 45, or 30 millimeter long vascular loads.
When the resection is complete, assess the remnant liver to ensure an adequate hemostasis and use endoscopic graspers and an endoscopic tissue retrieval bag to retrieve the liver section. Now, remove the ports and use an interrupted size zero suture for the midline fascia. A running 2-0 suture for the deep dermal layer.
And a running 4-0 suture for the subcuticular layer, to close the 12 millimeter port incision in the three layers. Then close the five millimeter ports in one layer with 2-0 sutures. And place a sterile dressing on the incisions.
For hepatocyte isolation, first connect a peristaltic pump set to deliver the dispersion solutions, maintained in a 43 degree Celsius water bath, to the catheters to be placed in the large, exposed vessels of the liver section. Prime the pump and tubing with the perfusion two solution, up to a stop cock position to switch between the perfusion one and perfusion two solution delivery to the tissue. And switch the stop cock to the perfusion one position.
Then prime the rest of the tubing set. Completely filling an inline bubble trap to prevent introducing air bubbles into the tissue. Next, make a clean transverse incision, perpendicular to the hepatic circulation to reveal cross-sections of the portal vein branches and the hepatic veins for catheterization.
And use a snug fitting catheter to catheterize the available, exposed veins. When the catheters are in place, perfuse the resected liver tissue with warm perfusion one solution at a 100 millimeter per minute flow rate. Moving the outlet tube from vein to vein every 30 to 60 seconds.
And using an evacuation tube to remove excess buffer from the tissue tray. After cycling through all of the available veins for 15 to 20 minutes, switch to perfusion two solution under the same conditions. Using a return pump to recycle the perfusion two solution back to the reservoir, at a slower flow rate, for re-administration into the tissue.
Check the surface temperature of the bubble trap and, or the liver about every five minutes to confirm that the hepatocytes are not getting cold. When the liver blanches after about 30 minutes of perfusion, transfer the tissue to a sterile container, wrapped with a sterile drap, and place the container into a cell culture hood to maintain sterility during the hepatocyte processing. The collagenase isolation of the hepatocytes and cell disassociation needs to be done completely so you don't get clumping of the cells which decreases the viability of the cells and the transduction frequency.
Submerge the liver with hepatocyte wash medium and drag scissors across the top of the tissue to disrupt the liver capsule. Wearing sterile gloves, gently massage the liver to release the hepatocytes into the medium. And filter the tissue supernatant, through sterile gauze, into 200 milliliters centrifuge bottles.
Collect the filtered hepatocytes by centrifugation. Pooling the cells in 150 milliliters of fresh hepatocyte wash medium into a single 200 milliliter bottle for 2 additional washes. And counting the cells after the third centrifugation.
Then, dilute the cells to 1 times 10 to the ninth hepatocytes per milliliter saline concentration. For autotransplantation of the isolated hepatocytes, use a two-five megahertz transducer to identify the portal vein via ultrasound and direct a five-inch, 18-gauge needle toward the main portal vein, approximal to it's bifurcation. Load the cells into a 60 milliliter syringe, according to the total cell volume and attach the syringe to the needle, taking care not to introduce bubbles.
Next, slowly depress the syringe plunger to manually infuse up to 1 times 10 to the ninth hepatocytes through the portal vein using an infusion catheter to monitor the poral pressure during the transplantation. When all of the cells have been delivered, remove the catheter and monitor the portal vein for the presence of thrombotic events and forward flow by ultrasound. In a representative cohort of five pigs, that underwent hepatic resection, most had yields of greater than 10 to the ninth hepatocytes with approximately 80%viability.
Providing a sufficient number of cells for any type of desired manipulation, including gene therapy. Subsequent culture of the non-transplanted portion of these prepared hepatocytes, demonstrated a good viability and adhesion with a typical hepatocyte morphology 46 hours after their transduction and initial plating. An initial engraftment will vary by the number of cells reintroduced during the transplantation.
These representative biopsies demonstrate a timeline of gene-corrected cell expansion. Unique to diseases, such as hereditary tyrosinemia type 1, that enjoy a positive selected pressure for healthy cells. This expansion is typically complete 12 months after transplantation.
Once a transplanted fumarylacetoacetate hydrolase knockout animal has achieved about 20%re-population of the corrected hepatocytes within the liver, the tyrosine levels will normalize compared to wild-type animals. While uncorrected animals exhibit a significant elevation in both alkaline phosphatase and aspartate transaminase compared to wild-type animals, ex vivo gene therapy returns these serum enzymes levels to normal. Further, the general liver metabolic health is disrupted in untreated knockout pigs, as indicated by elevations in the circulating ammonia that are corrected after re-population with the treated hepatocytes.
It's important to remember with using this technique to handle and manipulate the tissue carefully and as little as possible. Increased handling or manipulation of the tissue, leads to decrease viability of the cells and decrease yield. This approach can also be applicable for people who are interested in studying bow distribution and graph inefficiencies in labeling techniques, using other techniques outside of viral transduction protocols.
Don't forget that working with viral vectors can be hazardous, so following proper bio safety procedures, as well as wearing personal protective equipment is necessary when using these techniques.
| english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.