text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
var Placeholder = require('../Placeholder'),
ph = new Placeholder();
ph.load();
console.log( 'loaded!' );
// setInterval( function(){}, 1000 );
| javascript |
Minecraft has seen seemingly countless updates since its full release back in 2011, but that doesn't mean it doesn't have plenty of improvements ahead.
Although Mojang's smash-hit sandbox game has improved leaps and bounds, there's always room for more. No game is perfect and needs to be tweaked or have additional content introduced. Minecraft's community is still making suggestions over a decade into its tenure, and a fair share of them have made their way into the game.
However, other features can still use quite a bit of attention. These features come in different sizes and importances, but are great points of emphasis for Mojang's development calendar.
See the Minecraftwiki here.
Minecraft: Java Edition's advancements and Bedrock Edition's achievements are solid milestones to follow to track a player's progress. With that being said, they don't do much else for the player.
It's true that some reward a sum total of experience points, many of these rewards aren't quite worth the time invested. By improving the rewards for advancements and achievements, especially for challenges, players will have more incentive to work through their milestones. It's a small improvement, but it would certainly help players along during their progression.
Check out the updated Minecraft Beginners Guide here.
Survival Mode players know the End dimension well. It's the final location in Minecraft's standard progression, leading to the boss fight with the Ender Dragon. Eventually, it leads to end cities and ships where players can obtain exceptional items such as Elytra.
Be that as it may, the End is quite bare, except for a few new blocks and a metric ton of endermen. The dimension is relatively scaled-down compared to the Nether and could be expanded significantly to warrant more exploration.
Villager trading can be very helpful in Minecraft, but many trades simply don't make a lot of sense and actively hurt the player. For example, one trade requires players to give up four scutes for a single emerald. Scutes are quite time-consuming to earn, requiring the raising of baby turtles into their adult forms.
For the latest Minecraft Skindex, click here.
Earning one scute takes a while, and earning four is worth way more than a single emerald. It wouldn't take much to tweak the trade tables, as many modders have already done so themselves, so it's something Mojang might want to look into.
Minecraft's stable of animal mobs that players can tame has increased since the days of racking up tamed wolves, but there's a lot of room for growth. Most tamed animals currently perform pretty basic functions, and Mojang can introduce some RPG elements to liven things up.
If players had more interactions with their tameable animals, such as training or teaching tricks, these mobs might have more use past their rudimentary activities. Players may even enjoy and grow a connection with their mobs by spending time with them.
For the complete information on Minecraft creeper , click here.
Although some variance between Minecraft versions is understandable, one of the bigger complaints leveled by players is the fact that certain features are exclusive to specific versions of the game.
Iterations such as Education Edition aside, there are several features that exist in Java and Bedrock editions of the game that don't exist in the opposite version or work completely differently.
This is partially due to Java and Bedrock editions possessing different codebases, but Mojang can surely level the playing field between its iterations all the same. | english |
The devices small radio nodes which provide network coverage over a range of between 10 and 200 metres have been used by businesses and consumers to provide a signal in areas of poor coverage for years.
Now operators are using them to bolster public broadband networks and ease pressure on traditional base stations, as they struggle to meet exploding data demand from customers wanting to access the Internet via smartphones and tablets on the go.
Nicola Palmer, chief technology officer of Verizon Wireless, said the U.S. carrier would deploy up to 300 4G small cells this year and "a lot more in 2014".
"I view small cells as a complement to the rest of the network especially in areas of intense demand such as business districts or shopping malls, but they won't replace the traditional mobile tower," she said at the Mobile World Congress trade show in Barcelona.
Small cells, which are around the size of a shoe box, can be clustered in streets between tall buildings canyons where mobile reception can be poor - and where demand is high.
Telecoms consultancy Informa predicted the deployment of public small cells would generate 2016 revenues of $16.2 billion, creating an opportunity for network gear providers like Ericsson, Huawei and Nokia Siemens Networks, which make them.
"Public access small cells in busy urban areas are set to be one of the defining mobile network trends in the coming years," said analyst Dimitris Mavrakis in Barcelona.
"The vendors who succeed in this space are going to win the lion's share of small cell revenues."
The installed base of small cells was set to grow from almost 11 million today to 92 million in 2016, with a total market value of over $22 billion, Informa said.
Telecoms gear maker Alcatel-Lucent said as demand for data soared, the capacity of the main network would run out of steam, and small cells would be part of the solution.
"It's no longer an 'if small cells', in fact in my mind it's no longer a 'when small cells', it's here and now," said Michael J. Schabel, the company's vice president of small cells.
Companies including AT&T and Vodafone UK as well as Verizon, have announced plans to roll out more small cells in their networks, as consumers increasingly expect a seamless data service.
Mike Flanagan, chief technology officer for network software firm Arieso, said the networks were coming under pressure from a small group of users who consume a huge amount of data, often for video or gaming.
He said one percent of all subscribers consumed more than half of all the data being transmitted in the network.
"So when you employ these small cells, don't think of a uniform ubiquitous small-cell coverage across a certain area, like Soho in London," he said.
"Instead look at it as a surgical placement of small cells precisely where they are required to satisfy the demand of those extreme one percent of users."
He said the technology was now able to detect where that demand was located down to the individual building.
"If the network operator can just satisfy the demands of one percent they've doubled the effective capacity of their whole network."
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
"""
This file contains functions related to survey search time calculations
"""
import pandas as _pd
#######################################################################################################################
def clean_datetimes(df, dt_col='DataDate'):
"""Filter datetimes and correct for timezone issues
Parameters
----------
df : pandas DataFrame
DataFrame of point observations
dt_col : str
Column name for datetime data
Returns
-------
df : pandas DataFrame
Identical to input DataFrame with an added 'dt_adj' column representing datetimes filtered and
correct (see Notes)
Notes
-----
1. Points collected in 2014 did not have their times recorded (only dates); they are assigned a time of 00:00:00
by the database. In the new `dt_adj` column, they are assigned NaT type. If you want to access just the dates,
you can do so with the original `dt_col` (`DataDate` by default).
2. When points are downloaded from handheld GPS devices, their times are converted to the timezone of the laptop on
which they are downloaded. Before we realized this, a lot of points were uploaded on machines set to U.S. Pacific
Time. As a result, some times need to be adjusted by 9 hours.
"""
df['dt_adj'] = df[dt_col].where(df[dt_col].dt.year > 2014)
df = correct_timezone(df, dt_col)
return df
#######################################################################################################################
def correct_timezone(df, dt_col='DataDate'):
"""Account for some timezone issues
Parameters
----------
df : pandas DataFrame
DataFrame of point observations
dt_col : str
Column name for datetime data
Returns
-------
df : pandas DataFrame
Identical to input DataFrame with datetimes fixed so that they all range from 06:30:00-21:30:00. In reality,
the latest times are approx 15:00:00
"""
df[dt_col] = df[dt_col].where((df[dt_col].dt.time > _pd.Timestamp('06:30:00').time()) &
(df[dt_col].dt.time < _pd.Timestamp('21:30:00').time()),
df[dt_col]+_pd.DateOffset(hours=9))
return df
#######################################################################################################################
def calc_search_time(df, dt_col='dt_adj', warn='enable'):
"""Calculate search times in seconds
Parameters
----------
df : pandas DataFrame of points
Must have columns 'FieldNumber', 'SurveyorName', 'SurveyPointId'
dt_col : str
Column name for datetime data
warn : {'enable', 'disable'}
Specify whether or not you want the generic warning message.
Returns
-------
df : pandas DataFrame
Identical to input DataFrame with added 'search_time' and 'dist' columns representing search time in seconds,
and distance from previous point in meters
Notes
-----
This is a naive calculation that doesn't discard any times. You will want to filter values further before using in
any interpretively meaningful way.
"""
import math
if warn == 'enable':
import warnings
warnings.warn('FYI: Search times calculated in a naive way (e.g., including unrealistic values and NaN values).'
'Consider further filtering before using `search_time` in calculations.')
pts_ix = df.set_index(['FieldNumber', 'SurveyorName', 'SurveyPointId']).sort_index() # create multi-index df
combos = list(set(zip(df['FieldNumber'], df['SurveyorName']))) # find all unique combos of field and surveyor
s = [] # list to store series for each surveyor within each field
for i in range(len(combos)): # loop through field/surveyor pairs
field, surveyor = combos[i][0], combos[i][1]
# create new df subset for that field and surveyor and sort by datetime
df_fs = pts_ix.loc[field, surveyor].sort_values(dt_col)
df_fs['dist'] = df_fs['dist'] = ((df_fs['Easting']-df_fs['Easting'].shift(1))**2 +
(df_fs['Northing']-df_fs['Northing'].shift(1))**2
).apply(lambda x: math.sqrt(x)) # calculate distance between consecutive pts
df_fs['search_time'] = df_fs[dt_col].diff().dt.total_seconds() # calculate differences between consecutive dts
s.append(df_fs[['search_time', 'dist']]) # append the small series to the list of series
t = _pd.concat(s) # concatenate all of the series into one long one (should be of length == n points)
return df.join(t, on='SurveyPointId') # join the series to the original points df
#######################################################################################################################
def filter_times(df, t_col='search_time', t_lim=(1, 900), dist_col='dist', dist_lim=(1, 20)):
"""Put time and distance restrictions on the time data.
Parameters
----------
df : pandas DataFrame
Dataset of points
t_col : str
Name of column with time info
t_lim : tuple
Min and max limits (inclusive) for time
dist_col : str
Name of column with distance info
dist_lim : tuple
Min and max limits (inclusive) for distance
Returns
-------
filtered : pandas DataFrame
A subset of the original DataFrame filtered according to the input parameters
"""
filtered = df[~(df[t_col].isna()) & # times not N/A
(df[t_col].between(t_lim[0], t_lim[1])) & # time limits
(df[dist_col].between(dist_lim[0], dist_lim[1])) # distance limits
].sort_values(t_col, ascending=False) # sort by time
return filtered
#######################################################################################################################
| python |
#include <iostream>
using namespace std;
int main()
{
int t,i,j,k;
int sum;
char a,b;
cin >>t;
while(t--)
{
sum=0;
cin>>i>>a>>j>>b>>k;
if(a=='+')
sum = i+j;
else
sum = i-j;
if(b=='+')
sum = sum + k;
else
sum=sum-k;
cout <<sum<<endl;
}
return 0;
}
| cpp |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Object3D] → [page:Mesh] →
<h1>[name]</h1>
<p class="desc">
A mesh that has a [page:Skeleton] with [page:Bone bones] that can then be used to animate the vertices of the geometry.
The material must support skinning and have skinning enabled - see [page:MeshStandardMaterial.skinning].
</p>
<iframe id="scene" src="scenes/bones-browser.html"></iframe>
<script>
// iOS iframe auto-resize workaround
if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent)) {
const scene = document.getElementById('scene');
scene.style.width = getComputedStyle(scene).width;
scene.style.height = getComputedStyle(scene).height;
scene.setAttribute('scrolling', 'no');
}
</script>
<h2>Code Example</h2>
<code>
const geometry = new v3d.CylinderBufferGeometry(5, 5, 5, 5, 15, 5, 30);
// create the skin indices and skin weights
const position = geometry.attributes.position;
const vertex = new v3d.Vector3();
const skinIndices = [];
const skinWeights = [];
for (let i = 0; i < position.count; i++) {
vertex.fromBufferAttribute(position, i);
// compute skinIndex and skinWeight based on some configuration data
const y = (vertex.y + sizing.halfHeight);
const skinIndex = Math.floor(y / sizing.segmentHeight);
const skinWeight = (y % sizing.segmentHeight) / sizing.segmentHeight;
skinIndices.push(skinIndex, skinIndex + 1, 0, 0);
skinWeights.push(1 - skinWeight, skinWeight, 0, 0);
}
geometry.setAttribute('skinIndex', new v3d.Uint16BufferAttribute(skinIndices, 4));
geometry.setAttribute('skinWeight', new v3d.Float32BufferAttribute(skinWeights, 4));
// create skinned mesh and skeleton
const mesh = new v3d.SkinnedMesh(geometry, material);
const skeleton = new v3d.Skeleton(bones);
// see example from v3d.Skeleton
const rootBone = skeleton.bones[0];
mesh.add(rootBone);
// bind the skeleton to the mesh
mesh.bind(skeleton);
// move the bones and manipulate the model
skeleton.bones[0].rotation.x = -0.1;
skeleton.bones[1].rotation.x = 0.2;
</code>
<h2>Constructor</h2>
<h3>[name]([param:BufferGeometry geometry], [param:Material material])</h3>
<p>
[page:Geometry geometry] - an instance of [page:BufferGeometry].<br />
[page:Material material] - (optional) an instance of [page:Material]. Default is a new [page:MeshBasicMaterial].
</p>
<h2>Properties</h2>
<p>See the base [page:Mesh] class for common properties.</p>
<h3>[property:String bindMode]</h3>
<p>
Either "attached" or "detached". "attached" uses the [page:SkinnedMesh.matrixWorld]
property for the base transform matrix of the bones. "detached" uses the
[page:SkinnedMesh.bindMatrix]. Default is "attached".
</p>
<h3>[property:Matrix4 bindMatrix]</h3>
<p>
The base matrix that is used for the bound bone transforms.
</p>
<h3>[property:Matrix4 bindMatrixInverse]</h3>
<p>
The base matrix that is used for resetting the bound bone transforms.
</p>
<h3>[property:Skeleton skeleton]</h3>
<p>
[page:Skeleton] representing the bone hierarchy of the skinned mesh.
</p>
<h2>Methods</h2>
<p>See the base [page:Mesh] class for common methods.</p>
<h3>[method:null bind]([param:Skeleton skeleton], [param:Matrix4 bindMatrix])</h3>
<p>
[page:Skeleton skeleton] - [page:Skeleton] created from a [page:Bone Bones] tree.<br/>
[page:Matrix4 bindMatrix] - [page:Matrix4] that represents the base transform of the skeleton.<br /><br />
Bind a skeleton to the skinned mesh. The bindMatrix gets saved to .bindMatrix property
and the .bindMatrixInverse gets calculated.
</p>
<h3>[method:SkinnedMesh clone]()</h3>
<p>
Returns a clone of this SkinnedMesh object and any descendants.
</p>
<h3>[method:null normalizeSkinWeights]()</h3>
<p>
Normalizes the skin weights.
</p>
<h3>[method:null pose]()</h3>
<p>
This method sets the skinned mesh in the rest pose (resets the pose).
</p>
<h3>[method:null updateMatrixWorld]([param:Boolean force])</h3>
<p>
Updates the [page:Matrix4 MatrixWorld].
</p>
[sourceHint]
</body>
</html>
| html |
<filename>lambda/slack_bot.py
import hashlib
import hmac
import json
import logging
import os
import urllib.request
SLACK_BOT_USER_ACCESS_TOKEN = os.environ["SLACK_BOT_USER_ACCESS_TOKEN"]
SLACK_SIGNING_SECRET = os.environ["SLACK_SIGNING_SECRET"]
# ログ設定
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def lambda_handler(event, context):
logger.info("start")
# 受信データを Cloud Watch Logs に出力しておく
logger.info(json.dumps(event))
# リクエスト署名のチェック
if not is_valid_request(event):
logger.warning("invalid request")
return
# Bot へのメンションじゃないときは何もしない
e = json.loads(event["body"])
if not is_app_mention(e):
return
# app_mention の処理
process_app_mention(e)
logger.info("end")
def is_valid_request(event):
if "X-Slack-Request-Timestamp" not in event["headers"] \
or "X-Slack-Signature" not in event["headers"]:
return False
expected_hash = generate_hmac_signature(
event["headers"]["X-Slack-Request-Timestamp"],
event["body"]
)
expected = "v0={}".format(expected_hash)
actual = event["headers"]["X-Slack-Signature"]
logger.debug("Expected HMAC signature: {}".format(expected))
logger.debug("Actual HMAC signature: {}".format(actual))
return hmac.compare_digest(expected, actual)
def generate_hmac_signature(timestamp, body):
secret_key_bytes = bytes(SLACK_SIGNING_SECRET, 'UTF-8')
message = "v0:{}:{}".format(timestamp, body)
message_bytes = bytes(message, 'UTF-8')
return hmac.new(secret_key_bytes, message_bytes, hashlib.sha256).hexdigest()
def is_app_mention(event):
return event.get("event")["type"] == "app_mention"
def process_app_mention(event):
e = event.get("event")
tokens = e["text"].split(" ")[1:]
if len(tokens) == 0:
post_message_to_channel(e, "What?")
return
post_message_to_channel(e, " ".join(tokens))
def post_message_to_channel(event, message):
url = "https://slack.com/api/chat.postMessage"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer {0}".format(SLACK_BOT_USER_ACCESS_TOKEN),
}
data = {
"token": SLACK_BOT_USER_ACCESS_TOKEN,
"channel": event["channel"],
"text": get_user_mention(event["user"]) + " " + message,
}
req = urllib.request.Request(url, data=json.dumps(data).encode("utf-8"), headers=headers, method="POST")
with urllib.request.urlopen(req) as response:
response_body = response.read().decode("utf-8")
logger.info(response_body)
def get_user_mention(user_id):
return "<@" + user_id + ">"
| python |
Los Angeles, Nov 30 (IANS) Actress Kate Beckinsale has reportedly turned towards actor Ben Affleck after splitting from her husband Len Wiseman.
Beckinsale and Affleck, who reportedly had a brief fling after filming “Pearl Harbor” in 2001, have been spending time together following their respective splits, reports aceshowbiz. com.
According to sources quoted by The Sun, a “spark” remains between Beckinsale and Affleck.
“Kate used to be madly in love with Ben. He would make her giddy with excitement any time they were in the same room. She’s turned to him for support as a friend because they’ve stayed in touch during her difficult time,” the source said.
Friends of the duo are reportedly pushing for the couple to get together again.
“Some of their friends have suggested that they’re made for each other and should give a proper relationship a go,” the source added.
The news of Beckinsale’s split came after Wiseman was spotted with a 24-year-old model named CJ Franco while heading to a restaurant in Hollywood. | english |
package com.dxm.anymock.manager.biz;
import com.dxm.anymock.manager.biz.model.request.BasePagingRequest;
import org.apache.ibatis.session.RowBounds;
public class RowBoundsConverter {
public static RowBounds convert(BasePagingRequest basePagingRequest) {
int offset = basePagingRequest.getItemsPerPage() * (basePagingRequest.getPage() - 1);
int limit = basePagingRequest.getItemsPerPage();
return new RowBounds(offset, limit);
}
}
| java |
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json",
"contentVersion": "1.0.0.0",
"parameters": {
"actionGroupName": {
"value": "autoscaleActionGroup"
},
"actionGroupShortName": {
"value": "autoscaleAG"
},
"emailAddress": {
"value": "<EMAIL>"
},
"activityLogAlertName": {
"value": "autoscaleFailedAlert"
}
}
}
| json |
package com.vagas.api.model.input;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
@Getter
@Setter
public class UsuarioInput {
@NotBlank
private String login;
@Email
@NotBlank
private String email;
@NotBlank
private String senha;
@NotBlank
private String confirmarSenha;
private Boolean isAtivo;
}
| java |
{
"<page title>": "SIGMA DP1 MERRILL 19MM F2.8 CAMERA DP1M",
"ac power adapter": "N/A",
"additional zoom": "None",
"approx resolution": "46MP",
"aspect ratio": "3:2",
"battery": "Rechargeable Lithium Ion Battery Pack",
"builtin flash": "No",
"builtin memory": "N/A",
"burst rate": "N/A",
"camera type": "Advanced",
"canon pixma pro1 pro10 or pro100 printer": ".",
"colour": "Black",
"connectivity": "USB 2.0",
"digital point and shoot camera": ".",
"digital zoom": "None",
"display screen type": "LCD Rear Screen",
"effective pixels": "46MP",
"exposure modes": "Modes: Aperture Priority, Manual, Program, Program Shift, Shutter Priority\nCompensation: -3 EV to +3 EV (in .33 EV steps)",
"external flash connection": "Hot Shoe",
"file formats": "JPEG, RAW",
"flash modes": "None",
"focus range": "Auto: 7.87\" (20 cm) - Infinity",
"image stabilization": "None",
"iso sensitivity": "N/A",
"lens": "9 elements in 8 groups\nEFL: 19 mm (35 mm equivalent: 28 mm)\nAperture: f/2.8",
"memory card type": "SD/SDHC",
"metering method": "Center-weighted, Evaluative, Spot",
"operatingstorage temperature": "N/A",
"optical zoom": "None",
"remote control": "N/A",
"screen size": "3.0\"",
"self timer": "2 Sec, 10 Sec",
"sensor typesize": "23.5x15.7mm CMOS",
"shutter": "N/A",
"viewfinder type": "LCD Display",
"warranty": "10 year warranty",
"white balance modes": "Auto, Cloudy, Custom, Daylight, Flash, Fluorescent, Incandescent, Overcast, Shade"
} | json |
<gh_stars>10-100
#include "Stdafx.h"
#include "FBXLight.h"
using namespace ArcManagedFBX;
ARC_DEFAULT_INTERNAL_CONSTRUCTOR_INHERIT_IMPL(FBXLight,FBXNodeAttribute,FbxLight)
ARC_DEFAULT_CONSTRUCTORS_IMPL(FBXLight)
void ArcManagedFBX::FBXLight::SetShadowTexture(FBXTexture^ textureInstance)
{
this->GetFBXLight()->SetShadowTexture(textureInstance->GetFBXTexture());
}
FBXTexture^ ArcManagedFBX::FBXLight::GetShadowTexture()
{
return gcnew FBXTexture(this->GetFBXLight()->GetShadowTexture());
}
| cpp |
from tkinter import *
clicks = 0
def click_button():
global clicks
clicks += 1
buttonText.set("Clicks {}".format(clicks))
root = Tk()
root.title("GUI на Python")
root.geometry("300x250")
buttonText = StringVar()
buttonText.set("Clicks {}".format(clicks))
btn = Button(textvariable=buttonText, background="#555", foreground="#ccc",
padx="20", pady="8", font="16", command=click_button)
btn.pack()
root.mainloop()
| python |
Last weekend was an extraordinary occasion in the NHL, as several players tied the knot in what can only be described as a massive wedding celebration. The hockey world witnessed a flurry of marital bliss as some of the league's brightest stars said their "I dos. "
Tyson Barrie, the talented defenseman for the Nashville Predators, exchanged vows with his longtime girlfriend, Emma Rose, in a stunning ceremony held in Victoria, BC. The wedding was nothing short of spectacular, with an incredible guest list that included some of the biggest names in the NHL. Superstars such as Sidney Crosby, Connor McDavid, Nathan MacKinnon and Mitch Marner were in attendance, making it a star-studded affair.
Jordan Binnington, the goaltender for the St. Louis Blues, joined in on the wedding festivities as well. He married his partner, Cristine Prosperi, a Canadian actress known for her role as Imogen Moreno on the popular TV series Degrassi. The couple's union added a touch of glamor and Hollywood flair to the celebration.
Sam Reinhart, a forward for the Florida Panthers, also said his vows, marrying his partner, Jessica Jewell. Reinhart, a highly talented player, was selected second overall by the Buffalo Sabres in the 2014 NHL Entry Draft. This wedding marked a significant milestone in his personal life, surrounded by loved ones and fellow NHL players who came to celebrate the joyous occasion.
Another defenseman who took the plunge into wedded bliss was Sam Girard, known for his exceptional defensive skills on the ice. Girard and his longtime partner, Jacklyn Jorgensen, recently tied the knot in a private ceremony overflowing with love and happiness.
Vinni Lettieri, an American professional ice hockey center, added a chapter to his personal story as he exchanged vows with his partner, Cassandra Bunks. Lettieri, currently playing for the Minnesota Wild, celebrated his love and commitment to Bunks in a joyous wedding ceremony.
The weekend's festivities showcased the strong bonds formed among players, both on and off the ice. Half the league seemed to have gathered at these weddings.
Top 5 players BANNED from the NBA for drug use! Shocking names ahead! | english |
The newly appointed UK Prime Minister Liz Truss had called the British monarchy "disgraceful" as a teenager.
“I’m not against any of them personally . . . I’m against the idea that people can be born to rule . . . I think that’s disgraceful,” Truss said as a teen in a TV News video clip.
The clip, which emerged this week, was purportedly recorded back in 1994 when Truss was a 19-year-old student at Merton College, Oxford, before graduating in 1996.
In her statement outside 10 Downing Street on Thursday, Truss, who believed as a youth that people should not be born into power, now claimed that, "Queen Elizabeth II provided us with the stability and the strength that we needed.
Truss added, “God save the King”, and called for the British people to support Charles, 73, as he takes on the "awesome responsibility" of a kingdom grappling with poverty.
Already debate swirls over whether King Charles III will command the same respect or clout as his mother did after becoming king of the United Kingdom and the head of state of 14 other realms including Australia, Canada and New Zealand.
Meanwhile, calls are growing in former colonies in the Caribbean to remove the British monarch as head of state and some Commonwealth leaders have expressed doubt about accepting Charles's leadership. | english |
We clarify loan agreements, financial records, safety and security contracts and other documents in clear simple language. Baltimore County Maryland Bankruptcy Attorney Georgette Miller combines her competence and also experience in genuine estate personal bankruptcy, legislation and also car loan adjustment options to develop reliable services for consumer wanting to safeguard their residence and also reclaim their monetary security. Lenders could accept such an adjustment to stay clear of the cost as well as problem of going after foreclosure. When customers are dealing with repossession or they require legal guidance via a complicated realty purchase, they want the experience and experience of a leading law office without being relegated to taking care of junior affiliates and also team. If you adored this article and you would like to be given more info about baltimore county bankruptcy lawyers please visit our webpage. Personal bankruptcy or a loan alteration might provide an effective foreclosure alleviation option when house owners are seriously behind on their home mortgage. Our Baltimore County car loan adjustment attorneys can recommend you concerning whether you get a loan modification as well as work out with the bank so you get the finest terms. A lending adjustment entails a decrease in your mortgage repayment. Whether Ms. Miller is offering lawful advice to a debtor or home owner, looking for a funding adjustment, or tenaciously prosecuting a commercial lease disagreement, she offers audio legal advise and also convincing advocacy for her clients. If you require a skilled Baltimore County lawyer that is committed to giving the finest quality lawful services to handle your real estate trouble, personal bankruptcy, finance modification, we welcome you to call us at 866-96-GMLAW. We represent businesses, public entities and individuals throughout Baltimore County as well as the surrounding location.
What is Pligg?
Pligg is an open source content management system that lets you easily create your own user-powered website.
| english |
The Dallas Cowboys would like to imagine that they're going to contend this season like they have in recent years. They boasted the league's top-scoring offense last season en route to a 12-5 finish and a division title. They fizzled out in the playoffs, but figure to be back there next year.
However, they've got a bit of a tough schedule, especially at the beginning of the season. They begin the season against the Tampa Bay Buccaneers and the Cincinnati Bengals.
That's a tough start to a season, even if both games are at home. Cincinnati is the defending AFC champion, and the Buccaneers made the NFC Championship Game last year and won the Super Bowl the year prior.
NFL analyst Alex Ballantine for the Bleacher Report believes they could be in trouble:
"For the record, there's still a lot to like about the Cowboys over the course of the entire season. Prescott is still a top 10 quarterback in the league. Tony Pollard and Ezekiel Elliott are still a great tandem of backs. Micah Parsons and Trevon Diggs are two elite young talents on defense.
"This is still a team that is likely looking at an 0-2 start, creating two high-pressure games to get back to .500 at the beginning of the season."
Granted, those high pressure games are at the New York Giants and home against the Washington Commanders, but still. Being 0-2 is a hole that can be difficult to climb out of.
It's a long season, but starting off the season with two losses can really put any team behind the eight ball. That's not something the Cowboys would like to see happen.
What might the Cowboys record be in 2022?
Ballantine is right, it is very likely that the Cowboys will begin the season 0-2. Divisional games, of which they have two back-to-back after that, are often a toss-up, which could put them at 1-3 and in deep trouble.
The NFL schedule doesn't get much easier after that as they visit the defending Super Bowl champion Los Angeles Rams and then the Philadelphia Eagles.
The season from there isn't as challenging, but they still play the Green Bay Packers, Tennessee Titans and the Indianapolis Colts.
Unless they start hot and defy the expectations, there's a real chance they finish 10-7 at best, which is probably not going to be enough to win the NFC East this season.
| english |
Short Bytes: With Simore SIM solutions, it is easier to use up to 5 SIMs on a single mobile phone. Simore also supports SIMs from different service providers and also works for phones running different platforms like iOS, Windows, Android etc.
Simore (SIM + More) is a multi-SIM solution expert which has come up with a solution in the form of a portable SIM holder. It does not require any rooting or jailbreaking. It simply works like a play-n-plug device.
However, there is still a slight restriction when it comes to the service provider and the phone company. It should be noted that unless your handset is unlocked, you will be restricted to SIM cards from the carrier to which your handset is locked — which is very obvious. Still,
Simore helps in carving out the best-fit plans for you. Before calling a number, you just have to choose an operator and it works.
Here are some of the features of the Simore Multi-SIM holder:
Besides the above features, this SIM solution by Simore is also compatible across different geographical locations and different service providers like AT&T, Vodafone, Orange, Sunrise, O2 etc.
Last but not the least, it is also compatible with all phones on different platforms like iOS, Android, Windows etc.
Did you find this article on Simore helpful? Share your views in the comments below.
| english |
<gh_stars>10-100
use async_std::task::block_on;
use serde_json::Value;
use crate::model::response::ResponseStub;
use super::{StdResponse, super::req::StdRequest, Verifier};
pub struct BodyVerifier;
impl BodyVerifier {}
impl Verifier<'_> for BodyVerifier {
fn verify(stub: &'_ ResponseStub, name: &'_ str, _req: &'_ StdRequest, resp: &'_ mut StdResponse) {
if let Some(expected) = stub.body.json_body.as_ref() {
let actual = block_on(async move { resp.0.body_json::<Value>().await.ok() });
assert!(actual.is_some(), "Verification failed for stub '{}'. Expected json response body to be '{}' but none present", name, expected);
let actual = actual.as_ref().unwrap();
assert_eq!(actual, expected, "Verification failed for stub '{}'. Expected json response body to be '{}' but was '{}'", name, expected, actual);
} else if let Some(expected) = stub.body.body.as_ref() {
let actual = block_on(async move { resp.0.body_string().await.ok() }).filter(|it| !it.is_empty());
assert!(actual.is_some(), "Verification failed for stub '{}'. Expected text response body to be '{}' but none present", name, expected);
let actual = actual.as_ref().unwrap();
assert_eq!(actual, expected, "Verification failed for stub '{}'. Expected text response body to be '{}' but was '{}'", name, expected, actual);
}
}
}
#[cfg(test)]
mod body_verify_tests {
use http_types::{Request, Response};
use serde_json::json;
use crate::model::response::body::BodyStub;
use super::*;
mod json {
use super::*;
#[test]
fn should_verify_json_body() {
let body = json!({"name": "doe"});
let stub = ResponseStub { body: BodyStub { json_body: Some(body.clone()), ..Default::default() }, ..Default::default() };
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = Response::new(200);
resp.set_body(body);
let mut resp = StdResponse(resp);
BodyVerifier::verify(&stub, "json", &req, &mut resp);
}
#[should_panic(expected = "Verification failed for stub 'json'. Expected json response body to be '{\"name\":\"alice\"}' but was '{\"name\":\"bob\"}'")]
#[test]
fn verify_should_fail_when_wrong_json_body_returned() {
let body = json!({"name": "alice"});
let stub = ResponseStub { body: BodyStub { json_body: Some(body), ..Default::default() }, ..Default::default() };
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = Response::new(200);
resp.set_body(json!({"name": "bob"}));
let mut resp = StdResponse(resp);
BodyVerifier::verify(&stub, "json", &req, &mut resp);
}
#[should_panic(expected = "Verification failed for stub 'json'. Expected json response body to be '{\"name\":\"alice\"}' but none present")]
#[test]
fn verify_should_fail_when_json_body_expected_and_none_present() {
let stub = ResponseStub { body: BodyStub { json_body: Some(json!({"name": "alice"})), ..Default::default() }, ..Default::default() };
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = StdResponse(Response::new(200));
BodyVerifier::verify(&stub, "json", &req, &mut resp);
}
#[test]
fn verify_should_not_fail_when_no_json_body_expected_and_one_present() {
let stub = ResponseStub::default();
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = Response::new(200);
resp.set_body(json!({"name": "bob"}));
let mut resp = StdResponse(resp);
BodyVerifier::verify(&stub, "json", &req, &mut resp);
}
}
mod text {
use super::*;
#[test]
fn should_verify_text_body() {
let stub = ResponseStub { body: BodyStub { body: Some("alice".to_string()), ..Default::default() }, ..Default::default() };
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = Response::new(200);
resp.set_body("alice".to_string());
let mut resp = StdResponse(resp);
BodyVerifier::verify(&stub, "text", &req, &mut resp);
}
#[should_panic(expected = "Verification failed for stub 'text'. Expected text response body to be 'alice' but was 'bob'")]
#[test]
fn verify_should_fail_when_wrong_text_body_returned() {
let stub = ResponseStub { body: BodyStub { body: Some("alice".to_string()), ..Default::default() }, ..Default::default() };
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = Response::new(200);
resp.set_body("bob".to_string());
let mut resp = StdResponse(resp);
BodyVerifier::verify(&stub, "text", &req, &mut resp);
}
#[should_panic(expected = "Verification failed for stub 'text'. Expected text response body to be 'alice' but none present")]
#[test]
fn verify_should_fail_when_text_body_expected_and_none_present() {
let stub = ResponseStub { body: BodyStub { body: Some("alice".to_string()), ..Default::default() }, ..Default::default() };
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = StdResponse(Response::new(200));
BodyVerifier::verify(&stub, "text", &req, &mut resp);
}
#[test]
fn verify_should_fail_when_no_text_body_expected_and_one_present() {
let stub = ResponseStub::default();
let req = StdRequest(Request::get("http://localhost/"));
let mut resp = Response::new(200);
resp.set_body("bob".to_string());
let mut resp = StdResponse(resp);
BodyVerifier::verify(&stub, "text", &req, &mut resp);
}
}
}
| rust |
{
"projectTitle": "NextBook: Lovely docs with MDX!",
"projectDescription": "NextBook is quick and easy way to buid technical books or documentation that support modern standards and run blazingly fast. It's built with MDX, Next.js and React and works by compiling markdown or MDX down to plain static html.",
"projectURL": "https://next-book.vercel.app",
"text": {
"Keywords": "Keywords",
"Last Update": "Last Update",
"Toggle color mode": "Toggle color mode",
"Toggle dark mode": "Toggle dark mode",
"Toggle light mode": "Toggle light mode",
"Copy to clipboard": "Copy to clipboard",
"Copy": "Copy",
"Copied!": "Copied!",
"Page Contents": "Page Contents",
"Table Of Contents": "Table Of Contents",
"Previous chapter": "Previous chapter",
"Next chapter": "Next chapter",
"Search content": "Search content",
"Figure": "Figure",
"Reset search": "Reset search"
},
"toc": [
{
"part": "Documentation",
"chapters": [
{ "title": "Getting Started", "path": "/documentation/getting-started" },
{ "title": "NextBook Features", "path": "/documentation/nextbook-features" },
{ "title": "Markdown Reference", "path": "/documentation/markdown" },
{ "title": "Fenced Code Usage", "path": "/documentation/fencedcode" },
{ "title": "Using MDX", "path": "/documentation/using-mdx" }
]
},
{
"part": "Contributing",
"chapters": [{ "title": "Missing Features", "path": "/contributing/missing-features" }]
}
]
}
| json |
<filename>leetcode/cpp/003_longest_substring_without_repeating_characters.cpp<gh_stars>1-10
/*
Given a string, find the length of the longest substring without repeating characters.
Examples:
Given "abcabcbb", the answer is "abc", which the length is 3.
Given "bbbbb", the answer is "b", with the length of 1.
Given "pwwkew", the answer is "wke", with the length of 3. Note that the answer must be a substring, "pwke" is a subsequence and not a substring.
*/
class Solution {
public:
int lengthOfLongestSubstring(string s) {
/*int str_len=0;
int str_size = s.size();
int substr_len = 1; // store the length of longest substring
int start_idx = 1; // the index of first element to be compared
for(int i=0; i<str_size; ++i) {
start_idx = i+substr_len;
substr_len = substr_len>1?(substr_len--):1;
// expand the substring
for(int j=start_idx; j<str_size; ++j) {
bool repeat = false;
// find wether exists the repeative element
for(int k=j-1; k>=i; k--){
if(s.at(k)==s.at(j)) {
repeat = true;
break;
}
}
if(repeat) break;
substr_len++;
}
str_len = substr_len>str_len?substr_len:str_len;
// terminate condition
if(i+str_len == str_size) break;
}
return str_len;*/
/*
int a[256]={0};
int len = s.size();
int result = 0, max = 0;
int temp = 0, low =0;
for(int i =0; i < len; ++i)
{
temp = a[s[i]];
if(temp)
{
for(int j = low; j < temp-1;j++)
{
a[s[j]] = 0;
}
result -= temp-low-1;
low = temp;
a[s[i]] = i+1;
}
else
{
a[s[i]] = i+1;
if(++result > max)
max = result;
}
}
return max;
*/
/*if(s.size()<2) return s.size();
char counters[130] = {0};
int len = 0, // current length
max = 0, // longest length
tail = 0; // index for latest repective character
for(int i=0; i<s.size(); ++i) {
len++; // important
if(counters[s.at(i)]==0) {
// this character never shows up
counters[s.at(i)]++;
} else {
// this character shows up already
counters[s.at(i)]++;
while(tail<i && s.at(tail)!=s.at(i)) {
len--;
counters[s.at(tail++)]--;
}
len--;
counters[s.at(tail++)]--;
}
max=len>max?len:max;
}
return max;*/
string subs = "";
int res = 0;
for (int i=0; i<s.size(); i++) {
size_t at = subs.find(s[i]);
if ( at != string::npos) {
subs.erase(0, at+1); // delete substring, that starting from 0, len is at+1. if at+1 is bigger than str len, then, the entire string is erased
}
subs += s[i];
res = subs.size() > res ? subs.size() : res; // res = max(res, subs.size())
}
return res;
}
};
// NOTICE:
// converting string to char[] does not make it faster, which
// could have two commonly used method:
// 1. string.c_str(); 2. string.data(): only the first one returns content ending with '\0'
// string could contain any char which is not just "A~Z" or "a~z"
| cpp |
<reponame>MinecraftMachina/lwjgl3<filename>modules/samples/src/test/java/org/lwjgl/demo/openxr/XRHelper.java
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
*/
package org.lwjgl.demo.openxr;
import org.joml.Math;
import org.joml.*;
import org.lwjgl.egl.*;
import org.lwjgl.openxr.*;
import org.lwjgl.system.*;
import org.lwjgl.system.linux.*;
import static org.lwjgl.glfw.GLFW.*;
import static org.lwjgl.glfw.GLFWNativeEGL.*;
import static org.lwjgl.glfw.GLFWNativeGLX.*;
import static org.lwjgl.glfw.GLFWNativeWGL.*;
import static org.lwjgl.glfw.GLFWNativeWayland.*;
import static org.lwjgl.glfw.GLFWNativeWin32.*;
import static org.lwjgl.glfw.GLFWNativeX11.*;
import static org.lwjgl.opengl.GLX.*;
import static org.lwjgl.opengl.GLX13.*;
import static org.lwjgl.openxr.XR10.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.windows.User32.*;
/**
* A helper class with some static methods to help applications with OpenXR related tasks that are cumbersome in
* some way.
*/
final class XRHelper {
private XRHelper() {
}
static <S extends Struct, T extends StructBuffer<S, T>> T fill(T buffer, int offset, int value) {
long ptr = buffer.address() + offset;
int stride = buffer.sizeof();
for (int i = 0; i < buffer.limit(); i++) {
memPutInt(ptr + i * stride, value);
}
return buffer;
}
/**
* Allocates an {@link XrApiLayerProperties.Buffer} onto the given stack with the given number of layers and
* sets the type of each element in the buffer to {@link XR10#XR_TYPE_API_LAYER_PROPERTIES XR_TYPE_API_LAYER_PROPERTIES}.
*
* <p>Note: you can't use the buffer after the stack is gone!</p>
*
* @param stack the stack to allocate the buffer on
* @param numLayers the number of elements the buffer should get
*
* @return the created buffer
*/
static XrApiLayerProperties.Buffer prepareApiLayerProperties(MemoryStack stack, int numLayers) {
return fill(
XrApiLayerProperties.calloc(numLayers, stack),
XrApiLayerProperties.TYPE,
XR_TYPE_API_LAYER_PROPERTIES
);
}
/**
* Allocates an {@link XrExtensionProperties.Buffer} onto the given stack with the given number of extensions
* and sets the type of each element in the buffer to {@link XR10#XR_TYPE_EXTENSION_PROPERTIES XR_TYPE_EXTENSION_PROPERTIES}.
*
* <p>Note: you can't use the buffer after the stack is gone!</p>
*
* @param stack the stack onto which to allocate the buffer
* @param numExtensions the number of elements the buffer should get
*
* @return the created buffer
*/
static XrExtensionProperties.Buffer prepareExtensionProperties(MemoryStack stack, int numExtensions) {
return fill(
XrExtensionProperties.calloc(numExtensions, stack),
XrExtensionProperties.TYPE,
XR_TYPE_EXTENSION_PROPERTIES
);
}
/**
* Applies an off-center asymmetric perspective projection transformation to the given {@link Matrix4f},
* such that it represents a projection matrix with the given <b>fov</b>, <b>nearZ</b> (a.k.a. near plane),
* <b>farZ</b> (a.k.a. far plane).
*
* @param m The matrix to apply the perspective projection transformation to
* @param fov The desired Field of View for the projection matrix. You should normally use the value of
* {@link XrCompositionLayerProjectionView#fov}.
* @param nearZ The nearest Z value that the user should see (also known as the near plane)
* @param farZ The furthest Z value that the user should see (also known as far plane)
* @param zZeroToOne True if the z-axis of the coordinate system goes from 0 to 1 (Vulkan).
* False if the z-axis of the coordinate system goes from -1 to 1 (OpenGL).
*
* @return the provided matrix
*/
static Matrix4f applyProjectionToMatrix(Matrix4f m, XrFovf fov, float nearZ, float farZ, boolean zZeroToOne) {
float distToLeftPlane = Math.tan(fov.angleLeft());
float distToRightPlane = Math.tan(fov.angleRight());
float distToBottomPlane = Math.tan(fov.angleDown());
float distToTopPlane = Math.tan(fov.angleUp());
return m.frustum(distToLeftPlane * nearZ, distToRightPlane * nearZ, distToBottomPlane * nearZ, distToTopPlane * nearZ, nearZ, farZ, zZeroToOne);
}
/**
* Appends the right <i>XrGraphicsBinding</i>** struct to the next chain of <i>sessionCreateInfo</i>. OpenGL
* session creation is poorly standardized in OpenXR, so the right graphics binding struct depends on the OS and
* the windowing system, among others. There are basically 4 graphics binding structs for this:
* <ul>
* <li><i>XrGraphicsBindingOpenGLWin32KHR</i>, which can only be used on Windows computers.</li>
* <li><i>XrGraphicsBindingOpenGLXlibKHR</i>, which can only be used on Linux computers with the X11 windowing system.</li>
* <li>
* <i>XrGraphicsBindingOpenGLWaylandKHR</i>, which can only be used on Linux computers with the
* Wayland windowing system. But, no OpenXR runtime has implemented the specification for this struct and
* the Wayland developers have claimed that the specification doesn't make sense and can't be implemented
* as such. For this reason, this method won't use this struct.
* </li>
* <li>
* <i>XrGraphicsBindingEGLMNDX</i>, which is cross-platform, but can only be used if the experimental
* OpenXR extension <i>XR_MNDX_egl_enable</i> is enabled. But, since the extension is experimental, it
* is not widely supported (at the time of writing this only by the Monado OpenXR runtime). Nevertheless,
* this is the only way to create an OpenXR session on the Wayland windowing system (or on systems
* without well-known windowing system).
* </li>
* </ul>
*
* The parameter <b>useEGL</b> determines which graphics binding struct this method will choose:
* <ul>
* <li>
* If <b>useEGL</b> is true, this method will use <i>XrGraphicsBindingEGLMNDX</i>.
* The caller must ensure that the extension <i>XR_MNDX_egl_enable</i> has been enabled.
* </li>
* <li>
* If <b>useEGL</b> is false, this method will try to use a platform-specific struct.
* If no such struct exists, it will throw an <i>IllegalStateException</i>.
* </li>
* </ul>
*
* @param sessionCreateInfo The <i>XrSessionCreateInfo</i> whose next chain should be populated
* @param stack The <i>MemoryStack</i> onto which this method should allocate the graphics binding struct
* @param window The GLFW window
* @param useEGL Whether this method should use <i>XrGraphicsBindingEGLMNDX</i>
* @return sessionCreateInfo (after appending a graphics binding to it)
* @throws IllegalStateException If the current OS and/or windowing system needs EGL, but <b>useEGL</b> is false
*/
static XrSessionCreateInfo createGraphicsBindingOpenGL(
XrSessionCreateInfo sessionCreateInfo, MemoryStack stack, long window, boolean useEGL
) throws IllegalStateException {
if (useEGL) {
System.out.println("Using XrGraphicsBindingEGLMNDX to create the session...");
return sessionCreateInfo.next(
XrGraphicsBindingEGLMNDX.malloc(stack)
.type$Default()
.next(NULL)
.getProcAddress(EGL.getCapabilities().eglGetProcAddress)
.display(glfwGetEGLDisplay())
.config(glfwGetEGLConfig(window))
.context(glfwGetEGLContext(window))
);
}
switch (Platform.get()) {
case LINUX:
int platform = glfwGetPlatform();
if (platform == GLFW_PLATFORM_X11) {
long display = glfwGetX11Display();
long glxConfig = glfwGetGLXFBConfig(window);
XVisualInfo visualInfo = glXGetVisualFromFBConfig(display, glxConfig);
if (visualInfo == null) {
throw new IllegalStateException("Failed to get visual info");
}
long visualid = visualInfo.visualid();
System.out.println("Using XrGraphicsBindingOpenGLXlibKHR to create the session");
return sessionCreateInfo.next(
XrGraphicsBindingOpenGLXlibKHR.malloc(stack)
.type$Default()
.xDisplay(display)
.visualid((int)visualid)
.glxFBConfig(glxConfig)
.glxDrawable(glXGetCurrentDrawable())
.glxContext(glfwGetGLXContext(window))
);
} else {
throw new IllegalStateException(
"X11 is the only Linux windowing system with explicit OpenXR support. All other Linux systems must use EGL."
);
}
case WINDOWS:
System.out.println("Using XrGraphicsBindingOpenGLWin32KHR to create the session");
return sessionCreateInfo.next(
XrGraphicsBindingOpenGLWin32KHR.malloc(stack)
.type$Default()
.hDC(GetDC(glfwGetWin32Window(window)))
.hGLRC(glfwGetWGLContext(window))
);
default:
throw new IllegalStateException(
"Windows and Linux are the only platforms with explicit OpenXR support. All other platforms must use EGL."
);
}
}
}
| java |
<reponame>Dinvan/TouristAttractions<filename>Shared/build/intermediates/blame/res/release/single/drawable-hdpi-v4.json<gh_stars>0
[
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/common_google_signin_btn_text_light_normal_background.9.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/common_google_signin_btn_text_light_normal_background.9.png"
},
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/common_google_signin_btn_text_dark_normal_background.9.png"
},
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/googleg_disabled_color_18.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/googleg_disabled_color_18.png"
},
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/common_google_signin_btn_icon_dark_normal_background.9.png"
},
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/common_full_open_on_phone.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/common_full_open_on_phone.png"
},
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/common_google_signin_btn_icon_light_normal_background.9.png"
},
{
"merged": "/home/advanz101/Dinesh_WorkSpace/SampleProjects/TouristAttractions/Shared/build/intermediates/res/merged/release/drawable-hdpi-v4/googleg_standard_color_18.png",
"source": "/home/advanz101/.android/build-cache/7a0b5617ba607b8ad6e821afe1d19089091a4177/output/res/drawable-hdpi-v4/googleg_standard_color_18.png"
}
] | json |
7. Anil, a diligent and dedicated officer, is assigned to the Central Drugs Standard Control Organisation (CDSCO), a regulatory body responsible for ensuring the safety and efficacy of pharmaceutical products in the country.
Anil’s routine investigation into pharmaceutical companies takes an unexpected turn when he stumbles upon unusual discrepancies related to cough syrup exports. While reviewing export records, he notices that a significant quantity of substandard cough syrup is being shipped to various African nations.
Intrigued by this discovery, Anil delves deeper into the records and discovers a network of companies connected to each other. Some of these companies are seemingly legitimate pharmaceutical manufacturers, while others are intermediaries with obscure ties to shadowy figures.
Realizing the gravity of the situation, Anil decides to conduct an undercover investigation. He adopts a pseudonym and poses as a potential buyer of the substandard cough syrup. Through discreet communication channels, he establishes contact with one of the intermediaries, who offers him a deal at an astonishingly low price.
As Anil continues to interact with the intermediary, he discovers the layers of deception woven into the operation. The intermediary is skilled at providing plausible explanations for the low quality of the cough syrup, ranging from manufacturing issues to packaging errors. Anil realizes that this operation is sophisticated and well-orchestrated.
Anil manages to obtain samples of the substandard cough syrup under the guise of a deal negotiation. He arranges for these samples to be independently tested, and the results confirm his suspicions: the cough syrup is not only substandard but also potentially harmful to consumers.
Armed with concrete evidence, Anil decides to confront the network of companies involved. He presents his findings to his superiors at the CDSCO, but as he digs deeper, he discovers that some individuals within the organization, including his own boss, may be complicit in this illicit operation. This realization raises the stakes, and Anil must tread carefully to avoid tipping off those responsible.
- What are the ethical dilemmas faced by Anil?
- What course of action should Anil take? Why?
- How should he deal with the issue with respect to the involvement of his boss?
| english |
Former Liverpool and Bayern Munich midfielder Xabi Alonso has been acquitted of tax fraud by a court in Madrid.
Alonso was accused of defrauding the Spanish tax office of almost €2 million between 2010 and 2012, when he was at Real Madrid.
The Prosecutor's Office had called for a two-and-a-half-year prison sentence, but at a ruling on Tuesday, Alonso – who had always denied any wrongdoing – was found not guilty. Two advisors to Alonso, Ivan Zaldua and Ignasi Maestre, were also acquitted.
Several high-profile names have been the subject of separate tax cases in Spain.
In June 2018, former Madrid forward Cristiano Ronaldo – now with Juventus – accepted a suspended two-year jail term and total fine of €18.8million to end a dispute with authorities in relation to the taxation of image rights.
A year earlier, Spain's public prosecutor agreed to substitute a suspended 21-month prison sentence with a fine for Barcelona star Lionel Messi.
Alonso joined Liverpool in 2004 and spent five years with the Reds, winning a Champions League and FA Cup during his time on Merseyside.
He won another Champions League with Madrid, as well as a La Liga title and two Copas del Rey before seeing out his career at Bayern where he collected three Bundesliga trophies and a DFB-Pokal medal.
| english |
import Vector from "./Vector.js";
import * as constants from "./constants";
import * as pointUtils from "./pointUtils";
import * as movementUtils from "./movementUtils";
let initNum = 0;
export default class Body {
constructor(game, center, options = {}) {
this.game = game;
this.center = center;
this.isAlive = true;
this.type = "body";
this.id = initNum;
this.mass = constants.EarthMass / 100;
this.radius = this.mass / constants.EarthMass * constants.EarthRadius;
this.speed = options.initialSpeed || new Vector(
7000,
Math.PI,
"m/s"
);
initNum++;
}
update(timeSinceUpdate) {
const affectingObjects = this.game.attractors.concat(this.game.deflectors);
let { acceleration, delta } = movementUtils.moveObject(this,
timeSinceUpdate,
affectingObjects);
let min = 255;
let max = 360;
let hue = Math.min(acceleration / max, 1) * (max - min) + min;
this.color = `hsl(${hue}, 100%, 70%)`;
this.isAlive = !pointUtils.willCollide(this, delta, affectingObjects);
}
} | javascript |
{
"name": "medivh-common",
"version": "0.0.1",
"description": "common library",
"main": "lib/index.js",
"author": "<EMAIL>",
"scripts": {
"build": "babel src --out-dir lib"
},
"dependencies": {
"invariant": "^2.2.4",
"pako": "^1.0.6"
}
}
| json |
[{"name": "Capital goods", "path": "Capital goods", "value": 1559.537}, {"name": "Consumer goods", "path": "Consumer goods", "value": 305.72}, {"name": "Intermediate goods", "path": "Intermediate goods", "value": 3054.537}, {"name": "Plastic or Rubber", "path": "Plastic or Rubber", "value": 1563.918}, {"name": "<NAME>", "path": "Mach and Elec", "value": 1559.537}, {"name": "Metals", "path": "Metals", "value": 0.0}] | json |
import companyNews from './company-news.vue'
export default companyNews
| javascript |
<filename>2018/02/2018-02-18.md
### 2018-02-18
#### ruby
* [jekyll/jekyll (33,273s/7,345f)](https://github.com/jekyll/jekyll) : 🌐 Jekyll is a blog-aware, static site generator in Ruby
* [discourse/discourse (24,142s/5,950f)](https://github.com/discourse/discourse) : A platform for community discussion. Free, open, simple.
* [rapid7/metasploit-framework (11,332s/6,462f)](https://github.com/rapid7/metasploit-framework) : Metasploit Framework
* [jondot/awesome-react-native (17,329s/2,125f)](https://github.com/jondot/awesome-react-native) : Awesome React Native components, news, tools, and learning material!
* [rails/rails (38,677s/15,636f)](https://github.com/rails/rails) : Ruby on Rails
* [Homebrew/brew (11,089s/2,635f)](https://github.com/Homebrew/brew) : 🍺 The missing package manager for macOS
* [Thibaut/devdocs (16,986s/1,070f)](https://github.com/Thibaut/devdocs) : API Documentation Browser
* [Netflix/fast_jsonapi (2,023s/81f)](https://github.com/Netflix/fast_jsonapi) : A lightning fast JSON:API serializer for Ruby Objects.
* [caskroom/homebrew-cask (12,418s/5,884f)](https://github.com/caskroom/homebrew-cask) : 🍻 A CLI workflow for the administration of macOS applications distributed as binaries
* [atech/postal (7,881s/374f)](https://github.com/atech/postal) : 📨 A fully featured open source mail delivery platform for incoming & outgoing e-mail
* [rails/webpacker (2,834s/450f)](https://github.com/rails/webpacker) : Use Webpack to manage app-like JavaScript modules in Rails
* [grosser/single_cov (53s/2f)](https://github.com/grosser/single_cov) : Actionable code coverage.
* [huginn/huginn (18,022s/1,982f)](https://github.com/huginn/huginn) : Create agents that monitor and act on your behalf. Your agents are standing by!
* [socketry/lightio (133s/0f)](https://github.com/socketry/lightio) : LightIO is a userland implemented green thread library for ruby
* [ruby/ruby (13,910s/3,791f)](https://github.com/ruby/ruby) : The Ruby Programming Language
* [lynndylanhurley/devise_token_auth (2,292s/720f)](https://github.com/lynndylanhurley/devise_token_auth) : Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
* [bbatsov/rubocop (8,704s/1,647f)](https://github.com/bbatsov/rubocop) : A Ruby static code analyzer, based on the community Ruby style guide.
* [tootsuite/mastodon (12,156s/2,258f)](https://github.com/tootsuite/mastodon) : Your self-hosted, globally interconnected microblogging community
* [hashicorp/vagrant (16,213s/3,356f)](https://github.com/hashicorp/vagrant) : Vagrant is a tool for building and distributing development environments.
* [fastlane/fastlane (20,658s/3,141f)](https://github.com/fastlane/fastlane) : 🚀 The easiest way to automate building and releasing your iOS and Android apps
* [leereilly/swot (750s/4,689f)](https://github.com/leereilly/swot) : 🏫 Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts.
* [gitlabhq/gitlabhq (20,368s/5,370f)](https://github.com/gitlabhq/gitlabhq) : GitLab CE | Please open new issues in our issue tracker on GitLab.com
* [rubyroidlabs/bsuir-courses (36s/214f)](https://github.com/rubyroidlabs/bsuir-courses) : This is common repository for all student to submit all their homeworks
* [rubytoolbox/catalog (46s/43f)](https://github.com/rubytoolbox/catalog) : The Ruby Toolbox library catalog
* [fastlane/docs (51s/112f)](https://github.com/fastlane/docs) : Introducing the all new fastlane docs, now even easier to read
#### objective-c
* [zhengmin1989/iOS_ICE_AND_FIRE (910s/280f)](https://github.com/zhengmin1989/iOS_ICE_AND_FIRE) : iOS冰与火之歌
* [airbnb/lottie-ios (12,621s/1,607f)](https://github.com/airbnb/lottie-ios) : An iOS library to natively render After Effects vector animations
* [expo/expo (2,658s/198f)](https://github.com/expo/expo) : Expo iOS/Android Client
* [liman123/GoogleTranslate (34s/8f)](https://github.com/liman123/GoogleTranslate) : Google Translate Mac App
* [react-community/react-native-maps (6,567s/1,759f)](https://github.com/react-community/react-native-maps) : React Native Mapview component for iOS + Android
* [google/promises (1,663s/54f)](https://github.com/google/promises) : Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
* [TKkk-iOSer/WeChatPlugin-MacOS (3,694s/469f)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS) : mac OS版微信小助手 功能: 自动回复、消息防撤回、远程控制、微信多开、会话置底、免认证登录、窗口置顶、会话多选删除、通知快捷回复
* [fechanique/cordova-plugin-fcm (470s/429f)](https://github.com/fechanique/cordova-plugin-fcm) : Google FCM Push Notifications Cordova Plugin
* [kraffslol/react-native-braintree-xplat (63s/52f)](https://github.com/kraffslol/react-native-braintree-xplat) : Cross-platform Braintree module for React Native
* [firebase/firebase-ios-sdk (573s/102f)](https://github.com/firebase/firebase-ios-sdk) : Firebase iOS SDK
* [unity-plugins/Firebase-Admob-Unity (50s/60f)](https://github.com/unity-plugins/Firebase-Admob-Unity) : Unity Plugin for google firebase Admob ,support firebase admob banner,interstitial,video,admob native express ads,support unity ios and unity ios with the same js or c#
* [firebase/quickstart-ios (958s/642f)](https://github.com/firebase/quickstart-ios) : Firebase Quickstart Samples for iOS
* [AFNetworking/AFNetworking (30,687s/9,502f)](https://github.com/AFNetworking/AFNetworking) : A delightful networking framework for iOS, macOS, watchOS, and tvOS.
* [EddyVerbruggen/cordova-plugin-native-keyboard (190s/36f)](https://github.com/EddyVerbruggen/cordova-plugin-native-keyboard) : 🎹 Add a Slack / WhatsApp - style chat keyboard to your Cordova app!
* [mapsplugin/cordova-plugin-googlemaps (1,354s/633f)](https://github.com/mapsplugin/cordova-plugin-googlemaps) : Google Maps plugin for Cordova
* [ivpusic/react-native-image-crop-picker (1,790s/415f)](https://github.com/ivpusic/react-native-image-crop-picker) : iOS/Android image picker with support for camera, configurable compression, multiple images and cropping
* [twitter/twitter-kit-ios (422s/41f)](https://github.com/twitter/twitter-kit-ios) : Twitter Kit is a native SDK to include Twitter content inside mobile apps.
* [googleads/googleads-mobile-ios-mediation (23s/38f)](https://github.com/googleads/googleads-mobile-ios-mediation) :
* [rs/SDWebImage (19,386s/5,072f)](https://github.com/rs/SDWebImage) : Asynchronous image downloader with cache support as a UIImageView category
* [BradLarson/GPUImage (17,005s/4,168f)](https://github.com/BradLarson/GPUImage) : An open source iOS framework for GPU-based image and video processing
* [SnapKit/Masonry (16,075s/3,034f)](https://github.com/SnapKit/Masonry) : Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
* [jdg/MBProgressHUD (14,300s/3,395f)](https://github.com/jdg/MBProgressHUD) : MBProgressHUD + Customizations
* [ccgus/fmdb (12,235s/2,707f)](https://github.com/ccgus/fmdb) : A Cocoa / Objective-C wrapper around SQLite
* [realm/realm-cocoa (11,840s/1,526f)](https://github.com/realm/realm-cocoa) : Realm is a mobile database: a replacement for Core Data & SQLite
* [CoderMJLee/MJRefresh (11,666s/3,355f)](https://github.com/CoderMJLee/MJRefresh) : An easy way to use pull-to-refresh.
#### go
* [apex/up (4,664s/156f)](https://github.com/apex/up) : Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS.
* [golang/go (37,929s/5,138f)](https://github.com/golang/go) : The Go programming language
* [containous/traefik (13,112s/1,274f)](https://github.com/containous/traefik) : Træfik, a modern reverse proxy
* [ethereum/go-ethereum (13,942s/4,204f)](https://github.com/ethereum/go-ethereum) : Official Go implementation of the Ethereum protocol
* [runconduit/conduit (1,032s/51f)](https://github.com/runconduit/conduit) : The ultralight service mesh for Kubernetes
* [kubernetes/kubernetes (32,641s/11,517f)](https://github.com/kubernetes/kubernetes) : Production-Grade Container Scheduling and Management
* [avelino/awesome-go (27,893s/3,605f)](https://github.com/avelino/awesome-go) : A curated list of awesome Go frameworks, libraries and software
* [spotahome/kooper (96s/5f)](https://github.com/spotahome/kooper) : Kooper is a simple Go library to create Kubernetes operators and controllers.
* [mitchellh/go-server-timing (536s/12f)](https://github.com/mitchellh/go-server-timing) : Go (golang) library for creating and consuming HTTP Server-Timing headers
* [getlantern/lantern (32,338s/7,742f)](https://github.com/getlantern/lantern) : 🔴Lantern Latest Download https://github.com/getlantern/lantern/releases/tag/latest 🔴蓝灯最新版本下载 https://github.com/getlantern/forum/issues/833 🔴
* [kubernetes/helm (4,140s/1,461f)](https://github.com/kubernetes/helm) : The Kubernetes Package Manager
* [istio/istio (5,954s/757f)](https://github.com/istio/istio) : An open platform to connect, manage, and secure microservices.
* [gohugoio/hugo (23,429s/2,954f)](https://github.com/gohugoio/hugo) : The world’s fastest framework for building websites.
* [esimov/caire (7,350s/179f)](https://github.com/esimov/caire) : Content aware image resize library
* [spf13/cobra (6,457s/548f)](https://github.com/spf13/cobra) : A Commander for modern Go CLI interactions
* [kubernetes/minikube (7,417s/1,025f)](https://github.com/kubernetes/minikube) : Run Kubernetes locally
* [gin-gonic/gin (15,086s/1,760f)](https://github.com/gin-gonic/gin) : Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
* [gojektech/heimdall (157s/6f)](https://github.com/gojektech/heimdall) : An enchanced HTTP client
* [udhos/goben (62s/5f)](https://github.com/udhos/goben) : goben is a golang tool to measure TCP/UDP transport layer throughput between hosts.
* [rgburke/grv (2,712s/59f)](https://github.com/rgburke/grv) : GRV is a terminal interface for viewing git repositories
* [jinzhu/gorm (7,891s/969f)](https://github.com/jinzhu/gorm) : The fantastic ORM library for Golang, aims to be developer friendly
* [ncw/rclone (8,373s/626f)](https://github.com/ncw/rclone) : "rsync for cloud storage" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files
* [golang/dep (7,620s/534f)](https://github.com/golang/dep) : Go dependency management tool
* [syncthing/syncthing (19,440s/1,645f)](https://github.com/syncthing/syncthing) : Open Source Continuous File Synchronization
* [txthinking/brook (2,692s/508f)](https://github.com/txthinking/brook) : Brook is a cross-platform(Linux/MacOS/Windows/Android/iOS) proxy software
#### python
* [keredson/gnomecast (580s/19f)](https://github.com/keredson/gnomecast) : A native Linux Chromecast GUI that supports transcoding and subtitles.
* [quentinhardy/msdat (150s/14f)](https://github.com/quentinhardy/msdat) : MSDAT: Microsoft SQL Database Attacking Tool
* [carpedm20/ENAS-pytorch (373s/26f)](https://github.com/carpedm20/ENAS-pytorch) : PyTorch implementation of "Efficient Neural Architecture Search via Parameters Sharing"
* [facebookresearch/Detectron (11,059s/1,627f)](https://github.com/facebookresearch/Detectron) : FAIR's research platform for object detection research, implementing popular algorithms like Mask R-CNN and RetinaNet.
* [MultiAgentLearning/playground (71s/6f)](https://github.com/MultiAgentLearning/playground) : PlayGround: AI Research into Multi-Agent Learning.
* [malja/zroya (51s/1f)](https://github.com/malja/zroya) : Python wrapper of win32 for creating Windows notifications.
* [vinta/awesome-python (45,499s/8,786f)](https://github.com/vinta/awesome-python) : A curated list of awesome Python frameworks, libraries, software and resources
* [toddmotto/public-apis (33,332s/3,093f)](https://github.com/toddmotto/public-apis) : A collective list of public JSON APIs for use in web development.
* [deepfakes/faceswap (3,539s/849f)](https://github.com/deepfakes/faceswap) : Non official project based on original /r/Deepfakes thread. Many thanks to him!
* [tensorflow/models (28,387s/15,569f)](https://github.com/tensorflow/models) : Models and examples built with TensorFlow
* [python/cpython (16,102s/4,362f)](https://github.com/python/cpython) : The Python programming language
* [rg3/youtube-dl (33,993s/6,263f)](https://github.com/rg3/youtube-dl) : Command-line program to download videos from YouTube.com and other video sites
* [keras-team/keras (25,598s/9,356f)](https://github.com/keras-team/keras) : Deep Learning for humans
* [josephmisiti/awesome-machine-learning (30,527s/7,454f)](https://github.com/josephmisiti/awesome-machine-learning) : A curated list of awesome Machine Learning frameworks, libraries and software.
* [pmaji/eth_python_tracker (89s/18f)](https://github.com/pmaji/eth_python_tracker) : Python Dash app meant to track whale activity in cryptocurrency buy & sell walls on GDAX.
* [pytorch/pytorch (12,315s/2,572f)](https://github.com/pytorch/pytorch) : Tensors and Dynamic neural networks in Python with strong GPU acceleration
* [home-assistant/home-assistant (12,591s/3,641f)](https://github.com/home-assistant/home-assistant) : 🏡 Open-source home automation platform running on Python 3
* [erezsh/lark (363s/29f)](https://github.com/erezsh/lark) : A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface
* [pypa/pipenv (8,532s/469f)](https://github.com/pypa/pipenv) : Python Development Workflow for Humans.
* [bitcoinbook/bitcoinbook (7,749s/2,036f)](https://github.com/bitcoinbook/bitcoinbook) : Mastering Bitcoin 2nd Edition - Programming the Open Blockchain
* [gruns/icecream (305s/7f)](https://github.com/gruns/icecream) : Sweet and creamy print debugging.
* [donnemartin/system-design-primer (23,151s/2,887f)](https://github.com/donnemartin/system-design-primer) : Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
* [EmbersArc/gym (27s/4f)](https://github.com/EmbersArc/gym) :
* [django/django (31,836s/13,448f)](https://github.com/django/django) : The Web framework for perfectionists with deadlines.
* [mail-in-a-box/mailinabox (7,002s/675f)](https://github.com/mail-in-a-box/mailinabox) : Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
#### swift
* [Yummypets/YPImagePicker (125s/19f)](https://github.com/Yummypets/YPImagePicker) : 📸 Instagram-like image picker & filters for iOS
* [IdeasOnCanvas/AppReceiptValidator (92s/2f)](https://github.com/IdeasOnCanvas/AppReceiptValidator) : Parse and validate App Store receipt files
* [lhc70000/iina (10,712s/826f)](https://github.com/lhc70000/iina) : The modern video player for macOS.
* [danielsaidi/Sheeeeeeeeet (235s/12f)](https://github.com/danielsaidi/Sheeeeeeeeet) : Sheeeeeeeeet is a Swift library for custom action sheets.
* [shadowsocks/ShadowsocksX-NG (9,584s/3,277f)](https://github.com/shadowsocks/ShadowsocksX-NG) : Next Generation of ShadowsocksX
* [vsouza/awesome-ios (24,092s/4,054f)](https://github.com/vsouza/awesome-ios) : A curated list of awesome iOS ecosystem, including Objective-C and Swift Projects
* [lkzhao/Hero (12,517s/922f)](https://github.com/lkzhao/Hero) : Elegant transition library for iOS & tvOS
* [vapor/vapor (12,731s/799f)](https://github.com/vapor/vapor) : 💧 A server-side Swift web framework.
* [ReactiveX/RxSwift (12,384s/1,952f)](https://github.com/ReactiveX/RxSwift) : Reactive Programming in Swift
* [exyte/Macaw (3,394s/217f)](https://github.com/exyte/Macaw) : Powerful and easy-to-use vector graphics Swift library with SVG support
* [kizitonwose/PodsUpdater (336s/15f)](https://github.com/kizitonwose/PodsUpdater) : A macOS app which helps you manage dependency releases in your Podfile.
* [SwifterSwift/SwifterSwift (4,636s/460f)](https://github.com/SwifterSwift/SwifterSwift) : A handy collection of more than 500 native Swift extensions to boost your productivity.
* [GitHawkApp/MessageViewController (950s/22f)](https://github.com/GitHawkApp/MessageViewController) : A SlackTextViewController replacement written in Swift for the iPhone X.
* [Alamofire/Alamofire (26,942s/4,764f)](https://github.com/Alamofire/Alamofire) : Elegant HTTP Networking in Swift
* [Ramotion/folding-cell (7,180s/876f)](https://github.com/Ramotion/folding-cell) : 📃 FoldingCell is an expanding content cell with animation inspired by folding paper card material UI design. Made by @Ramotion
* [dreymonde/Shallows (394s/9f)](https://github.com/dreymonde/Shallows) : 🛶 Your lightweight persistence toolbox
* [liman123/DebugMan (107s/11f)](https://github.com/liman123/DebugMan) : Debugger tool for iOS, support both Swift and Objective-C language.
* [xcodeswift/sake (293s/23f)](https://github.com/xcodeswift/sake) : A make-like build utility for Swift.
* [google/xi-mac (1,392s/57f)](https://github.com/google/xi-mac) :
* [dokun1/Lumina (197s/15f)](https://github.com/dokun1/Lumina) : A camera designed in Swift that can use any CoreML model for object recognition, as well as streaming video, images, and qr/bar codes.
* [airbnb/Lona (4,317s/115f)](https://github.com/airbnb/Lona) : A tool for defining design systems and using them to generate cross-platform UI code, Sketch files, images, and other artifacts.
* [pikachu987/Tags (136s/7f)](https://github.com/pikachu987/Tags) :
* [realm/SwiftLint (8,767s/796f)](https://github.com/realm/SwiftLint) : A tool to enforce Swift style and conventions.
* [mas-cli/mas (4,108s/102f)](https://github.com/mas-cli/mas) : 📦 Mac App Store command line interface
* [Carthage/Commandant (305s/35f)](https://github.com/Carthage/Commandant) : Type-safe command line argument handling
#### javascript
* [kusti8/proton-native (710s/16f)](https://github.com/kusti8/proton-native) : A React environment for cross platform native desktop apps
* [yangshun/front-end-interview-handbook (6,302s/450f)](https://github.com/yangshun/front-end-interview-handbook) : 🕸 Almost complete answers to "Front-end Job Interview Questions" which you can use to interview potential candidates, test yourself or completely ignore
* [devunt/make-gis-great-again (257s/13f)](https://github.com/devunt/make-gis-great-again) : This web extension adds back "View Image" button to Google Image Search results.
* [sweetalert2/sweetalert2 (5,420s/716f)](https://github.com/sweetalert2/sweetalert2) : A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies.
* [facebook/react-native (59,951s/13,789f)](https://github.com/facebook/react-native) : A framework for building native apps with React.
* [thedevs-network/kutt (551s/40f)](https://github.com/thedevs-network/kutt) : Free Modern URL Shortener.
* [bradley/Blotter (1,011s/33f)](https://github.com/bradley/Blotter) : A JavaScript API for drawing unconventional text effects on the web.
* [Vincit/objection.js (2,198s/139f)](https://github.com/Vincit/objection.js) : An SQL-friendly ORM for Node.js
* [joshwcomeau/waveforms (713s/20f)](https://github.com/joshwcomeau/waveforms) : An interactive, explorable explanation about the peculiar magic of sound waves.
* [yangshun/tech-interview-handbook (18,042s/1,865f)](https://github.com/yangshun/tech-interview-handbook) : 💯 Algorithms study materials, behavioral content and tips for rocking your coding interview
* [photonstorm/phaser (18,664s/5,112f)](https://github.com/photonstorm/phaser) : Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
* [vuejs/vue (84,004s/12,321f)](https://github.com/vuejs/vue) : 🖖 A progressive, incrementally-adoptable JavaScript framework for building UI on the web.
* [nativescript-vue/nativescript-vue (1,524s/82f)](https://github.com/nativescript-vue/nativescript-vue) : NativeScript with the ease of Vue
* [automerge/automerge (4,564s/3,661f)](https://github.com/automerge/automerge) : A JSON-like data structure that can be modified concurrently by different users, and merged again automatically.
* [dawnlabs/carbon (6,861s/284f)](https://github.com/dawnlabs/carbon) : 🎨 Create and share beautiful images of your source code
* [facebook/react (88,556s/16,760f)](https://github.com/facebook/react) : A declarative, efficient, and flexible JavaScript library for building user interfaces.
* [facebook/create-react-app (43,431s/8,345f)](https://github.com/facebook/create-react-app) : Create React apps with no build configuration.
* [hyperapp/hyperapp (11,139s/495f)](https://github.com/hyperapp/hyperapp) : 1 KB JavaScript library for building web applications.
* [parcel-bundler/parcel (19,259s/700f)](https://github.com/parcel-bundler/parcel) : 📦🚀 Blazing fast, zero configuration web application bundler
* [supnate/rekit (2,291s/115f)](https://github.com/supnate/rekit) : Toolkit for building scalable web applications with React, Redux and React-router
* [axios/axios (36,263s/2,529f)](https://github.com/axios/axios) : Promise based HTTP client for the browser and node.js
* [sureskumar/sketch-isometric (236s/5f)](https://github.com/sureskumar/sketch-isometric) : Generate Isometric views from Artboards and Rectangles in Sketch app.
* [sindresorhus/refined-twitter (489s/26f)](https://github.com/sindresorhus/refined-twitter) : Browser extension that simplifies the Twitter interface and adds useful features
* [LeCoupa/awesome-cheatsheets (3,718s/321f)](https://github.com/LeCoupa/awesome-cheatsheets) : 📚 Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file.
* [jamiebuilds/unstated (1,705s/44f)](https://github.com/jamiebuilds/unstated) : State so simple, it goes without saying
| markdown |
LONDON (Reuters) - Pep Guardiola apologised for Manchester City's part in the ugly mass brawl that disfigured the end of their 3-1 defeat by Chelsea on Saturday as he contemplated his most problematic day in the Premier League.
While Guardiola talked of his regret about the melee that saw City pair Sergio Aguero and Fernandinho sent off in stoppage time, rival manager Antonio Conte praised his team's character.
Chelsea came from 1-0 down to record an eighth straight win and move four points clear at the top but City's failure to capitalise when they were dominating the game led to their players losing their heads at the Etihad Stadium.
Aguero was sent off for a wild knee-high tackle on David Luiz, prompting widespread anger on the touchline.
With players and staff from both teams wading in to scuffle and referee Anthony Taylor in danger of losing control, Fernandinho also saw red for pushing Cesc Fabregas over an advertising hoarding.
"It is a pity the game finished like this," Guardiola told the BBC. "I don't like that and I apologise for what happened.
"I don't think Aguero's challenge is intentional. Both players were strong, that is all. Then Fernandinho went over to defend his team mate. "
Fernandinho is now suspended for three matches and Aguero faces a possible four-match ban.
"We didn't win because we missed a lot of chances, not because of the referee's decisions," Spaniard Guardiola said, frustrated at how his side had missed excellent opportunities to seal the win when they led 1-0 through a Gary Cahill own goal.
"In the boxes we are not strong enough. It is a problem we have had all season. It is difficult for us to score goals and we concede them very easily. "
Italian Conte was thrilled with Chelsea's discipline and character amid the chaos, with even the hot-headed Diego Costa, who equalised with his 11th league goal of the season, trying to act as an unlikely peacemaker during the scuffle.
"Diego is showing he is using his passion in the right way and I'm very happy about that," Conte said.
"I saw lots of character from my team and that's very important to grow. But we must continue to work and improve. "
(Editing by Tony Jimenez) | english |
<reponame>guilhermenicolini/nucleale-api
import { LinkTypes } from '@/domain/models'
import { LinkMongoRepository, MongoHelper } from '@/infra/db'
import { Collection, ObjectId } from 'mongodb'
import MockDate from 'mockdate'
import moment from 'moment-timezone'
const mockData = () => ({
type: LinkTypes.passwordRecovery,
id: new ObjectId().toString(),
userId: new ObjectId().toString(),
expiration: new Date().valueOf()
})
const mockDbData = () => ({
type: LinkTypes.passwordRecovery,
_id: new ObjectId(),
userId: new ObjectId(),
expiration: new Date().valueOf()
})
const now = 1619909155082
const makeSut = (): LinkMongoRepository => {
return new LinkMongoRepository()
}
let linksCollection: Collection
describe('LinkMongoRepository', () => {
beforeAll(async () => {
MockDate.set(now)
await MongoHelper.instance.connect()
})
afterAll(async () => {
await MongoHelper.instance.disconnect()
})
beforeEach(async () => {
linksCollection = await MongoHelper.instance.getCollection('links')
await linksCollection.deleteMany({})
})
describe('add()', () => {
test('Should add on success', async () => {
const sut = makeSut()
const data = mockData()
const result = await sut.add(data)
expect(result.link).toBeTruthy()
expect(result.expiration).toBe(moment(now).add(1, 'hour').valueOf())
})
test('Should replace on success', async () => {
const sut = makeSut()
const data = mockDbData()
await linksCollection.insertOne(data)
const result = await sut.add({
id: data.userId.toString(),
type: data.type
})
const links = await linksCollection.find({}).toArray()
expect(links.length).toBe(1)
expect(result.link).toBeTruthy()
expect(result.expiration).toBe(moment(now).add(1, 'hour').valueOf())
})
})
describe('load()', () => {
test('Should return null if token not exists', async () => {
const sut = makeSut()
const type = LinkTypes.passwordRecovery
const token = new ObjectId().toString()
const result = await sut.load({
token,
type
})
expect(result).toBeFalsy()
})
test('Should return link if token exists', async () => {
const sut = makeSut()
const type = LinkTypes.passwordRecovery
const token = (await linksCollection.insertOne({ type })).insertedId.toString()
const result = await sut.load({
token,
type
})
expect(result).toBeTruthy()
})
})
describe('delete()', () => {
test('Should delete link on success', async () => {
const sut = makeSut()
const data = {
_id: new ObjectId()
}
await linksCollection.insertOne(data)
const result = await sut.delete(data._id.toString())
const links = await linksCollection.find({}).toArray()
expect(links.length).toBe(0)
expect(result).toBeFalsy()
})
test('Should not delete link if not found', async () => {
const sut = makeSut()
await linksCollection.insertOne({})
const result = await sut.delete(new ObjectId().toString())
const links = await linksCollection.find({}).toArray()
expect(links.length).toBe(1)
expect(result).toBeFalsy()
})
})
})
| typescript |
Mumbai: Benchmark market indices Sensex and Nifty reached day’s high after RBI Governor Shakatikanta Das said the central banks expects economic growth to turn positive in the fourth of the current fiscal. The central bank, however, projected 9. 5% decline in GDP in FY21.
After opening flat S&P BSE Sensex and NSE Nifty gained as RBI Governor began his address on the outcome of three-day Monetary Policy Committee (MPC) meet.
Sensex jumped to 40,537. 36, up by 354. 69 or 0. 88% from its closing levels the previous day while NSE Nifty added 80 points or 0. 68% to reach 11,915.
After its three-day deliberations, MPC kept key rates unchanged and maintained an ‘accommodative’ stance going ahead to support the pandemic-battered economy. Repo and reverse repo rates were maintained at 4% and 3. 35% respectively.
RBI Governor Shaktikanta Das said "deep contraction of Q1 FY21 is behind us. (The) rural economy looks resilient. Global financial conditions continue to remain benign. Mood shifting from fear and despair to hope”.
"By all indications, the contraction of 2020-21 is behind us and focus should shift from containment to revival," he added.
Private banks and financial stocks were the top gainers on both Nifty and Sensex. HDFC Bank, HDFC, ICICI Bank and Axis Bank are the top Nifty gainers at this hour while Asian Paints, Grasim, Tata Motors, UPL and Bajaj Auto were top laggards.
Out of 50 Nifty stocks, 25 were seen gaining while 24 declined and on Sensex, 16 stocks gained against a decline seen in 14. | english |
/*
* Copyright (c) 2016, SRCH2
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the SRCH2 nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL SRCH2 BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <instantsearch/Analyzer.h>
#include <instantsearch/Indexer.h>
#include <instantsearch/QueryEvaluator.h>
#include <instantsearch/Query.h>
#include <instantsearch/Term.h>
#include <instantsearch/QueryResults.h>
#include "IntegrationTestHelper.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdlib>
using std::string;
namespace srch2is = srch2::instantsearch;
using namespace srch2is;
// variables to measure the elapsed time
struct timespec tstart;
struct timespec tend;
bool parseLine(string &line, string &query, bool &returnValue1, bool &returnValue2)
{
vector<string> record;
csvline_populate(record, line, ',');
if (record.size() < 3)
{
return false;
}
query = record[0];
returnValue1 = atoi(record[1].c_str());
returnValue2 = atoi(record[2].c_str());
return true;
}
int main(int argc, char **argv)
{
string index_dir = getenv("index_dir");
cout << index_dir << endl;
//buildFactualIndex(index_dir, 4000000);
buildFactualIndex(index_dir, 1000);
//buildIndex(index_dir); // CHENLI
// Create an index writer
unsigned mergeEveryNSeconds = 3;
unsigned mergeEveryMWrites = 5;
unsigned updateHistogramEveryPMerges = 1;
unsigned updateHistogramEveryQWrites = 5;
IndexMetaData *indexMetaData1 = new IndexMetaData( new CacheManager(),
mergeEveryNSeconds, mergeEveryMWrites,
updateHistogramEveryPMerges, updateHistogramEveryQWrites,
index_dir);
Indexer *index = Indexer::load(indexMetaData1);
QueryEvaluatorRuntimeParametersContainer runtimeParameters;
QueryEvaluator * queryEvaluator = new QueryEvaluator(index, &runtimeParameters);
Analyzer *analyzer = getAnalyzer();
std::vector<std::string> file;
std::string line;
file.clear();
std::string query_file = getenv("query_file");
cout << query_file << endl;
std::ifstream infile (query_file.c_str(), std::ios_base::in);
while (getline(infile, line, '\n'))
{
string query = line;
/* bool returnValue1 = 0;
bool returnValue2 = 0;
bool pass = parseLine(line, query, returnValue1,returnValue2);
if (!pass)
abort();*/
file.push_back (query);
}
clock_gettime(CLOCK_REALTIME, &tstart);
for( vector<string>::iterator vectIter = file.begin(); vectIter!= file.end(); vectIter++ )
{
//cout << *vectIter << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" << file.end() - vectIter << endl;
//unsigned resultCount = 10;
pingDummyStressTest(analyzer, queryEvaluator,*vectIter);//,resultCount,0);
}
clock_gettime(CLOCK_REALTIME, &tend);
double ts2 = (tend.tv_sec - tstart.tv_sec) * 1000 + (tend.tv_nsec - tstart.tv_nsec) / 1000000;
delete queryEvaluator;
delete index;
delete analyzer;
cout << "Executed " << file.size() << "queries in " << ts2 << " milliseconds." << endl;
cout << "QueryStressTest passed!" << endl;
return 0;
}
| cpp |
Today french fans are asking for an event for Avengers 4 in France.
French fans have always been loyal and devoted to the Marvel Cinematic Universe, the cast and to all the people who worked hard to bring to the screen these movies which inspire us and changed so many lives. But we have noticed that Marvel kinda ignored us as we didn't have any premiere or event for Spider - Man Homecoming, Thor Ragnarok, Black Panther and many other marvel movies. Recently we have been disapointed because french fans did not have a fan screening even if the movie had the best start in France. We understand that it was to avoid spoilers, but just like Mexico fans, London fans, Edinburgh fans or L.A fans, we would like to meet our favorites actors as well. It's not fair that french fans who love this universe as much as the other international fans don't have any occasion to show this love, it's not fair that a country with a big part of the fandom is being ignored.Some of us just want to realize a dream by meeting their favorites people in the world, but they can't do that without your help. This is why we are asking you today to come to Paris (since it's the capital) to meet your french fans and to make incredible memories with us. All we want is to share with you our admiration for your fantastic work. We promise, you won't regret it.
On vous aime fort and we will always support you guys.
- Your french fans.
| english |
<gh_stars>1-10
package com.ifast.customer.service;
import com.ifast.common.base.CoreService;
import com.ifast.common.domain.Tree;
import com.ifast.customer.domain.CustomerInfoDO;
/**
*
* <pre>
* 客户信息
* </pre>
* <small> 2018-08-07 14:36:07 | Aron</small>
*/
public interface CustomerInfoService extends CoreService<CustomerInfoDO> {
/*
**客户信息与用户关联
*/
boolean relationCustomer(Long userId,Long customerId);
boolean insertCustomer(CustomerInfoDO customerInfoDO);
Tree<CustomerInfoDO> getTree();
}
| java |
<filename>translate/cloudstack/en/4.13.0.0/adminguide/tuning.html
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>调优 — Apache CloudStack 4.13.0.0 文档</title>
<script type="text/javascript" src="../static/js/modernizr.min.js"></script>
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../static/documentation_options.js"></script>
<script type="text/javascript" src="../static/jquery.js"></script>
<script type="text/javascript" src="../static/underscore.js"></script>
<script type="text/javascript" src="../static/doctools.js"></script>
<script type="text/javascript" src="../static/language_data.js"></script>
<script type="text/javascript" src="https://assets.readthedocs.org/static/javascript/readthedocs-doc-embed.js"></script>
<script type="text/javascript" src="../static/js/theme.js"></script>
<link rel="stylesheet" href="../static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../static/theme_overrides.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Event Notification" href="events.html" />
<link rel="prev" title="管理服务高可用" href="reliability.html" />
<!-- RTD Extra Head -->
<!--
Always link to the latest version, as canonical.
http://docs.readthedocs.org/en/latest/canonical.html
-->
<link rel="canonical" href="../../latest/adminguide/tuning.html" />
<link rel="stylesheet" href="https://assets.readthedocs.org/static/css/readthedocs-doc-embed.css" type="text/css" />
<script type="text/javascript" src="../static/readthedocs-data.js"></script>
<!-- Add page-specific data, which must exist in the page js, not global -->
<script type="text/javascript">
READTHEDOCS_DATA['page'] = "adminguide/tuning"
READTHEDOCS_DATA['source_suffix'] = ".rst"
</script>
<script type="text/javascript" src="https://assets.readthedocs.org/static/javascript/readthedocs-analytics.js"></script>
<!-- end RTD <extrahead> -->
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home"> Apache CloudStack
</a>
<div class="version">
4.13.0.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">目录:</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../conceptsandterminology/index.html">CloudStack 概念和术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../quickinstallationguide/qig.html">快速入门指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../installguide/index.html">安装指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../upgrading/index.html">升级 CloudStack</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="index.html">使用手册</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="index.html#user-interface">用户界面</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#managing-accounts-users-and-domains">账户、用户和域</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#using-projects-to-organize-user-resources">用项目来管理用户资源</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#service-offerings">计算方案</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#setting-up-networking-for-users">设置用户网络</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#working-with-virtual-machines">虚拟机</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#working-with-templates">模板</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#working-with-hosts">主机</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#working-with-storage">存储</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#working-with-system-virtual-machines">系统虚拟机</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#working-with-usage">Working with Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#managing-networks-and-traffic">Managing Networks and Traffic</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#managing-the-cloud">管理云</a></li>
<li class="toctree-l2"><a class="reference internal" href="index.html#system-reliability-and-availability">系统的可靠性和可用性</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="index.html#tuning">调优</a><ul class="current">
<li class="toctree-l3 current"><a class="current reference internal" href="tuning.html#">调优</a><ul>
<li class="toctree-l4"><a class="reference internal" href="tuning.html#performance-monitoring">Performance Monitoring</a></li>
<li class="toctree-l4"><a class="reference internal" href="tuning.html#increase-management-server-maximum-memory">Increase 管理服务 Maximum Memory</a></li>
<li class="toctree-l4"><a class="reference internal" href="tuning.html#set-database-buffer-pool-size">Set Database Buffer Pool Size</a></li>
<li class="toctree-l4"><a class="reference internal" href="tuning.html#set-and-monitor-total-vm-limits-per-host">Set and Monitor Total VM Limits per Host</a></li>
<li class="toctree-l4"><a class="reference internal" href="tuning.html#configure-xenserver-dom0-memory">Configure XenServer dom0 Memory</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="index.html#events-and-troubleshooting">Events and Troubleshooting</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../developersguide/index.html">开发者手册</a></li>
<li class="toctree-l1"><a class="reference internal" href="../plugins/index.html">插件使用手册</a></li>
<li class="toctree-l1"><a class="reference internal" href="../releasenotes/index.html">发行版本说明</a></li>
</ul>
<p class="caption"><span class="caption-text">其它:</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="http://cloudstack.apache.org/api.html">API 文档</a></li>
<li class="toctree-l1"><a class="reference external" href="https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home">Apache CloudStack Wiki</a></li>
<li class="toctree-l1"><a class="reference external" href="http://cloudstack.apache.org/">Apache CloudStack 官网</a></li>
<li class="toctree-l1"><a class="reference external" href="http://cloudstack.apache.org/downloads.html">Apache CloudStack 源码</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/apache/cloudstack">Apache CloudStack on GitHub</a></li>
</ul>
<p class="caption"><span class="caption-text">Pre 4.11 Documentation:</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="../../../projects/cloudstack-installation.html">安装指南</a></li>
<li class="toctree-l1"><a class="reference external" href="../../../projects/cloudstack-administration.html">管理员手册</a></li>
<li class="toctree-l1"><a class="reference external" href="../../../projects/cloudstack-release-notes.html">发行版本说明</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">Apache CloudStack</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html">Docs</a> »</li>
<li><a href="index.html">使用手册</a> »</li>
<li>调优</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/apache/cloudstack-documentation/blob/4.13.0.0/source/adminguide/tuning.rst" class="fa fa-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="tuning">
<h1>调优<a class="headerlink" href="tuning.html#tuning" title="Permalink to this headline">¶</a></h1>
<p>This section provides tips on how to improve the performance of your
cloud.</p>
<div class="section" id="performance-monitoring">
<h2>Performance Monitoring<a class="headerlink" href="tuning.html#performance-monitoring" title="Permalink to this headline">¶</a></h2>
<p>Host and guest performance monitoring is available to end users and
administrators. This allows the user to monitor their utilization of
resources and determine when it is appropriate to choose a more powerful
service offering or larger disk.</p>
</div>
<div class="section" id="increase-management-server-maximum-memory">
<h2>Increase 管理服务 Maximum Memory<a class="headerlink" href="tuning.html#increase-management-server-maximum-memory" title="Permalink to this headline">¶</a></h2>
<p>If the 管理服务 is subject to high demand, the default maximum
JVM memory allocation can be insufficient. To increase the memory:</p>
<ol class="arabic">
<li><p class="first">Edit the Tomcat configuration file:</p>
<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">cloudstack</span><span class="o">/</span><span class="n">management</span><span class="o">/</span><span class="n">tomcat6</span><span class="o">.</span><span class="n">conf</span>
</pre></div>
</div>
</li>
<li><p class="first">Change the command-line parameter -XmxNNNm to a higher value of N.</p>
<p>For example, if the current value is -Xmx128m, change it to -Xmx1024m
or higher.</p>
</li>
<li><p class="first">To put the new setting into effect, restart the 管理服务.</p>
<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># service cloudstack-management restart</span>
</pre></div>
</div>
</li>
</ol>
<p>For more information about memory issues, see “FAQ: Memory” at <a class="reference external" href="http://wiki.apache.org/tomcat/FAQ/Memory">Tomcat
Wiki.</a></p>
</div>
<div class="section" id="set-database-buffer-pool-size">
<h2>Set Database Buffer Pool Size<a class="headerlink" href="tuning.html#set-database-buffer-pool-size" title="Permalink to this headline">¶</a></h2>
<p>It is important to provide enough memory space for the MySQL database to
cache data and indexes:</p>
<ol class="arabic">
<li><p class="first">Edit the MySQL configuration file:</p>
<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">my</span><span class="o">.</span><span class="n">cnf</span>
</pre></div>
</div>
</li>
<li><p class="first">Insert the following line in the [mysqld] section, below the datadir
line. Use a value that is appropriate for your situation. We
recommend setting the buffer pool at 40% of RAM if MySQL is on the
same server as the management server or 70% of RAM if MySQL has a
dedicated server. The following example assumes a dedicated server
with 1024M of RAM.</p>
<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">innodb_buffer_pool_size</span><span class="o">=</span><span class="mi">700</span><span class="n">M</span>
</pre></div>
</div>
</li>
<li><p class="first">Restart the MySQL service.</p>
<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># service mysqld restart</span>
</pre></div>
</div>
</li>
</ol>
<p>For more information about the buffer pool, see “The InnoDB Buffer Pool”
at <a class="reference external" href="http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html">MySQL Reference
Manual</a>.</p>
</div>
<div class="section" id="set-and-monitor-total-vm-limits-per-host">
<h2>Set and Monitor Total VM Limits per Host<a class="headerlink" href="tuning.html#set-and-monitor-total-vm-limits-per-host" title="Permalink to this headline">¶</a></h2>
<p>The CloudStack administrator should monitor the total number of VM
instances in each cluster, and disable allocation to the cluster if the
total is approaching the maximum that the hypervisor can handle. Be sure
to leave a safety margin to allow for the possibility of one or more
hosts failing, which would increase the VM load on the other hosts as
the VMs are automatically redeployed. Consult the documentation for your
chosen hypervisor to find the maximum permitted number of VMs per host,
then use CloudStack global configuration settings to set this as the
default limit. Monitor the VM activity in each cluster at all times.
Keep the total number of VMs below a safe level that allows for the
occasional host failure. For example, if there are N hosts in the
cluster, and you want to allow for one host in the cluster to be down at
any given time, the total number of VM instances you can permit in the
cluster is at most (N-1) * (per-host-limit). Once a cluster reaches
this number of VMs, use the CloudStack UI to disable allocation of more
VMs to the cluster.</p>
</div>
<div class="section" id="configure-xenserver-dom0-memory">
<h2>Configure XenServer dom0 Memory<a class="headerlink" href="tuning.html#configure-xenserver-dom0-memory" title="Permalink to this headline">¶</a></h2>
<p>Configure the XenServer dom0 settings to allocate more memory to dom0.
This can enable XenServer to handle larger numbers of virtual machines.
We recommend 2940 MB of RAM for XenServer dom0. For instructions on how
to do this, see <a class="reference external" href="http://support.citrix.com/article/CTX126531">Citrix Knowledgebase
Article</a>.The article
refers to XenServer 5.6, but the same information applies to XenServer 6</p>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="events.html" class="btn btn-neutral float-right" title="Event Notification" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="reliability.html" class="btn btn-neutral float-left" title="管理服务高可用" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2018, Apache Foundation
<span class="commit">
Revision <code>29a3d9e2</code>.
</span>
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Read the Docs</span>
v: 4.13.0.0
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<dl>
<dt>Versions</dt>
<dd><a href="http://docs.cloudstack.apache.org/en/master/">master</a></dd>
<dd><a href="../../../index.html">latest</a></dd>
<dd><a href="../index.html">4.13.0.0</a></dd>
<dd><a href="../../4.12.0.0/index.html">4.12.0.0</a></dd>
<dd><a href="../../4.11.3.0/index.html">4.11.3.0</a></dd>
<dd><a href="../../4.11.2.0/index.html">4.11.2.0</a></dd>
<dd><a href="../../4.11.1.0/index.html">4.11.1.0</a></dd>
</dl>
<dl>
<dt>Downloads</dt>
<dd><a href="http://readthedocs.org/projects/cloudstack-documentation/downloads/htmlzip/4.13.0.0/">html</a></dd>
</dl>
<dl>
<dt>On Read the Docs</dt>
<dd>
<a href="http://readthedocs.org/projects/cloudstack-documentation/?fromdocs=cloudstack-documentation">Project Home</a>
</dd>
<dd>
<a href="http://readthedocs.org/builds/cloudstack-documentation/?fromdocs=cloudstack-documentation">Builds</a>
</dd>
</dl>
<hr/>
Free document hosting provided by <a href="http://www.readthedocs.org">Read the Docs</a>.
</div>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html> | html |
<gh_stars>10-100
---
title: "قسمت دوم کار عملی با گیت در یازدهمین جلسه باز نرمافزاری مشهد"
date: 2014-11-09T19:01:37+03:30
draft: false
id : "۱۱"
subject: "کار عملی با git - قسمت دوم"
speaker: "<NAME>"
location: "سجاد، حامد جنوبی ۵، نبش مرجان ۶، پلاک ۷۶/۱ ، گروه مهندسی کاوا"
poster: "#"
tags: ""
featured_image: "/images/s11-0.jpg"
presentation: ""
persiandate: "یکشنبه ۱۸ آبان ۱۳۹۳"
downloads: "بدون فایل"
---
ازدهمین جلسه باز نرمافزاری مشهد روز گذشته ۱۸ آبان برگزار شد. در این جلسه طبق روال جلسات گذشته، ابتدا مروری کوتاه بر جلسات برگزار شده و آمار و ارقام آنها انجام شد. همچنین اخبار مربوط به جلسات با معرفی اکانتهای اجتماعی جلسات باز و اعلام خبر پیشنهاد ساماندهی استخدام و قطع همکاری برنامهنویسان به اطلاع شرکتکنندگان رسید. داود ترابزاده از بنیانگذاران جلسات باز نرمافزاری مشهد هم در این جلسه حضور داشت و مورد تشویق شرکتکنندگان قرار گرفت.

در اولین پرزنت جلسه ۱۸ آبان، رامین نجارباشی آشنایی با گیت را که در جلسه پیش پرزنت کرده بود، ادامه داد و ابتدا مروری سریع داشت بر آنچه که در جلسه گذشته ارائه شده بود. سپس به سراغ مباحث تکمیلی git رفت.

ارائه رامین را میتوانید در این آدرس مشاهده کنید. در طول پرزنتی که رامین داشت، همراهان جلسات باز با مشارکت و سوالات خود، به برگزاری جلسهای مفید برای همه کمک فراوانی کردند. پرزنت رامین که ترکیبی از اسلایدها، کار عملی و توضیحات بر روی وایتبرد بود پس از حدود یک ساعت به پایان رسید.
بعد از ارائه رامین، نوبت به دومین ارائه درباره عناوین شغلی کسب و کار نرمافزار رسید. فایل این پرزنت که بخش اول آن در جلسه دیشب ارائه شد را میتوانید از این آدرس دریافت کنید.

پس از ارائهها نوبت به بحث آزاد کوتاه رسید. موضوع این بحث پیشنهاد کمسیون نرمافزار نظام صنفی برای ساماندهی استخدام و قطع همکاری برنامهنویسان بود که متن پیشنهاد قرائت و شرکت کنندگان نیز نظراتی در خصوص آن بیان کردند. مقرر شد در جلسه آینده بیشتر در این خصوص تبادل نظر انجام پذیرد.
در انتهای جلسه یازدهم که حدود ۴۵ دقیقه بیشتر از وقت معمول جلسات طول کشید، فرصتی برای پذیرایی (که توسط شرکت کاوا تدارک دیده شده بود) و صحبت بیشتر شرکتکنندگان و شبکهسازی حسن ختام جلسه بود. | markdown |
Naslovi su sjajan način da brzo saopštite drugima šta treba da znaju. Saznajte kako da koristite stilove za naslove da biste olakšali upotrebu dokumenata.
Otkucajte tekst koji želite u Word dokumentu.
Izaberite rečenicu u koju želite da dodate zaglavlje.
Izaberite stavku > Stilovi (ili pritisnite kombinaciju tastera Alt+H, zatim L), a zatim izaberite naslov koji želite, kao što je dugme Naslov 1.
Word primenjuje promenu fonta i boje kako bi pojasnio da je to naslov – naslov 1 u članku. Sledeći tip naslova je Naslov 2.
| english |
{
"localValidity": {
"validityStatus": "AUTO_APPROVED",
"justification": "Default dataset validity",
"updater": {
"handle": "abc"
}
},
"globalValidity": {
"validityStatus": "MACHINE_APPROVED",
"justification": "Verified by 4 independent programs. See http://us.metamath.org/",
"updater": {
"handle": "abc"
}
}
}
| json |
<filename>src/tools/clippy/tests/ui/crate_in_macro_def.rs
// run-rustfix
#![warn(clippy::crate_in_macro_def)]
mod hygienic {
#[macro_export]
macro_rules! print_message_hygienic {
() => {
println!("{}", $crate::hygienic::MESSAGE);
};
}
pub const MESSAGE: &str = "Hello!";
}
mod unhygienic {
#[macro_export]
macro_rules! print_message_unhygienic {
() => {
println!("{}", crate::unhygienic::MESSAGE);
};
}
pub const MESSAGE: &str = "Hello!";
}
mod unhygienic_intentionally {
// For cases where the use of `crate` is intentional, applying `allow` to the macro definition
// should suppress the lint.
#[allow(clippy::crate_in_macro_def)]
#[macro_export]
macro_rules! print_message_unhygienic_intentionally {
() => {
println!("{}", crate::CALLER_PROVIDED_MESSAGE);
};
}
}
#[macro_use]
mod not_exported {
macro_rules! print_message_not_exported {
() => {
println!("{}", crate::not_exported::MESSAGE);
};
}
pub const MESSAGE: &str = "Hello!";
}
fn main() {
print_message_hygienic!();
print_message_unhygienic!();
print_message_unhygienic_intentionally!();
print_message_not_exported!();
}
pub const CALLER_PROVIDED_MESSAGE: &str = "Hello!";
| rust |
Rajesh Dally was today appointed chairman of Improvement Trust,Khanna.
The BJP workers have thanked the party high command for chosing Dally for the post. Minister of Local Government Manoranjan Kalia is said to have lobbied hard with the party high command for Dallys appointment,who was earlier cashier with the state unit of Bhartia Yuva Morcha.
Among the leaders who have welcomed the appointment are municipal councillors of the BJP,Sarvdeep Kalirao,Anil Dutt Phally,Jatinder Devgan,Neeta Dhamija and Somesh Batta,BJP Mandal president Rajnish Bedi,state BJP working committee member Sanjiv Dhamija,MC President Iqbal Singh,SAD leader Davinder Khattra,Naresh Dhand,Avtar Singh Malhi and BJYM district president Sudhir Sonu. | english |
Apple consumers were eagerly anticipating a new update for iOS 6 sometime this week, and the company has responded with an official update to iOS 6.0.1. If you have an iPhone 4 or iPod Touch ready and waiting, head to your General Settings and you’ll find that an OTA software update to iOS 6.0.1 is now available. The update is 43.3 MB in size and contains eight notable fixes and improvements from iOS 6, including a solution to a well-known Passbook issue when accessing the app from the lock screen.
For those looking to jailbreak iOS 6.0.1 straight off the bat, you’ll be happy to hear that you can get it done via the latest version of RedSn0w. Simply download and install RedSn0w 0.9.15b1 (or b2/b3) and jailbreak the software easily. However, do remember that this jailbreak is “tethered”, which means that every time you switch off or restart your handset, you will have to enter jailbreak-mode all over again. Work on an untethered jailbreak is currently on, and we’ll keep you updated.
Also, this jailbreak only works with pre-A5 devices, meaning it currently supports only the iPhone 4, the 3GS, or the iPod Touch (4th generation). Trying to use this on the iPhone 5 or even the iPad 4 or the iPad Mini will probably result in you being left with nothing more than a really big and expensive paperweight.
Apple also released the Beta version of iOS 6.1 some hours ago, and you can use the same software mentioned above to jailbreak it. However, this is unlikely to be useful to most users who don’t have an Apple developer account, as access is limited to only such users, as with all pre-release versions of iOS 6.
If you are interested in giving the tethered iOS 6.0.1 jailbreak a try, you can find detailed instructions and all the necessary download files from here. However, seeing as how this is a tethered jailbreak, it might be a better idea to wait until somebody comes up with an untethered jailbreak. It shouldn’t take long, especially now that Apple has made the new OTA updates available to users.
| english |
<filename>sample/src/main/java/me/relex/circleindicator/sample/fragment/InfiniteViewPagerFragment.java
package me.relex.circleindicator.sample.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import me.relex.circleindicator.CircleIndicator;
import me.relex.circleindicator.InfinitePagerAdapter;
import me.relex.circleindicator.InfiniteViewPager;
import me.relex.circleindicator.sample.DemoPagerAdapter;
import me.relex.circleindicator.sample.R;
/**
* Created by Hani on 3/6/16.
* http://oostaa.com
*/
public class InfiniteViewPagerFragment extends Fragment {
InfinitePagerAdapter wrappedAdapter;
InfiniteViewPager viewpager;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_default_demo, container, false);
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
viewpager = (InfiniteViewPager) view.findViewById(R.id.viewpager);
CircleIndicator indicator = (CircleIndicator) view.findViewById(R.id.indicator);
wrappedAdapter = new InfinitePagerAdapter(new DemoPagerAdapter());
viewpager.setAdapter(wrappedAdapter);
indicator.setViewPager(viewpager);
}
} | java |
<reponame>briyanii/main<filename>src/main/java/seedu/address/model/expense/exceptions/ExpenseNotFoundException.java
package seedu.address.model.expense.exceptions;
/**
* Signals that the operation is unable to find the specified expense.
*/
public class ExpenseNotFoundException extends RuntimeException {}
| java |
from __future__ import print_function
#! /usr/bin/env cmsRun
import sys
import FWCore.ParameterSet.Config as cms
from SimTracker.TrackerMaterialAnalysis.trackingMaterialVarParsing import options
process = cms.Process("MaterialAnalyser")
if options.geometry == 'run2':
process.load('Configuration.Geometry.GeometryExtended2016Reco_cff')
# Add our custom detector grouping to DDD
process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups.xml'])
elif options.geometry == 'Phase1':
process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
# Add our custom detector grouping to DDD
process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups_ForPhaseI.xml'])
elif options.geometry == 'Phase2':
process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff')
# Add our custom detector grouping to DDD
process.XMLIdealGeometryESSource.geomXMLFiles.extend(['SimTracker/TrackerMaterialAnalysis/data/trackingMaterialGroups_ForPhaseII.xml'])
else:
print("Unknow geometry, quitting.")
sys.exit(1)
process.load("Configuration.StandardSequences.MagneticField_cff")
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
process.listGroups = cms.EDAnalyzer("ListGroups",
SaveSummaryPlot = cms.untracked.bool(True))
process.path = cms.Path(process.listGroups)
| python |
Chopra suffered extensive bleeding and underwent an emergency operation which lasted for three and a half hours and she had around 50 stitches to tie her arteries, nerves and tendon, which were severely damaged.
Doctors advised her to take rest minimum of four months. Pooja made her acting debut in Bollywood with a cameo role in the film ‘Fashion’ and also appeared in a few Tamil movies. She will soon be seen in ‘Commando 2′ which is a sequel to her hit 2013 film Commando that starred Vidyut Jamwal in the lead role. | english |
A Chinese man who rode a jet ski more than 300 km (186 miles) across the sea to South Korea from China was jailed in his homeland several years ago for making fun of its leader, Xi Jinping, a South Korean activist said on Wednesday.
A Chinese man who rode a jet ski more than 300 km (186 miles) across the sea to South Korea from China was jailed in his homeland several years ago for making fun of its leader, Xi Jinping, a South Korean activist said on Wednesday.
South Korea's Coast Guard said it had detained a Chinese man in his 30s on Aug. 16 after he had travelled from China on a 1,800 cc jet ski, wearing a life jacket and helmet and carrying a telescope, compass, and five containers of fuel.
The Coast Guard did not identify the man who was taken into custody in the western coastal city of Incheon. Reuters was not immediately able to contact the man and a press officer at the Chinese embassy declined to comment.
South Korean activist Lee Dae-seon identified the man as Kwon Pyong. Lee said he had been jailed in China after posting a selfie on social media of him wearing a T-shirt with slogans mocking President Xi in 2016.
"He appears to have decided to flee after feeling political pressure," said Lee, who said he had visited Kwon in a detention centre on Tuesday.
"He is considering seeking refuge in a third country for now," said Lee, who describes himself on his website as an activist for international solidarity and the head of the Seoul office of group called "Dialogue China".
Kwon appeared to be in good health after his jet ski voyage, which South Korean media said took 14 hours, Lee said.
U.S.-based Radio Free Asia reported that Kwon was jailed in 2017 after he "used words, images and video to insult and slander this country's government and the socialist system" on social media.
A South Korean Coast Guard official said the man had made no mention of refuge or asylum during their investigation.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
| english |
<gh_stars>0
{
"organization":"org.clapper",
"name":"classutil",
"version":"0.4.5",
"description":"A library for fast runtime class-querying, and more",
"site":"http://software.clapper.org/classutil/",
"tags":["classes","byte code"],
"docs":"",
"licenses": [{
"name": "BSD",
"url": "http://software.clapper.org/classutil/license.html"
}],
"resolvers": ["http://scala-tools.org/repo-releases"],
"dependencies": [{
"organization":"org.scala-lang.plugins",
"name": "continuations",
"version": "2.9.1-1"
},{
"organization":"asm",
"name": "asm",
"version": "3.3"
},{
"organization":"asm",
"name": "asm-commons",
"version": "3.3"
},{
"organization":"asm",
"name": "asm-util",
"version": "3.3"
},{
"organization":"org.clapper",
"name": "grizzled-scala",
"version": "1.0.12"
},{
"organization":"org.clapper",
"name": "grizzled-slf4j",
"version": "0.6.8"
}],
"scalas": ["2.9.1-1","2.9.1","2.9.0-1","2.9.0","2.8.2","2.8.1","2.8.0"],
"sbt": false
} | json |
<filename>packages/native/src/assets/icons/HandHoldingCoinRegular.tsx
import * as React from "react";
import Svg, { Path } from "react-native-svg";
type Props = {
size?: number | string;
color?: string;
};
function HandHoldingCoinRegular({
size = 16,
color = "currentColor",
}: Props): JSX.Element {
return (
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
<Path
d="M7.992 20.642c1.08.624 2.448.72 4.08-.048l8.76-4.032a2.28 2.28 0 001.32-2.064c0-1.272-1.056-2.208-2.232-2.208-.24 0-.456.048-.864.216l-.072-.168c-.528-1.008-1.728-1.392-2.784-.936l-1.848.84c.336.312.6.696.792 1.152l1.632-.72c.384-.192.84-.024 1.032.384l.096.24-3.984 1.8a2.29 2.29 0 00-1.272-2.328l-3.84-1.776c-2.568-1.2-4.992-.744-6.96 1.56v6.24h1.464V13.13c1.44-1.44 3.024-1.656 4.872-.816L12 14.09a.88.88 0 01.504.816c0 .624-.672 1.056-1.224.792l-3.192-1.464-.48 1.08 3.432 1.608c.576.264 1.248.216 2.232-.216l6.336-2.856a.73.73 0 011.056.648c0 .288-.168.6-.432.72l-8.784 4.056c-1.056.48-1.944.528-2.736.072l-2.592-1.44-.72 1.296 2.592 1.44zm.72-14.448a3.329 3.329 0 003.336 3.336 3.329 3.329 0 003.336-3.336 3.329 3.329 0 00-3.336-3.336 3.329 3.329 0 00-3.336 3.336zm1.392 0c0-1.08.864-1.944 1.944-1.944s1.944.864 1.944 1.944-.864 1.944-1.944 1.944a1.936 1.936 0 01-1.944-1.944z"
fill={color}
/>
</Svg>
);
}
export default HandHoldingCoinRegular;
| typescript |
import { existsSync, writeFileSync } from 'fs';
import * as Path from 'path';
import * as yargs from 'yargs';
import { log } from '../../utils/logger';
export const command = 'init [Options]';
export const desc = 'Initializes docsense config file (.docsenserc)';
export const aliases = ['i'];
export const builder: yargs.CommandBuilder = argv => {
return yargs
.options({
dir: {
desc: 'directory to add rc file',
default: '.',
},
out: {
desc: 'where docs will be written when using docsense build',
default: './docs',
},
main: {
desc: 'main markdown file (without .md extension)',
default: './README',
},
files: {
desc: 'files to generate documentation on (can be glob patterns)',
default: ['./'],
},
})
.example(
'mkdir foo && docsense init --dir foo',
'puts config file in the foo dir'
)
.example('docsense init', 'initializes config with the default settings')
.example(
'docsense init --main ./manual.md',
'Configures docsense to use ./manual.md as the home page'
)
.example(
'docsense init --out ./documentation',
'Configures docsense to build to "./documentation" by default'
);
};
export const handler = (argv: any) => {
const rcPath = Path.join(argv.dir, '.docsenserc');
if (existsSync(rcPath)) {
log.error('cli:init', 'Docsense is already initialized');
process.exit(1);
}
const initSettings = {
out: argv.out,
main: argv.main,
files: argv.files,
};
const initialSettings = JSON.stringify(initSettings, null, 2);
writeFileSync(Path.join(argv.dir, '.docsenserc'), initialSettings);
log.info('cli:init', rcPath + ' created and docsense initialized!');
};
| typescript |
<filename>package.json
{
"name": "billforward-js",
"version": "6.0.0",
"description": "BillForward.js client for easy, gateway-agnostic card tokenization",
"main": "src/billforward.js",
"directories": {
"example": "examples"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/billforward/billforward-js.git"
},
"keywords": [
"billforward"
],
"author": "BillForward <<EMAIL>>",
"license": "MIT",
"bugs": {
"url": "https://github.com/billforward/billforward-js/issues"
},
"homepage": "https://github.com/billforward/billforward-js#readme"
}
| json |
Medieval Pinball is a free software for Android, that belongs to the category 'Arcade'.
A full version app for iPhone, by Bharti Airtel Ltd.
Pinball HD IPhone Classic ArcadeZenSpace Games is a full version program for iPhone, belonging to the category 'Arcade'.
Pinball Game is a free game for Android, belonging to the category 'Games'.
| english |
Two of the original developers of the crypto mixer Tornado Cash are caught up in a whole new shitstorm of a federal indictment. On Wednesday, the U.S. alleged that two of the original devs, Roman Storm and Roman Semenov, helped crypto criminals launder millions of crypto at a time helping to emphasize the “anonymous” nature of illicit dealings.
The U.S. Attorney’s Office for the Southern District of New York unsealed a new indictment alleging two of the mixer’s original devs conspired to violate sanctions and help hackers launder more than $1 billion in crypto. Prosecutors said police arrested Storm in his home state of Washington on Wednesday. Semenov, a Russian national, currently remains at large.
A crypto mixer is essentially a big pool where crypto users can put their tokens. The crypto gets shuffled, then redistributed to all the users equal to the original amount they put in, minus a fee taken by the mixer. Originally established in 2019, Tornado Cash worked primarily on the Ethereum blockchain, with most transactions trading in ETH. The more people using the service, the more their crypto could be anonymized.
Feds alleged that Tornado Cash worked without any real know-your-customer or anti-money laundering apparatus. In the indictment, prosecutors claimed that all money-transmitting businesses, “including businesses engaged in transmission of cryptocurrencies” have to register with the DOT’s Financial Crimes Enforcement Network, AKA FinCEN. Though Tornado Cash operated in the U.S. through relayers, U.S. Attorneys said Storm and Semenov didn’t register with the agency.
Tornado Cash was just one of many mixers available, but the feds especially targeted Tornado Cash because it was the place where major crypto hackers used to disguise their stolen tokens. The U.S. sanctioned Tornado Cash last year alleging the mixer was acting as a one-stop shop for money laundering. The U.S. Department of the Treasury claimed the Lazarus Group, a hacking front affiliated with the North Korean government, used Tornado Cash to hide its ill-gotten gains. The FBI linked the Lazarus Group to the $615 million hack of the Ronin Network last year.
The feds alleged the Tornado Cash devs tried to mislead the public about their ownership and control of Tornado Cash. Prosecutors said Storm once claimed in an interview that Tornado Cash was a “not for profit,” but the dev pitched the company as a business to U.S. investors.
| english |
<filename>src/main/java/tk/vexisu/chip8/processor/opcode/OpCode.java
package tk.vexisu.chip8.processor.opcode;
public enum OpCode
{
SYS(0x0000),
CLS(0x00E0),
RET(0x00EE),
JPC(0x1000),
CALL(0x2000),
SEB(0x3000),
SNEB(0x4000),
SEV(0x5000),
LDB(0x6000),
ADDB(0x7000),
LDV(0x8000),
OR(0x8001),
AND(0x8002),
XOR(0x8003),
ADDV(0x8004),
SUB(0x8005),
SHR(0x8006),
SUBN(0x8007),
SHL(0x800E),
SNEV(0x9000),
LDI(0xA000),
JPV(0xB000),
RND(0xC000),
DRW(0xD000),
SKP(0xE09E),
SKNP(0xE0A1),
LDVT(0xF007),
LDVK(0xF00A),
LDDV(0xF015),
LDSV(0xF018),
ADDI(0xF01E),
LDFV(0xF029),
LDBV(0xF033),
LDIV(0xF055),
LDVI(0xF065);
private int code;
OpCode(int code)
{
this.code = code;
}
public static OpCode get(Operator op)
{
for (OpCode opCode : OpCode.values())
{
var lastFourBitsOfOperator = op.getCode() >> 12;
if (lastFourBitsOfOperator == 0x0)
{
if (~((~op.getCode()) | ~(0xFF)) == ~((~opCode.code) | ~(0xFF)))
{
return opCode;
}
continue;
}
if (lastFourBitsOfOperator == 0x8)
{
if (~((~op.getCode()) | ~(0xF)) == ~((~opCode.code) | ~(0xF)))
{
return opCode;
}
continue;
}
if (lastFourBitsOfOperator == 0xF)
{
if (~((~op.getCode()) | ~(0xFF)) == ~((~opCode.code) | ~(0xFF)))
{
return opCode;
}
continue;
}
if (lastFourBitsOfOperator == 0xE)
{
if (~((~op.getCode()) | ~(0xFF)) == ~((~opCode.code) | ~(0xFF)))
{
return opCode;
}
continue;
}
if (opCode.code >> 12 == op.getCode() >> 12)
{
return opCode;
}
}
return null;
}
}
| java |
{"meta":{"build_time":"2021-06-01T07:03:25.055Z","license":"CC-BY-4.0","version":"2.0-beta","field_definitions":[{"name":"Total test results","field":"tests.pcr.total","deprecated":false,"prior_names":["totalTestResults"]},{"name":"Hospital discharges","deprecated":false,"prior_names":[]},{"name":"Confirmed Cases","field":"cases.confirmed","deprecated":false,"prior_names":["positiveCasesViral"]},{"name":"Cumulative hospitalized/Ever hospitalized","field":"outcomes.hospitalized.total","deprecated":false,"prior_names":["hospitalizedCumulative"]},{"name":"Cumulative in ICU/Ever in ICU","field":"outcomes.hospitalized.in_icu","deprecated":false,"prior_names":["inIcuCumulative"]},{"name":"Cumulative on ventilator/Ever on ventilator","field":"hospitalization.on_ventilator.cumulative","deprecated":false,"prior_names":["onVentilatorCumulative"]},{"name":"Currently hospitalized/Now hospitalized","field":"hospitalization.hospitalized.currently","deprecated":false,"prior_names":["hospitalizedCurrently"]},{"name":"Currently in ICU/Now in ICU","field":"hospitalization.in_icu.currently","deprecated":false,"prior_names":["inIcuCurrently"]},{"name":"Currently on ventilator/Now on ventilator","field":"hospitalization.on_ventilator.currently","deprecated":false,"prior_names":["onVentilatorCurrently"]},{"name":"Deaths (probable)","field":"outcomes.death.probable","deprecated":false,"prior_names":["deathProbable"]},{"name":"Deaths (confirmed)","field":"outcomes.death.confirmed","deprecated":false,"prior_names":["deathConfirmed"]},{"name":"Deaths (confirmed and probable)","field":"outcomes.death.cumulative","deprecated":false,"prior_names":["death"]},{"name":"Probable Cases","deprecated":false,"prior_names":[]},{"name":"Last Update (ET)","field":"meta.updated","deprecated":false,"prior_names":["lastUpdateEt","lastUpdateTime","checkTimeEt"]},{"name":"New deaths","field":"outcomes.death.calculated.change_from_prior_day","deprecated":false,"prior_names":["deathIncrease"]},{"name":"Date","field":"date","deprecated":false,"prior_names":["dateModified"]}]},"data":{"date":"2020-07-14","states":56,"cases":{"total":{"value":3402862,"calculated":{"population_percent":1.0287,"change_from_prior_day":58618,"seven_day_change_percent":14.4}}},"testing":{"total":{"value":45737905,"calculated":{"population_percent":13.8267,"change_from_prior_day":835275,"seven_day_change_percent":14.4}}},"outcomes":{"hospitalized":{"currently":{"value":55677,"calculated":{"population_percent":0.0168,"change_from_prior_day":1557,"seven_day_change_percent":32.7,"seven_day_average":50517}},"in_icu":{"currently":{"value":9342,"calculated":{"population_percent":0.0028,"change_from_prior_day":135,"seven_day_change_percent":9,"seven_day_average":8971}}},"on_ventilator":{"currently":{"value":2263,"calculated":{"population_percent":0.0007,"change_from_prior_day":9,"seven_day_change_percent":7.7,"seven_day_average":2194}}}},"death":{"total":{"value":128720,"calculated":{"population_percent":0.0389,"change_from_prior_day":742,"seven_day_change_percent":3.9,"seven_day_average":126894}}}}}}
| json |
<filename>manuals/MOPAC2002_manual/node634.html
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft FrontPage 5.0">
<TITLE>INITSV (INITialize SolVation)</TITLE>
<META NAME="description" CONTENT="INITSV (INITialize SolVation)">
<META NAME="Template" CONTENT="K:\Microsoft Office\Office\html.dot">
<LINK REL="next" HREF="node635.html"><LINK REL="previous" HREF="node633.html"><LINK REL="up" HREF="node632.html"><LINK REL="next" HREF="node635.html"></HEAD>
<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff">
<P><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with LaTeX2HTML 98.1 release (February 19th, 1998)
originally by <NAME> (<EMAIL>), CBLU, University of Leeds
* revised and updated by: <NAME>, <NAME>, <NAME>
* with significant contributions from:
<NAME>, <NAME>, <NAME> and others --><!--Navigation Panel--><A HREF="node635.html"><IMG SRC="next_motif.gif" BORDER=0 WIDTH=36 HEIGHT=24 ALT="next"></A><A HREF="node632.html"><IMG SRC="up_motif.gif" BORDER=0 WIDTH=25 HEIGHT=24 ALT="up"></A><A HREF="node633.html"><IMG SRC="previous_motif.gif" BORDER=0 ALT="previous" width="63" height="24"></A><A HREF="index.html"><IMG SRC="contents_motif.gif" BORDER=0 ALT="contents" width="65" height="24"></A><A HREF="node716.html"><IMG SRC="index_motif.gif" BORDER=0 ALT="index" width="43" height="24"></A><BR>
<B>Next:</B> <A HREF="node635.html">DVFILL (Direction Vector FILLing)</A> <B>Up:</B> <A HREF="node632.html">COSMO (Conductor-like Screening</A> <B>Previous:</B> <A HREF="node633.html">A Walk Through</A> <BR>
<BR>
<!--End of Navigation Panel-->
<TT><H2><A NAME="SECTION0012222000000000000000">INITSV</TT> (INITialize SolVation)</A> </H2>
<P>This subroutine is called by the main program, if the <TT>
<a href="node172.html">EPS=<I>nn</I>.<I>n</I></a></TT> keyword is set. Here, all initializations for the COSMO calculation are done. </P>
<UL>
<LI>In the <TT>DATA</TT> statement, the van der Waals (VDW) radii are set. </LI>
<LI>The dielectric constant <!-- MATH: $\varepsilon$ --><i><font face="Symbol">e</font></i>(<TT>EPSI</TT>) is read in from <TT>KEYWRD</TT>, and transformed to the dielectric factor <TT>FEPSI</TT> = (<!-- MATH: $\varepsilon$ --><i><font face="Symbol">e</font></i>-1)/(<!-- MATH: $\varepsilon$ --><i><font face="Symbol">e</font></i>+0.5). </LI>
<LI>The number of interatomic density matrix elements <TT>NDEN</TT> is calculated from <TT>NORBS</TT> and <TT>NUMAT</TT>: </LI></UL>
<DIR>
<DIR>
<TT><P>NDEN=3*NORBS-2*NUMAT</TT> </P></DIR>
</DIR>
<UL>
<LI>The solvent radius, <TT>RSOLV</TT>, for the construction of the SAS is read in off <TT>RSOLV=<I>n</I>.<I>nn</I></TT> (default: 1.0 Ångstroms). </LI>
<TT><LI>DISEX</TT> is set (default = 2). <TT>DISEX</TT> controls the distance within which the interaction of two segments is calculated accurately using the basic grid. </LI>
<LI>The solvation radius <TT>SRAD</TT> is set for each atom. Be careful: the distance of the <TT>SAS</TT> will be <TT>SRAD-RDS</TT>. </LI>
<TT><LI>NSPA</TT> (Number of Segments Per Atom) is set (default = 42). <TT>NSPA</TT> is the number of segments created on a full VDW sphere. </LI>
<LI>To guarantee the most homogeneous initial segment distribution, it is best to create one of the "magic numbers" (see <TT>DVFILL</TT>) of segments. Therefore the next smallest "magic number" compared to <TT>NSPA</TT> is evaluated and the corresponding set of direction vectors is stored in <TT>DIRSM</TT>. </LI></UL>
<DIR>
<DIR>
<P>For hydrogens the number of segments can safely be reduced by a factor of three or four, since the potential is rather homogeneous on hydrogen spheres. This is done and the corresponding direction vectors are stored in <TT>DIRSM</TT>. </P></DIR>
</DIR>
<UL>
<LI>By the equation: </LI></UL>
<p align="center">NSPA*<font face="Symbol">p</font>*RSEG<sup>2 </sup>= 4<font face="Symbol">p</font>R<sup>2</sup></p>
<DIR>
<DIR>
<DIV ALIGN="CENTER"><!-- MATH: \begin{displaymath}
\comp{NSPA}\times \pi\times \comp{RSEG}^2 = 4\pi R^2
\end{displaymath} --></DIV>
<P align="left">the mean segment radius can easily be found to be </P>
<P align="center">RSEG = 2R/(NSPA)<sup>1/2</sup></P>
<DIV ALIGN="CENTER"><!-- MATH: \begin{displaymath}
\comp{RSEG}=2R/\sqrt{\comp{NSPA}}.
\end{displaymath} --></DIV>
<P>With a mean VDW-radius of 1.5 Ångstroms, the mean radius is R = 1.5 +
RSOLV - RDS <!-- MATH: $R=1.5+\comp{RSOLV}-\comp{RDS}$ -->. Thus <TT>DISEX2</TT> is set to the squared mean distance of two segments multiplied by <TT>DISEX</TT>. </P></DIR>
</DIR>
<P><HR></P>
<P><!--Navigation Panel--><A NAME="tex2html10033"><A HREF="node635.html"><IMG SRC="next_motif.gif" BORDER=0 WIDTH=36 HEIGHT=24 ALT="next"></A><A NAME="tex2html10029"></A><A HREF="node632.html"><IMG SRC="up_motif.gif" BORDER=0 WIDTH=25 HEIGHT=24 ALT="up"></A><A NAME="tex2html10023"></A><A HREF="node633.html"><IMG SRC="previous_motif.gif" BORDER=0 ALT="previous" width="63" height="24"></A><A NAME="tex2html10031"></A><A HREF="index.html"><IMG SRC="contents_motif.gif" BORDER=0 ALT="contents" width="65" height="24"></A><A NAME="tex2html10032"></A><A HREF="node716.html"><IMG SRC="index_motif.gif" BORDER=0 ALT="index" width="43" height="24"></A></A><BR>
<B>Next:</B> <A NAME="tex2html10034"><A HREF="node635.html">DVFILL (Direction Vector FILLing)</A></A> <B>Up:</B> <A NAME="tex2html10030"><A HREF="node632.html">COSMO (Conductor-like Screening</A></A> <B>Previous:</B> <A NAME="tex2html10024"><A HREF="node633.html">A Walk Through</A></A> <!--End of Navigation Panel--></P>
<ADDRESS><NAME> <BR>
Fujitsu Ltd. 2001 </ADDRESS></BODY>
</HTML> | html |
India and New Zealand put on a show in Hyderabad in the opening ODI of the series where the visitors staged a dramatic comeback to almost pull off a heist. As much as it's hard to replicate it in the very next game, Raipur would absolutely wish for something closer to that as it braces to host its first-ever international match. .
While another trophy is now within their grasp, India's major focus will continue to be on building the ideal side for the World Cup. In the absence of KL Rahul and Shreyas Iyer, the team management would hope the likes of Ishan Kishan and Suryakumar Yadav get more time out in the middle. As things stand, these two appear to be the backup for the top five. Unless they grab their opportunities, that scenario might change by the time the World Cup gets closer.
Not often do batters follow up a double-century with another big knock. Can Shubman Gill break that trend? You wouldn't count that against him given his last three scores prior to the double ton are 116, 21 and 70. While the batting lineup does look extremely strong at the moment, India's focus will be on their bowlers. A few days ago, they allowed Dasun Shanaka to score big while rallying alongside the tail. And in Hyderabad, they were again on top at one stage but couldn't get that decisive wicket for a long time which would have put them in the driver's seat.
While Michael Bracewell has pretty much sealed his World Cup spot well in advance, Finn Allen has some work to do. The selectors ditched Martin Guptill and placed a lot of faith on Allen with the future in mind. Allen has made starts but converting them is essential in the ODI format.
What to expect: No rain is expected during the game with moderate temperatures set to welcome both sides. The surface will carry a bit of mystery given the venue hasn't hosted international cricket yet.
Rajat Patidar might have to wait as the hosts will look to stick to the same combination. Shardul Thakur gives India a handy batting option at No.8 so Umran Malik won't find it easy to force his way back in.
The visitors might stick with the same XI as well. At the most, a change might be in store in the bowling department.
| english |
#include <tdme/gui/nodes/GUIPanelNode.h>
#include <string>
#include <set>
#include <tdme/gui/events/GUIMouseEvent.h>
using std::set;
using std::string;
using tdme::gui::nodes::GUIPanelNode;
using tdme::gui::events::GUIMouseEvent;
GUIPanelNode::GUIPanelNode(
GUIScreenNode* screenNode,
GUIParentNode* parentNode,
const string& id,
GUINode_Flow* flow,
GUIParentNode_Overflow* overflowX,
GUIParentNode_Overflow* overflowY,
const GUINode_Alignments& alignments,
const GUINode_RequestedConstraints& requestedConstraints,
const GUIColor& backgroundColor,
const string& backgroundImage,
const GUINode_Scale9Grid& backgroundImageScale9Grid,
const GUIColor& backgroundImageEffectColorMul,
const GUIColor& backgroundImageEffectColorAdd,
const GUINode_Border& border,
const GUINode_Padding& padding,
const GUINodeConditions& showOn,
const GUINodeConditions& hideOn,
GUILayoutNode_Alignment* alignment
) :
GUILayoutNode(screenNode, parentNode, id, flow, overflowX, overflowY, alignments, requestedConstraints, backgroundColor, backgroundImage, backgroundImageScale9Grid, backgroundImageEffectColorMul, backgroundImageEffectColorAdd, border, padding, showOn, hideOn, alignment)
{
}
const string GUIPanelNode::getNodeType()
{
return "panel";
}
void GUIPanelNode::determineMouseEventNodes(GUIMouseEvent* event, bool floatingNode, set<string>& eventNodeIds, set<string>& eventFloatingNodeIds)
{
GUILayoutNode::determineMouseEventNodes(event, floatingNode, eventNodeIds, eventFloatingNodeIds);
if (isEventBelongingToNode(event) == true) {
event->setProcessed(true);
}
}
void GUIPanelNode::handleKeyboardEvent(GUIKeyboardEvent* event)
{
GUILayoutNode::handleKeyboardEvent(event);
}
| cpp |
AAP gives 10 days ultimatum to Congress government to remove Deol and slammed CM Channi on Deol's appointment.
Chandigarh: The Aam Aadmi Party (AAP) Punjab senior leader and Leader of Opposition (LoP) Harpal Singh Cheema expressed strong objection and disappointment over the newly appointed Advocate General of Punjab Amar Preet Singh Deol (APS Deol), stating that it was not expected from the new Chief Minister Charanjit Singh Channi, that his real face will be exposed so early. He said to save the former DGP Sumedh Saini and the Badal family in sensitive cases; Channi has gone two steps ahead of former Chief Minister Capt Amarinder Singh.
Cheema appealed to the Chief Minister Charanjit Singh Channi to rectify this blunder immediately stating that APS Deol should be removed immediately from the post of AG. He also warned that if the Channi government did not remove APS Deol from the office within 10 days, the Aam Aadmi Party would wage a decisive struggle against the government as it was a conspiracy to save the Guru's culprits.
Addressing a press conference with party MLAs Kultar Singh Sandhwan, Amarjit Singh Sandra, state general secretary Harchand Singh Barsat, spokespersons Malvinder Singh Kang and Manwinder Singh Giaspura at the party headquarters here on Tuesday, Harpal Singh Cheema showed the documents of Deol's prosecution as a senior counsel for former DGP Sumedh Saini in the Behbal Kalan and Kotkapura firing cases related to desecration of Guru Granth Sahib. He said that not only Saini, but APS Deol was also fighting the cases of other accused. Then what justice can be expected in the sensitive cases being fought by the Punjab government under APS Deol's leadership, questioned Cheema.
Harpal Singh Cheema said for the first four-and-a-half-years, Advocate General Atul Nanda appointed by Capt Amarinder Singh, in collusion with the Badal family and Sumedh Saini had not to get justice in Behbal Kalan and Bargari cases, and now Channi, by going to great lengths has appointed Sumedh Saini's lawyer as Advocate General. “This is the result of a deliberate conspiracy. It is as if the Badals and Saini have taken over the entire government machinery. As a result, Channi has followed in Captain's footsteps,” he said.
The AAP leader said it was not expected from the new Chief Minister. “Justice for Bargari and Behbal Kalan was expected, but the Channi government's decision on APS Deol shattered the hopes,” he added. Cheema said the people who have been accused by Justice Ranjit Singh and Justice Zora Singh for desecration of Sri Guru Granth Sahib and Behbal Kalan-Kotkapura firing; how can the government even consider appointing a lawyer for those accused as its Advocate General?
He said legal ethics also does not allow a lawyer who is first fighting the case on behalf of the accused, to be able to fight against the accused on behalf of the government. Cheema alleged that Deol's appointment was a conspiracy to save the accused, which couldn't be tolerated. He said that all the Aam Aadmi Party MLAs were also writing letters to the Chief Minister in this regard. | english |
Hi ..I don't know names of hero and heroine.The story goes like this..heroine has one younger sister and mother,her father is dead. Hero has one younger sister who is so young tha. Him ..fatehr and his mother is seriously ill. Heroine's mother will look for alliance and will come across hero's profile.She will arrange for hero to meet heroine. Unfortunatly hero's mother condition worsen so he will say he is not in position to think about marriage now. But heroine mother will insist that they can get married in two days. Heroine will get irritated as it is a simple wedding.Thwy will get married in a templeand hero's mother will die on same day.heroine ll behave properly with everyone but ll show her anger towards hero.Finally after some days hero ll arrange a proper traditional wedding as a surprise.
If anyone knew the novel name please let me know.Thanks in advance.
If anyone knew the novel name please let me know.Thanks in advance.
| english |
import dash
from dash.dependencies import Input, Output
import dash_table
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv')
# add an id column and set it as the index
# in this case the unique ID is just the country name, so we could have just
# renamed 'country' to 'id' (but given it the display name 'country'), but
# here it's duplicated just to show the more general pattern.
df['id'] = df['country']
df.set_index('id', inplace=True, drop=False)
app = dash.Dash(__name__)
app.layout = html.Div([
dash_table.DataTable(
id='datatable-row-ids',
columns=[
{'name': i, 'id': i, 'deletable': True} for i in df.columns
# omit the id column
if i != 'id'
],
data=df.to_dict('records'),
editable=True,
filter_action="native",
sort_action="native",
sort_mode='multi',
row_selectable='multi',
row_deletable=True,
selected_rows=[],
page_action='native',
page_current= 0,
page_size= 10,
),
html.Div(id='datatable-row-ids-container')
])
@app.callback(
Output('datatable-row-ids-container', 'children'),
Input('datatable-row-ids', 'derived_virtual_row_ids'),
Input('datatable-row-ids', 'selected_row_ids'),
Input('datatable-row-ids', 'active_cell'))
def update_graphs(row_ids, selected_row_ids, active_cell):
# When the table is first rendered, `derived_virtual_data` and
# `derived_virtual_selected_rows` will be `None`. This is due to an
# idiosyncrasy in Dash (unsupplied properties are always None and Dash
# calls the dependent callbacks when the component is first rendered).
# So, if `rows` is `None`, then the component was just rendered
# and its value will be the same as the component's dataframe.
# Instead of setting `None` in here, you could also set
# `derived_virtual_data=df.to_rows('dict')` when you initialize
# the component.
selected_id_set = set(selected_row_ids or [])
if row_ids is None:
dff = df
# pandas Series works enough like a list for this to be OK
row_ids = df['id']
else:
dff = df.loc[row_ids]
active_row_id = active_cell['row_id'] if active_cell else None
colors = ['#FF69B4' if id == active_row_id
else '#7FDBFF' if id in selected_id_set
else '#0074D9'
for id in row_ids]
return [
dcc.Graph(
id=column + '--row-ids',
figure={
'data': [
{
'x': dff['country'],
'y': dff[column],
'type': 'bar',
'marker': {'color': colors},
}
],
'layout': {
'xaxis': {'automargin': True},
'yaxis': {
'automargin': True,
'title': {'text': column}
},
'height': 250,
'margin': {'t': 10, 'l': 10, 'r': 10},
},
},
)
# check if column exists - user may have deleted it
# If `column.deletable=False`, then you don't
# need to do this check.
for column in ['pop', 'lifeExp', 'gdpPercap'] if column in dff
]
if __name__ == '__main__':
app.run_server(debug=True)
| python |
<gh_stars>1-10
from typing import Tuple, List
from dataclasses import dataclass
from .. import inference_errors as ierr
from .. import type_system as ts
from .. import context
from ..code_blocks import Primitive
from ..type_engine import TypingContext
from . import func_methods, concrete_methods, add_method_to_list
# ---------------------------------------------------------------------
mapping_int_binary = {
"__eq__": (False, "eq"),
"__ne__": (False, "ne"),
'__gt__': (False, "sgt"),
'__lt__': (False, "slt"),
'__ge__': (False, "sge"),
'__le__': (False, "sle"),
'__add__': (True, "add"),
'__sub__': (True, "sub"),
'__mul__': (True, "mul"),
'__div__': (True, "sdiv"),
'__mod__': (True, "srem"),
}
@add_method_to_list(func_methods)
def gen_int_type_ops(
tc: TypingContext,
name: str,
type_argument_types: Tuple[ts.Type],
argument_types: Tuple[ts.Type],
):
if name not in mapping_int_binary:
raise ierr.TypeGenError()
if len(type_argument_types) != 0:
raise ierr.TypeGenError()
if len(argument_types) != 2:
raise ierr.TypeGenError()
if not isinstance(argument_types[0], ts.IntType):
raise ierr.TypeGenError()
if not isinstance(argument_types[1], ts.IntType):
raise ierr.TypeGenError()
if argument_types[0].size != argument_types[1].size:
raise ierr.TypeGenError()
dname = tc.scope_man.new_func_name(f"dummy_func_{name}")
retty = argument_types[0] if mapping_int_binary[name][0] else ts.BoolType()
tc.code_blocks.append(IntTypeOpPrimitive(
dname,
name,
argument_types[0].size,
))
ft = ts.FunctionType(
dname,
retty,
do_not_copy_args = False,
)
return ft
@dataclass
class IntTypeOpPrimitive(Primitive):
mangled_name: str
op: str
size: int
def get_code(self):
def arithmetic(opname):
return [
f"define dso_local i{self.size} @{self.mangled_name}(i{self.size} %0, i{self.size} %1) {{",
f"\t%3 = {opname} nsw i{self.size} %0, %1",
f"\tret i{self.size} %3",
f"}}",
]
def comp(opname):
return [
f"define dso_local i1 @{self.mangled_name}(i{self.size} %0, i{self.size} %1) {{",
f"\t%3 = icmp {opname} i{self.size} %0, %1",
f"\tret i1 %3",
f"}}",
]
a,opname = mapping_int_binary[self.op]
if a:
return arithmetic(opname)
else:
return comp(opname)
# ---------------------------------------------------------------------
mapping_char_binary = {
"__eq__": (False, "eq"),
"__ne__": (False, "ne"),
}
@add_method_to_list(func_methods)
def gen_char_type_ops(
tc: TypingContext,
name: str,
type_argument_types: Tuple[ts.Type],
argument_types: Tuple[ts.Type],
):
if name not in mapping_char_binary:
raise ierr.TypeGenError()
if len(type_argument_types) != 0:
raise ierr.TypeGenError()
if len(argument_types) != 2:
raise ierr.TypeGenError()
if not isinstance(argument_types[0], ts.CharType):
raise ierr.TypeGenError()
if not isinstance(argument_types[1], ts.CharType):
raise ierr.TypeGenError()
dname = tc.scope_man.new_func_name(f"dummy_func_{name}")
retty = ts.BoolType()
tc.code_blocks.append(CharTypeOpPrimitive(
dname,
name,
))
ft = ts.FunctionType(
dname,
retty,
do_not_copy_args = False,
)
return ft
@dataclass
class CharTypeOpPrimitive(Primitive):
mangled_name: str
op: str
def get_code(self):
def comp(opname):
return [
f"define dso_local i1 @{self.mangled_name}(i8 %0, i8 %1) {{",
f"\t%3 = icmp {opname} i8 %0, %1",
f"\tret i1 %3",
f"}}",
]
a,opname = mapping_int_binary[self.op]
return comp(opname)
# ---------------------------------------------------------------------
mapping_bool_binary = {
"__and__": "and",
"__or__": "or",
}
@add_method_to_list(func_methods)
def gen_bool_type_ops(
tc: TypingContext,
name: str,
type_argument_types: Tuple[ts.Type],
argument_types: Tuple[ts.Type],
):
if name not in mapping_bool_binary:
raise ierr.TypeGenError()
if len(type_argument_types) != 0:
raise ierr.TypeGenError()
if len(argument_types) != 2:
raise ierr.TypeGenError()
if not isinstance(argument_types[0], ts.BoolType):
raise ierr.TypeGenError()
if not isinstance(argument_types[1], ts.BoolType):
raise ierr.TypeGenError()
dname = tc.scope_man.new_func_name(f"dummy_func_{name}")
tc.code_blocks.append(BoolTypeOpPrimitive(
dname,
name,
))
ft = ts.FunctionType(
dname,
ts.BoolType(),
do_not_copy_args = False,
)
return ft
@dataclass
class BoolTypeOpPrimitive(Primitive):
mangled_name: str
op: str
def get_code(self):
return [
f"define dso_local i1 @{self.mangled_name}(i1 %0, i1 %1) {{",
f"\t%3 = {mapping_bool_binary[self.op]} i1 %0, %1",
f"\tret i1 %3",
f"}}",
]
# ---------------------------------------------------------------------
@add_method_to_list(func_methods)
def gen_bool_type_not(
tc: TypingContext,
name: str,
type_argument_types: Tuple[ts.Type],
argument_types: Tuple[ts.Type],
):
if name != '__not__':
raise ierr.TypeGenError()
if len(type_argument_types) != 0:
raise ierr.TypeGenError()
if len(argument_types) != 1:
raise ierr.TypeGenError()
if not isinstance(argument_types[0], ts.BoolType):
raise ierr.TypeGenError()
dname = tc.scope_man.new_func_name(f"dummy_func_{name}")
tc.code_blocks.append(BoolTypeNotPrimitive(
dname,
))
ft = ts.FunctionType(
dname,
ts.BoolType(),
do_not_copy_args = False,
)
return ft
@dataclass
class BoolTypeNotPrimitive(Primitive):
mangled_name: str
def get_code(self):
return [
f"define dso_local i1 @{self.mangled_name}(i1 %0) {{",
f"\t%2 = add i1 1, %0",
f"\tret i1 %2",
f"}}",
]
# ---------------------------------------------------------------------
| python |
Faking News is an invaluable member of the endangered species of humour venues, which are dwindling fast in a ridiculously dour, touchy and self-important nation. It is overpopulated with gas balloons and FN does the important job of puncturing them. But this week, it suffered a self-inflicted injury with a joke interview of a fresh Bangladeshi immigrant in the Kolkata suburb of Salt lake, who was desperately hoping for an India-Bangladesh tie in the World Cup semis because he couldn’t decide which side to cheer for. His absorption into India, which had instantly given him ration cards and stuff, had given him an identity crisis.
Personally, I don’t care which nationalities develop hurt sentiments over this interview, written under the pseudonym of Pagla Ghoda. Provocation is not a crime. But ignorance is not an excuse, either. It’s incredible, but no one in Faking News or its owner, Firstpost, seems to have heard of the Tebbit test, which predated the Bangadeshi’s identity crisis by 25 years. It was no joke. It raised such a storm over the UK immigrant question in 1990 that the echoes still linger in political debate.
Some readers may remember Norman Tebbit, a colourful figure who had been a commercial and fighter pilot, IRA bombing victim, secretary of state under Margaret Thatcher, critic of the anti-apartheid movement and Tory party chairman appreciated by intellectual yobs, who abjured long-held homophobic views only under severe peer pressure in the House of Lords. In 1990, Tebbit proposed a “cricket test” to gauge the allegiance of immigrants. Do citizens originally from South Asia and the Caribbean cheer for the English side, or their “home” side? The question was politically problematic then and remains so, and the fake Bangladeshi on Faking News may be excused his dilemma.
In Parliament, in an unrelated celebration of smallness, Sharad Yadav has offered to debate the correlation between geography and the skin tone and poise of women. Is sexist banter growing in India, or is it being caught on camera more often? It’s a twist on the eternal question: are more rapists in the news news because there is more rape, or is rape being reported more freely? The ubiquity of cameras in even the most remote locations is certainly a factor, as the unlucky Varun Gandhi and Abhijit Mukherjee can attest. In the false security of the boonies, the former had threatened Semitic-style dismemberment while the latter had laughed at “dented-painted” urban women. They were outed because some guy with a camera was out there.
But some people get away with it. Digvijay Singh nationalised the obscure central Indian term “tunch maal”. Mulayam Singh Yadav championed the right of glandular youths to make tunch-driven mistakes. Long before them, Sharad Yadav disparaged parkati women, who could never take flight in the lofty tradition of Indian womanhood because they had clipped their wings. They had had haircuts. Maybe bleaches, blushers and Botox, too, but such interventions in the course of nature were so beyond Yadav’s ken that he never thought to flag them.
Pi-day is just past — March 14 was 3. 14 in US notation, and if you were awake at 1. 59 am, you experienced the definitive pi-moment, 3. 14159. That’s the value of pi to five places of decimal. Pi-day is becoming a big deal with geeks, who use Twitter to entertain lesser life forms with PJs — pi-jokes. The best of 2015: “Consider a pizza with radius z and thickness a. Then, its volume is pi*z*z*a in math notation. ” More pi-jokes may hit Twitter on June 22 this year. Certain geeks are protesting, quite correctly, that 22/7 is the precise value of pi, while 3. 14159 is only an approximation. Will the exacting fractional crowd now wrest pi-day from the dotty decimalists? | english |
package malculator.ui;
import imgui.ImDrawList;
import imgui.ImGui;
import imgui.ImVec2;
import malculator.shared.ast.Token;
import malculator.utils.Either;
import org.jetbrains.annotations.NotNull;
public class ASTRenderer {
public static final ASTNode.Calculation test = new ASTNode.Calculation() {{
calculation = new Either.First<>() {{
value = new Expression() {{
value = new Either.Second<>() {{
value = new Sum() {{
children = new Product[]{
new Product() {{
children = new Power[]{
new Power() {{
children = new PrimaryExpression[]{
new PrimaryExpression() {{
value = new First<>() {{
value = new Value() {{
signs = new Token.SumOp[0];
number = new Token.Number() {{
value = 1.0;
}};
}};
}};
}}
};
}}
};
operators = new Token.ProductOp[0];
}},
new Product() {{
children = new Power[]{
new Power() {{
children = new PrimaryExpression[]{
new PrimaryExpression() {{
value = new First<>() {{
value = new Value() {{
signs = new Token.SumOp[0];
number = new Token.Number() {{
value = 2.5;
}};
}};
}};
}}
};
}}
};
operators = new Token.ProductOp[0];
}}
};
operators = new Token.SumOp[]{Token.SumOp.PLUS};
}};
}};
}};
}};
}};
public static float posX = 100f, posY = 100f;
public static final float SPACE = 5f;
private static boolean useSpace = true;
private static ImDrawList drawList;
private static float offX, offY;
public static void renderCalculation(@NotNull ASTNode.Calculation ctx) {
drawList = ImGui.getWindowDrawList();
ctx.calculation.either(ASTRenderer::renderExpression, error -> ImGui.text("Syntax error"));
offX = offY = 0;
}
public static void renderExpression(@NotNull ASTNode.Expression ctx) {
ctx.value.either(ASTRenderer::renderPrimaryExpression, ASTRenderer::renderSum);
}
public static void renderSum(@NotNull ASTNode.Sum ctx) {
renderProduct(ctx.children[0]);
for (int i = 0; i < ctx.operators.length; i++) {
renderSumOp(ctx.operators[i]);
renderProduct(ctx.children[i + 1]);
}
}
public static void renderProduct(@NotNull ASTNode.Product ctx) {
renderPower(ctx.children[0]);
for (int i = 0; i < ctx.operators.length; i++) {
renderProductOp(ctx.operators[i]);
renderPower(ctx.children[i + 1]);
}
}
public static void renderPower(@NotNull ASTNode.Power ctx) {
renderPrimaryExpression(ctx.children[0]);
float goBack = 0f; // After rendering the powers the previous y is used
for (int i = 1; i < ctx.children.length; i++) {
posX += SPACE / 2f;
posY -= SPACE;
goBack += SPACE;
renderPrimaryExpression(ctx.children[i]);
}
posY += goBack;
}
public static void renderPrimaryExpression(@NotNull ASTNode.PrimaryExpression ctx) {
ctx.value.either(ASTRenderer::renderValue, ASTRenderer::renderExpression);
}
public static void renderValue(@NotNull ASTNode.Value ctx) {
useSpace = false;
for (Token.SumOp sign : ctx.signs) {
renderSumOp(sign);
}
useSpace = true;
renderNumber(ctx.number);
}
public static void renderNumber(@NotNull Token.Number ctx) {
// Don't know if there's a method for this
var afterDot = ctx.value * 10.0 - (int) ctx.value * 10;
var numberString = afterDot == 0.0 ? String.valueOf((int) ctx.value) : String.valueOf(ctx.value);
var vec = new ImVec2();
ImGui.calcTextSize(vec, numberString);
drawList.addText(posX + offX, posY + offY, -1, numberString);
offX += vec.x;
if (useSpace) offX += SPACE;
}
public static void renderSumOp(@NotNull Token.SumOp ctx) {
var text = switch (ctx) {
case PLUS -> "+";
case MINUS -> "-";
};
var vec = new ImVec2();
ImGui.calcTextSize(vec, text);
drawList.addText(posX + offX, posY + offY, -1, text);
offX += vec.x;
if (useSpace) offX += SPACE;
}
public static void renderProductOp(@NotNull Token.ProductOp ctx) {
var text = switch (ctx) {
case TIMES -> "×";
case DIV -> "÷";
};
var vec = new ImVec2();
ImGui.calcTextSize(vec, text);
drawList.addText(posX + offX, posY + offY, -1, text);
offX += vec.x;
if (useSpace) offX += SPACE;
}
}
| java |
While the owner of the gym managed to come out, a trainer and two other employees were allegedly present inside the fitness centre.
The depression that lay centred over the east-central Bay of Bengal has intensified into a deep depression. As per latest information shared by India Meteorological Department (IMD), the deep depression will further intensify into a cyclonic storm over central Bay of Bengal, and cross Bangladesh coast between Tinkona Island and Sandwip around 25th October early morning.
Amid the fluctuation in gold and silver rates across the country, the price for 24-carat gold per 10 gram reached Rs 50,000 on Friday in the twin cities of Bhubaneswar and Cuttack.
Gone are the days of luxury for Archana Nag. It’s been more than 10 days that the lady blackmailer has been lodged in Jharpada jail in Bhubaneswar. She rode high-end cars and slept in the luxury lap in her bungalow for years, but life is completely upside down for her now.
The price of silver in India is determined by changes in prices internationally.
The rate of 20, 18, and 14-carat gold witnessed a reasonable decline in comparison to last week’s prices.
The BMC has decided to slap a fine of Rs 5000 on traders at Unit-1 haat for not following norms and dumping solid waste on road.
The Vigilance sleuths on Monday launched simultaneous raids at six places associated with Manas Ranjan Samal, Assistant Engineer of General Public Health Division-I, Bhubaneswar, following allegations that the officer has amassed property disproportionate to his known sources of income.
The Commissionerate Police has reportedly arrested a woman on charges of blackmailing and extorting money from high-profile people like politicians and film producers.
Notably, factors such as state taxes, excise duty, and making charges lead to changes in the price of gold in India.
Police revealed that mastermind Sushant Patra and his wife have 15 bank accounts from which cyber police seized Rs 20 lakh.
The rate of 20, 18 and 14-carat gold witnessed mild growth in comparison to Monday prices, and climbed to Rs 43,000, Rs 38,900 and Rs 30,400, respectively. | english |
<reponame>Mattlk13/dependent-packages
["fenix-ui-DSDEditor","fenix-ui-DataEditor","fenix-ui-catalog","fenix-ui-chart-creator","fenix-ui-dashboard","fenix-ui-data-management","fenix-ui-map-creator","fenix-ui-menu","fenix-ui-metadata-viewer","fenix-ui-visualization-box"] | json |
No visit to Canada would be complete without taking in Niagara Falls, with its breathtaking Horseshoe and American Falls seen from various vantage points like lookouts, boat tours, and even aerial photography.
This tour will take you inside a power plant for an exploration of tunnels behind Niagara Falls before continuing onto Goat Island to admire their nightly illumination.
As we work towards reducing carbon emissions, hydropower remains an invaluable and renewable source. Innovation News Network tracks all of the latest developments in this area - from turbine and generator technologies to innovations that harness water power for use at homes or businesses.
One of the greatest advances in this area is VIVACE, a system which employs bobbing cylinders resembling trout to generate electricity. When currents flow over these cylinders, current creates vortices that cause them to bounce up and down, ultimately spinning a metal coil that produces DC electricity.
Hydroelectric plants not only provide clean energy, but they play an invaluable role in mitigating extreme weather events and floods as well as reclaiming land for reclamation purposes and improving living systems in their vicinity. OPG is proud of our partnership with local communities - Indigenous groups as well as environmental interest groups - to advance their wellbeing.
The 'War of the Currents'
While Edison and Tesla battled over the use of alternating current, another man named King Camp Gillette imagined an ideal North American utopia which included harnessing Niagara Falls' energy for industrial growth and hydroelectricity power. His vision came close to what eventually occurred at Niagara Falls.
Your day on this tour begins with a complimentary pick-up from Downtown Toronto and continues with a narrated driving tour around Toronto, passing iconic routes like Dufferin Island, International Control Dam, Old Scow, Niagara Whirlpool and Floral Clock.
Once you've had lunch at Skylon Tower and enjoyed its scenic views of Toronto, embarking on a Hornblower Cruise will allow you to see Niagara Gorge up close and personal. This ride will delight any thalassophile; feel the mist on your skin as the water surges by and experience it all first-hand!
Every evening as the sun begins to set, Niagara Falls becomes illuminated with blue and yellow lighting as a part of the Help Kids Shine campaign. This breathtaking display serves as a highlight for this fundraiser for the Niagara Children's Centre.
As you marvel at the stunning view from the Illumination Tower (an ideal photo-op backdrop), we will accompany you to Hornblower Niagara Cruises facility where we will board Maid of the Mist; an iconic vessel which sails around the gorge to get as close as possible to Niagara Falls - this must-do experience is essential when visiting this landmark!
Explore all this and more on our top-rated Ultimate Niagara Falls Tour! York alumni can use promo code YORKU15 to enjoy 15% off this nine-hour trip that provides round trip transportation from Downtown Toronto. Book today!
Niagara Falls' powerful waters conceal an incredible story of electricity and innovation. On this cultural walking tour, discover more about Nikola Tesla and the "War of Currents", while enjoying access to Skylon Tower and Niagara Parks Power Station for viewings.
The Second Tailrace Tunnel, constructed to improve efficiency at Niagara River Power Station, was an incredible engineering achievement. Visitors entering via glass-walled elevator from the wheel pit enter this underground tunnel that extends 2,200 feet before ending up at an outdoor viewing platform that takes visitors down to the river itself.
This award-winning Niagara Falls Tour features the Hornblower boat cruise that brings you close to Canadian Horseshoe Falls, plus time for exploring Niagara-on-the-Lake and sampling wine at nearby vineyards. Plus, enjoy a narrated drive along Niagara Parkway passing attractions like Whirlpool Rapids and Floral Clock!
| english |
<reponame>DonMagee/aws-resource-providers
{
"name": "community-codecommit-approvalruletemplate",
"version": "0.1.0",
"description": "AWS custom resource provider named Community::CodeCommit::ApprovalRuleTemplate.",
"private": true,
"main": "dist/handlers.js",
"files": [
"dist"
],
"scripts": {
"build": "npx tsc",
"fixrolepath" : "sed 's/Path: \\\"\\/\\\"/Path: \\\"\\/community-types\\/\\\"/g' resource-role.yaml > tmp.txt && mv tmp.txt resource-role.yaml",
"prepack": "cfn generate && npm run build && npm run fixrolepath",
"submit": "npm run prepack && cfn submit -vv --region eu-west-1 --set-default",
"package": "npm run prepack && cfn submit --dry-run -vv && cp ${npm_package_name}.zip ${npm_package_name}-${npm_package_version}.zip",
"version": "npm run package && aws s3 cp ${npm_package_name}-${npm_package_version}.zip s3://community-resource-provider-catalog/${npm_package_name}-${npm_package_version}.zip && aws s3 cp resource-role.yaml s3://community-resource-provider-catalog/${npm_package_name}-resource-role-${npm_package_version}.yml",
"test": "npx jest",
"test:integration": "npx npm-run-all -p -r samstart cfntest",
"cfntest": "cfn test -vv >> cfn.log",
"samstart": "sam local start-lambda -l sam.log",
"validate": "cfn validate"
},
"dependencies": {
"aws-resource-providers-common": "^0.3.0",
"cfn-rpdk": "npm:@org-formation/cfn-rpdk@^0.5.0",
"class-transformer": "^0.3.1"
},
"devDependencies": {
"@types/node": "^12.0.0",
"@types/uuid": "^7.0.3",
"typescript": "^4.1.2"
},
"optionalDependencies": {
"aws-sdk": "^2.656.0"
}
}
| json |
* {
box-sizing: border-box;
}
.grid--list--element {
float: left;
width: 100%;
padding: 10px;
background-color: #eee;
color: #000;
border: 0.5px solid #000;
}
.row::after{
content: "";
display: table;
clear: both;
}
.grid--list--button {
display: inline-block;
width: 100%;
}
.button {
border: none;
outline: none;
padding: 12px 16px;
background-color: #f1f1f1;
cursor: pointer;
width: 33.33%;
min-height: 25px;
float: left;
}
.button:hover {
background-color: #ddd;
}
.button.active {
background-color: #666;
color: white;
} | css |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>jshashset, a JavaScript implementation of HashSet</title>
<meta name="author" content="<NAME> - <EMAIL>">
<meta name="keywords" content="hash, set, JavaScript, hashmap, hashset, hashtable, DHTML">
<meta name="description" content="jshashtable, a JavaScript hash table implementation">
<meta name="robots" content="all">
<link rel="stylesheet" type="text/css" href="main.css" title="Default">
</head>
<body>
<div id="container" class="nonav">
<div id="header">
<h1>jshashset 3.0</h1>
<div id="nav">
<span class="navitem">home</span>
| <a class="navitem" href="http://code.google.com/p/jshashtable/downloads/list"
title="Download">download</a>
| <a class="navitem" href="http://www.timdown.co.uk/jshashtable">website</a>
| <a class="navitem" href="http://www.timdown.co.uk">timdown.co.uk</a>
</div>
</div>
<div id="content">
<h1>jshashset 3.0</h1>
<div id="toc">
<h2>Contents</h2>
<ul>
<li><a href="#intro">Introduction</a></li>
<li><a href="#setup">Set-up</a></li>
<li><a href="#usage">Usage</a></li>
<li><a href="#api">Public API</a></li>
</ul>
</div>
<div id="intro">
<h2>Introduction</h2>
<p>
<span class="jsh">jshashset</span> is a JavaScript implementation of HashSet, as found in Java
or C#'s standard libraries. It depends on <a href="index.html">jshashtable</a> and uses the keys
of a <span class="jsh">jshashtable</span> hash table as the underlying set.
</p>
<p>
<span class="jsh">jshashset</span> was first included as a separate download for version 2.1 of
<span class="jsh">jshashtable</span> and is included with jshashtable from version 3.0.
</p>
<p class="linktotop">
<a href="#container">Top</a>
</p>
</div>
<div id="setup">
<h2>Set-up</h2>
<ol>
<li>
<h3>Download the code</h3>
<p>
<strong><a href="http://code.google.com/p/jshashtable/downloads/list"
title="Download">Download jshashset</a></strong>.
You can download a compressed or uncompressed version of <code>jshashset.js</code>
which are functionally identical or a zip containing compressed and uncompressed code
for both <span class="jsh">jshashtable</span> and <span class="jsh">jshashset</span>
plus documentation.
</p>
</li>
<li>
<h3>Include jshashtable and jshashset in your page</h3>
<p>
Include <code>jshashtable.js</code> and <code>jshashset.js</code> in that order in
script tags in your page. These files create two objects in the global scope, which are
<code>Hashtable</code> and <code>HashSet</code>.
</p>
</li>
<li>
<h3>Create your hash set</h3>
<p>
Create your hash set, as in the example below. Any non-null, non-undefined JavaScript
object can be used as member of the set.
</p>
<pre class="code">
<script type="text/javascript" src="jshashtable.js"></script>
<script type="text/javascript" src="jshashset.js"></script>
<script type="text/javascript">
var dinosaurs = new HashSet();
dinosaurs.add("Triceratops");
dinosaurs.add("Diplodocus");
dinosaurs.add("Stegosaurus");
alert( dinosaurs.values.join(",") );
/* Triceratops,Diplodocus,Stegosaurus */
</script>
</pre>
</li>
</ol>
<p class="linktotop">
<a href="#container">Top</a>
</p>
</div>
<div id="api">
<h2>Public API</h2>
<h4>Constructors</h4>
<ul class="propertieslist">
<li class="method">
<div class="methodsignature">
<code><strong>HashSet</strong>()</code>
</div>
<p>
Creates a new, empty hash set.
</p>
</li>
<li class="method">
<div class="methodsignature">
<code><strong>HashSet</strong>(Object <em>options</em>)</code>
</div>
<div class="summary">
<p class="new">New in version 3.0</p>
<p>
Creates a new, empty hash set with the supplied options.
</p>
</div>
<div class="paramsheading">Option properties:</div>
<ul class="params">
<li class="param">
<code class="paramname">hashCode</code>
<div>
A function that provides hash codes for objects placed in the set. It is passed
the object to be hashed as its only parameter. If not provided, the set checks
whether the object has a <code>hashCode()</code> method, and if not, calls
<code>toString()</code> on the object.
</div>
</li>
<li class="param">
<code class="paramname">equals</code>
<div>
<p>
A function that checks for equality between two objects with the same hash
code. If two objects that are considered equal then only one can be in the
set at any one time.
</p>
<p>
This function is passed the two objects to be compared as its parameters. If
not provided, the set checks whether either object being compared has an
<code>equals()</code> method, and if not, compares the objects using the
<code>===</code> operator.
</p>
</div>
</li>
<li class="param">
<code class="paramname">replaceDuplicateKey</code>
<p class="new">New in version 3.0</p>
<p>
Controls what happens when <code>add()</code> is called with an object that is
equal to an existing object in the set. If <code>replaceDuplicateKey</code> is
<code>true</code>, the existing key is always replaced by the new key.
Otherwise, the existing key is left in place (which is what always happened
prior to version 3.0). The default is <code>true</code>; prior to version 3.0.
</p>
</li>
</ul>
</li>
<li class="method">
<div class="methodsignature">
<code><strong>HashSet</strong>(Function <em>hashingFunction</em>, Function
<em>equalityFunction</em>)</code>
</div>
<p class="summary">
Creates a new, empty hash set with the supplied hashing function and equality
function. This form maintains backwards compatibility with versions prior to 3.0.
The following line
</p>
<pre class="code">
var set = new HashSet(hashingFunction, equalityFunction);
</pre>
<p>... is equivalent to</p>
<pre class="code">
var set = new HashSet( { hashCode: hashingFunction, equals: equalityFunction } );
</pre>
<div class="paramsheading">Parameters:</div>
<ul class="params">
<li class="param">
<code class="paramname">hashingFunction</code>
<p>See above.</p>
</li>
<li class="param">
<code class="paramname">equalityFunction</code>
<p>See above.</p>
</li>
</ul>
</li>
</ul>
<h4>Methods</h4>
<ul class="propertieslist">
<li class="method" id="put">
<div class="methodsignature"><code>void <strong>add</strong>(mixed
<em>value</em>)</code></div>
<div class="summary">
Adds the specified object or primitive to the set. <code>value</code> replaces any
member of the set equal to it, unless <code>replaceDuplicateKey</code> was set to
<code>false</code> in the constructor.
</div>
</li>
<li class="method">
<div class="methodsignature"><code>void <strong>addAll</strong>(Array
<em>arr</em>)</code></div>
<div class="summary">
Adds all members of an array <code>arr</code> to the set in order. Each member of
<code>arr</code> replaces any member of the set equal to it, unless
<code>replaceDuplicateKey</code> was set to <code>false</code> in the constructor, in
which case the original value is left in place.
</div>
</li>
<li class="method">
<div class="methodsignature"><code>Array <strong>values</strong>()</code></div>
<div class="summary">
<p>
Returns an array containing all the members of the set in unspecified order.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>void <strong>remove</strong>(mixed
<em>key</em>)</code></div>
<div class="summary">
<p>
Removes the specified value from the set.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>Boolean <strong>contains</strong>(mixed
<em>value</em>)</code></div>
<div class="summary">
<p>
Returns whether the set contains the specified value.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>void <strong>clear</strong>()</code></div>
<div class="summary">
<p>
Removes all members from the set.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>Number <strong>size</strong>()</code></div>
<div class="summary">
<p>
Returns the number of members contained in the set.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>Boolean <strong>isEmpty</strong>()</code></div>
<div class="summary">
<p>
Returns <code>true</code> if the set contains no members, <code>false</code>
otherwise.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>Boolean <strong>isSubsetOf</strong>(HashSet
<em>set</em>)</code></div>
<div class="summary">
<p>
Returns <code>true</code> if every member this set is also a member of
<code>set</code>, <code>false</code> otherwise.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>HashSet <strong>clone</strong>()</code></div>
<div class="summary">
<p>
Creates and returns a shallow copy of the set, using the same options provided to
the set when it was constructed.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>HashSet <strong>intersection</strong>(HashSet
<em>set</em>)</code></div>
<div class="summary">
<p>
Creates and returns a new <code>HashSet</code> containing only those elements that
are contained in both this set and <code>set</code>.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>HashSet <strong>union</strong>(HashSet
<em>set</em>)</code></div>
<div class="summary">
<p>
Creates and returns a new <code>HashSet</code> containing those elements that are
contained either of or both this set and <code>set</code>.
</p>
</div>
</li>
<li class="method">
<div class="methodsignature"><code>HashSet <strong>complement</strong>(HashSet
<em>set</em>)</code></div>
<div class="summary">
<p>
Creates and returns a new <code>HashSet</code> containing those elements that are
contained in this set but not <code>set</code>.
</p>
</div>
</li>
</ul>
<p class="linktotop">
<a href="#container">Top</a>
</p>
</div>
</div>
<div id="footer">
Written by <NAME>. <a href="mailto:<EMAIL>"><EMAIL></a>
<br>
<span class="jsh">jshashtable</span> is distributed under the
<a href="http://www.apache.org/licenses/LICENSE-2.0.html" title="Apache License, Version 2.0">Apache
License, Version 2.0</a>
</div>
</div>
</body>
</html>
| html |
After the conclusion of the gala IPL final around two weeks back, now the primary question ..
Why Team India’s senior cricketers should get another chance?
The announcement of the Indian squad for the Bangladesh tour made it clear that India’s ..
Indian Cricket team for the next month’s Bangladesh tour has been announced by the five- ..
In almost two weeks’ time, the 2015 ICC World Cup is set to begin in Australia-New Zeala ..
Can India retain the ICC Cricket World Cup 2015?
The announcement of 30 member Indian squad for the forthcoming ICC Cricket World Cup 2015 ..
The Indian selectors have a habit of throwing up surprises whenever they meet and they did ..
When you are weakened by your strength, then you should look at old warriors for help and ..
Before the team selection meeting, India was taken aback by the news of Indian captain MS ..
Once you beat someone so hard in your home, you must expect revenge from them on their hom ..
The Delhi team cannot be called Daredevils anymore, there is nothing daring about the team ..
| english |
Plastike Melamine Cute Kubyina Injangwe Igishushanyo Cyimbwa Yimbwa Ibikombe Ibikoko & Ibigaburo Ibikombe, Ibikombe & Pail Byabigenewe Byacapwe CMYK Icapiro.
- .Ifata amaunci 8 y'ibiryo byumye cyangwa bitose kugirango wirinde kugaburira cyane.ibyoroshye koza.
- BYOROSHE GUKORESHA: Ibi bikombe byamatungo byinjangwe biraramba kuruta ibikombe byinjangwe.Ntibasakuza cyane nk'ibyombo by'injangwe zidafite ingese kandi ntibakurura impumuro nk'ibikombe by'amatungo ya plastiki.Dishwasher umutekano.Ntugakoreshe microwave.
- ▶ AMAFARANGA YISUBIZO KUGARUKA: Niba utanyuzwe nibicuruzwa byacu, nyamuneka twandikire kugirango tubisimbuze cyangwa dusubizwe.ibyanyuzwe nibyo dushyira imbere.
Icyambu: Fuzhou, Xiamen, Ningbo, Shanghai, Shenzhen ..
| english |
<reponame>valerino/rv6502emu
/*
* Filename: /src/utils.rs
* Project: rv6502emu
* Created Date: 2021-08-11, 09:16:30
* Author: valerino <<EMAIL>>
* Copyright (c) 2021 valerino
*
* MIT License
*
* Copyright (c) 2021 valerino
*
* 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.
*/
use crate::cpu::addressing_modes::AddressingMode;
use crate::cpu::cpu_error::CpuError;
use crate::cpu::opcodes::OpcodeMarker;
use crate::cpu::opcodes::OPCODE_MATRIX;
use crate::cpu::Cpu;
use log::*;
/**
* simply check bit 7 for signed/unsigned byte
*/
pub(crate) fn is_signed(n: u8) -> bool {
if (n & 0x80) == 0 {
return false;
}
true
}
/**
* returns 1 if string is prepended with $, 0 otherwise.
*/
pub(crate) fn is_dollar_hex(v: &str) -> usize {
if v.chars().next().unwrap_or_default() != '$' {
return 0;
}
return 1;
}
/**
* activate logging on stdout through env_logger (max level).
*/
pub(crate) fn enable_logging_internal(enable: bool) {
if enable == true {
let _ = env_logger::builder()
.filter_level(log::LevelFilter::max())
.try_init();
log::set_max_level(log::LevelFilter::max());
} else {
let _ = env_logger::builder()
.filter_level(log::LevelFilter::Off)
.try_init();
log::set_max_level(log::LevelFilter::Off);
}
}
/**
* check if log is enabled
*/
pub(crate) fn log_enabled() -> bool {
log::max_level() == Level::max()
}
/**
* display opcode string, currently implemented to stdout
*/
pub(crate) fn debug_out_opcode<A: AddressingMode>(
c: &mut Cpu,
opcode_name: &str,
) -> Result<(), CpuError> {
if log_enabled() {
let opc_string = A::repr(c, opcode_name)?;
println!("\t{}", opc_string);
}
Ok(())
}
/**
* display registers and cycles, currently implemented to stdout
*/
pub(crate) fn debug_out_registers(c: &Cpu) {
println!("\t{}, cycles={}", c.regs, c.cycles);
}
/**
* prints the opcode table, for debugging ....
*/
#[allow(dead_code)]
pub fn debug_out_opcode_table() {
let mut c = 0;
for (i, item) in OPCODE_MATRIX.iter().enumerate() {
let mrk: OpcodeMarker = item.3;
print!(
"{}0x{:02x}={}({})",
if i & 0xf == 2
|| i & 0xf == 3
|| i & 0xf == 4
|| i & 0xf == 7
|| i & 0xf == 0xb
|| i & 0xf == 0xc
|| i & 0xf == 0xf
{
// indicates specific 65c02 opcode, or change to standard 6502 opcode in 65c02
// http://6502.org/tutorials/65c02opcodes.html
"**"
} else {
""
},
i,
mrk.name,
mrk.id
);
if c == 15 {
print!("\n");
c = 0;
} else {
print!(",");
c += 1;
}
}
print!("\n");
}
| rust |
<reponame>medialab/climateDebateExplorer<filename>ENB-data/enb_section_jsons/enb12134e_12.json<gh_stars>0
{
"actors": [
"Group of 77"
],
"countries": [
"Saudi Arabia",
"China"
],
"enb_end_date": "14-Jun-00",
"enb_long_title": "TWELFTH SESSION OF THE SUBSIDIARY BODIES OF THE UNFCCC",
"enb_short_title": "SB-12",
"enb_start_date": "14-Jun-00",
"enb_url": "http://www.iisd.ca/vol12/enb12134e.html",
"id": "enb12134e_12",
"section_title": "ARTICLES 5, 7 & 8",
"sentences": [
"Delegates discussed the revised Chairs' draft conclusions on Guidelines under Protocol Articles 5, 7 and 8.",
"SAUDI ARABIA, for the G-77/CHINA, disagreed with the draft conclusions that propose forwarding guidelines for national systems under Article 5.1 (national systems) for consideration by SBI-13.",
"He requested more time for consideration of the guidelines.",
"Several delegates underscored the need to move forward as planned, noting that the guidelines have been under consideration for several months.",
"In response to a request by Co-Chair Paciornik, the G-77/CHINA agreed to discuss, consult and provide feedback.",
"Delegates then discussed minor changes to the remaining conclusions.",
"The Secretariat highlighted the structure of a draft COP-6 decision, which would recommend the adoption of guidelines for national systems under Article 5.1 by COP/MOP-1."
],
"subtype": "",
"topics": [],
"type": ""
} | json |
import * as commonDefsSchema from './common_defs.schema.json';
import * as authLoginSchema from './AUTH/AUTH__LOGIN.schema.json';
import * as pageViewSchema from './PAGE/PAGE__VIEW.schema.json';
/**
* List of all possible analytics event types associated with
* their validating json schema.
*
* Schema keys coorespond to specific events types and should
* be in the format of <scope>__<action>, with a em dash delimeter.
*
* <scope> is the specific UI/application area the event
* was fired from (STUDY_LIST, BUTTON, STUDY_CARD, etc.)
*
* <action> is the especifc event that was performed within that scope
* (CLICK, HOVER, SEARCH, etc)PE
*
* Schema keys then get translated into event constants in src/analtyicsTracking/index.js
*/
const schemas = {
LOG_TEST: {description: 'sent in test and ci environments'},
common_definitions: commonDefsSchema.default,
// page view
PAGE__VIEW: pageViewSchema.default,
// auth
AUTH__LOGIN: authLoginSchema.default,
AUTH__LOGOUT: {no: 'event props'},
};
export default schemas;
| javascript |
La Salle University, private, coeducational institution of higher learning in Philadelphia, Pennsylvania, U.S. It is operated by the Christian Brothers, a teaching order of the Roman Catholic church. It comprises schools of Arts and Sciences, Business Administration, and Nursing, offering a range of bachelor’s and master’s degree programs in nursing, education, business, computer sciences, central and eastern European studies, and other areas. Students can spend a year of study in Switzerland or Spain. The university has a cooperative relationship with nearby Chestnut Hill College, a Catholic college for women. Total enrollment is approximately 6,300.
The university was founded in 1863 and named for St. Jean-Baptiste de La Salle, founder of the Christian Brothers. The university occupied several locations throughout Philadelphia before settling on a portion of Belfield Farm, the former home of the painter Charles Willson Peale. Women were first admitted as full-time students in 1970.
| english |
Priyanka Gandhi Vadra has been tasked with organising the "Haath Se Haath Jodo" campaign across the nation, with a focus on women in particular. Sources informed that Priyanka would lead a wave of marches with women cadres in March, focussing on rising inflation and its impact on the public, especially the middle class.
After a nine-day winter hiatus from Uttar Pradesh, the "Bharat Jodo Yatra" led by Congress leader Rahul Gandhi will continue today. Over 3,000 kilometres have been marched during the yatra's more than 110-day journey. Before the break, the yatra travelled from the southern states to Rajasthan and Delhi.
The Yatra has so far travelled across sections of Tamil Nadu, Kerala, Karnataka, Andhra Pradesh, Telangana, Madhya Pradesh, Rajasthan, Maharashtra, and Haryana. It began on September 7 at Kanyakumari. Jammu and Kashmir will serve as its finale.
According to the Congress, it is the longest foot march by an Indian politician in Indian history. In the meantime, the Congress is preparing to launch the "Haath Se Haath Jodo" campaign, which is intended to spread the message of the yatra across the nation, after the ongoing "Bharat Jodo Yatra," which is to culminate in Srinagar on January 26.
With this yatra, Rahul Gandhi hopes to mobilise the party cadre and unite the general public against the BJP's "divisive politics in the country. "
Priyanka Gandhi Vadra, national general secretary of the AICC, has reportedly been given the task of directing the "Haath Se Haath Jodo" campaign across the nation with an emphasis on women by the former president of the Congress.
"After the Bharat Jodo Yatra, the Congress will begin a two-month "Hath Se Hath Jodo Campaign," according to Congress national secretary KC Venugopal.
Priyanka Gandhi Vadra will direct marches and rallies on foot with female participants in each state capital as part of this campaign to promote the word about the "Bharat Jodo Yatra. " Priyanka will lead a wave of marches in March with women cadres, focusing on growing inflation and its effects on the general population, especially the middle class, according to further sources.
Other female-related topics will also be a major focal point. Priyanka is the face of the Congress campaign, which aims to win over women voters, who make up almost 50% of the electorate. | english |
<filename>PopSyn/IPF_Setup.cpp
//*********************************************************
// IPF_Setup.cpp - initialize the IPF classes
//*********************************************************
#include "PopSyn.hpp"
//---------------------------------------------------------
// IPF_Setup
//---------------------------------------------------------
void PopSyn::IPF_Setup (Household_Model *model_ptr)
{
int i, attributes;
Attribute_Type *at_ptr;
//---- clear memory ----
ipf_data.Clear ();
//---- copy the attribute types ----
attributes = model_ptr->Num_Attributes ();
for (i=1; i <= attributes; i++) {
at_ptr = model_ptr->Attribute (i);
if (!ipf_data.Add_Attribute (at_ptr->Num_Types ())) {
Error ("Adding IPF Attribute");
}
}
//---- set data cells ----
if (!ipf_data.Set_Cells ()) {
Error ("Creating IPF Cells");
}
//---- initialize the stage2 process ----
if (!stage2_data.Set_Stage_Two (&ipf_data)) {
Error ("Creating Stage2 Data");
}
//---- sum the zone targets and normalize the weights ----
model_ptr->Sum_Targets ();
}
| cpp |
Former Blaugrana president Josep Maria Bartomeu has claimed that it was a 'mistake' for Barcelona to let Lionel Messi leave Camp Nou in 2020.
Bartomeu said that he would only have allowed the Argentine to depart Camp Nou for MLS or Asia.
The stance was taken in 2020 when the six-time Ballon d'Or first made a push for the exits, with Messi informing that he would not be freed from the final year of a lucrative contract. However, that deal was eventually run down and Messi leaving for Ligue 1 heavyweights Paris Saint-Germain.
"It is a mistake to let Messi go. He represents much more than a footballer," the Goal. com report said quoting Bartomeu.
PSG was an obvious choice for Messi, given their spending power and the presence of Neymar and Kylian Mbappe at Parc des Princes, but Bartomeu is still disappointed to see a Barca legend in France.
"I have always thought that Messi is very important to our club, Barca is also very important to him and it would be a serious problem if he left, as I think it has become now," said Bartomeu.
"I told him that if he wanted to go like Xavi and Iniesta, to Qatar, China or the United States, we can talk about it and we will do a tribute and a farewell. But Messi didn't have a team yet and he wanted to be free," he added.
(Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. ) | english |
{
"id": 56951717,
"name": "eportmon",
"fullName": "sandipchitale/eportmon",
"owner": {
"login": "sandipchitale",
"id": 3310939,
"avatarUrl": "https://avatars1.githubusercontent.com/u/3310939?v=3",
"gravatarId": "",
"url": "https://api.github.com/users/sandipchitale",
"htmlUrl": "https://github.com/sandipchitale",
"followersUrl": "https://api.github.com/users/sandipchitale/followers",
"subscriptionsUrl": "https://api.github.com/users/sandipchitale/subscriptions",
"organizationsUrl": "https://api.github.com/users/sandipchitale/orgs",
"reposUrl": "https://api.github.com/users/sandipchitale/repos",
"receivedEventsUrl": "https://api.github.com/users/sandipchitale/received_events",
"type": "User"
},
"private": false,
"htmlUrl": "https://github.com/sandipchitale/eportmon",
"description": "A simple electron based Portmon",
"fork": false,
"url": "https://api.github.com/repos/sandipchitale/eportmon",
"forksUrl": "https://api.github.com/repos/sandipchitale/eportmon/forks",
"teamsUrl": "https://api.github.com/repos/sandipchitale/eportmon/teams",
"hooksUrl": "https://api.github.com/repos/sandipchitale/eportmon/hooks",
"eventsUrl": "https://api.github.com/repos/sandipchitale/eportmon/events",
"tagsUrl": "https://api.github.com/repos/sandipchitale/eportmon/tags",
"languagesUrl": "https://api.github.com/repos/sandipchitale/eportmon/languages",
"stargazersUrl": "https://api.github.com/repos/sandipchitale/eportmon/stargazers",
"contributorsUrl": "https://api.github.com/repos/sandipchitale/eportmon/contributors",
"subscribersUrl": "https://api.github.com/repos/sandipchitale/eportmon/subscribers",
"subscriptionUrl": "https://api.github.com/repos/sandipchitale/eportmon/subscription",
"mergesUrl": "https://api.github.com/repos/sandipchitale/eportmon/merges",
"downloadsUrl": "https://api.github.com/repos/sandipchitale/eportmon/downloads",
"deploymentsUrl": "https://api.github.com/repos/sandipchitale/eportmon/deployments",
"createdAt": "2016-04-24T03:14:01.000Z",
"updatedAt": "2016-04-24T03:14:09.000Z",
"pushedAt": "2016-04-26T01:12:32.000Z",
"gitUrl": "git://github.com/sandipchitale/eportmon.git",
"sshUrl": "git@github.com:sandipchitale/eportmon.git",
"cloneUrl": "https://github.com/sandipchitale/eportmon.git",
"svnUrl": "https://github.com/sandipchitale/eportmon",
"homepage": null,
"size": 28,
"stargazersCount": 0,
"watchersCount": 0,
"language": "JavaScript",
"hasIssues": true,
"hasDownloads": true,
"hasWiki": true,
"hasPages": false,
"forksCount": 0,
"mirrorUrl": null,
"openIssuesCount": 0,
"openIssues": 0,
"watchers": 0,
"defaultBranch": "master",
"permissions": {
"admin": false,
"push": false,
"pull": true
},
"license": null,
"networkCount": 0,
"subscribersCount": 0,
"status": 200,
"packageJSON": {
"name": "portmon",
"version": "1.0.0",
"description": "A desktop portmon",
"main": "main.js",
"scripts": {
"start": "electron main.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sandipchitale/eportmon.git"
},
"keywords": [
"Electron",
"portmon",
"netstat"
],
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/sandipchitale/eportmon/issues"
},
"homepage": "https://github.com/sandipchitale/eportmon/#readme",
"devDependencies": {
"electron-prebuilt": "^0.37.0"
},
"dependencies": {
"angular": "^1.5.5",
"bootstrap": "^3.3.6",
"jquery": "^2.2.3"
}
},
"packageStatus": 200,
"firstCommit": {
"sha": "6c69caa11206d47e922492546bcf14104901f093",
"commit": {
"author": {
"name": "<NAME>",
"email": "<EMAIL>",
"date": "2016-04-24T03:13:36Z"
},
"committer": {
"name": "<NAME>",
"email": "<EMAIL>",
"date": "2016-04-24T03:13:36Z"
},
"message": "Initial commit",
"tree": {
"sha": "35d3f80c3ce41972d4ee58ee257f7a3a78737b06",
"url": "https://api.github.com/repos/sandipchitale/eportmon/git/trees/35d3f80c3ce41972d4ee58ee257f7a3a78737b06"
},
"url": "https://api.github.com/repos/sandipchitale/eportmon/git/commits/6c69caa11206d47e922492546bcf14104901f093",
"commentCount": 0
}
},
"filename": "sandipchitale___eportmon.json",
"hasProjects": true,
"lastFetchedAt": "2017-05-04T19:57:42.800Z",
"packageLastFetchedAt": "2017-05-04T22:32:30.578Z"
} | json |
The first sign of the coming U.S. air raid was when the enemy radar and air-defense missile sites began exploding. The strikers were Air Force F-22 Raptor stealth fighters, flying unseen and faster than the speed of sound, 50,000 feet over the battlefield. Having emptied their weapons bays of super-accurate, 250-pound Small Diameter Bombs, the Raptors turned to engage enemy jet fighters rising in defense of their battered allies on the ground.
That's when all hell broke loose. As the Raptors smashed the enemy jets with Amraam and Sidewinder missiles, nimble Air Force F-16s swooped in to reinforce the F-22s, launching their own air-to-air missiles and firing guns to add to the aerial carnage.
With enemy defenses collapsing, B-1 bombers struck. Several of the 150-ton, swing-wing warplanes, having flown 10 hours from their base in South Dakota, launched radar-evading Jassm cruise missiles that slammed into ground targets, pulverizing them with their 2,000-pound warheads. Its weapons expended, the strike force streaked away. Behind it, the enemy's planes and ground forces lay in smoking ruin.
The devastating air strike on April 4 involved real warplanes launching a mix of real and computer-simulated weapons at mock targets scattered across the U.S. military's vast Joint Pacific Alaska Range Complex near Fort Yukon, a tiny former fur trading post, population 583. "Operation Chimichanga," as the exercise was reportedly designated, was the first-ever test of a new Air Force long-range strike team combining upgraded Lockheed Martin F-22s and Boeing B-1s carrying the latest air-launched munitions, along with old-school fighters, tankers and radar planes for support.
Officially, Operation Chimichanga was meant "to validate the long-range strike capability of the B-1s as well as the F-22s' and F-16s' ability to escort them into an anti-access target area," according to Lt. Col. Joseph Kunkel, commander of the Alaska-based Raptor squadron with the latest "Increment 3.1" upgrade.
Unofficially, the exercise was a proof-of-concept for the Air Force's evolving tactics for battling China over the vast western Pacific. Of course, the Air Force would never say that. In fact, the flying branch has said very little about Operation Chimichanga, aside from an official news story containing few details. We know when and where the exercise took place, which planes were involved and, to a lesser extent, which munitions. The scenario described above is largely a recreation based on these known facts plus years of aerospace reporting and a general understanding of the Air Force's methods and aims.
While the Alaska test apparently proved that the stealthy strike team can defeat determined enemy forces at long range, it also underscored America's vulnerability against the fast-growing Chinese military. It takes the latest stealth fighters and upgraded bombers flying as a team to beat China, and thanks to developmental problems America has only so many of those airplanes to work with.
For more than a decade the Air Force has been quietly preparing for the unthinkable: a full-scale war with China. For such a conflict to occur, multiple layers of diplomatic and economic safeguards would have to simultaneously fail. In other words, war with China is as unlikely as it is unthinkable. All the same, as China grows more powerful, America boosts its own weaponry to keep pace. "The peace of East Asia has largely been kept by the very conspicuous presence of American military power," Jonathan Levine notes in The National Interest.
America's Pacific arsenal -- 100,000 forward-deployed troops, 100 warships and thousands of warplanes -- suffered somewhat from the resource-intensive wars in Iraq and Afghanistan. But with those wars ended or ending, Washington has pivoted back towards the western Pacific. U.S. Pacific Command is getting a greater share of American submarines, aircraft carriers, Littoral Combat Ships, stealth fighters and drones.
The Air Force's roughly 150 B-1, B-2 and B-52 bombers will play a bigger role, too. Originally designed to drop nuclear bombs on the Soviet Union, in recent years all three models have been upgraded with new sensors, better communications and conventional weaponry including smart bombs, bunker-busters and cruise missiles.
Bomber tactics have gotten a refresh, too. In 2003, the Air Force began posting bomber squadrons to Guam on a rotating basis, putting them within quick flying range of China. A year later, Danger Room pal Lt. Gen. Dave Deptula, now retired, helped organize the first-ever test sinking of a warship by a Boeing B-52 carrying smart bombs.
The 60 B-1s, normally based in Texas and South Dakota, have spent much of the last decade flying close air support over Iraq and Afghanistan. The ebbing of the those air campaigns freed up the 150-foot-long planes for other assignments. Last year two B-1s flew an epic, 24-hour mission from South Dakota to Libya, striking no fewer than 100 ground targets -- a feat that required careful coordination and a mountain of paperwork by the different commands involved. Operation Chimichanga a year later was meant to see whether the same methods could work over the Pacific.
In parallel, the Air Force has tweaked the B-1's equipment specifically for its new Pacific role. Last fall the flying branch added new GBU-54 Laser JDAMs, a version of the classic satellite-guided bomb that has also has laser guidance for last-minute adjustments -- the kind you'd need to hit a moving ship. "It's the first weapon where you can control it after it's left the jet," Capt. Alicia Datzman, a B-1 crewmember, tells Danger Room.
But it's the new Joint Air-to-Surface Standoff Missile, built by Lockheed, that could prove the most important in any future war against China. The B-1 is only moderately stealthy. "We're about the size of an F-16 on radar," says Col. David Been, commander of the 7th Bomb Wing at Dyess Air Force Base in Texas. "But we're by no means low-observable." That means the 1980s-vintage bomber needs to stay outside the range of China's deadly surface-to-air missiles, such as the HQ-15. The Jassm, which comes in 200-mile-range and 600-mile-range versions, can strike targets from farther away than the HQ-15 can defend. The B-1 can carry 24 of the cruise missiles, more than any other plane.
China is steadily improving its air defenses. To make sure the bombers can get through, the Air Force plans to send fully-stealthy warplanes in first. The Northrop Grumman B-2 stealth bomber is the ideal trailblazer, as it proved over Libya when three B-2s knocked out the bulk of Libya's radars, missiles and airfields in a single pass. But the Air Force possesses just 20 B-2s, only a handful of which are combat-ready at any moment.
So the F-22 fills in. With the latest Increment 3.1 upgrade, the F-22s can lob 250-pound, Boeing-built Small Diameter Bombs at least 60 miles with pinpoint accuracy, a capability apparently tested out during Operation Chimichanga. The Raptor-bomb combo "was critical to follow-on forces completing their missions," F-22 commander Kunkel said.
But even the F-22 is in short supply. So far only one Alaska-based squadron has the Increment 3.1 Raptors. When the upgrade is complete, around 150 F-22s will be able to carry the tiny, precise bomb -- still a relatively small force for taking on potentially thousands of Chinese radars, missiles and jet fighters. The smaller F-35 Joint Strike Fighter is supposed to give the Air Force stealth capability in large numbers, but the F-35 is tens of billions of dollars over-budget and five years behind schedule.
In 2006, the Air Force launched an effort to build as many as 100 new stealth bombers. But the Next Generation Bomber experienced its own out-of-control cost growth. Then-Secretary of Defense Robert Gates canceled the new bomber in 2009 and told the Air Force to start from scratch.
With the approval of current Defense Secretary Leon Panetta, last year the flying branch initiated development of the Long-Range Strike Bomber, a slightly down-graded version of the Next-Generation Bomber. Allegedly, it will cost just $550 million per copy -- a fraction what the B-2 cost. (Although many military observers believe the new bomber's price tag will grow significantly.) If and when the new bomber enters service sometime in the 2020s, it could significantly shift the Pacific balance of power.
In the meantime, teamwork is the key. The Army, Navy, Air Force and Marines are working on AirSea Battle, a new playbook for combining their forces in Pacific combat. In that spirit, B-1s and other upgraded bombers will fly and fight alongside the latest F-22s and other warplanes, relying on new weapons and coordinated tactics to make up for a paucity of stealth. If Operation Chimichanga is any indication, these methods are deadly effective.
Let's just hope we never need to use them.
| english |
<reponame>Kamilczak020/openapi-generator-api<gh_stars>0
export * from './openapi.service';
| typescript |
<gh_stars>0
#pragma once
#include "adc/make.hpp" | cpp |
<filename>appsettings.json
{
"ConnectionStrings": {
//"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Redes_De_Solidaridad-CF07ED3E-CF76-4167-8D29-D3F567BA15BE;Trusted_Connection=True;MultipleActiveResultSets=true"
//Cadena de conexion a base de datos
"DefaultConnection": "server=localhost;port=3306;user=root;password=;database=centrosescolares3",
//"DefaultConnection": "server=sql3.freemysqlhosting.net;port=3306;user=sql3353483;password=<PASSWORD>;database=sql3353483"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
| json |
<filename>openmdao/solvers/brent.py
""" Brent Nonlinear solver."""
from six import iteritems
from math import isnan
import numpy as np
from scipy.optimize import brentq
from openmdao.core.system import AnalysisError
from openmdao.solvers.solver_base import NonLinearSolver
from openmdao.util.record_util import update_local_meta, create_local_meta
class Brent(NonLinearSolver):
"""Root finding using Brent's method. This is a specialized solver that
can only converge a single scalar residual. You must specify the name
of the state-variable/residual via the `state_var` option. You must also
give either `lower_bound` and `upper_bound` or `var_lower_bound`
and `var_upper_bound`.
Options
-------
options['err_on_maxiter'] : bool(False)
If True, raise an AnalysisError if not converged at maxiter.
options['iprint'] : int(0)
Set to 0 to print only failures, set to 1 to print iteration totals to
stdout, set to 2 to print the residual each iteration to stdout,
or -1 to suppress all printing.
options['maxiter'] : int(100)
if convergence is not achieved in maxiter iterations, and error is raised. Must be >= 0.
options['rtol'] : float64(4.4408920985e-16)
The routine converges when a root is known to lie within rtol times the value returned of the value returned. Should be >= 0. Defaults to np.finfo(float).eps * 2.
options['state_var'] : str('')
name of the state-variable/residual the solver should with
options['state_var_idx'] : int(0)
Index into state_var if it is a vector
options['upper_bound'] : float(100.0)
upper bound for the root search
options['lower_bound'] : float(0.0)
lower bound for the root search
options['var_lower_bound'] : str('')
if given, name of the variable to pull the lower bound value from.This variable must be a parameter on of of the child components of the containing system
options['var_upper_bound'] : str('')
if given, name of the variable to pull the upper bound value from.This variable must be a parameter on of of the child components of the containing system
options['xtol'] : int(0)
The routine converges when a root is known to lie within xtol of the value return. Should be >= 0. The routine modifies this to take into account the relative precision of doubles.
"""
def __init__(self):
super(Brent, self).__init__()
opt = self.options
opt.add_option('xtol', 0,
desc='The routine converges when a root is known to lie within xtol of the value return. Should be >= 0. '
'The routine modifies this to take into account the relative precision of doubles.')
opt.add_option('rtol', np.finfo(float).eps * 4.,
desc='The routine converges when a root is known to lie within rtol times the value returned of '
'the value returned. Should be >= 0. Defaults to np.finfo(float).eps * 4.')
opt.add_option('maxiter', 100,
desc='if convergence is not achieved in maxiter iterations, and error is raised. Must be >= 0.')
opt.add_option('state_var', '', desc="name of the state-variable/residual the solver should with")
opt.add_option('state_var_idx', 0, desc="Index into state_var if it is a vector.")
opt.add_option('lower_bound', 0., desc="lower bound for the root search")
opt.add_option('upper_bound', 100., desc="upper bound for the root search")
opt.add_option('var_lower_bound', '', desc='if given, name of the variable to pull the lower bound value from.'
'This variable must be a parameter on of of the child components of the containing system')
opt.add_option('var_upper_bound', '', desc='if given, name of the variable to pull the upper bound value from.'
'This variable must be a parameter on of of the child components of the containing system')
# we renamed max_iter to maxiter to match all the other solvers
opt._add_deprecation('max_iter', 'maxiter')
self.xstar = None
self.print_name = 'BRENT'
self.basenorm = 0.0
def setup(self, sub):
""" Initialization
Args
----
sub: `System`
System that owns this solver.
"""
if self.options['state_var'].strip() == '':
pathname = 'root' if sub.pathname=='' else sub.pathname
msg = "'state_var' option in Brent solver of %s must be specified" % pathname
raise ValueError(msg)
# TODO: check to make sure that variable is a scalar
self.s_var_name = self.options['state_var']
self.var_lower_bound = None
var_lower_bound = self.options['var_lower_bound']
if var_lower_bound.strip() != '':
for var_name, meta in iteritems(sub.params):
if meta['top_promoted_name'] == var_lower_bound:
self.var_lower_bound = var_name
break
if self.var_lower_bound is None:
raise(ValueError("'var_lower_bound' variable '%s' was not found as a parameter on any component in %s"%(var_lower_bound, sub.pathname)))
self.var_upper_bound = None
var_upper_bound = self.options['var_upper_bound']
if var_upper_bound.strip() != '':
for var_name, meta in iteritems(sub.params):
if meta['top_promoted_name'] == var_upper_bound:
self.var_upper_bound = var_name
break
if self.var_upper_bound is None:
raise(ValueError("'var_lower_bound' variable '%s' was not found as a parameter on any component in %s"%(var_upper_bound, sub.pathname)))
def solve(self, params, unknowns, resids, system, metadata=None):
""" Solves the system using the Brent Method.
Args
----
params : `VecWrapper`
`VecWrapper` containing parameters. (p)
unknowns : `VecWrapper`
`VecWrapper` containing outputs and states. (u)
resids : `VecWrapper`
`VecWrapper` containing residuals. (r)
system : `System`
Parent `System` object.
metadata : dict, optional
Dictionary containing execution metadata (e.g. iteration coordinate).
"""
self.sys = system
self.metadata = metadata
self.local_meta = create_local_meta(self.metadata, self.sys.pathname)
self.sys.ln_solver.local_meta = self.local_meta
idx = self.options['state_var_idx']
if self.var_lower_bound is not None:
lower = params[self.var_lower_bound]
else:
lower = self.options['lower_bound']
if self.var_upper_bound is not None:
upper = params[self.var_upper_bound]
else:
upper = self.options['upper_bound']
kwargs = {'maxiter': self.options['maxiter'],
'a': lower,
'b': upper,
'full_output': False, # False, because we don't use the info, so just wastes operations
'args': (params, unknowns, resids)
}
if self.options['xtol']:
kwargs['xtol'] = self.options['xtol']
if self.options['rtol'] > 0:
kwargs['rtol'] = self.options['rtol']
# Brent's method
self.iter_count = 0
# initial run to compute initial_norm
self.sys.children_solve_nonlinear(self.local_meta)
self.recorders.record_iteration(system, self.local_meta)
# Evaluate Norm
self.sys.apply_nonlinear(params, unknowns, resids)
self.basenorm = resid_norm_0 = abs(resids._dat[self.s_var_name].val[idx])
failed = False
try:
xstar = brentq(self._eval, **kwargs)
except RuntimeError as err:
msg = str(err)
if 'different signs' in msg:
raise
failed = True
self.sys = None
resid_norm = abs(resids._dat[self.s_var_name].val[idx])
if self.options['iprint'] > 0:
if not failed:
msg = 'Converged'
self.print_norm(self.print_name, system, self.iter_count,
resid_norm, resid_norm_0, msg=msg)
if failed and self.options['err_on_maxiter']:
raise AnalysisError(msg)
def _eval(self, x, params, unknowns, resids):
"""Callback function for evaluating f(x)"""
idx = self.options['state_var_idx']
self.iter_count += 1
update_local_meta(self.local_meta, (self.iter_count, ))
unknowns._dat[self.s_var_name].val[idx] = x
self.sys.children_solve_nonlinear(self.local_meta)
self.sys.apply_nonlinear(params, unknowns, resids)
self.recorders.record_iteration(self.sys, self.local_meta)
if self.options['iprint'] == 2:
normval = abs(resids._dat[self.s_var_name].val[idx])
self.print_norm(self.print_name, self.sys, self.iter_count, normval,
self.basenorm)
return resids._dat[self.s_var_name].val[idx]
| python |
import * as knockout from "knockout";
import { AppViewModel } from "./components/app";
// Create the element we will mount to
let app = document.createElement('div');
app.setAttribute("data-bind", "component:{ name: 'app'}");
document.body.appendChild(app);
var appViewModel = new AppViewModel({});
knockout.applyBindings(appViewModel, app); | typescript |
import { useState } from "react";
/**
*
* Custom hook which returns a boolean state and a state toggle function.
*
* @param {boolean} initialValue Initial value of the state.
* @returns {Array} Array containing boolean state and a state toggle function.
*/
const useToggle = (initialValue) => {
const [value, setValue] = useState(initialValue);
const toggleValue = () => {
setValue((currentValue) => !currentValue);
};
return [value, toggleValue];
};
export default useToggle;
| javascript |
<gh_stars>1-10
{"media_id": "77484174", "local_id": "NR029\n", "title": "File:Olga_Raphael-Linden_in_Titus_at_Dramatiska_teatern_1911_-_SMV_-_NR029.tif", "thumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Olga_Raphael-Linden_in_Titus_at_Dramatiska_teatern_1911_-_SMV_-_NR029.tif/500px-Olga_Raphael-Linden_in_Titus_at_Dramatiska_teatern_1911_-_SMV_-_NR029.tif.jpg", "desc": " <NAME> som En backant i pj\u00e4sen Titus, Dramatiska teatern 1911. Skannat glasnegativ\n", "auto_desc": {"translatedText": "<NAME> as A backant in the play Titus, Dramatic Theater in 1911. Scanned glass negative", "input": " <NAME> som En backant i pj\u00e4sen Titus, Dramatiska teatern 1911. Skannat glasnegativ\n"}} | json |
Akhil was last seen in Venky Atluri’s Mr Majnu which had a decent run at the box-office. The film receive mixed response form the audience, while his first two films- Akhil and Hello couldn’t weave the magic. Three film old Akhil who worked ith big banners and filmmaker couldn’t give him much needed break in his career. Currently, the buzz is that Akhil is preparing for his fort film, a sports drama, to be directed by Bommarillu Bhaskar, to be bankrolled by Allu Arjun’s Geetha Arts. However, Akhil who is struggling to give Blockbuster wants to only give his nod after his father, Nagarjuna, approves the script.
| english |
<gh_stars>0
{
"Artist": "Shull, <NAME>, 1872-1948",
"Common name": "peaches",
"Date created": "1912",
"Geographic origin": "Washington, D.C., United States",
"Notes on original": "Caused by root drowning or sour soil.",
"Physical description": "1 art original : col. ; 18 x 24 cm.",
"Scientific name": "<NAME>",
"Specimen": "622",
"Year": "1912",
"Name": "<NAME>"
} | json |
<gh_stars>1-10
/* -*- c++ -*- */
/*
* Copyright 2013,2015 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "histogram_sink_f_impl.h"
#include <gnuradio/io_signature.h>
#include <gnuradio/prefs.h>
#include <string.h>
#include <volk/volk.h>
#include <qwt_symbol.h>
namespace gr {
namespace qtgui {
histogram_sink_f::sptr
histogram_sink_f::make(int size, int bins,
double xmin, double xmax,
const std::string &name,
int nconnections,
QWidget *parent)
{
return gnuradio::get_initial_sptr
(new histogram_sink_f_impl(size, bins, xmin, xmax, name,
nconnections, parent));
}
histogram_sink_f_impl::histogram_sink_f_impl(int size, int bins,
double xmin, double xmax,
const std::string &name,
int nconnections,
QWidget *parent)
: sync_block("histogram_sink_f",
io_signature::make(0, nconnections, sizeof(float)),
io_signature::make(0, 0, 0)),
d_size(size), d_bins(bins), d_xmin(xmin), d_xmax(xmax), d_name(name),
d_nconnections(nconnections), d_parent(parent)
{
// Required now for Qt; argc must be greater than 0 and argv
// must have at least one valid character. Must be valid through
// life of the qApplication:
// http://harmattan-dev.nokia.com/docs/library/html/qt4/qapplication.html
d_argc = 1;
d_argv = new char;
d_argv[0] = '\0';
d_main_gui = NULL;
d_index = 0;
// setup PDU handling input port
message_port_register_in(pmt::mp("in"));
set_msg_handler(pmt::mp("in"),
boost::bind(&histogram_sink_f_impl::handle_pdus, this, _1));
// +1 for the PDU buffer
for(int i = 0; i < d_nconnections+1; i++) {
d_residbufs.push_back((double*)volk_malloc(d_size*sizeof(double),
volk_get_alignment()));
memset(d_residbufs[i], 0, d_size*sizeof(double));
}
// Set alignment properties for VOLK
const int alignment_multiple =
volk_get_alignment() / sizeof(gr_complex);
set_alignment(std::max(1,alignment_multiple));
initialize();
}
histogram_sink_f_impl::~histogram_sink_f_impl()
{
if(!d_main_gui->isClosed())
d_main_gui->close();
// d_main_gui is a qwidget destroyed with its parent
for(int i = 0; i < d_nconnections+1; i++) {
volk_free(d_residbufs[i]);
}
delete d_argv;
}
bool
histogram_sink_f_impl::check_topology(int ninputs, int noutputs)
{
return ninputs == d_nconnections;
}
void
histogram_sink_f_impl::initialize()
{
if(qApp != NULL) {
d_qApplication = qApp;
}
else {
#if QT_VERSION >= 0x040500
std::string style = prefs::singleton()->get_string("qtgui", "style", "raster");
QApplication::setGraphicsSystem(QString(style.c_str()));
#endif
d_qApplication = new QApplication(d_argc, &d_argv);
}
// If a style sheet is set in the prefs file, enable it here.
check_set_qss(d_qApplication);
int numplots = (d_nconnections > 0) ? d_nconnections : 1;
d_main_gui = new HistogramDisplayForm(numplots, d_parent);
d_main_gui->setNumBins(d_bins);
d_main_gui->setNPoints(d_size);
d_main_gui->setXaxis(d_xmin, d_xmax);
if(d_name.size() > 0)
set_title(d_name);
// initialize update time to 10 times a second
set_update_time(0.1);
}
void
histogram_sink_f_impl::exec_()
{
d_qApplication->exec();
}
QWidget*
histogram_sink_f_impl::qwidget()
{
return d_main_gui;
}
#ifdef ENABLE_PYTHON
PyObject*
histogram_sink_f_impl::pyqwidget()
{
PyObject *w = PyLong_FromVoidPtr((void*)d_main_gui);
PyObject *retarg = Py_BuildValue("N", w);
return retarg;
}
#else
void *
histogram_sink_f_impl::pyqwidget()
{
return NULL;
}
#endif
void
histogram_sink_f_impl::set_y_axis(double min, double max)
{
d_main_gui->setYaxis(min, max);
}
void
histogram_sink_f_impl::set_x_axis(double min, double max)
{
d_main_gui->setXaxis(min, max);
}
void
histogram_sink_f_impl::set_update_time(double t)
{
//convert update time to ticks
gr::high_res_timer_type tps = gr::high_res_timer_tps();
d_update_time = t * tps;
d_main_gui->setUpdateTime(t);
d_last_time = 0;
}
void
histogram_sink_f_impl::set_title(const std::string &title)
{
d_main_gui->setTitle(title.c_str());
}
void
histogram_sink_f_impl::set_line_label(int which, const std::string &label)
{
d_main_gui->setLineLabel(which, label.c_str());
}
void
histogram_sink_f_impl::set_line_color(int which, const std::string &color)
{
d_main_gui->setLineColor(which, color.c_str());
}
void
histogram_sink_f_impl::set_line_width(int which, int width)
{
d_main_gui->setLineWidth(which, width);
}
void
histogram_sink_f_impl::set_line_style(int which, int style)
{
d_main_gui->setLineStyle(which, (Qt::PenStyle)style);
}
void
histogram_sink_f_impl::set_line_marker(int which, int marker)
{
d_main_gui->setLineMarker(which, (QwtSymbol::Style)marker);
}
void
histogram_sink_f_impl::set_line_alpha(int which, double alpha)
{
d_main_gui->setMarkerAlpha(which, (int)(255.0*alpha));
}
void
histogram_sink_f_impl::set_size(int width, int height)
{
d_main_gui->resize(QSize(width, height));
}
std::string
histogram_sink_f_impl::title()
{
return d_main_gui->title().toStdString();
}
std::string
histogram_sink_f_impl::line_label(int which)
{
return d_main_gui->lineLabel(which).toStdString();
}
std::string
histogram_sink_f_impl::line_color(int which)
{
return d_main_gui->lineColor(which).toStdString();
}
int
histogram_sink_f_impl::line_width(int which)
{
return d_main_gui->lineWidth(which);
}
int
histogram_sink_f_impl::line_style(int which)
{
return d_main_gui->lineStyle(which);
}
int
histogram_sink_f_impl::line_marker(int which)
{
return d_main_gui->lineMarker(which);
}
double
histogram_sink_f_impl::line_alpha(int which)
{
return (double)(d_main_gui->markerAlpha(which))/255.0;
}
void
histogram_sink_f_impl::set_nsamps(const int newsize)
{
gr::thread::scoped_lock lock(d_setlock);
if(newsize != d_size) {
// Resize residbuf and replace data
for(int i = 0; i < d_nconnections+1; i++) {
volk_free(d_residbufs[i]);
d_residbufs[i] = (double*)volk_malloc(newsize*sizeof(double),
volk_get_alignment());
memset(d_residbufs[i], 0, newsize*sizeof(double));
}
// Set new size and reset buffer index
// (throws away any currently held data, but who cares?)
d_size = newsize;
d_index = 0;
d_main_gui->setNPoints(d_size);
}
}
void
histogram_sink_f_impl::set_bins(const int bins)
{
gr::thread::scoped_lock lock(d_setlock);
d_bins = bins;
d_main_gui->setNumBins(d_bins);
}
int
histogram_sink_f_impl::nsamps() const
{
return d_size;
}
int
histogram_sink_f_impl::bins() const
{
return d_bins;
}
void
histogram_sink_f_impl::npoints_resize()
{
int newsize = d_main_gui->getNPoints();
set_nsamps(newsize);
}
void
histogram_sink_f_impl::enable_menu(bool en)
{
d_main_gui->enableMenu(en);
}
void
histogram_sink_f_impl::enable_grid(bool en)
{
d_main_gui->setGrid(en);
}
void
histogram_sink_f_impl::enable_axis_labels(bool en)
{
d_main_gui->setAxisLabels(en);
}
void
histogram_sink_f_impl::enable_autoscale(bool en)
{
d_main_gui->autoScale(en);
}
void
histogram_sink_f_impl::enable_semilogx(bool en)
{
d_main_gui->setSemilogx(en);
}
void
histogram_sink_f_impl::enable_semilogy(bool en)
{
d_main_gui->setSemilogy(en);
}
void
histogram_sink_f_impl::enable_accumulate(bool en)
{
d_main_gui->setAccumulate(en);
}
void
histogram_sink_f_impl::disable_legend()
{
d_main_gui->disableLegend();
}
void
histogram_sink_f_impl::autoscalex()
{
d_main_gui->autoScaleX();
}
void
histogram_sink_f_impl::reset()
{
d_index = 0;
}
int
histogram_sink_f_impl::work(int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
int n=0, j=0, idx=0;
const float *in = (const float*)input_items[idx];
npoints_resize();
for(int i=0; i < noutput_items; i+=d_size) {
unsigned int datasize = noutput_items - i;
unsigned int resid = d_size-d_index;
idx = 0;
// If we have enough input for one full plot, do it
if(datasize >= resid) {
// Fill up residbufs with d_size number of items
for(n = 0; n < d_nconnections; n++) {
in = (const float*)input_items[idx++];
volk_32f_convert_64f_u(&d_residbufs[n][d_index],
&in[j], resid);
}
// Update the plot if its time
if(gr::high_res_timer_now() - d_last_time > d_update_time) {
d_last_time = gr::high_res_timer_now();
d_qApplication->postEvent(d_main_gui,
new HistogramUpdateEvent(d_residbufs, d_size));
}
d_index = 0;
j += resid;
}
// Otherwise, copy what we received into the residbufs for next time
// because we set the output_multiple, this should never need to be called
else {
for(n = 0; n < d_nconnections; n++) {
in = (const float*)input_items[idx++];
volk_32f_convert_64f_u(&d_residbufs[n][d_index],
&in[j], datasize);
}
d_index += datasize;
j += datasize;
}
}
return j;
}
void
histogram_sink_f_impl::handle_pdus(pmt::pmt_t msg)
{
size_t len;
pmt::pmt_t dict, samples;
// Test to make sure this is either a PDU or a uniform vector of
// samples. Get the samples PMT and the dictionary if it's a PDU.
// If not, we throw an error and exit.
if(pmt::is_pair(msg)) {
dict = pmt::car(msg);
samples = pmt::cdr(msg);
}
else if(pmt::is_uniform_vector(msg)) {
samples = msg;
}
else {
throw std::runtime_error("time_sink_c: message must be either "
"a PDU or a uniform vector of samples.");
}
len = pmt::length(samples);
const float *in;
if(pmt::is_f32vector(samples)) {
in = (const float*)pmt::f32vector_elements(samples, len);
}
else {
throw std::runtime_error("histogram_sink_f: unknown data type "
"of samples; must be float.");
}
// Plot if we're past the last update time
if(gr::high_res_timer_now() - d_last_time > d_update_time) {
d_last_time = gr::high_res_timer_now();
npoints_resize();
// Clear the histogram
if(!d_main_gui->getAccumulate()) {
d_qApplication->postEvent(d_main_gui, new HistogramClearEvent());
// Set to accumulate over length of the current PDU
d_qApplication->postEvent(d_main_gui, new HistogramSetAccumulator(true));
}
float nplots_f = static_cast<float>(len) / static_cast<float>(d_size);
int nplots = static_cast<int>(ceilf(nplots_f));
int idx = 0;
for(int n = 0; n < nplots; n++) {
int size = std::min(d_size, (int)(len - idx));
volk_32f_convert_64f_u(d_residbufs[d_nconnections], &in[idx], size);
d_qApplication->postEvent(d_main_gui,
new HistogramUpdateEvent(d_residbufs, size));
idx += size;
}
if(!d_main_gui->getAccumulate()) {
// Turn accumulation off
d_qApplication->postEvent(d_main_gui, new HistogramSetAccumulator(false));
}
}
}
} /* namespace qtgui */
} /* namespace gr */
| cpp |
<reponame>InteractiveComputerGraphics/higher_order_embedded_fem
/// Poor man's approx assertion for matrices
#[macro_export]
macro_rules! assert_approx_matrix_eq {
($x:expr, $y:expr, abstol = $tol:expr) => {{
let diff = $x - $y;
let max_absdiff = diff.abs().max();
let approx_eq = max_absdiff <= $tol;
if !approx_eq {
println!("abstol: {}", $tol);
println!("left: {}", $x);
println!("right: {}", $y);
println!("diff: {:e}", diff);
}
assert!(approx_eq);
}};
}
#[macro_export]
macro_rules! assert_panics {
($e:expr) => {{
use std::panic::catch_unwind;
use std::stringify;
let expr_string = stringify!($e);
let result = catch_unwind(|| $e);
if result.is_ok() {
panic!("assert_panics!({}) failed.", expr_string);
}
}};
}
| rust |
use drop_some::DropSome;
#[test]
fn test()
{
let x = ok_value_to_unit();
// It is NOT drop `None`.
assert_eq!(x.drop_some(), None);
}
fn ok_value_to_unit() -> Option<String>
{
// If it would be compilable then `.drop_some()` is work expectedly.
// Because, `match` must be return one value that is the same type for any patterns.
match "something"
{
// Option<i8> -> Option<()> -> ()
"pattern-x" => some_task1().drop_some()?,
// Option<'a &str> -> Option<()> -> ()
"pattern-y" => some_task2().drop_some()?,
// Option<()> -> ()
"pattern-z" => some_task3()?,
// () from the function
"pattern-w" => some_task4(),
// () defined directly
_ => ()
}
None
}
fn some_task1() -> Option<i8>
{
Some(1)
}
fn some_task2<'a>() -> Option<&'a str>
{
Some("abc")
}
fn some_task3() -> Option<()>
{
Some(())
}
fn some_task4() -> ()
{
()
}
| rust |
<gh_stars>1-10
# Firmware for the UltraSwitch Project of http://www.remoteQTH.com
This is the firmware for the remoteQth.com Ultraswitch STM5500 Version
If you need help, feel free to contact <EMAIL>
Sketch is developed with IDE Version 1.8 and later (using Visual Micro)
The idea:
Inspired from the megawebswitch project, which is a really powerful way to switch 63 sources (with on/off-Switches, grouped switches, latched switching with configurable time, switching restirctions and configurable excludes - using SD-Card for configuration), the ultraswitch was born.
The learning from the megawebswitch project was, there is too much overload with configuration and possibilities, a normal user does not need.
This is the Ultraswitch Version with ETHERNET SUPPORT ONLY! The chip used is a so called "blue pill" STM32F103C8T6. Much much faster than a normal Arduino, also faster than the ESP12F. For the basic idea, look to the github.com/ultraswitch/doc for documentation of the ultraswitch. I will add the Information and layout for the ultraswitch ethernet version later.
If you want to start: Get a STM32F103C8T6 and a W5500 Ethernet board - MCP23017 and Relay board(s) like in the Ultraswitch project.
You need th Arduino IDE, but with an additional Board: https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
To load the Code into the BluePIll, u need a USB to TTL converter. More info https://www.youtube.com/watch?v=K-jYSysmw9w
This is free software. You can redistribute it and/or modify it under the terms of Creative Commons Attribution 3.0 United States License if at least the version information says credits to remoteQTH.com :P
To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/us/
or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
Tribute to OL7M!
LLAP!
| markdown |
<reponame>daqcri/NADEEF
/*
* QCRI, NADEEF LICENSE
* NADEEF is an extensible, generalized and easy-to-deploy data cleaning platform built at QCRI.
* NADEEF means "Clean" in Arabic
*
* Copyright (c) 2011-2013, Qatar Foundation for Education, Science and Community Development (on
* behalf of Qatar Computing Research Institute) having its principle place of business in Doha,
* Qatar with the registered address P.O box 5825 Doha, Qatar (hereinafter referred to as "QCRI")
*
* NADEEF has patent pending nevertheless the following is granted.
* NADEEF is released under the terms of the MIT License, (http://opensource.org/licenses/MIT).
*/
package qa.qcri.nadeef.web.rest;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import qa.qcri.nadeef.core.datamodel.NadeefConfiguration;
import qa.qcri.nadeef.core.utils.sql.DBConnectionPool;
import qa.qcri.nadeef.tools.DBConfig;
import qa.qcri.nadeef.tools.Logger;
import qa.qcri.nadeef.tools.sql.SQLDialect;
import qa.qcri.nadeef.web.sql.SQLDialectBase;
import qa.qcri.nadeef.web.sql.SQLUtil;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;
import static spark.Spark.get;
public class WidgetAction {
private static String getSubquery(String filter) {
String sql = "VIOLATION";
if (!Strings.isNullOrEmpty(filter)) {
if (filter.startsWith(":=")) {
String vid = filter.substring(2).trim();
if (!Strings.isNullOrEmpty(vid)) {
String[] tokens = vid.split(",");
for (String token : tokens)
if (!SQLUtil.isValidInteger(token))
throw new IllegalArgumentException("Input is not valid.");
sql = "(select * from VIOLATION where vid = any(array[" + vid + "])) a";
}
} else if (filter.startsWith("?=")) {
String tid = filter.substring(2).trim();
if (!Strings.isNullOrEmpty(tid)) {
String[] tokens = tid.split(",");
for (String token : tokens)
if (!SQLUtil.isValidInteger(token))
throw new IllegalArgumentException("Input is not valid.");
sql = "(select * from VIOLATION where tid = any(array[" + tid + "])) a";
}
} else {
sql = "(select * from VIOLATION where value like '%" + filter + "%') a";
}
}
return sql;
}
public static void setup(SQLDialect dialect) {
SQLDialectBase dialectInstance = SQLDialectBase.createDialectBaseInstance(dialect);
Logger tracer = Logger.getLogger(WidgetAction.class);
get("/:project/widget/attribute", (request, response) -> {
response.type("application/json");
String filter = request.queryParams("filter");
String project = request.params("project");
if (Strings.isNullOrEmpty(project))
throw new IllegalArgumentException("Input is not valid.");
String sql =
String.format(
"select attribute, count(*) from %s group by attribute",
getSubquery(filter));
return SQLUtil.query(project, sql, true);
});
get("/:project/widget/rule", (request, response) -> {
response.type("application/json");
String project = request.params("project");
String filter = request.queryParams("filter");
if (Strings.isNullOrEmpty(project))
throw new IllegalArgumentException("Input is not valid");
String sql =
String.format(
"select rid, count(distinct(tupleid)) as tuple, count(distinct(tablename)) as tablecount " +
"from %s group by rid", getSubquery(filter));
return SQLUtil.query(project, sql, true);
});
get("/:project/widget/top/:k", (request, response) -> {
response.type("application/json");
String project = request.params("project");
String filter = request.queryParams("filter");
String k = request.params("k");
if (Strings.isNullOrEmpty(project) || Strings.isNullOrEmpty(k))
throw new IllegalArgumentException("Input is not valid");
String sql =
String.format(
"select tupleid, count(distinct(vid)) as count from %s group by tupleid " +
"order by count desc LIMIT %d", getSubquery(filter), Integer.parseInt(k));
return SQLUtil.query(project, sql, true);
});
get("/:project/widget/violation_relation", (request, response) -> {
response.type("application/json");
String project = request.params("project");
String filter = request.queryParams("filter");
if (Strings.isNullOrEmpty(project))
throw new IllegalArgumentException("Input is not valid.");
JsonObject countJson =
SQLUtil.query(project, dialectInstance.countTable("violation"), true);
JsonArray dataArray = countJson.getAsJsonArray("data");
int count = dataArray.get(0).getAsInt();
JsonObject result = null;
if (count < 120000) {
String sql =
"SELECT DISTINCT(VID), TUPLEID, TABLENAME FROM " + getSubquery(filter) + " ORDER BY VID";
result = SQLUtil.query(project, sql, true);
} else {
result = new JsonObject();
result.add("code", new JsonPrimitive(2));
}
return result;
}, new RenderResponseTransformer());
get("/:project/widget/overview", (request, response) -> {
response.type("application/json");
String project = request.params("project");
if (Strings.isNullOrEmpty(project))
throw new IllegalArgumentException("Input is not valid.");
JsonObject json = new JsonObject();
JsonArray result = new JsonArray();
DBConfig dbConfig = new DBConfig(NadeefConfiguration.getDbConfig());
dbConfig.switchDatabase(project);
try (
Connection conn = DBConnectionPool.createConnection(dbConfig, true);
Statement stat = conn.createStatement();
) {
ResultSet rs = stat.executeQuery(dialectInstance.queryDistinctTable());
List<String> tableNames = Lists.newArrayList();
while (rs.next())
tableNames.add(rs.getString(1));
rs.close();
int sum = 0;
for (String tableName : tableNames) {
rs = stat.executeQuery(dialectInstance.countTable(tableName));
if (rs.next())
sum += rs.getInt(1);
rs.close();
}
rs = stat.executeQuery(dialectInstance.countViolation());
int vcount = 0;
if (rs.next())
vcount = rs.getInt(1);
result.add(new JsonPrimitive(sum - vcount));
result.add(new JsonPrimitive(vcount));
json.add("data", result);
return json;
} catch (Exception ex) {
tracer.error("Query failed", ex);
throw new RuntimeException(ex);
}
});
}
}
| java |
<gh_stars>1-10
package tree
//给定一个完美二叉树
//
//struct Node {
// int val;
// Node *left;
// Node *right;
// Node *next;
//}
//填充它的每个 next 指针,让这个指针指向其下一个右侧节点。如果找不到下一个右侧节点,则将 next 指针设置为 NULL。
//
//初始状态下,所有 next 指针都被设置为 NULL。
type Node struct {
Val int
Left *Node
Right *Node
Next *Node
}
func connect(root *Node) *Node {
if root == nil {
return nil
}
for left := root; left.Left != nil; left = left.Left {
for node := left; node != nil; node = node.Next {
node.Left.Next = node.Right
if node.Next != nil {
node.Right.Next = node.Next.Left
}
}
}
return root
}
| go |
Monday June 29, 2020,
The Indian government on Monday banned 59 mobile apps, including China's TikTok, ShareIt, and WeChat, terming them prejudicial to sovereignty, integrity, and national security of the country.
In an official statement, the Ministry of Electronics and Information Technology (MeitY) said it has received many complaints from various sources, including several reports about the misuse of some mobile apps available on Android and iOS platforms for "stealing and surreptitiously transmitting users' data in an unauthorised manner to servers which have locations outside India. "
"The compilation of these data, its mining, and profiling by elements hostile to national security and defence of India, which ultimately impinges upon the sovereignty and integrity of India, is a matter of very deep and immediate concern which requires emergency measures," the statement said.
The Indian Cyber Crime Coordination Centre, Ministry of Home Affairs, has also sent an exhaustive recommendation for blocking these malicious apps.
"On the basis of these, and upon receiving of recent credible inputs that such Apps pose threat to sovereignty and integrity of India, the Government of India has decided to disallow the usage of certain Apps, used in both mobile and non-mobile Internet-enabled devices," it said.
The statement added that this move will "safeguard the interests of crores of Indian mobile and internet users. This decision is a targeted move to ensure the safety and sovereignty of Indian cyberspace. "
The Confederation of All India Traders ( CAIT) also complimented Prime Minister Shri Narendra Modi and the Government of India for such a massive step of banning 59 Chinese applications, which will be a big support to CAIT’s Boycott Chinese Goods campaign.
"This huge unprecedented step will go a long way in strengthening the Boycott China campaign of CAIT. Boycott China movement is now, well and truly a national reality, and seven crore traders of India stands in solidarity with the Union Government" said CAIT Secretary General Praveen Khandelwal. | english |
Mumbai: The upcoming Indian Film Festival of Melbourne (IFFM) will celebrate 100 years of Indian cinema and showcase some of the most celebrated movies of the last century.
The festival, to be held from May 3 to 15, will celebrate 100 years of Indian cinema and showcase film like 'Raja Harishchandra' (1913). It will close with the Australian premiere of 'The Reluctant Fundamentalist' (2012).
and Small Business in Australian state of Victoria, said here last night.
Actress Vidya Balan, for the second time, has been chosen the brand ambassador of the mega event in the Australian city.
"It gives me great pleasure to be the brand ambassador for the second time in a row. It has become like a sense of ownership now not just with the festival but also with the place. When anyone mentions Melbourne I feel like they are mentioning home," Vidya told reporters last night.
"I used to feel the same about Kolkata and it will always remain special to me. After Kolkata the other important place for me is Melbourne. The common thing between the two places is trams," she said.
The 13-day event will also see Pamela Chopra, wife of filmmaker Yash Chopra, visiting Melbourne to accept Lifetime Achievement Award for her late husband. | english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.