text
stringlengths
1
1.04M
language
stringclasses
25 values
<reponame>untamedImpala/goldensun_html5<filename>base/game_events/PartyJoinEvent.ts import {NPC} from "../NPC"; import {DialogManager} from "../utils/DialogManager"; import {GameEvent, event_types} from "./GameEvent"; import {Button} from "../XGamepad"; import {MainChar} from "../MainChar"; export class PartyJoinEvent extends GameEvent { private char_key_name: string; private join: boolean; private dialog_manager: DialogManager = null; private running: boolean = false; private control_enable: boolean = true; private finish_events: GameEvent[] = []; private control_key: number; constructor(game, data, active, key_name, char_key_name, join, finish_events) { super(game, data, event_types.PARTY_JOIN, active, key_name); this.char_key_name = char_key_name; this.join = join; this.control_key = this.data.control_manager.add_controls( [ { button: Button.A, on_down: () => { if (!this.running || !this.control_enable) return; this.next(); }, }, ], {persist: true} ); if (finish_events !== undefined) { finish_events.forEach(event_info => { const event = this.data.game_event_manager.get_event_instance(event_info); this.finish_events.push(event); }); } } next() { this.control_enable = false; this.dialog_manager.next(async finished => { this.control_enable = true; if (finished) { this.running = false; this.data.control_manager.detach_bindings(this.control_key); --this.data.game_event_manager.events_running_count; this.finish_events.forEach(event => event.fire(this.origin_npc)); } }); } async _fire(origin_npc?: NPC) { if (!this.active) return; ++this.data.game_event_manager.events_running_count; this.origin_npc = origin_npc; const this_char = this.data.info.main_char_list[this.char_key_name]; if (this.join) { this.control_enable = false; this.running = true; this.dialog_manager = new DialogManager(this.game, this.data); const text = `${this_char.name} joined your party.`; this.dialog_manager.set_dialog(text, { avatar: this.char_key_name, avatar_inside_window: true, custom_max_dialog_width: 165, }); MainChar.add_member_to_party(this.data.info.party_data, this_char); this.data.audio.pause_bgm(); this.data.audio.play_se("misc/party_join", () => { this.data.audio.resume_bgm(); }); this.next(); } else { MainChar.remove_member_from_party(this.data.info.party_data, this_char); this.data.control_manager.detach_bindings(this.control_key); --this.data.game_event_manager.events_running_count; this.finish_events.forEach(event => event.fire(this.origin_npc)); } } destroy() { this.finish_events.forEach(event => event.destroy()); this.origin_npc = null; this.dialog_manager?.destroy(); this.data.control_manager.detach_bindings(this.control_key); this.active = false; } }
typescript
package pl.luq.jftt.matcher; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Set; public class Matcher { private Set<Character> sigma; private ArrayList<HashMap<Character, Integer>> delta; private String pattern; public Matcher(String pattern, String alphabet) { this.pattern = pattern; sigma = new HashSet<>(); for (char a : alphabet.toCharArray()) { sigma.add(a); } delta = new ArrayList<>(); for (int i = 0; i <= pattern.length(); i++) { delta.add(new HashMap<>(sigma.size())); } computeTransitionFunction(); //showTransitionFunction(); } private void showTransitionFunction(){ for (int i = 0; i <= pattern.length(); i++) { System.out.println(delta.get(i).toString()); } } private boolean checkText(String text) { for (char c : text.toCharArray()) { if (!sigma.contains(c)) { return false; } } return true; } public void computeTransitionFunction() { int m = pattern.length(); for (int q = 0; q <= m; q++) { for (Character a : sigma) { int k = Math.min(m + 1, q + 2); k--; while (!((pattern.substring(0, q) + a).endsWith(pattern.substring(0, k)))) { k--; } delta.get(q).put(a, k); } } } public void finiteAutomatonMatcher(String text) { if (!checkText(text)) { System.out.println("Text contains illegal characters"); return; } int n = text.length(); int q = 0; for (int i = 0; i < n; i++) { q = delta.get(q).get(text.charAt(i)); if (q == pattern.length()) { System.out.println("Pattern occurs with shift " + (i - pattern.length() + 1)); } } } public static void tests() { String alphabet = "αβγδ"; String[] patterns = {"δ", "γδ", "αβ", "αβαβ"}; String textToTest = "αβαβγβαβαβαβαβγ"; for (String pattern : patterns) { System.out.println(pattern); Matcher matcher = new Matcher(pattern, alphabet); matcher.finiteAutomatonMatcher(textToTest); KMPMatcher.kmpMatcher(pattern, textToTest); } } public static void main(String[] args) { tests(); // Matcher matcher = new Matcher("ababaca", "abc"); // matcher.finiteAutomatonMatcher("abababacaba"); // // KMPMatcher.kmpMatcher("ababaca", "abababacaba"); } }
java
<reponame>sbacchio/tuneit "Tools for measuring and optimize the execution time" # pylint: disable=C0303,C0330 __all__ = [ "benchmark", ] from timeit import timeit from .base import sample class Time(float): "Time formatter" units = {"nsec": 1e-9, "usec": 1e-6, "msec": 1e-3, "sec": 1.0} def __str__(self): scales = [(scale, unit) for unit, scale in Time.units.items()] scales.sort(reverse=True) for scale, unit in scales: if self >= scale: break return f"{self / scale:.3f} {unit}" __repr__ = __str__ def default_timer(fnc, number=100): return timeit(fnc, number=100) / number def benchmark( tunable, *variables, timer=default_timer, timer_kwargs=None, samples=None, label="Time", **kwargs, ): """ Crosscheck the result of tunable against the reference. Parameters ---------- comparison: callable (default = numpy.allclose) The function to use for comparison. It is called as fnc(reference, value) and should return a value from 0 (False) to 1 (True). reference: Any The reference value. If None, than the default values are used to produce the result. variables: list of str Set of variables to sample. samples: int The number of samples to run. If None, all the combinations are sampled. timer_kwargs: dict Arguments passed to the timer. For default timer: - number: (int) number of iterations kwargs: dict Variables passed to the compute function. See help(tunable.compute) """ return sample( tunable, *variables, callback=lambda fnc: Time(timer(fnc, **(timer_kwargs or {}))), callback_calls=True, samples=samples, label=label, **kwargs, )
python
Joint Committee of Parliament on Data Protection Bill chief Meenakshi Lekhi said on Wednesday that social media platform Twitter has apologised to the panel in writing for wrongly showing Ladakh as part of China, PTI reported. Lekhi said that Twitter has also promised to rectify the error by the end of the month. The social media platform’s affidavit was signed by Damien Karien, chief privacy officer of Twitter, for wrong geo-tagging of India’s map, Lekhi said. A controversy arose after Twitter had on October 18 shown Jammu and Kashmir as a part of China during a live broadcast by a journalist from Leh, Ladakh. Last week, the Union Ministry of Electronics and Information Technology issued a notice to Twitter, asking for an explanation in five days. The notice, sent to Twitter’s global vice president, had asked why legal action should not be taken against the company and its representatives. “The legal options before the government include filing an FIR under the criminal laws amendment act leading to imprisonment of upto six months for Twitter executives and the second option is to block access to Twitter in India under Section 66a of the IT Act,” a senior government official had said. Earlier on October 28, the Lekhi-led panel had also said that the matter amounted to a criminal offence with imprisonment of seven years. The panel had said the social media platform’s explanation was “inadequate” after Twitter submitted that the company is committed to transparency and will stay in touch with the government to share updates. “The recent geotagging issue was swiftly resolved by our teams,” a spokesperson for Twitter had added. The Centre had also written a stern letter to Twitter Chief Executive Officer Jack Dorsey, telling him that both Ladakh and Jammu and Kashmir were “integral and inalienable” parts of India. The controversy arose amid border tensions between India and China. Military heads of the two countries have engaged in several rounds of talks over the last three months after 20 Indian and an unknown number of Chinese soldiers were killed in violent clashes in Galwan Valley in Ladakh on June 15. However, these talks have failed to break the impasse.
english
{ "name": "imq-rpc-exampple-service", "version": "0.0.1", "description": "IMQ-PRC service example service", "keywords": [ "imq-rpc" ], "scripts": { "build": "tsc", "start": "npm run build && node $npm_package_main" }, "main": "index.js", "author": "<NAME> <<EMAIL>>", "homepage": "https://imqueue.com/", "license": "ISC", "dependencies": { "@imqueue/rpc": "^1.2.1", "@types/node": "^10.3.3", "typescript": "^2.9.2" }, "devDependencies": {}, "typescript": { "definitions": "index.d.ts" } }
json
<reponame>trondpet/hyperdrive-helpers const tap = require('tap') const sinon = require('sinon') const mockery = require('mockery') const DriveStub = require('../../mocks/hyperdrive') let openArchive let archiveStub let hyperArgs const netArgs = {} const netStub = { join: sinon.stub().callsFake((key, options) => { netArgs.join = { key, options } }), on: sinon.stub().callsFake((evt, handler) => { netArgs['on' + evt] = handler }) } tap.test('setup', t => { mockery.enable({ useCleanCache: true, warnOnReplace: false, warnOnUnregistered: false }) archiveStub = new DriveStub() mockery.registerMock('hyperdrive', (name, key, options) => { hyperArgs = { name, key, options } return archiveStub }) mockery.registerMock('@hyperswarm/network', () => netStub) openArchive = require('../../../lib/open-archive') t.end() }) tap.test('openArchive should open a hyperdrive', async t => { const options = { drive: {} } const { archive, discoveryKey, key, writable } = await openArchive('test', 'danekey', options) t.ok(archive) t.same(archive, archiveStub) t.equal(discoveryKey, 'testDiscoveryKey') t.equal(key, 'testKey') t.equal(writable, true) t.equal(hyperArgs.name, 'test') t.type(hyperArgs.key, 'Buffer') t.same(hyperArgs.options, options.drive) t.end() }) tap.test('openArchive should execute onReady option on...ready', async t => { const onReady = sinon.stub() await openArchive('test', 'danekey', { onReady }) t.ok(onReady.calledOnce) t.end() }) tap.test('openArchive does not attempt to join swarm w/o network options', async t => { const options = { replicate: { upload: true } } await openArchive('test', 'danekey', options) t.notOk(netStub.join.calledOnce) t.notOk(netStub.on.calledOnce) t.notOk(netArgs.onconnection) t.end() }) tap.test('openArchive does not attempt to join swarm w/o replicate options', async t => { const options = { network: { lookup: true } } await openArchive('test', 'danekey', options) t.notOk(netStub.join.calledOnce) t.notOk(netStub.on.calledOnce) t.notOk(netArgs.onconnection) t.end() }) tap.test('openArchive should join swarm and replicate if network & replicate options are passed', async t => { const options = { network: { lookup: true, announce: true }, replicate: { upload: true } } const { archive } = await openArchive('test', 'danekey', options) t.ok(netStub.join.calledOnce) t.ok(netStub.on.calledOnce) // socket.pipe(archive.replicate()).pipe(socket) const pipe1Stub = sinon.stub() const pipe2Stub = sinon.stub().returns({ pipe: pipe1Stub }) const socketStub = { pipe: pipe2Stub } netArgs.onconnection(socketStub) t.ok(pipe1Stub.calledWith(socketStub)) t.ok(pipe2Stub.calledWith('archive is replicating')) t.equal(netArgs.join.key.toString(), 'testDiscoveryKey') t.same(netArgs.join.options, options.network) t.same(archive._replicateOptions, { upload: true }) t.end() }) tap.test('openArchive should throw if no path is specified', async t => { t.rejects(openArchive(), 'Missing archive name') t.end() }) tap.test('teardown', t => { mockery.deregisterAll() mockery.disable() t.end() })
javascript
<html> <head> <meta http-equiv="Content-Type" content= text/html; charset=utf-8"/> <title>Address Form</title> </head> <body> <!--Script 2.1 - Form.html--> <form action="handle_withisset.php" method="request"> <fieldset><legend></legend> <h2>Checkout</h2> <p><label for="address">Choose a shipping address: </label> <p><input type="radio" name="address" value="1" /> <NAME>ova 1234 Blue street, Kemah, TX</p> <p><input type="radio" name="address" value="2" /> Denise Silva 5678 Sunflower seed street, Houston, TX</p> <p><input type="radio" name="address" value="3" /> University of Houston 4800 Academy street, Houston, TX</p> <p align="center"><input type="submit" name="submit" value="Use this address" /></p> </fieldset> </form> </body> </html>
html
import {createStore, applyMiddleware} from 'redux'; import reducer from 'rootReducer'; import error from 'store/middleware/error'; import humaniqBackendApi from 'store/middleware/humaniqBackendApi' import butterCmsApi from 'store/middleware/butterCmsApi' const enhancer = applyMiddleware(humaniqBackendApi, butterCmsApi, error) const store = (initialState = {}) => createStore( reducer, initialState, enhancer ) export default store;
javascript
The Nikkei 225 fell 0.6% to finish at 23,659.14. Australia's S&P/ASX 200 gained 0.4% to 7,130.20. South Korea's Kospi advanced 0.5% to 2,244.82 and Hong Kong's Hang Seng advanced 0.4% to 27,847.53. The Shanghai Composite index gained 0.3% to 2,915.83. India's Sensex inched down 0.1% to 41,422.35. Shares were higher in Taiwan but mixed in Southeast Asia. Investors had largely set aside worries about the economic impact of the virus outbreak for the past two weeks. Markets rallied this week partly when the number of new cases appeared to be slowing. But those hopes were dashed by sharp increases in both the number of cases and newly reported deaths Thursday after the hardest-hit province of Hubei began counting doctors' diagnoses without waiting for confirmation laboratory results in hopes of getting patients treated faster. In Japan, concern rose after the government reported another case, a Japanese man in his 70s, a day after it counted its first death from the virus. Japan now has 252 confirmed cases, including 218 from a cruise ship that has been quarantined in Yokohama. Officials said there were signs the virus was spreading within the local population. Overnight on Wall Street, the S&P 500 index dropped 0.2%, to 3,373.94 and the Dow Jones Industrial Average slid 0.4% to 29,423.31. The Nasdaq edged 0.1% lower, to 9,711.97. The Russell 2000 index of smaller company stocks rose 0.3% to 1,693.74. The virus has added a whole universe of uncertainty to the outlook for many industries. "We're in a data-dearth period in the sense that we're not really going to know fully the effects of the impact of that on Asian and Chinese growth, as well as global growth, for at least several weeks," said Lisa Erickson, head of traditional investments at U.S. Bank Wealth Management. "You're just going to see some back-and-forth movement (in the market) until that time." The reclassification of the COVID-19 cases in Hubei brought a huge increase in the global tally, complicating efforts to understand the trajectory of the outbreak. But Stephen Innes, the chief market strategist at AxiCorp, said he believes the economic impact from the virus outbreak would likely be limited and the disease might be contained by March. "The market impact was little more than a pause in the general bullish upward trend rather than risk-off," he said, referring to the reaction to the higher case numbers. Businesses have already been hurting due to the outbreak and more of them are warning that the effects will linger through the year. Organizers of the world's biggest mobile technology fair cancelled the event, set to take place in Spain, because of health and safety concerns. Europe has had a scattered number of cases, mostly connected to Chinese travel. Travel-related companies fell broadly Thursday, shedding some of their gains from earlier in the week. Airlines helped pull industrial sector stocks lower. United Airlines fell 1.5%. MGM Resorts International, which gets about 20% of its revenue from the gambling haven of Macau, pulled its profit forecast for 2020. The stock lost 5.5%. Cruise line operator Carnival slid 2%. Technology and health care stocks were among the biggest decliners, along with companies that rely on consumer spending. Cisco Systems fell 5.2%, Mylan slid 2.3% and Hanesbrands dropped 2.6%. Household goods makers, utilities, real estate companies and communication services stocks notched gains. Fashion company Ralph Lauren warned that the viral outbreak cut into fourth-quarter sales by an estimated $55 million to $70 million. The stock fell 0.6%. Alaska Air Group bucked the trend, adding 1.5% after the airline said it will cooperate more closely with American Airlines on West Coast service. The airlines asked for government permission to expand revenue-sharing to cover international flights in Seattle and Los Angeles. Benchmark crude oil rose 10 cents to $51.52 a barrel in electronic trading on the New York Mercantile Exchange. It rose 25 cents to settle at $51.42 a barrel on Thursday. Brent crude oil, the international standard, was 5 cents higher at $56.39 a barrel. The dollar was little changed but inched down to 109.81 0 Japanese yen from 109.82 yen on Thursday. The euro weakened to 1.0838 0 from $1.0843.
english
{"packages":{"wpackagist-plugin\/chinese-poem":{"0.3":{"name":"wpackagist-plugin\/chinese-poem","version":"0.3","version_normalized":"0.3.0.0","uid":67705,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/plugin\/chinese-poem.zip?timestamp=1220876942"},"source":{"type":"svn","url":"https:\/\/plugins.svn.wordpress.org\/chinese-poem\/","reference":"trunk"},"homepage":"https:\/\/wordpress.org\/plugins\/chinese-poem\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-plugin"},"dev-trunk":{"name":"wpackagist-plugin\/chinese-poem","version":"dev-trunk","version_normalized":"9999999-dev","uid":67706,"time":"2008-09-08 12:29:02","dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/plugin\/chinese-poem.zip?timestamp=1220876942"},"source":{"type":"svn","url":"https:\/\/plugins.svn.wordpress.org\/chinese-poem\/","reference":"trunk"},"homepage":"https:\/\/wordpress.org\/plugins\/chinese-poem\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-plugin"}}}}
json
{ "id": 19062, "citation_title": "The Great Recession: A Self-Fulfilling Global Panic", "citation_author": [ "<NAME>", "<NAME>" ], "citation_publication_date": "2013-05-23", "issue_date": "2013-05-23", "revision_date": "None", "topics": [ "Macroeconomics", "Business Cycles", "International Economics", "International Macroeconomics" ], "program": [ "Economic Fluctuations and Growth", "International Finance and Macroeconomics" ], "projects": null, "working_groups": null, "abstract": "\n\nWhile the 2008-2009 financial crisis originated in the United States, we witnessed steep declines in output, consumption and investment of similar magnitudes around the globe. This raises two questions. First, given the observed strong home bias in goods and financial markets, what can account for the remarkable global business cycle synchronicity during this period? Second, what can explain the difference relative to previous recessions, where we witnessed far weaker co-movement? To address these questions, we develop a two-country model that allows for self-fulfilling business cycle panics. We show that a business cycle panic will necessarily be synchronized across countries as long as there is a minimum level of economic integration. Moreover, we show that several factors generated particular vulnerability to such a global panic in 2008: tight credit, the zero lower bound, unresponsive fiscal policy and increased economic integration.\n\n", "acknowledgement": "\nWe gratefully acknowledge financial support from the National Science Foundation (grant SES-0649442), the Bankard Fund for Political Economy, the Hong Kong Institute for Monetary Research, the National Centre of Competence in Research \"Financial Valuation and Risk Management\" (NCCR FINRISK), and the ERC Advanced Grant #269573. The views expressed herein are those of the authors and do not necessarily reflect the views of the National Bureau of Economic Research.\n\n\n" }
json
A new business that promises prosperity right now is running an engineering college. The reason: BE/B. Tech degrees are literally sold for money; tuition fee obtained for no apparent tuition. In case you get an arrear, pay revaluation fees to clear it no matter how you write the paper. Results depend more on the evaluator’s mood than on how you’ve written. And in the unfortunate circumstance that you still get an arrear (evaluator must have been very angry! ), you pay a huge sum that allows you to challenge the result. This clearly shows that there are chances of flaws in correction. You get the amount reimbursed if the fault is on their side (like they’re going to agree). If you still can’t clear the exam, pay the exam fees again; wait for the next semester and hope for a better evaluator. I had high hopes when I joined my college but all I’ve seen is a competition between lecturers and students. The topic: Who will bunk more classes? I guess I’m one among the sorry bunch of students who didn’t know anything about engineering when they joined college and are still trying to figure it out in their final year. Most students I know are victims of their parents’ dream of seeing their sons/daughters in reputed engineering institutes. For all the moms and dads reading this, before dumping your children into engineering colleges, try to find out what their real passion or interests are.
english
export { ConstantGenerators } from './ConstantGenerators'; export { DefaultGenerators } from './DefaultGenerators'; export { Generators } from './Generators';
typescript
/** * Spacefinder-API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import * as models from './models'; export interface Booking { bookingId?: string; locationId: string; locationName?: string; resourceId: string; userId: string; userFirstName?: string; userLastName?: string; resourceName?: string; resourceDescription?: string; timeslot?: string; startTimeIsoTimestamp?: string; startTimeEpochTime?: number; endTimeIsoTimestamp?: string; endTimeEpochTime?: number; }
typescript
* { box-sizing: border-box; } body { padding: 0; margin: auto; width: 80%; background-color: lightblue; } header { position: relative; top: 0; width: 100%; text-align: center } h1 { padding: 3% 20%; border-bottom: 1px solid black; } h2 { padding: 3% 20%; } .imgdiv { margin-left: auto; margin-right: auto; width: 80%; } /*section { margin: auto; } .imgdiv { display: block; float: left; width: 200px; padding: 10% 15%; margin: 4%; background-color: green; } img { position:absolute; display: block; margin: auto; padding: 0; text-align: center; }*/
css
<gh_stars>10-100 import { Command, CommandContext, SlashCommandContext, } from "../../base/Command"; import { sendReply } from "../../utils/functions"; import { ButtonInteraction, CollectorFilter, Message, MessageActionRow, MessageButton, MessageEmbed, PermissionResolvable, Permissions, } from "discord.js"; const ROCK = "⛰️"; const PAPER = "📰"; const SCISSORS = "✂️"; const emojiArray = [ROCK, PAPER, SCISSORS]; const DISAPPOINTED = "😞"; export default class Rps implements Command { name = "rps"; category = "fun"; description = "Rock paper scissors game. React to one of the emojis to play!"; usage = "rps"; enabled = true; slashCommandEnabled = true; guildOnly = false; botPermissions: PermissionResolvable[] = [Permissions.FLAGS.ADD_REACTIONS]; memberPermissions = []; ownerOnly = false; premiumOnly = false; cooldown = 5000; // 5 seconds slashDescription = "Rock paper scissors game"; commandOptions = []; async execute(ctx: CommandContext, args: string[]): Promise<void> { const embedMsg = new MessageEmbed() .setColor("#ffffff") .setTitle("Rock Paper Scissors!") .setFooter( ctx.member?.displayName || ctx.author.username, ctx.author.displayAvatarURL() ) .setDescription( "Click one of the buttons below to make your choice!" ) .setTimestamp(); const row = new MessageActionRow().addComponents( new MessageButton() .setCustomId(ROCK) .setLabel("Rock") .setStyle("SECONDARY"), new MessageButton() .setCustomId(PAPER) .setLabel("Paper") .setStyle("SECONDARY"), new MessageButton() .setCustomId(SCISSORS) .setLabel("Scissors") .setStyle("SECONDARY") ); const gameMessage = await sendReply( ctx.client, { embeds: [embedMsg], components: [row], }, ctx.msg ); if (!gameMessage) return; const filter: CollectorFilter<[ButtonInteraction]> = (i) => { const intendedUser = i.user.id === ctx.author.id; if (!intendedUser) { i.reply({ content: "These buttons aren't for you!", ephemeral: true, }); } return intendedUser; }; let choice: ButtonInteraction; try { choice = await gameMessage.awaitMessageComponent({ filter, componentType: "BUTTON", time: 30 * 1000, }); } catch (err) { // No button was clicked embedMsg.setDescription(`Guess I win by default ${DISAPPOINTED}`); gameMessage.edit({ embeds: [embedMsg], components: [], }); return; } const botChoice = emojiArray[Math.floor(Math.random() * emojiArray.length)]; const result = this.getResult(choice.customId, botChoice); embedMsg .setDescription("") .addField(result, `${choice.customId} vs ${botChoice}`); gameMessage.edit({ embeds: [embedMsg], components: [], }); return; } async slashCommandExecute(ctx: SlashCommandContext): Promise<void> { await ctx.commandInteraction.deferReply(); const embedMsg = new MessageEmbed() .setColor("#ffffff") .setTitle("Rock Paper Scissors!") .setFooter( ctx.member?.displayName || ctx.author.username, ctx.author.displayAvatarURL() ) .setDescription( "Click one of the buttons below to make your choice!" ) .setTimestamp(); const row = new MessageActionRow().addComponents( new MessageButton() .setCustomId(ROCK) .setLabel("Rock") .setStyle("SECONDARY"), new MessageButton() .setCustomId(PAPER) .setLabel("Paper") .setStyle("SECONDARY"), new MessageButton() .setCustomId(SCISSORS) .setLabel("Scissors") .setStyle("SECONDARY") ); const gameMessage = (await ctx.commandInteraction.editReply({ embeds: [embedMsg], components: [row], })) as Message; const filter: CollectorFilter<[ButtonInteraction]> = (i) => { const intendedUser = i.user.id === ctx.author.id; if (!intendedUser) { i.reply({ content: "These buttons aren't for you!", ephemeral: true, }); } return intendedUser; }; let choice: ButtonInteraction; try { choice = await gameMessage.awaitMessageComponent({ filter, componentType: "BUTTON", time: 30 * 1000, }); } catch (err) { // No button was clicked embedMsg.setDescription(`Guess I win by default ${DISAPPOINTED}`); ctx.commandInteraction.editReply({ embeds: [embedMsg], components: [], }); return; } const botChoice = emojiArray[Math.floor(Math.random() * emojiArray.length)]; const result = this.getResult(choice.customId, botChoice); embedMsg .setDescription("") .addField(result, `${choice.customId} vs ${botChoice}`); ctx.commandInteraction.editReply({ embeds: [embedMsg], components: [], }); return; } getResult(me: string, botChosen: string): string { // User wins if ( (me === ROCK && botChosen === SCISSORS) || (me === PAPER && botChosen === ROCK) || (me === SCISSORS && botChosen === PAPER) ) { return "You won!"; } else if (me === botChosen) { return "It's a tie!"; } else { return "You lost!"; } } }
typescript
import unittest from collections import defaultdict import numpy as np import enstat.mean class Test_mean(unittest.TestCase): """ tests """ def test_scalar(self): """ Basic test of "mean" and "std" using a random sample. """ average = enstat.scalar() average.add_sample(np.array(1.0)) self.assertFalse(np.isnan(average.mean())) self.assertTrue(np.isnan(average.std())) average.add_sample(np.array(1.0)) self.assertFalse(np.isnan(average.mean())) self.assertFalse(np.isnan(average.std())) def test_scalar_division(self): """ Check for zero division. """ average = enstat.scalar() a = np.random.random(50 * 20).reshape(50, 20) for i in range(a.shape[0]): average.add_sample(a[i, :]) self.assertTrue(np.isclose(average.mean(), np.mean(a))) self.assertTrue(np.isclose(average.std(), np.std(a), rtol=1e-3)) def test_static(self): """ Basic test of "mean" and "std" using a random sample. """ average = enstat.static() a = np.random.random(35 * 50 * 20).reshape(35, 50, 20) for i in range(a.shape[0]): average.add_sample(a[i, :, :]) self.assertTrue(np.allclose(average.mean(), np.mean(a, axis=0))) self.assertTrue(np.allclose(average.std(), np.std(a, axis=0), rtol=5e-1, atol=1e-3)) self.assertTrue(average.shape() == a.shape[1:]) self.assertTrue(average.size() == np.prod(a.shape[1:])) def test_static_ravel(self): """ Like :py:func:`test_static` but with a test of `ravel`. """ arraylike = enstat.static() scalar = enstat.scalar() a = np.random.random(35 * 50 * 20).reshape(35, 50, 20) for i in range(a.shape[0]): arraylike.add_sample(a[i, :, :]) scalar.add_sample(a[i, :, :]) flat = arraylike.ravel() self.assertTrue(np.allclose(flat.mean(), np.mean(a))) self.assertTrue(np.allclose(flat.std(), np.std(a), rtol=5e-1, atol=1e-3)) self.assertTrue(np.allclose(flat.mean(), scalar.mean())) self.assertTrue(np.allclose(flat.std(), scalar.std(), rtol=5e-1, atol=1e-3)) def test_static_division(self): """ Check for zero division. """ average = enstat.static() average.add_sample(np.array([1.0])) self.assertFalse(np.isnan(average.mean())) self.assertTrue(np.isnan(average.std())) average.add_sample(np.array([1.0])) self.assertFalse(np.isnan(average.mean())) self.assertFalse(np.isnan(average.std())) def test_static_mask(self): average = enstat.static() a = np.random.random(35 * 50 * 20).reshape(35, 50, 20) m = np.random.random(35 * 50 * 20).reshape(35, 50, 20) > 0.8 for i in range(a.shape[0]): average.add_sample(a[i, :, :], m[i, :, :]) self.assertTrue( np.isclose( np.sum(average.first()) / np.sum(average.norm()), np.mean(a[np.logical_not(m)]), ) ) self.assertTrue( np.isclose( np.sum(average.first()) / np.sum(average.norm()), np.mean(a[np.logical_not(m)]), ) ) self.assertTrue(np.all(np.equal(average.norm(), np.sum(np.logical_not(m), axis=0)))) def test_dynamic1d(self): average = enstat.dynamic1d() average.add_sample(np.array([1, 2, 3])) average.add_sample(np.array([1, 2, 3])) average.add_sample(np.array([1, 2])) average.add_sample(np.array([1])) self.assertTrue(np.allclose(average.mean(), np.array([1, 2, 3]))) self.assertTrue(np.allclose(average.std(), np.array([0, 0, 0]))) self.assertEqual(average.shape(), (3,)) self.assertEqual(average.size(), 3) class Test_defaultdict(unittest.TestCase): """ functionality """ def test_scalar(self): average = defaultdict(enstat.scalar) a = np.random.random(50 * 20).reshape(50, 20) b = np.random.random(52 * 21).reshape(52, 21) for i in range(a.shape[0]): average["a"].add_sample(a[i, :]) for i in range(b.shape[0]): average["b"].add_sample(b[i, :]) self.assertTrue(np.isclose(average["a"].mean(), np.mean(a))) self.assertTrue(np.isclose(average["b"].mean(), np.mean(b))) def test_static(self): average = defaultdict(enstat.static) a = np.random.random(35 * 50 * 20).reshape(35, 50, 20) b = np.random.random(37 * 52 * 21).reshape(37, 52, 21) for i in range(a.shape[0]): average["a"].add_sample(a[i, :, :]) for i in range(b.shape[0]): average["b"].add_sample(b[i, :, :]) self.assertTrue(np.allclose(average["a"].mean(), np.mean(a, axis=0))) self.assertTrue(np.allclose(average["b"].mean(), np.mean(b, axis=0))) self.assertTrue(average["a"].shape() == a.shape[1:]) self.assertTrue(average["b"].shape() == b.shape[1:]) if __name__ == "__main__": unittest.main()
python
The tragic passing of YouTuber and Minecraft star Alexander "Technoblade" shocked the entire gaming and streaming community. The content creator had been battling stage four cancer over the past year, and earlier today, his father announced that he had passed away. The Minecraft community on Twitter was in absolute disbelief upon hearing the news: Jake Lucky, an esports personality and co-owner of Full Squad Gaming, shared an emotional message from Technoblade's father in which he thanked the online community for their support. Technoblade's father also talked about how much the content creator adored and respected his fans and colleagues. Techoblade's father recalled how the content creator enjoyed giving away prizes and always encouraged good sportsmanship. He also asked fans to honor and respect his desire to keep his identity confidential: "He avoided personal fame and worked hard to keep his true identity confidential, and we ask you to continue to honor his wishes to protect his privacy and the privacy of his family. " The message also talked about the tumultuous year during which Technoblade battled cancer without ever complaining about the situation. The heartfelt address concluded with the following statement: "My son's bravery on this path was a shining lesson to all of us who were privileged to walk it with him. Thank you for sharing his journey through it all, as he did the work he loved for his beloved fans. " A few minutes later, a six-minute video was uploaded to Technoblade's channel, titled so long nerds. The content creator's father read out a message that the YouTuber wrote a few hours before passing away. Fans on various social media platforms, including Twitter and Reddit, were devastated to hear about the unexpected passing away of Technoblade. Several popular Twitch and YouTube personalities, including Pokimane, Mizkif, Jschlatt, Ludwig, and Quackity paid their respects: Fans were devastated upon hearing the news. Twitter user boji-mama (@BojangleJinks) stated that their 11-year-old child cried and wrote a letter to Technoblade: Several other fan reactions on Twitter went along these lines: A reaction thread on the subreddit r/LivestreamFail announcing the content creator's demise went viral, with the post gaining more than 375 comments in a span of a few hours. Here are some of the fan reactions on Reddit: Technoblade was easily one of the most recognizable figures in the Minecraft community. He began uploading content to his main YouTube channel in 2013. Over the years, it amassed a massive following of 10. 5 million subscribers and 1. 2 billion views. GTA 5's mammoth $7,700,000,000 earnings set to be challenged by upcoming game! Know more here.
english
<gh_stars>100-1000 // // Copyright 2013 <NAME> // Copyright 2013 <NAME> <<EMAIL>> // Copyright 2020 <NAME> <mateusz at loskot dot net> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include <boost/gil.hpp> #include <boost/gil/extension/toolbox/color_spaces/lab.hpp> #include <boost/core/lightweight_test.hpp> #include <cmath> namespace gil = boost::gil; // FIXME: Remove when https://github.com/boostorg/core/issues/38 happens #define BOOST_GIL_TEST_IS_CLOSE(a, b) BOOST_TEST_LT(std::fabs((a) - (b)), (0.0005f)) void test_lab_to_xyz() { { gil::lab32f_pixel_t lab_pixel(40.366198f, 53.354489f, 26.117702f); gil::xyz32f_pixel_t xyz_pixel; gil::color_convert(lab_pixel, xyz_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[0]), 0.197823f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[1]), 0.114731f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[2]), 0.048848f); } { gil::lab32f_pixel_t lab_pixel(50, 0, 0); gil::xyz32f_pixel_t xyz_pixel; gil::color_convert(lab_pixel, xyz_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[0]), 0.175064f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[1]), 0.184187f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[2]), 0.200548f); } } void test_xyz_to_lab() { gil::lab32f_pixel_t lab_pixel; gil::xyz32f_pixel_t xyz_pixel(0.085703f, 0.064716f, 0.147082f); gil::color_convert(xyz_pixel, lab_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 30.572438f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), 23.4674f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), -22.322275f); } void test_rgb_to_lab() { { gil::rgb32f_pixel_t rgb_pixel(0.75f, 0.5f, 0.25f); gil::lab32f_pixel_t lab_pixel; gil::color_convert(rgb_pixel, lab_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 58.7767f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), 18.5851f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), 43.7975f); } { gil::rgb32f_pixel_t rgb_pixel(1.f, 0.f, 0.f); gil::lab32f_pixel_t lab_pixel; gil::color_convert(rgb_pixel, lab_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 53.2408f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), 80.0925f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), 67.2032f); } { gil::rgb32f_pixel_t rgb_pixel(0.f, 1.f, 0.f); gil::lab32f_pixel_t lab_pixel; gil::color_convert(rgb_pixel, lab_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 87.7347f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), -86.1827f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), 83.1793f); } { gil::rgb32f_pixel_t rgb_pixel(0.f, 0.f, 1.f); gil::lab32f_pixel_t lab_pixel; gil::color_convert(rgb_pixel, lab_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 32.2970f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), 79.1875f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), -107.8602f); } { gil::rgb32f_pixel_t rgb_pixel(1.f, 1.f, 1.f); gil::lab32f_pixel_t lab_pixel; gil::color_convert(rgb_pixel, lab_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 100.f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), 0.f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), 0.f); } } void test_lab_to_rgb() { { gil::lab32f_pixel_t lab_pixel(75.f, 20.f, 40.f); gil::rgb32f_pixel_t rgb_pixel; gil::color_convert(lab_pixel, rgb_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[0]), 0.943240f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[1]), 0.663990f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[2]), 0.437893f); } { gil::lab32f_pixel_t lab_pixel(100.f, 0.f, 0.f); gil::rgb32f_pixel_t rgb_pixel; gil::color_convert(lab_pixel, rgb_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[0]), 1.f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[1]), 1.f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[2]), 1.f); } { gil::lab32f_pixel_t lab_pixel(56.8140f, -42.3665f, 10.6728f); gil::rgb32f_pixel_t rgb_pixel; gil::color_convert(lab_pixel, rgb_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[0]), 0.099999f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[1]), 0.605568f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[2]), 0.456662f); } { gil::lab32f_pixel_t lab_pixel(50.5874f, 4.0347f, 50.5456f); gil::rgb32f_pixel_t rgb_pixel; gil::color_convert(lab_pixel, rgb_pixel); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[0]), 0.582705f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[1]), 0.454891f); BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(rgb_pixel[2]), 0.1f); } } int main() { test_lab_to_xyz(); test_xyz_to_lab(); test_rgb_to_lab(); test_lab_to_rgb(); return ::boost::report_errors(); }
cpp
गायेत्सोऽयं भूयसे श्रेयसे स्यात् । गायेत्सोऽयं भूयसे श्रेयसे स्यात् । Oh All pervading Lord, According to Thee, whoever sings this episode of GajendraMoksham, at dawn and chants the name of Gajendra and Thee, will attain all wealthand prosperity. Having said this, Thou departed for Vaikunta, along with him. OhGuruvayurappa ! May Thou protect me.
english
import * as React from 'react'; import { Link } from 'react-router-dom'; import CircleLoader from 'components/loader/CircleLoader/CircleLoader'; import './Courses.Styles.css'; const Courses = ({ lectures, loading, pathName }: any) => { return ( <> {loading ? ( <CircleLoader /> ) : ( <div className="block__header"> <table className="table" style={{ width: '80%' }}> <thead> <tr> <th>Lesson</th> <th>Description</th> <th /> </tr> </thead> <tbody> {lectures?.map((lecture: any, index: number) => ( <tr key={index}> <td>{lecture?.title}</td> <td>{lecture?.course?.courseDescription}</td> <td> {' '} <Link className="link-action__category" to={`${pathName}/lessons/${lecture?._id}`} > Watch now </Link> </td> </tr> ))} </tbody> </table> </div> )} </> ); }; export default Courses;
typescript
<reponame>KDabbiero/wdd-130-kdabbiero body { background-color: #625834; } .nav { display: flex; flex-direction: row; justify-content: space-between; background-color: #30362f; color: #f6f3df; } nav a{ flex: 1; text-align: center; margin: 0.25em; padding: 0.25em; text-decoration: none; color: #f6f3df; } .about { background-color: #a59132; color: black; } h2 { background-color: #30362f; color: #f6f3df; } h3 { background-color: #30362f; color: #f6f3df; } .topics-flex { display: flex; flex-direction: row; justify-content: space-around; } .topics a { color: #f6f3df; }
css
Tuesday May 10, 2016, I do this thing whenever out for a meal with family, friends or colleagues. I pose a question and then we go around the table so that everyone can answer. At a dinner with my sister’s family and cousins, in 2008, I asked the table, “If you could go out for dinner with one person, living or dead, who would it be? ” As one would expect, the answers were diverse, but they all had one thing in common. They all named an author of a book that had a profound impact on them. After each person had spoken, I shared my observation that the question had not qualified that they must be authors, but the answers did. That made everyone at the table think for a second. This germ of a thought stuck in my head and then sprouted as an item on my life’s bucket list – write a book. That revelation at dinner taught me that a book is a unique medium of communication. It enables people to relate to a story in a way that seems different than a conversation, essay, speech, music or movie. All mediums have a different reach and impact, but a book seems to touch many layers deeper in the soul. Most people take a longer time to read a book than to read shorter pieces, listen to a music album or watch a movie. A book demands a private mind space where the reader must transport himself into the story and the entrance admits only one. You can read an essay while at work, listen to music while doing other things, or watch a movie with friends, but a book needs its own time and space. Analysis aside, I promised myself that some day when I feel like I have a powerful enough story to tell, I will convey it in all its nuances through a book. Even if a hundred of my friends read it, it would be worth my time penning it down because I would have conveyed my thoughts in the best possible way to the people that I most deeply care about. Fast forward to August 2015. I had submitted the manuscript to my publisher, Roli Books, earlier that week. Due to the events of the week, I could sense that the Chinese public markets were going to crash, trigger volatility in global financial markets and become the immediate cause for the late-stage tech funding bubble to burst. I was having a glass of wine with Kapil Kapoor at a speakeasy in Vasant Vihar, New Delhi explaining why we should accelerate the publishing of The Golden Tap, so as to time it with the impending slowdown in tech funding in India and the profound impact that it was likely to have, as deconstructed in my book. We were joined by Kapil’s father and veteran publisher, Pramod Kapoor, and his friend who is the ex-CEO of one of the largest newspapers in the country. Let’s call him Adam (not his real name) to protect his identity. We wanted his advice on how to position and market the book. Adam heard the book’s premise and then started offering his wisdom while staring at a collection of black and white pictures of New York on the wall to his right. He asked if I knew that his son ran the particular speakeasy where we were at. I said that I did. He said it was a good business and took his son a lot of blood and toil to create – to which I responded by saying that his son was doing a great job. He said, “This needs to be a positive book, a book of hope,” for entrepreneurs like his son. I took another sip of that wine as he got my need to be further explained like a four year old. The Golden Tap’s narrative is timely in that it is an in-depth, insider’s account of the irrational exuberance between 2014-15 in Indian startups. The distribution channel has started calling it “the book that called the Indian startup bubble”. However, the more authentic narrative of the book is the story of entrepreneurship, its failures, emotions, thrills and life-changing moments. That story cuts across the flavors of entrepreneurship and seems more enduring. Yes, the book provokes strong sentiment around copycat hyper-funded startups and how they came to be, but that is merely a byproduct of the ringside commentary of what happened. However, the reason why I wrote this book is because I had a story to tell. A story that entrepreneurs can relate to. I wanted to convey – in a form that no other medium could – my own perspectives about entrepreneurship from the time that I first started as a teenager. Today, I remain hopeful as ever. If you have read the book, I am sure you got that. Thanks to all the entrepreneurs who have loved the book and led to its success, so far. I am happy to announce that we will be launching the mass-market paperback edition of The Golden Tap with a launch event on Friday 13 May 2016 at Investopad Bangalore. Like the previous events in Mumbai, Gurgaon and IIT Bombay, I look forward to meeting all you entrepreneurs who have heard my voice and now feel what I feel. (Disclaimer: The views and opinions expressed in this article are those of the author and do not necessarily reflect the views of YourStory. )
english
It is not an easy task to get selected for the International Cricket team and secure a place on the list of players. It is still more difficult to be picked for the most welcome T20 squad. Natarajan, a young cricketer from Tamilnadu deserved to secure a place in the 15 member Indian team that proceeded to Australia on October 26th 2020. Two of the players were injured in the second match played on 26th October. So just like lot falling on him, Natarajan was making his entry in the international dream debut in the third ODI. With a poor family background and without any support or recommendation he entered the ground and exhibited his sterling performance in his maiden ODI. Indian captain Virat Kohli handed the trophy to Natarajan after the team won the T20 series. Kardik Pandya sang his praise. Natarajan steered the team to incredible win and brought laurels of victory not only to his family and native village but also to Tamilnadu. He has retained his place in the International Indian team permanently. In the first chapter of the book of Acts we read that Judas, out of greed yielded to satan and betrayed Jesus for thirty pieces of silver coins. Later he committed suicide. So, to take Judas’ office, they cost their lots and the lot fell on Matthias. So, it was an honor to him to be one of the twelve apostles. Matthias would not even have dreamt about this title. But when the lot fell on him, he took part in the ministry and apostleship diligently. He was numbered with the eleven apostles. Dear friends, we may receive the calling of God for ministry like the falling of lot. We may be prompted through messages, situations and while meditating on the word of God to do ministry. We must reciprocate and respond to the calling and take action by committing ourselves for God’s ministry. We can uphold the ministries or help in moulding the ministers. Matthias did his best when he was given the opportunity. Natarajan grabbed the given opportunity and made an all-out effort to perform his best. If the lot falls on us for doing ministry, let us do it with all our might and bring blessing to our nation. Prayer Request: Pray to God to bless the families who have adopted the villages. Whatsapp in English - +91 86109 84002, Village Missionary Movement,
english
<gh_stars>0 {"name":"nft number: 989","description":"Rocket Elevator NFT metadata","image":"https://ipfs.io/ipfs/QmWM3BASdERCtS4o5cczZfEbv4pN5NkW3sbx7xkqiS1iXV/989.png"}
json
<reponame>ANKerD/cpp-docs.pt-br<filename>docs/mfc/mfc-activex-controls-properties.md --- title: 'Controles ActiveX MFC: Propriedades | Microsoft Docs' ms.custom: '' ms.date: 11/04/2016 ms.technology: - cpp-mfc ms.topic: conceptual dev_langs: - C++ helpviewer_keywords: - properties [MFC], ActiveX controls - MFC ActiveX controls [MFC], properties - properties [MFC] ms.assetid: b678a53c-0d9e-476f-8aa0-23b80baaba46 author: mikeblome ms.author: mblome ms.workload: - cplusplus ms.openlocfilehash: 27cdbd548366bcf02e2d6282b309402cf25af2d1 ms.sourcegitcommit: 799f9b976623a375203ad8b2ad5147bd6a2212f0 ms.translationtype: MT ms.contentlocale: pt-BR ms.lasthandoff: 09/19/2018 ms.locfileid: "46401609" --- # <a name="mfc-activex-controls-properties"></a>Controles ActiveX MFC: propriedades Um controle ActiveX aciona eventos para se comunicar com seu contêiner de controle. O contêiner, em troca, usa métodos e propriedades para se comunicar com o controle. Métodos e propriedades são semelhantes em uso e finalidade, respectivamente, para funções de membro e variáveis de membro de uma classe C++. Propriedades são membros de dados do controle ActiveX que são expostos a qualquer contêiner. As propriedades fornecem uma interface para aplicativos que contêm controles ActiveX, como clientes de automação e contêineres de controle ActiveX. As propriedades também são chamadas de atributos. Para obter mais informações sobre métodos de controle ActiveX, consulte o artigo [controles ActiveX MFC: métodos](../mfc/mfc-activex-controls-methods.md). Controles ActiveX podem implementar tanto estoque e métodos e propriedades personalizados. Classe `COleControl` fornece uma implementação para propriedades de estoque. (Para obter uma lista completa de propriedades de estoque, consulte o artigo [controles ActiveX MFC: Adicionando propriedades de estoque](../mfc/mfc-activex-controls-adding-stock-properties.md).) Propriedades personalizadas, definidas pelo desenvolvedor, adicione recursos especializados para um controle ActiveX. Para obter mais informações, consulte [controles ActiveX MFC: adicionando Custom Properties](../mfc/mfc-activex-controls-adding-custom-properties.md). Propriedades de estoque e personalizadas, como métodos, têm suporte por um mecanismo que consiste em um mapa de expedição que lida com propriedades e métodos e funções de membro existente do `COleControl` classe. Além disso, essas propriedades podem ter parâmetros que o desenvolvedor usa para passar informações extras para o controle. Os artigos a seguir discutem as propriedades do controle ActiveX em mais detalhes: - [Controles ActiveX do MFC: adicionando propriedades de estoque](../mfc/mfc-activex-controls-adding-stock-properties.md) - [Controles ActiveX do MFC: adicionando propriedades personalizadas](../mfc/mfc-activex-controls-adding-custom-properties.md) - [Controles ActiveX do MFC: implementação da propriedade avançada](../mfc/mfc-activex-controls-advanced-property-implementation.md) - [Controles ActiveX do MFC: acessando propriedades ambiente](../mfc/mfc-activex-controls-accessing-ambient-properties.md) ## <a name="see-also"></a>Consulte também [Controles ActiveX do MFC](../mfc/mfc-activex-controls.md)
markdown
stake to drive through the heart of the unionist establishment and we were too stupid to use it. Conned by the both votes SNP mantra which even with cold hard figures people bought in to. The biggest lie came straight from NS, that your 2nd vote was for who you wanted to be FM, parliament trying to frustrate us, putting our country down at every turn, belittling Scotlands achievements, spreading lies and misinformation. But hey SNP 1 and 2 right?
english
Every year before the first weekend in October, pupils of schools are thinking about what gift to choose for their favorite teacher. It is in these autumn days that all teachers celebrate their professional holiday - Teacher's Day. For a long time, both students and parents are puzzled over how to surprise such an important person in the life of everyone. What gifts to give on Teacher's Day? Should I congratulate teachers on the holiday? About this and will be discussed in the article. As you know, the professional holiday of teachers has been celebrated since ancient times. The tradition on this day was to congratulate and give gifts to each teacher in a school institution. Although most teachers are categorically opposed to parents collecting money for this and giving them gifts on Teacher's Day. Children come up with a variety of unusual and unusual ways of congratulations. It should be noted that such surprises not only bring joy to the teachers themselves, but also give pleasure to children. After all, they realize the fact that their efforts were not wasted. Very well, if the gifts for Teacher's Day are chosen with love and respect. Such gifts carry a lot of positive energy. Often the question arises, is it worth congratulating teachers on their professional holiday? If you put a school teacher and a good friend next to you, then there will be almost no difference between the two people. After all, the teacher also has good acquaintances for parents who spend a lot of time with their child. But good friends and friends are usually congratulated on holidays. So why not congratulate the teacher? Pay attention to the person with whom children spend most of their time on his professional holiday - this is a sign of respect and honor. In order to choose the right gift, you need to know your teacher at least a little. Perhaps he has a favorite hobby or he has long been dreaming of something. In any case, it is necessary to know about the character and habit of a person first. Do not rush and make quick decisions. The chosen gift must necessarily be a necessary thing. And then the teacher will be able to understand that he is really an expensive person for his students. What gifts should be avoided? What is the gift for the Teacher's Day? At first glance it may seem that such simply does not exist. But the teachers need to be treated very carefully. After all, each souvenir they can interpret from their position. In order not to offend a person, one should immediately exclude from the list such variants of gifts: - Sign bad tones can be bought as a gift of women's tights, stockings or underwear. Such a surprise is not only not suitable for the school teacher, but also will cause him a feeling of discomfort and embarrassment. - Not the best gift will be purchased and expensive alcoholic beverage. Such situations can be regarded in two ways. - To present on this day as a souvenir any thing of the wardrobe is also inappropriate. Usually such gifts should be bought only by the closest relatives. Yes, and on such a day a gift of this nature will look awkward. - You do not need to choose jewelry or ordinary costume jewelry as a presentation for your teacher. - A heavy choice can be perfume or cosmetics. Such things are personal, so picking something suitable will not be easy at all. - Do not think about giving a teacher a certain amount of money. It will look like a bribe, and such a gesture can greatly offend a person. Choosing a gift for Teacher's Day, it is worth remembering a simple rule: you do not need to buy personal and intimate things. This is a sign of a bad tone towards an adult. What can you present an original gift for Teacher's Day? If there is no opportunity to purchase something expensive, you do not need to get upset. If a person has chosen this specialty because he loves children and feels comfortable in such an atmosphere, even the smallest trifle will become a joy for him. Without a doubt, any teacher will appreciate the gift that the student will prepare with his own hands. Even if it is not entirely successful and necessary, the teacher will still appreciate the efforts of his pupil by right, and at the same time he will be very grateful to him for the attention and care shown. What else can you prepare gifts for Teacher's Day? Photos of the whole class together with the teacher on a large wall calendar - very beautiful and original. Such a souvenir will look great on the wall in the office. At the same time, not only students, but all teachers will pay attention to it. Also an original gift will be a set for embroidery or drawing. If the teacher is fond of such activities, then such a thing will be simply necessary for him. Unusually and original will look a portrait of the teacher, drawn by the student. Also a bouquet of paper flowers or a large postcard will make the teacher smile all day long. If the students do not know what the teacher likes to do in his free time, then you can pick up a gift that will be useful to him in his professional work. A table lamp or comfortable chair will always be needed. To surprise the teacher, these things can be ordered specifically according to the recommendations of the students. Of course, such a surprise can be expensive. Therefore, it is worthwhile to discuss this issue with parents in advance. If there is no money at all, then it is possible to arrange for the whole class for teachers a small concert in which to congratulate each individually. If for some reason the students do not have time to prepare an unusual gift for their teacher, then you can resort to the help of standard souvenirs. Usually they can be a bouquet of wild flowers, a box of chocolates, a set of tea or delicious coffee. At the same time it is necessary to find out in advance whether the teacher has an allergy to pollen, and whether he can eat sweet. That the gift seemed not so boring, it is possible to agree among themselves about how to get a big bouquet, but to give it one flower from each student. This way of congratulating will look pretty interesting. The teacher will be happy to have in her hands a chic bouquet of roses or chrysanthemums. Choosing a gift for the Teacher's Day for the class teacher, first of all, it is necessary to understand the fact that children will have to deal with this person and spend a lot of time over several years. Such a gift should be selected by the entire team of students and look like a family one. Since class leaders are called "second mothers", a gift for the teacher should be really good. In such a situation, it is best to pay attention to such things that will be useful for the teacher in his work. If the class teacher teaches geography, then as a gift he can get a new set of wall maps. Such a thing will be used throughout his professional activities and, of course, will never remain without due attention. For a leader who teaches biology, you can buy an unusual flower in a pot. Believe me, the teacher will take great care to look after and see how the plant will develop before his eyes. In the work for the teacher, a laser pointer or a set of expensive writing pens may come in handy. Here you can go through a large number of options, because the items that can become necessary in the work of the teacher, there are today a lot. If you move away from everyday work, then things that can simplify the teacher's household affairs are perfect for a gift. So, for example, for every woman in the kitchen is not too much will be a multivar, tea set or bread maker. Such souvenirs, of course, are not cheap, but they can for a long time simplify the life of your class teacher in family affairs. For today in a fashion enter gifts which are made of chocolate sweets. At your request the master can perform absolutely any composition from various sweets. So why not take advantage of such an unusual idea and not present a small gift of candy for Teacher's Day? In addition, the teacher will be able to share this gift with all his students. A surprise of this kind is sure to be remembered by the teacher for many years of his work. Gifts for teachers on Teacher's Day from the class can be very simple, but at the right time. In order for the teacher to relax and rest after the lessons, students can arrange a sweet table in their own class. In advance, you can set up desks and decorate the office. As a treat, you can buy cake, fruit, sweets. Do not forget about tea or coffee. Such a situation will only strengthen the teacher's relationship with the entire team of students. Such events leave a lot of positive emotions and impressions in the soul of each participant of this event. The original gift for Teacher's Day is not necessarily expensive. It does not matter how much it costs. Even if the child prepares it with his own hands, the souvenir carries a large amount of warmth and care. This is the most valuable in the work of teachers. If the teacher sees that his students treat him with respect and are eager to do for him, then this will be the best gratitude for his hard work.
english
HANDLE_OPCODE(OP_UNUSED_8CFF) OP_END
cpp
<gh_stars>0 {"Status":3,"TimeLimitReached":true,"RunningTime":"00:05:00.1718330","StartTimes":[{"JobIndex":0,"OperationIndex":0,"StartTime":222.0},{"JobIndex":1,"OperationIndex":0,"StartTime":47.0},{"JobIndex":2,"OperationIndex":0,"StartTime":0.0},{"JobIndex":3,"OperationIndex":0,"StartTime":92.0},{"JobIndex":4,"OperationIndex":0,"StartTime":149.0},{"JobIndex":5,"OperationIndex":0,"StartTime":277.0},{"JobIndex":6,"OperationIndex":0,"StartTime":272.0},{"JobIndex":7,"OperationIndex":0,"StartTime":267.0},{"JobIndex":8,"OperationIndex":0,"StartTime":179.0},{"JobIndex":9,"OperationIndex":0,"StartTime":79.0},{"JobIndex":10,"OperationIndex":0,"StartTime":194.0},{"JobIndex":11,"OperationIndex":0,"StartTime":208.0},{"JobIndex":12,"OperationIndex":0,"StartTime":298.0},{"JobIndex":13,"OperationIndex":0,"StartTime":292.0},{"JobIndex":14,"OperationIndex":0,"StartTime":213.0},{"JobIndex":15,"OperationIndex":0,"StartTime":253.0},{"JobIndex":16,"OperationIndex":0,"StartTime":84.0},{"JobIndex":17,"OperationIndex":0,"StartTime":58.0},{"JobIndex":18,"OperationIndex":0,"StartTime":283.0},{"JobIndex":19,"OperationIndex":0,"StartTime":225.0}]}
json
Chiranjeevi's exchange with Sachin Tendulkar is creative! The other day, Megastar Chiranjeevi wished Sachin Tendulkar on his birthday in style. Calling him the God of Cricket, India's Pride and the One and Only Master Blaster, the 'Sye Raa' and 'Acharya' actor said, "You will continue to inspire generations of Indians. Stay blessed! ! " The cricketing legend, reacting to the wishes, thanked Chiru on Tuesday and said, "Thank you for your kind words, Chiranjeevi Garu. Hoping all is well at your end. " At this, Chiru got creative. "Thank you, brother Sachin. All is Well. Just been sharing with everyone that playing Defence is the Best Offence against #Corona at this time. " We love the way Chiru has interspersed the anti-corona message in a creative way. Follow us on Google News and stay updated with the latest!
english
<reponame>tysonbird/tstg-internal import React from 'react'; import Autosuggest from 'react-autosuggest'; import axios from 'axios'; import { Search, InlineLoading } from 'carbon-components-react'; import Results from './Results.js'; import { Launch32 } from '@carbon/icons-react'; import { resultsbox } from '../ComponentStyles/Search.module.scss'; function titleCase(str) { return str.toLowerCase().split(' ').map(function(word) { return (word.charAt(0).toUpperCase() + word.slice(1)); }).join(' '); } function getSuggestions(value) { if (value === []) { return 'No results found. Please try another search.'; } else { return value .map(section => { return { title: section.title, results: section.results }; }) .filter(section => section.results.length > 0); } } function getSuggestionValue(suggestion) { if (suggestion["City Name"] !== undefined) { return ( titleCase(suggestion["City Name"]) ); } else { return ( suggestion["Attraction Title"] ) } } function shouldRenderSuggestions(value) { return value.trim().length > 2; } function renderSuggestion(suggestion) { if (suggestion["City Name"] !== undefined) { return ( <span>{titleCase(suggestion["City Name"])}</span> ); } else { return ( <span>{suggestion["Attraction Title"]}</span> ) } } function renderSectionTitle(section) { return ( <p>{section.title}</p> ); } function getSectionSuggestions(section) { return section.results; } class SimpleSearch extends React.Component { constructor() { super() this.state = { value: '', suggestions: [], cities: [], renderResults: [], loading: false, noResults: false, cityInfo: '', cityName: '', } } onSuggestionSelected = (event, {suggestion}) => { if (suggestion["City Name"] !== undefined) { let lightspokeQuery = suggestion["City Name"].replace(/ /g, ' +'); axios.post(process.env.GATSBY_LIGHTSPOKE_URL, { login_token: process.env.GATSBY_LIGHTSPOKE_KEY, doc: '10708761', 'runtime.q2': lightspokeQuery }) .then(({ data }) => { this.setState({ cityInfo: { 'name': suggestion["City Name"], 'description': suggestion["Description"], 'visitorName': suggestion["Name"], 'hours': suggestion["Hours"], 'phone': suggestion["Phone 1"], 'website': suggestion["Website 1"] }, renderResults: [data.RecordList][0] }) }) .catch(function(error) { console.log(error); }) } this.setState({ renderResults: [suggestion] }) } onChange = (event, { newValue, method }) => { this.setState({ value: newValue, noResults: false }); } onSuggestionsFetchRequested = ({ value }) => { if (value.trim().length > 2) { value = value.replace(/ /g, ' +') this.setState({ loading: true, noResults: false, cityInfo: '', }) axios.post(process.env.GATSBY_LIGHTSPOKE_URL, { login_token: process.env.GATSBY_LIGHTSPOKE_KEY, doc: '10723078', 'runtime.q0': value }) .then(({ data }) => { this.setState({ cities: data.RecordList }) axios.post(process.env.GATSBY_LIGHTSPOKE_URL, { login_token: process.env.GATSBY_LIGHTSPOKE_KEY, doc: '10708761', 'runtime.q3': value }) .then(({ data }) => { if (data.RecordList.length < 1 && this.state.cities.length < 1) { this.setState({ suggestions: getSuggestions([]), loading: false, noResults: true }) } else { const dataReturn = [{ title: 'Cities', results: this.state.cities }, { title: 'Attractions', results: data.RecordList }]; this.setState({ suggestions: getSuggestions(dataReturn), loading: false, noResults: false }) } }) .catch(function(error) { console.log(error); }) }) .catch(function(error) { console.log(error); }) } } onSuggestionsClearRequested = () => { this.setState({ suggestions: [] }); }; render() { const { value, suggestions } = this.state; const inputProps = { placeholder: "Search a City", value, onChange: this.onChange }; const renderInputComponent = inputProps => ( <Search {...inputProps} id="tstgSearch" labelText='Try a city name, like "Austin," or an attraction name, like "State Capitol Complex"' placeholder='Search the Travel Guide' /> ); return ( <div> <Autosuggest multiSection={true} suggestions={suggestions} renderInputComponent={renderInputComponent} onSuggestionHighlighted={this.onSuggestionHighlighted} onSuggestionsFetchRequested={this.onSuggestionsFetchRequested} onSuggestionsClearRequested={this.onSuggestionsClearRequested} getSuggestionValue={getSuggestionValue} renderSuggestion={renderSuggestion} renderSectionTitle={renderSectionTitle} getSectionSuggestions={getSectionSuggestions} onSuggestionSelected={this.onSuggestionSelected} shouldRenderSuggestions={shouldRenderSuggestions} highlightFirstSuggestion={true} inputProps={inputProps} /> {this.state.noResults && <InlineLoading description="No results found. Please try another search." status="error" /> } {this.state.loading && <InlineLoading description="Loading..." /> } {this.state.cityInfo && <div className="city-info"> <h3>{titleCase(this.state.cityInfo["name"])}</h3> <p>{this.state.cityInfo["description"]}</p> <p><span>Visitor information:</span></p> <p>{this.state.cityInfo["visitorName"]}</p> <p>{this.state.cityInfo["hours"]}</p> <p>{this.state.cityInfo["phone"]}, <a rel="noopener noreferrer" target="_blank" href={'http://' + this.state.cityInfo["website"]}>{this.state.cityInfo["website"]}</a><i><Launch32/></i></p> </div> } {this.state.renderResults && <Results className={resultsbox} listings={this.state.renderResults} ads={['ad102','ad103','ad107','ad109','ad110','ad113','ad114','ad115','ad116','ad117','ad118','ad120','ad121','ad123','ad124','ad129','ad130','ad132','ad133','ad136']}></Results> } </div> ); } } export default SimpleSearch
javascript
Indian English literature has witnessed a new trend. Many writers have started writing novellas. It is typically short in length, having the essential features of a novel. I have recently gone through such a novella titled ‘Palace Smash into Slum’ written by Ashok Yeshuran Masilamani. The author has tried to offer his readers something different from what we usually get to read in contemporary works. Ashok has kept the eternal strife between the good and the evil alive and he has been kind enough to let the truth have an important victory unlike many authors writing from the perspective of evil and making every possible fictional work a Money Heist propaganda. The title itself tells many stories as the Palace Smash into Slum... if you focus on the words and the play of the verb used. The story: The story is about the change of hearts. Self-centred, high-class, elite-mentality and usually up the arms against the poor people go through a cleansing. A Zameendar family in south India, enriched with Tamil traditions but loaded with monetary mentality. They have lived a royal life for a long period of time and the tradition goes on... still. The head of the family is Periya Zameen and he has an only son named Anbu Chezhian. Anbu is not interested in carrying his royal status of Zameendar. The guy wants a change for good (or bad) and he tries to align himself with modernity. Anbu runs many successful businesses and is happy with his life the way it is. Though his father, Periya Zameen, does not like his attitude about not believing in traditions and God. However, he cannot do much because Anbu is the only son of the family. Loved and cared for, Anbu can get anything that he wants and do anything that he likes. The turning point comes in Anbu’s life only after he gets married to Tamilselvi. Even after three years, Anbu and Tamilselvi are unable to become parents. Nobody knows what’s wrong and everyone in the family wants the best of the doctors to look at the situation but in vain. Fate changes, the baby is conceived, and yet again a problem occurs. However, the doctors warn that Tamilselvi can become pregnant only once and the situation may demand a choice – the child or the mother. What will happen? Can Tamilselvi live with her kid or does one of the two have to be sacrificed? How do the events that unfold affect the story? What provokes the change of heart that turns the palace into an open paradise for all? The story is written in a very interesting but traditional way. It will attract the readers as well as enlighten them about certain traditions of the Tamil population. Critical Perspective: Ashok’s writing style is simply brilliant and the way he has narrated the story will keep the readers engaged till the last. He is a traditional author and that aptly gets reflected in his writing style. At the start, the readers may feel a little disconnected from the storyline because, it seems and later gets verified, the author begins with the present and gives the tour to past to his readers. After the introductions to the central characters, the story gets speed and readers will begin to love what they read. At the start, the readers may think that the central protagonist Anbu Chezhian is careless only thinks about his business and does not take care of his family. However, the perspective may change when you finish the novel. The classic employment of round characters in the novel may generate a cathartic response from the readers. And this is what all good works of literature aim at – communicating things to readers by the acts and reactions of the characters rather than preaching in between the acts and actions. The author has wonderfully woven the story with a touch of realism and coupled it with fiction in a harmonious way. The story throws light on basic human qualities like honesty, love, affection, care, philanthropy, and many more. When Anbu’s wife was in need of medical treatment, Kripai Amma arranged to get the necessary done. She was a former medical staff and was honoured by the governor. Villagers also come to help Kripai Amma in her act of kindness and affection and also the basic human act. Despite all her credentials, she, Kripai Amma, always remains grounded and always eager to help anyone. These realities of life completely change the perspectives of Anbu. The author has successfully created a situation where readers will be able to get the message that a man can be wealthy but he needs to cultivate the real values in his life. He, Anbu, was the man who never folded his hands before god but when the time was not in his favour, he started to believe that there is something that is omnipresent and guides us in unknown paths. It was strange that a royal family’s child was born in a slum. And by this, the author also justifies the title of his work – palace getting smashed into the slum and a harmonious bond getting born out of it! This is a wonderful novella by Ashok Yeshuran Masilamani. It is short in length but full of wisdom and thoughts. Nothing is extraordinary and everything comes from our real lives. We just need to identify things and embrace... this is the message that the novelist has tried to capture and circulate by creating events in the novel... and he has been successful to a great extent. Language is classy, simple and elegant without the author being too gaudy to flash his literary acumen. The novel will open many hidden corners inside the hearts of the readers! It is a great one after many days and it gets my best! If you are interested in reading something wonderful, read this one! All the best! Palace Smash into Slum by Ashok Yeshuran Masilamani is a social novel with emotionally charged dramatic inspirations taking shape, eventually but certainly! A good novel for those wandering readers who want to read real Indian English literature with motifs.
english
<gh_stars>100-1000 package config import ( "io/ioutil" "log" "github.com/gzuidhof/tygo/tygo" "gopkg.in/yaml.v2" ) func ReadFromFilepath(cfgFilepath string) tygo.Config { b, err := ioutil.ReadFile(cfgFilepath) if err != nil { log.Fatalf("Could not read config file from %s: %v", cfgFilepath, err) } conf := tygo.Config{} err = yaml.Unmarshal(b, &conf) if err != nil { log.Fatalf("Could not parse config file froms: %v", err) } return conf }
go
Parents and technology may not go well together. Parents often seek their kids' help to learn how to use gadgets and software. When a dad recently asked his son to remove a man from the background of a picture, he was confused as to why his father thought he was capable of doing so. Paul McDonnell, from County Kildare, Ireland, took to Twitter to share his dad's bizarre request. He posted a screenshot of his chat with his father who had sent him a picture and a text asking him to "take out man in background. " "I don't know what Dad thinks I do for a living, I'm neither a hit man nor have the ability to photoshop," Paul tweeted. Take a look: The picture had a man photobombing in the background. Paul's dad simply wanted him to get him removed from the picture. And netizens obliged to the dad's request. They used snipers, guns and balaclavas to take him out of the picture. One user suggested, "maybe he was letting you know he order food and that's the delivery guy/take out man. " Another joked, "You misunderstand, your dad wants you to take the guy out for a date, a nice dinner, maybe a movie and ice cream after. . . " Someone even added an "RIP man in background" sign in the picture. A fourth user noted, "But he has confidence in you, and that’s what matters! " Yet another said, "You're dad is forever famous. " to this, Paul replied. "My timeline is just going to be tweets about him from now on. "
english
<reponame>consulo/consulo-spring<filename>spring-security/src/com/intellij/spring/security/model/SpringSecurityProjectComponent.java package com.intellij.spring.security.model; import com.intellij.openapi.components.ProjectComponent; import com.intellij.openapi.project.Project; import com.intellij.spring.SpringManager; import com.intellij.spring.security.model.xml.converters.SecurityRoleConstructorArgConverter; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; public class SpringSecurityProjectComponent implements ProjectComponent { private final Project myProject; public static SpringSecurityProjectComponent getInstance(@NotNull Project project) { return project.getComponent(SpringSecurityProjectComponent.class); } public SpringSecurityProjectComponent(final Project project) { myProject = project; } public void projectOpened() { } public void projectClosed() { } @NonNls @NotNull public String getComponentName() { return SpringSecurityProjectComponent.class.getName(); } public void initComponent() { SpringManager.getInstance(myProject).getValueProvidersRegistry().registerConverter(new SecurityRoleConstructorArgConverter(), new SecurityRoleConstructorArgConverter.SecurityRoleConstructorArgCondition()); } public void disposeComponent() { } }
java
body { margin:0px; background-image:none; position:static; left:auto; width:944px; margin-left:0; margin-right:0; text-align:left; } #base { position:absolute; z-index:0; } #u1_div { position:absolute; left:0px; top:0px; width:375px; height:667px; background:inherit; background-color:rgba(255, 255, 255, 1); border:none; border-radius:0px; -moz-box-shadow:0px 0px 10px rgba(0, 0, 0, 0.349019607843137); -webkit-box-shadow:0px 0px 10px rgba(0, 0, 0, 0.349019607843137); box-shadow:0px 0px 10px rgba(0, 0, 0, 0.349019607843137); } #u1 { position:absolute; left:50px; top:63px; width:375px; height:667px; } #u2 { position:absolute; left:2px; top:326px; width:371px; visibility:hidden; word-wrap:break-word; } #u3_div { position:absolute; left:0px; top:0px; width:375px; height:63px; background:inherit; background-color:rgba(242, 242, 242, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u3 { position:absolute; left:50px; top:63px; width:375px; height:63px; } #u4 { position:absolute; left:2px; top:24px; width:371px; visibility:hidden; word-wrap:break-word; } #u5_div { position:absolute; left:0px; top:0px; width:70px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; color:#000000; } #u5 { position:absolute; left:205px; top:93px; width:70px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; color:#000000; } #u6 { position:absolute; left:2px; top:-1px; width:66px; word-wrap:break-word; } #u8_img { position:absolute; left:0px; top:0px; width:375px; height:20px; } #u8 { position:absolute; left:50px; top:63px; width:375px; height:20px; } #u9 { position:absolute; left:2px; top:2px; width:371px; visibility:hidden; word-wrap:break-word; } #u10_img { position:absolute; left:0px; top:0px; width:18px; height:18px; } #u10 { position:absolute; left:59px; top:95px; width:18px; height:18px; } #u11 { position:absolute; left:2px; top:1px; width:14px; visibility:hidden; word-wrap:break-word; } #u12_div { position:absolute; left:0px; top:0px; width:47px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u12 { position:absolute; left:77px; top:94px; width:47px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u13 { position:absolute; left:2px; top:0px; width:43px; white-space:nowrap; } #u14_img { position:absolute; left:0px; top:0px; width:96px; height:20px; } #u14 { position:absolute; left:196px; top:656px; width:96px; height:20px; opacity:0.7; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; color:#FFFFFF; text-align:center; } #u15 { position:absolute; left:0px; top:0px; width:96px; white-space:nowrap; } #u17_div { position:absolute; left:0px; top:0px; width:373px; height:56px; background:inherit; background-color:rgba(242, 242, 242, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u17 { position:absolute; left:52px; top:674px; width:373px; height:56px; } #u18 { position:absolute; left:2px; top:20px; width:369px; visibility:hidden; word-wrap:break-word; } #u19_div { position:absolute; left:0px; top:0px; width:20px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); box-sizing:border-box; border-width:2px; border-style:solid; border-color:rgba(102, 102, 102, 1); border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u19 { position:absolute; left:77px; top:685px; width:20px; height:20px; } #u20 { position:absolute; left:2px; top:2px; width:16px; visibility:hidden; word-wrap:break-word; } #u21_img { position:absolute; left:0px; top:0px; width:20px; height:20px; } #u21 { position:absolute; left:229px; top:685px; width:20px; height:20px; } #u22 { position:absolute; left:2px; top:2px; width:16px; visibility:hidden; word-wrap:break-word; } #u23_img { position:absolute; left:0px; top:0px; width:20px; height:20px; } #u23 { position:absolute; left:368px; top:685px; width:20px; height:20px; } #u24 { position:absolute; left:2px; top:2px; width:16px; visibility:hidden; word-wrap:break-word; } #u25_div { position:absolute; left:0px; top:0px; width:29px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u25 { position:absolute; left:72px; top:705px; width:29px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u26 { position:absolute; left:0px; top:0px; width:29px; white-space:nowrap; } #u27_div { position:absolute; left:0px; top:0px; width:29px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u27 { position:absolute; left:225px; top:705px; width:29px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u28 { position:absolute; left:0px; top:0px; width:29px; white-space:nowrap; } #u29_div { position:absolute; left:0px; top:0px; width:29px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u29 { position:absolute; left:364px; top:705px; width:29px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u30 { position:absolute; left:0px; top:0px; width:29px; white-space:nowrap; } #u31_img { position:absolute; left:0px; top:0px; width:24px; height:24px; } #u31 { position:absolute; left:389px; top:95px; width:24px; height:24px; } #u32 { position:absolute; left:2px; top:4px; width:20px; visibility:hidden; word-wrap:break-word; } #u33_div { position:absolute; left:0px; top:0px; width:376px; height:667px; background:inherit; background-color:rgba(51, 51, 51, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u33 { position:absolute; left:49px; top:63px; width:376px; height:667px; opacity:0.7; } #u34 { position:absolute; left:2px; top:326px; width:372px; visibility:hidden; word-wrap:break-word; } #u35 { position:absolute; left:0px; top:0px; width:0px; height:0px; } #u36_div { position:absolute; left:0px; top:0px; width:320px; height:190px; background:inherit; background-color:rgba(255, 255, 255, 1); border:none; border-radius:9px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u36 { position:absolute; left:78px; top:271px; width:320px; height:190px; } #u37 { position:absolute; left:2px; top:87px; width:316px; visibility:hidden; word-wrap:break-word; } #u38_div { position:absolute; left:0px; top:0px; width:265px; height:33px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; text-align:center; } #u38 { position:absolute; left:105px; top:296px; width:265px; height:33px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; text-align:center; } #u39 { position:absolute; left:0px; top:0px; width:265px; word-wrap:break-word; } #u40_img { position:absolute; left:0px; top:0px; width:319px; height:2px; } #u40 { position:absolute; left:80px; top:412px; width:318px; height:1px; } #u41 { position:absolute; left:2px; top:-8px; width:314px; visibility:hidden; word-wrap:break-word; } #u42_img { position:absolute; left:0px; top:0px; width:49px; height:2px; } #u42 { position:absolute; left:215px; top:435px; width:48px; height:1px; -webkit-transform:rotate(90deg); -moz-transform:rotate(90deg); -ms-transform:rotate(90deg); transform:rotate(90deg); } #u43 { position:absolute; left:2px; top:-8px; width:44px; visibility:hidden; word-wrap:break-word; } #u44_div { position:absolute; left:0px; top:0px; width:55px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#0099CC; } #u44 { position:absolute; left:135px; top:423px; width:55px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#0099CC; } #u45 { position:absolute; left:0px; top:0px; width:55px; white-space:nowrap; } #u46_div { position:absolute; left:0px; top:0px; width:141px; height:33px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u46 { position:absolute; left:167px; top:356px; width:141px; height:33px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u47 { position:absolute; left:0px; top:0px; width:141px; white-space:nowrap; } #u48_div { position:absolute; left:0px; top:0px; width:37px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#0099CC; } #u48 { position:absolute; left:290px; top:423px; width:37px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#0099CC; } #u49 { position:absolute; left:0px; top:0px; width:37px; white-space:nowrap; } #u51_div { position:absolute; left:0px; top:0px; width:375px; height:667px; background:inherit; background-color:rgba(255, 255, 255, 1); border:none; border-radius:0px; -moz-box-shadow:0px 0px 10px rgba(0, 0, 0, 0.349019607843137); -webkit-box-shadow:0px 0px 10px rgba(0, 0, 0, 0.349019607843137); box-shadow:0px 0px 10px rgba(0, 0, 0, 0.349019607843137); } #u51 { position:absolute; left:569px; top:63px; width:375px; height:667px; } #u52 { position:absolute; left:2px; top:326px; width:371px; visibility:hidden; word-wrap:break-word; } #u53_div { position:absolute; left:0px; top:0px; width:375px; height:63px; background:inherit; background-color:rgba(242, 242, 242, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u53 { position:absolute; left:569px; top:63px; width:375px; height:63px; } #u54 { position:absolute; left:2px; top:24px; width:371px; visibility:hidden; word-wrap:break-word; } #u55_div { position:absolute; left:0px; top:0px; width:70px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; color:#000000; } #u55 { position:absolute; left:724px; top:93px; width:70px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; color:#000000; } #u56 { position:absolute; left:2px; top:-1px; width:66px; word-wrap:break-word; } #u58_img { position:absolute; left:0px; top:0px; width:375px; height:20px; } #u58 { position:absolute; left:569px; top:63px; width:375px; height:20px; } #u59 { position:absolute; left:2px; top:2px; width:371px; visibility:hidden; word-wrap:break-word; } #u60_img { position:absolute; left:0px; top:0px; width:18px; height:18px; } #u60 { position:absolute; left:578px; top:95px; width:18px; height:18px; } #u61 { position:absolute; left:2px; top:1px; width:14px; visibility:hidden; word-wrap:break-word; } #u62_div { position:absolute; left:0px; top:0px; width:33px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u62 { position:absolute; left:607px; top:94px; width:33px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u63 { position:absolute; left:2px; top:0px; width:29px; white-space:nowrap; } #u65_div { position:absolute; left:0px; top:0px; width:373px; height:56px; background:inherit; background-color:rgba(242, 242, 242, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u65 { position:absolute; left:571px; top:674px; width:373px; height:56px; } #u66 { position:absolute; left:2px; top:20px; width:369px; visibility:hidden; word-wrap:break-word; } #u67_div { position:absolute; left:0px; top:0px; width:20px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); box-sizing:border-box; border-width:2px; border-style:solid; border-color:rgba(102, 102, 102, 1); border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u67 { position:absolute; left:596px; top:685px; width:20px; height:20px; } #u68 { position:absolute; left:2px; top:2px; width:16px; visibility:hidden; word-wrap:break-word; } #u69_img { position:absolute; left:0px; top:0px; width:20px; height:20px; } #u69 { position:absolute; left:748px; top:685px; width:20px; height:20px; } #u70 { position:absolute; left:2px; top:2px; width:16px; visibility:hidden; word-wrap:break-word; } #u71_img { position:absolute; left:0px; top:0px; width:20px; height:20px; } #u71 { position:absolute; left:887px; top:685px; width:20px; height:20px; } #u72 { position:absolute; left:2px; top:2px; width:16px; visibility:hidden; word-wrap:break-word; } #u73_div { position:absolute; left:0px; top:0px; width:29px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u73 { position:absolute; left:591px; top:705px; width:29px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u74 { position:absolute; left:0px; top:0px; width:29px; white-space:nowrap; } #u75_div { position:absolute; left:0px; top:0px; width:29px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u75 { position:absolute; left:744px; top:705px; width:29px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u76 { position:absolute; left:0px; top:0px; width:29px; white-space:nowrap; } #u77_div { position:absolute; left:0px; top:0px; width:29px; height:18px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u77 { position:absolute; left:883px; top:705px; width:29px; height:18px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u78 { position:absolute; left:0px; top:0px; width:29px; white-space:nowrap; } #u79_img { position:absolute; left:0px; top:0px; width:24px; height:24px; } #u79 { position:absolute; left:908px; top:95px; width:24px; height:24px; } #u80 { position:absolute; left:2px; top:4px; width:20px; visibility:hidden; word-wrap:break-word; } #u81 { position:absolute; left:190px; top:432px; width:0px; height:0px; } #u81_seg0 { position:absolute; left:0px; top:-4px; width:34px; height:8px; } #u81_seg1 { position:absolute; left:26px; top:-46px; width:8px; height:50px; } #u81_seg2 { position:absolute; left:26px; top:-46px; width:228px; height:8px; } #u81_seg3 { position:absolute; left:246px; top:-332px; width:8px; height:294px; } #u81_seg4 { position:absolute; left:246px; top:-332px; width:142px; height:8px; } #u82 { position:absolute; left:200px; top:-116px; width:100px; visibility:hidden; word-wrap:break-word; } #u83_div { position:absolute; left:0px; top:0px; width:375px; height:157px; background:inherit; background-color:rgba(102, 102, 102, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u83 { position:absolute; left:569px; top:126px; width:375px; height:157px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u84 { position:absolute; left:2px; top:70px; width:371px; visibility:hidden; word-wrap:break-word; } #u85_img { position:absolute; left:0px; top:0px; width:145px; height:25px; } #u85 { position:absolute; left:684px; top:249px; width:145px; height:25px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; text-align:center; } #u86 { position:absolute; left:0px; top:0px; width:145px; white-space:nowrap; } #u87_div { position:absolute; left:0px; top:0px; width:111px; height:93px; background:inherit; background-color:rgba(102, 102, 102, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u87 { position:absolute; left:576px; top:293px; width:111px; height:93px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u88 { position:absolute; left:2px; top:38px; width:107px; visibility:hidden; word-wrap:break-word; } #u89_div { position:absolute; left:0px; top:0px; width:84px; height:71px; background:inherit; background-color:rgba(102, 102, 102, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u89 { position:absolute; left:582px; top:502px; width:84px; height:71px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u90 { position:absolute; left:2px; top:28px; width:80px; visibility:hidden; word-wrap:break-word; } #u91_div { position:absolute; left:0px; top:0px; width:40px; height:16px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u91 { position:absolute; left:684px; top:556px; width:40px; height:16px; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u92 { position:absolute; left:0px; top:0px; width:40px; white-space:nowrap; } #u93_div { position:absolute; left:0px; top:0px; width:111px; height:93px; background:inherit; background-color:rgba(102, 102, 102, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u93 { position:absolute; left:701px; top:293px; width:111px; height:93px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u94 { position:absolute; left:2px; top:38px; width:107px; visibility:hidden; word-wrap:break-word; } #u95_div { position:absolute; left:0px; top:0px; width:111px; height:93px; background:inherit; background-color:rgba(102, 102, 102, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u95 { position:absolute; left:823px; top:293px; width:111px; height:93px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u96 { position:absolute; left:2px; top:38px; width:107px; visibility:hidden; word-wrap:break-word; } #u97_div { position:absolute; left:0px; top:0px; width:71px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u97 { position:absolute; left:595px; top:394px; width:71px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u98 { position:absolute; left:0px; top:0px; width:71px; white-space:nowrap; } #u99_div { position:absolute; left:0px; top:0px; width:71px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u99 { position:absolute; left:721px; top:394px; width:71px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u100 { position:absolute; left:0px; top:0px; width:71px; white-space:nowrap; } #u101_div { position:absolute; left:0px; top:0px; width:57px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u101 { position:absolute; left:849px; top:394px; width:57px; height:20px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u102 { position:absolute; left:0px; top:0px; width:57px; white-space:nowrap; } #u103_div { position:absolute; left:0px; top:0px; width:375px; height:12px; background:inherit; background-color:rgba(242, 242, 242, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } #u103 { position:absolute; left:569px; top:428px; width:375px; height:12px; } #u104 { position:absolute; left:2px; top:-2px; width:371px; visibility:hidden; word-wrap:break-word; } #u105_div { position:absolute; left:0px; top:0px; width:113px; height:22px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u105 { position:absolute; left:684px; top:502px; width:113px; height:22px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u106 { position:absolute; left:0px; top:0px; width:113px; white-space:nowrap; } #u107_div { position:absolute; left:0px; top:0px; width:79px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u107 { position:absolute; left:684px; top:529px; width:79px; height:20px; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u108 { position:absolute; left:0px; top:0px; width:79px; white-space:nowrap; } #u109_div { position:absolute; left:0px; top:0px; width:43px; height:33px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#FF9900; } #u109 { position:absolute; left:889px; top:516px; width:43px; height:33px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#FF9900; } #u110 { position:absolute; left:0px; top:0px; width:43px; white-space:nowrap; } #u111_div { position:absolute; left:0px; top:0px; width:84px; height:71px; background:inherit; background-color:rgba(102, 102, 102, 1); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u111 { position:absolute; left:582px; top:583px; width:84px; height:71px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:18px; color:#FFFFFF; } #u112 { position:absolute; left:2px; top:28px; width:80px; visibility:hidden; word-wrap:break-word; } #u113_div { position:absolute; left:0px; top:0px; width:40px; height:16px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u113 { position:absolute; left:684px; top:633px; width:40px; height:16px; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u114 { position:absolute; left:0px; top:0px; width:40px; white-space:nowrap; } #u115_div { position:absolute; left:0px; top:0px; width:113px; height:22px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u115 { position:absolute; left:684px; top:583px; width:113px; height:22px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u116 { position:absolute; left:0px; top:0px; width:113px; white-space:nowrap; } #u117_div { position:absolute; left:0px; top:0px; width:79px; height:20px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u117 { position:absolute; left:684px; top:610px; width:79px; height:20px; font-family:'ArialMT', 'Arial'; font-weight:400; font-style:normal; font-size:14px; color:#8A8A8A; } #u118 { position:absolute; left:0px; top:0px; width:79px; white-space:nowrap; } #u119_div { position:absolute; left:0px; top:0px; width:43px; height:33px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#FF9900; } #u119 { position:absolute; left:889px; top:597px; width:43px; height:33px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; color:#FF9900; } #u120 { position:absolute; left:0px; top:0px; width:43px; white-space:nowrap; } #u121_div { position:absolute; left:0px; top:0px; width:33px; height:22px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u121 { position:absolute; left:670px; top:447px; width:33px; height:22px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u122 { position:absolute; left:0px; top:0px; width:33px; white-space:nowrap; } #u123_div { position:absolute; left:0px; top:0px; width:33px; height:22px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u123 { position:absolute; left:809px; top:447px; width:33px; height:22px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:16px; } #u124 { position:absolute; left:0px; top:0px; width:33px; white-space:nowrap; } #u125_img { position:absolute; left:0px; top:0px; width:376px; height:2px; } #u125 { position:absolute; left:569px; top:479px; width:375px; height:1px; } #u126 { position:absolute; left:2px; top:-8px; width:371px; visibility:hidden; word-wrap:break-word; } #u127_img { position:absolute; left:-1px; top:-1px; width:52px; height:5px; } #u127 { position:absolute; left:661px; top:477px; width:49px; height:2px; } #u128 { position:absolute; left:2px; top:-7px; width:45px; visibility:hidden; word-wrap:break-word; } #u129_div { position:absolute; left:0px; top:0px; width:97px; height:41px; background:inherit; background-color:rgba(255, 255, 255, 0); border:none; border-radius:0px; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u129 { position:absolute; left:462px; top:134px; width:97px; height:41px; font-family:'PingFangSC-Regular', 'PingFang SC'; font-weight:400; font-style:normal; font-size:14px; } #u130 { position:absolute; left:0px; top:0px; width:97px; word-wrap:break-word; }
css
GM Switches Price List 2023 PDF read online or download for free from the www.goldmedalindia.com link given at the bottom of this article. Hello, Friends today we are sharing with you Goldmedal (GM) Switches Price List 2023 PDF to help you. If you are searching Gold Medal Switches Price List 2022 PDF then you have arrived at the right website and you can directly download it from the link given at the bottom of this page. Goldmedal Electricals Pvt. Ltd. was established in the year 1979 with a vision to create switches and electrical systems that make a difference in the lives of the Indian consumer. The company successfully launched a series of product ranges including Olive, Eikon, Curve, Gzifa, and Nixon which have become hugely popular with users across the country. Over the last decade, the company has diversified into the manufacturing of MCBs, Distribution Boards, Wires, Cables, CFLs, Home Automation Systems, and LED lights. Currently, Goldmedal’s range of products includes almost all electrical switches and accessories that are necessary for a modern home or office. The iTouch WiFi panels are the latest devices in Goldmedal’s family of automation switches. Sleek and stylish in appearance, these backlit LED WiFi panels have a host of functions including switches, fan regulators, dimmers, USB sockets, and international sockets. You can download the Gold medal (GM) Switches Price List 2023 in PDF format using the link given below.
english
Carlo Ancelotti ended any doubt about his immediate future on Saturday by saying he will honour the last year of his contract with Real Madrid amid interest from Brazil. Brazilian FA (CBF) president Ednaldo Rodrigues told Reuters in March that Ancelotti would be an obvious choice to fill the vacant national managerial position if he was available at the end of the European season. "Everyone knows really well what my situation is: I have contract until the end of the 2024 season and I want to stay," Ancelotti told a news conference, clearly annoyed when asked about the Brazil interest yet again. When a reporter asked if the club had assured him that he was staying, Ancelotti replied with an emphatic: "Yes! " Real, however, have not made an official statement about Ancelotti's future. President Florentino Perez gave a vague answer when asked about Ancelotti following Real's 2-1 victory in the Copa del Rey final. Italian Ancelotti has experienced Perez's short temper when he was sacked in 2015, one year after guiding Real to their long-awaited 10th European Cup title. "It could have been a better season, but it was a good one," Ancelotti said when asked how he would assess the 2022-23 campaign. "Of course, we are not satisfied with LaLiga, but we fought to the end in the other competitions. . . and won three of them. " Ancelotti was referring to the Spanish Cup, FIFA club World Cup and the European Super Cup victories. The Brazilian FA did not respond to Reuters contacts early on Saturday morning, but its president said recently they were willing to wait for Ancelotti until June so they could assess other options including AS Roma's Jose Mourinho and Fenerbahce's Jorge Jesus.
english
<reponame>hannoeru/student-card-backend<gh_stars>1-10 { "recommendations": [ "dbaeumer.vscode-eslint", "prisma.prisma", "streetsidesoftware.code-spell-checker", "humao.rest-client" ] }
json
1 Wakita na yá aŋkwa á puwaná ba iya Piyer, ya sleɓela á Yaisu *Almasiihu. Yá puwakurte ge kure emnde na a dzerakursaa Dadaamiya ge kwa emnde-aarire na. Yá puwakurte ge kure na kyarakuraakya am larde á kure, kwa wayve-aha kina am Pauntus, am Galatiya, am Kapadaukiya, am Aziya ira Bitiniya. 2 Amá a wayete vateneka Eddemiya Dadaamiya geni á gakurvege emnde-aara an hakuma á Sheɗekwe Cuɗeɗɗe, kwá fansarfe ge Yaisu Almasiihu, kwá gevge emnde cuɗeɗɗe an uzhe-aara. A magakuránmaga Dadaamiya ŋgurna ba kwakya, a vakurteva hairire keni ba estuwa. 3 Galaumigálá Dadaamiya Eddeŋara ge Yaakadada á miya Yaisu *Almasiihu! Aɗaba kwakya zevarzire-aara áte miya, a tsantaa ŋane Yaisu am faya. An una ŋanna wá, a vamitaa shifa aŋwaslire antara tama na á zleka na ge miya. 4 Zlaɓe ádaliye Dadaamiya a famiyaa duksa shagera na á ŋeka liya, á badzeka, á guleka ɗekiɗeki na am samaya. 5 Daaci kure emnde na fakurtarfe na wá, aŋkwa á tsufakurtsufa Dadaamiya an hákuma-aara. Vaci zla á duniya wá, á de lyakurselye náza ba ɗekiɗeki, tá de nanna emnde baɗemme. 6 Aɗaba tama á kure áte duksa-aha ŋanna wá, naba higauhiga, ma kwá aŋkwa á shá zlaɗa á duksa gergere keni, ba ge sarte cekwaaŋguɗi. 7 Zlaɗa na kwá sháná kure kina na wá, baɗemme á una ba ge kura fetarfire á kure, máki fakurtarfe á ba an jirire. Dindar wá, á njeka dem ba ge ɗekiɗeki. Amá tá ezzhárá emnde am kárá, máki ba dindar miyenne. Sakwa fetarfire emtu? Diyaweddiye geni an dárádza ba fetarfire á kure arge dindar. Zlaɗa á kure kina na wá, ba ge kura fetarfire á kure ŋanna. Am iga a una ŋanna maa, watse kwá shá gálá áza Dadaamiya, antara ƴaikkire ira dárádza, vacite na má watse sasse Yaisu Almasiihu á sawa am ice á emnde baɗemme. 8 Ndza nakuranka an ice á kure, kina keni ɓaaka ura á nanna, aley wayakurwáyá, fakurtarfe áte ŋane. Aɗaba una ŋanna emtake ervauŋɗe á kure, kwakya higa á kure, yá taa palanaaka baɗemme. 9 Kwakya higa á kure, aɗaba diyakurdiya názena kwá de shaná kure aɗaba fakurtarfe na. Duksa ŋanna wá, kwá de lyelye shifa á kure. 10 Ate elva a lya shifa ŋanna wá, nabi-aha ta ettataya diyeddiye-aara an eŋkale-aatare baɗemme, ganakini Dadaamiya á de lyaná estara emnde. Daaci ta fantau ge ɓalateraa ŋgurna ŋanna kwa shanaa kure na ge emnde. 11 Emtsaaɗe wá, a ɓalatersaa Sheɗekwe á Almasiihu na aŋkwa am itare na, zlaɗa na watse á de shaná Almasiihu ŋanna, antara ƴaikkire na watse á de shaná am iga a zlaɗa ŋanna. Daaci ta ettataya diyeddiye-aara an eŋkale-aatare baɗemme, ganakini watse á de magava am zamane-ara, á de magava estara. 12 Dadaamiya a naba maraterse ganakini duksa ŋanna wá, watse á magava am zamane-aatare ka, amá am zamane á kure. Ta ɓalakurse ba ŋane emnde a ɓala labare á higa, elva á Almasiihu. Ta ɓalakurse waazu ŋanna an hákuma á Sheɗekwe Cuɗeɗɗe na a ɓelanaa Dadaamiya á sawa am samaya na. Ba malika-aha keni tá kátá ba dise huɗe-aara baɗemme. 17 Am maduwa á kure kwá aŋkwa ɗaha Dadaamiya an Dada. Watse á kyaná ba ŋane shairiya á emnde baɗemme, ma ware keni áte názena a maganaa edda-aara, ŋane á zhareka ice á ura ɗekiɗeki. Máki diyakurdiya estuwa wá, kuvaukuva ba Dadaamiya palle am zláláva á kure baɗemme, am sarte á kure na jauje cekwaaŋguɗi ge njá am duniya na. 18 Diyakurdiya geni a se varakursaa ba Yaisu Almasiihu am zláláva á eggye-aha a kure werre na ɓaaka nampire-aara ɗekiɗeki na. A varakurse an shuŋgu ka, an dindar ka, aɗaba duksa-aha ŋanna tá njeka dem ba ge ɗekiɗeki. 19 Amá a varakurse an uzhe á ire-aara jauje ge duksa baɗemme. Yaisu Almasiihu wá, ŋane gevge ba seke egdza zhel kyawe á sadake á Dadaamiya, ɓaaka ververe áte ŋane, ɓaaka duksa mandzawe am ŋane ɗekiɗeki. 20 A eksesaa Dadaamiya ganakini watse á varakurvárá an ŋane na wá, kwaye am fakta, amá náwa a sanse am sali kataliya á zamane na, ganakini á magakurá shagerire ŋanna. 21 Aɗaba ba ŋane una, fakurtarfe áte Dadaamiya na a tsante ŋane am faya, a vante ƴaikkire na. Estuwa, fakurtarfe áte Dadaamiya, fakurtefa tama á kure á ba áte ŋane palle. 22 Kina wá, an bárá ervauŋɗe á kure, aɗaba kwá aŋkwa fansarfe ge Dadaamiya am elva-aara na ba jirire na. Aɗaba una ŋanna, kwá aŋkwa waya egdzar mama-aha á kure an ervauŋɗe á kure palle. Daaci wayawavewaye am dagave á kure ma vaatara keni áte una ŋanna. 23 Aɗaba Dadaamiya yaikurseye ge buwire an elva-aara na á fá shifa am ura, á zleka ɗekiɗeki na. Daaci kina wá, gakurevka wulfe-aha á edda una á emtsa na, amá kwa wulfe-aha á edda á shifa na á zleka ɗekiɗeki na. 24 Aɗaba a ba wakita á Dadaamiya: «Baɗemme á emnde ta ba seke másá, á shekwaaka ula, zarire-aatare ba seke zarire á ugbene-aha, á shekwaaka valya á dem áhá. Elva ŋanna wá, ba labare á higa na kwa cenancena na.
english
import React from 'react'; import Nav from 'components/nav'; import { connect } from 'dva'; import { homeworkRow } from 'components/row'; import TitleBox from 'components/titlecontainer'; import { routerRedux } from 'dva/router'; import homework from '../../models/homework'; class Homework extends React.Component { constructor (props) { super(props); } Click = (dispatch) => { dispatch(routerRedux.push({ pathname: '/homeworklist', })); }; render () { const { name = '' } = this.props.location.query; const { listData } = this.props.homework; return ( <div> <Nav title={name} dispatch={this.props.dispatch} /> <TitleBox title='课程' sup='' /> {homeworkRow(listData, this.Click.bind(null, this.props.dispatch))} </div> ); } } export default connect(({ homework }) => ({ homework, }))(Homework);
javascript
Weather Update: Monsoon activities have intensified in the country for the last few days and most parts of the country are receiving torrential rains. Due to this people have got relief from the heat but many areas have been submerged. Rivers are in spate and the risk of flooding has increased. Meanwhile, the Meteorological Department has predicted heavy rains in many places even today. According to the Meteorological Department (IMD), the axis of Monsoon trough remains in North India. Due to which the monsoon will remain active continuously for the next few days in the states of North India and Central India. Rains will continue at many places including Odisha, Jharkhand, Bihar, Uttar Pradesh, Punjab, Haryana, Madhya Pradesh, Rajasthan, Maharashtra, Gujarat and Delhi. Along with this, heavy rain is also forecast in Jammu and Kashmir, Uttarakhand and Himachal Pradesh till July 27. The Meteorological Department has issued an alert of torrential rains for the next 4 days in Chhattisgarh and Madhya Pradesh. Along with this, rain is also expected in Arunachal Pradesh, Assam, Meghalaya, Nagaland, Manipur, Mizoram and Tripura during the next 4 days. At the same time, an alert of heavy rain has also been issued in West Bengal and Sikkim. At the same time, according to private weather forecasting agency Skymet Weather, light to heavy rains are expected in many areas of Madhya Pradesh, Rajasthan, Gujarat, Chhattisgarh and Telangana. Rain is also forecast in Jammu and Kashmir, Himachal Pradesh, Uttarakhand, Punjab, Haryana, Delhi, Uttar Pradesh, Bihar, Jharkhand, Karnataka and Kerala. Moderate rain is also likely over Odisha, West Rajasthan, Saurashtra and Kutch. Let us tell you that in many states of the country, it has been raining continuously for the last several days. In many states including Maharashtra, Uttarakhand, Gujarat, Rajasthan and Madhya Pradesh, people are facing difficulties due to heavy rains.
english
[{"id":1,"name":"<NAME>","email":"<EMAIL>","phone":"(992) 914-3792"},{"id":5,"name":"<NAME>","email":"<EMAIL>","phone":"(501) 472-5218"},{"id":6,"name":"<NAME>","email":"<EMAIL>","phone":"(186) 568-3720"},{"id":7,"name":"<NAME>","email":"<EMAIL>","phone":"(715) 598-5792"},{"id":8,"name":"<NAME>","email":"<EMAIL>","phone":"(233) 738-2360"},{"id":9,"name":"<NAME>","email":"<EMAIL>","phone":"(704) 398-7993"},{"id":96,"name":"Lena","email":"<EMAIL>","phone":"258-65-89"},{"id":27,"name":"Mango","email":"<EMAIL>","phone":"322-22-22"}]
json
{"derivation": "patrial from another place (in Palestine) of similar name with H751 (\u05d0\u05b6\u05e8\u05b6\u05da\u05b0);", "pron": "ar-kee'", "outline": "<span class=\"literal-meaning\">Archite or Archi = &quot;lengthy&quot;</span><ol><li> referring to the home city of Hushai</li></ol>", "kjv_def": "Archi, Archite.", "lemma": "\u05d0\u05b7\u05e8\u05b0\u05db\u05bc\u05b4\u05d9", "frequency": 6, "strongs_def": "an Arkite or native of Erek", "xlit": "\u02bcArk\u00eey"}
json
<gh_stars>1-10 #include <catch2/catch.hpp> #include "../../log/Logger.h" #include "../System.h" using namespace rdm; // TODO linux //TEST_CASE("System", "getProcessorCount") { // uint64_t min = 1; // uint64_t max = 1024; // ASSERT_LE(min, System::getProcessorCount()); // ASSERT_GE(max, System::getProcessorCount()); // // LOG_DEBUG("processor count: {}", // System::getProcessorCount()); //} // //TEST_CASE(System, getTotalVirtualMemory) { // uint64_t min = 1; // uint64_t max = 1ULL << 63; // ASSERT_LE(min, System::getTotalVirtualMemory()); // ASSERT_GE(max, System::getTotalVirtualMemory()); // // LOG_DEBUG("total virtual memory: {} GB", // System::getTotalVirtualMemory() / 1024 / 1024 / 1024.f); //} // //TEST_CASE(System, getVirtualMemoryUsage) { // uint64_t min = 1; // uint64_t max = 1ULL << 63; // ASSERT_LE(min, System::getVirtualMemoryUsage()); // ASSERT_GE(max, System::getVirtualMemoryUsage()); // // LOG_DEBUG("virtual memory usage: {} GB", // System::getVirtualMemoryUsage() / 1024 / 1024 / 1024.f); //} // //TEST_CASE(System, getVirtualMemoryUsageCurrentProcess) { // uint64_t min = 1; // uint64_t max = 1ULL << 63; // ASSERT_LE(min, System::getVirtualMemoryUsageCurrentProcess()); // ASSERT_GE(max, System::getVirtualMemoryUsageCurrentProcess()); // // LOG_DEBUG("virtual memory usage current process: {} MB", // System::getVirtualMemoryUsageCurrentProcess() / 1024 / 1024.f); //} // //TEST_CASE(System, getTotalPhysicalMemory) { // uint64_t min = 1; // uint64_t max = 1ULL << 63; // ASSERT_LE(min, System::getTotalPhysicalMemory()); // ASSERT_GE(max, System::getTotalPhysicalMemory()); // // LOG_DEBUG("total physical memory: {} GB", // System::getTotalPhysicalMemory() / 1024 / 1024 / 1024.f); //} // //TEST_CASE(System, getPhysicalMemoryUsage) { // uint64_t min = 1; // uint64_t max = 1ULL << 63; // ASSERT_LE(min, System::getPhysicalMemoryUsage()); // ASSERT_GE(max, System::getPhysicalMemoryUsage()); // // LOG_DEBUG("physical memory usage: {} GB", // System::getPhysicalMemoryUsage() / 1024 / 1024 / 1024.f); //} // //TEST_CASE(System, gePhysicalMemoryUsageCurrentProcess) { // uint64_t min = 1; // uint64_t max = 1ULL << 63; // ASSERT_LE(min <= System::gePhysicalMemoryUsageCurrentProcess()); // ASSERT_GE(max >= System::gePhysicalMemoryUsageCurrentProcess()); // // LOG_DEBUG("physical memory usage current process: {} MB", // System::gePhysicalMemoryUsageCurrentProcess() / 1024 / 1024.f); //} // //TEST_CASE(System, getCpuCurrentUsage) { // System::initCpuCurrentUsage(); // for (auto i = 0; i < 1 * 1000 * 1000; ++i) { // std::srand(0); // } // auto usage = System::getCpuCurrentUsage(); // ASSERT_LT(0 < usage); // ASSERT_GE(100 >= usage); // // LOG_DEBUG("cup current usage: {} %", usage); //} // //TEST_CASE(System, getCpuCurrentProcessUsage) { // System::initCpuCurrentProcessUsage(); // for (auto i = 0; i < 1 * 1000 * 1000; ++i) { // std::srand(0); // } // auto usage = System::getCpuCurrentProcessUsage(); // ASSERT_LT(0 < usage); // ASSERT_GE(100 >= usage); // // LOG_DEBUG("cup current process usage: {} %", usage); //}
cpp
<filename>src/libwaylandsfpanel.rs use smithay_client_toolkit::{ default_environment, environment::SimpleGlobal, new_default_environment, output::{with_output_info, OutputInfo}, reexports::{ calloop, client::protocol::{ wl_output, wl_pointer::{self, ButtonState}, wl_shm, wl_surface, wl_touch, }, client::{Attached, Main}, protocols::wlr::unstable::layer_shell::v1::client::{ zwlr_layer_shell_v1, zwlr_layer_surface_v1, }, }, seat, shm::DoubleMemPool, WaylandSource, }; use std::{ cell::{Cell, RefCell}, io::{self, Seek, SeekFrom, Write}, rc::Rc, }; default_environment!(Env, fields = [ layer_shell: SimpleGlobal<zwlr_layer_shell_v1::ZwlrLayerShellV1>, ], singles = [ zwlr_layer_shell_v1::ZwlrLayerShellV1 => layer_shell ], ); #[derive(Clone)] pub struct ApplicationSettings { pub namespace: String, pub layer: zwlr_layer_shell_v1::Layer, pub size: WindowSize, pub exclusive_zone: i32, pub margins: (u32, u32, u32, u32), pub anchor: zwlr_layer_surface_v1::Anchor, } #[derive(Clone, Copy, PartialEq)] pub struct PointerPosition(pub f64, pub f64); #[derive(Clone, Copy)] pub struct WindowSize(pub u32, pub u32); pub trait Application: Sized + Clone { fn new() -> Self; fn settings(&self) -> ApplicationSettings; fn draw(&mut self, size: WindowSize, buffer: &mut [u8]); fn input_start_gesture(&mut self, pos: PointerPosition) -> Option<RenderEvent>; fn input_stop_gesture(&mut self) -> Option<RenderEvent>; fn input_movement(&mut self, pos: PointerPosition) -> Option<RenderEvent>; fn input_commit_gesture(&mut self) -> Option<RenderEvent>; } #[derive(PartialEq, Copy, Clone)] pub enum RenderEvent { Render, Configure { width: u32, height: u32 }, Closed, } struct Surface<T: Application> { app: T, surface: wl_surface::WlSurface, layer_surface: Main<zwlr_layer_surface_v1::ZwlrLayerSurfaceV1>, next_render_event: Rc<Cell<Option<RenderEvent>>>, pools: DoubleMemPool, dimensions: WindowSize, /// User requested exit should_exit: bool, last_pointer_location: Option<PointerPosition>, } impl<T: Application> Surface<T> { fn new( app: T, output: &wl_output::WlOutput, surface: wl_surface::WlSurface, layer_shell: &Attached<zwlr_layer_shell_v1::ZwlrLayerShellV1>, pools: DoubleMemPool, ) -> Self { let settings = app.settings(); let layer_surface = layer_shell.get_layer_surface( &surface, Some(&output), settings.layer, settings.namespace.to_owned(), ); layer_surface.set_size(settings.size.0, settings.size.1); layer_surface.set_exclusive_zone(settings.exclusive_zone); layer_surface.set_anchor(settings.anchor); let next_render_event = Rc::new(Cell::new(None::<RenderEvent>)); let next_render_event_handle = Rc::clone(&next_render_event); layer_surface.quick_assign(move |layer_surface, event, _| { match (event, next_render_event_handle.get()) { (zwlr_layer_surface_v1::Event::Closed, _) => { next_render_event_handle.set(Some(RenderEvent::Closed)); } ( zwlr_layer_surface_v1::Event::Configure { serial, width, height, }, next, ) if next != Some(RenderEvent::Closed) => { layer_surface.ack_configure(serial); next_render_event_handle.set(Some(RenderEvent::Configure { width, height })); } (_, _) => {} } }); // Commit so that the server will send a configure event surface.commit(); Self { app: app, surface, layer_surface, next_render_event, pools, dimensions: WindowSize(0, 0), should_exit: false, last_pointer_location: None, } } /// Handles any events that have occurred since the last call, redrawing if needed. /// Returns true if the surface should be dropped. fn handle_events(&mut self) -> bool { match self.next_render_event.take() { Some(RenderEvent::Render) => { self.draw(); false } Some(RenderEvent::Closed) => true, Some(RenderEvent::Configure { width, height }) => { self.dimensions = WindowSize(width, height); self.draw(); false } None => self.should_exit, } } fn update_event(&mut self, result: Option<RenderEvent>) { if let Some(..) = result { self.next_render_event.set(result); } } fn input_stop_gesture(&mut self) { let result = self.app.input_stop_gesture(); self.update_event(result); } fn input_start_gesture(&mut self, pos: PointerPosition) { let result = self.app.input_start_gesture(pos); self.update_event(result); } fn input_movement(&mut self, pos: PointerPosition) { let result = self.app.input_movement(pos); self.update_event(result); } fn input_commit_gesture(&mut self) { let result = self.app.input_commit_gesture(); self.update_event(result); } fn handle_touch_event(&mut self, event: &wl_touch::Event) { match event { wl_touch::Event::Cancel => self.input_stop_gesture(), wl_touch::Event::Down { x, y, .. } => self.input_start_gesture(PointerPosition(*x, *y)), wl_touch::Event::Motion { x, y, .. } => self.input_movement(PointerPosition(*x, *y)), wl_touch::Event::Up { .. } => self.input_commit_gesture(), _ => {} } } fn handle_pointer_event(&mut self, event: &wl_pointer::Event) { match event { wl_pointer::Event::Leave { .. } => { self.input_stop_gesture(); self.last_pointer_location = None; } wl_pointer::Event::Enter { surface_x, surface_y, .. } | wl_pointer::Event::Motion { surface_x, surface_y, .. } => { let pos = PointerPosition(*surface_x, *surface_y); self.last_pointer_location = Some(pos); self.input_movement(pos); } wl_pointer::Event::Button { state: ButtonState::Pressed, .. } => self.input_start_gesture( self.last_pointer_location // TODO: maybe there's a better way // should be fine for now .unwrap_or(PointerPosition(0., 0.)), ), wl_pointer::Event::Button { state: ButtonState::Released, .. } => self.input_commit_gesture(), _ => {} } } fn draw(&mut self) { let pool = match self.pools.pool() { Some(pool) => pool, None => return, }; let stride = 4 * self.dimensions.0 as i32; let width = self.dimensions.0 as i32; let height = self.dimensions.1 as i32; // First make sure the pool is the right size pool.resize((stride * height) as usize).unwrap(); let mut buf: Vec<u8> = vec![0; (4 * width * height) as usize]; self.app.draw(self.dimensions, &mut buf); pool.seek(SeekFrom::Start(0)).unwrap(); pool.write_all(buf.as_slice()).unwrap(); pool.flush().unwrap(); // Create a new buffer from the pool let buffer = pool.buffer(0, width, height, stride, wl_shm::Format::Argb8888); // Attach the buffer to the surface and mark the entire surface as damaged self.surface.attach(Some(&buffer), 0, 0); self.surface .damage_buffer(0, 0, width as i32, height as i32); // Finally, commit the surface self.surface.commit(); } } impl<T: Application> Drop for Surface<T> { fn drop(&mut self) { self.layer_surface.destroy(); self.surface.destroy(); } } pub fn run_application<A>() where A: Application + 'static, { let (env, display, queue) = new_default_environment!(Env, fields = [layer_shell: SimpleGlobal::new(),]) .expect("Initial roundtrip failed!"); let surfaces = Rc::new(RefCell::new(Vec::new())); let layer_shell = env.require_global::<zwlr_layer_shell_v1::ZwlrLayerShellV1>(); let env_handle = env.clone(); let surfaces_handle = Rc::clone(&surfaces); let template = A::new(); let output_handler = move |output: wl_output::WlOutput, info: &OutputInfo| { if info.obsolete { // an output has been removed, release it surfaces_handle.borrow_mut().retain(|(i, _)| *i != info.id); output.release(); } else { // an output has been created, construct a surface for it let surface = env_handle.create_surface().detach(); let pools = env_handle .create_double_pool(|_| {}) .expect("Failed to create a memory pool!"); let app = template.clone(); (*surfaces_handle.borrow_mut()).push(( info.id, Surface::new(app, &output, surface, &layer_shell.clone(), pools), )); } }; for seat in env.get_all_seats() { if let Some(has_ptr) = seat::with_seat_data(&seat, |seat_data| { !seat_data.defunct && seat_data.has_pointer }) { if has_ptr { let touch = seat.get_pointer(); let surfaces_handle = surfaces.clone(); touch.quick_assign(move |_, event, _| { for surface in (*surfaces_handle).borrow_mut().iter_mut() { // We should be filtering this down so we only pass // the event on to the appropriate surface. TODO surface.1.handle_pointer_event(&event); } }); } } if let Some(has_ptr) = seat::with_seat_data(&seat, |seat_data| !seat_data.defunct && seat_data.has_touch) { if has_ptr { let touch = seat.get_touch(); let surfaces_handle = surfaces.clone(); touch.quick_assign(move |_, event, _| { for surface in (*surfaces_handle).borrow_mut().iter_mut() { // We should be filtering this down so we only pass // the event on to the appropriate surface. TODO surface.1.handle_touch_event(&event); } }); } } } // Process currently existing outputs for output in env.get_all_outputs() { if let Some(info) = with_output_info(&output, Clone::clone) { output_handler(output, &info); } } // Setup a listener for changes // The listener will live for as long as we keep this handle alive let _listner_handle = env.listen_for_outputs(move |output, info, _| output_handler(output, info)); let mut event_loop = calloop::EventLoop::<()>::try_new().unwrap(); WaylandSource::new(queue) .quick_insert(event_loop.handle()) .unwrap(); loop { // This is ugly, let's hope that some version of drain_filter() gets stabilized soon // https://github.com/rust-lang/rust/issues/43244 { let mut surfaces = surfaces.borrow_mut(); let mut i = 0; while i != surfaces.len() { if surfaces[i].1.handle_events() { surfaces.remove(i); } else { i += 1; } } } // Return early here if all surface are gone, otherwise the event loop // dispatch will panic with an error about not handling an event. if surfaces.borrow().is_empty() { return; } display.flush().unwrap(); match event_loop.dispatch(None, &mut ()) { Ok(..) => {} Err(err) => { // err interrupted somehow happens after suspend :/ if err.kind() != io::ErrorKind::Interrupted { panic!("Unexpected dispatch event: {:?}", err); } } } } }
rust
<filename>manifest.json { "Name": "Bow", "Author": "spacechase0", "Version": "1.0.2", "Description": "A ranged weapon.", "UniqueID": "spacechase0.Bow", "EntryDll": "Bow.dll", "MinimumApiVersion": "2.9.0", "UpdateKeys": [ "Nexus:2756", "Chucklefish:5523" ], "Dependencies": [ { "UniqueID": "Platonymous.Toolkit" }, { "UniqueID": "spacechase0.SpaceCore" } ], "spacechase0": "bow" }
json
Ahead of the Winter session of Parliament scheduled later next month, the Centre has called a consultation meeting with states next week to discuss various contentious issues in the proposed long-pending goods and services tax (GST), along with the draft reports on business processes on GST registration, refunds and payment. “The meeting will discuss the progress made on various aspects of implementing the proposed new indirect tax regime from the next financial year. Finance ministry officials of states would be attending the meeting along with the Central officials,” an official source told The Indian Express. The meeting is also likely to take up the eight-point dissent given by the Congress members of the Parliamentary Standing Committee, which had submitted its report on the Bill in May. This includes ceiling the GST rate at 18 per cent and scrapping of the additional 1 per cent levy for manufacturing states, inclusion of tobacco, electricity and alcohol in the GST structure. The government is pinning hopes on the upcoming Winter session to get the GST Bill passed. This will be the last opportunity for the government in order to roll out the new tax regime from the next fiscal. The Constitution (122nd Amendment) Bill, 2014, is pending passage in the Rajya Sabha, where the government does not enjoy a majority. The passage of the Bill is vital for implementing the new indirect tax regime as it empowers the Centre to levy tax on goods beyond factory gate while it empowers states to charge service tax. “The committee under the Chief Economic Advisor on arriving at a revenue-neutral rate is already seized of the issue. This will be taken up by them as well. The report on the revenue-neutral rate would be submitted soon. The meeting next week will dwell on this issue as well,” the source said. While the government has announced the implementation of the new regime from April 1, 2016, there are doubts that the deadline would be met. For the implementation, the Bill needs a two-thirds majority in both the Houses and ratification by 50 per cent of states, a time-consuming task. The Centre has already invited comments on the draft business processes on GST registration, GST refunds and GST payments by October 31. According to the draft report on refunds and payments, taxpayers would be provided for monthly filing of returns for business-to-business dealings through a set of eight forms for different categories of transactions. As per the proposal, the returns can be filed on a specific date of a month, like on 10th of next month for outward supplies, 15th for inward supplies and 20th in case of monthly returns. Similarly, the joint committee on business process for GST return has suggested filing of a periodic e-return for central, state and integrated GST. There would also be provision for filing of GST returns by non-resident tax payers including tax aggregators like Uber.
english
Pyongyang: North Korea has threatened a harsh response to any attempt to give up its nuclear weapons, citing a recently revised policy that allows for the use of nuclear bombs in the event of a grave threat. Senior Foreign Ministry official Jo Chol-su attacked US Ambassador to the United Nations Linda Thomas-Greenfield in comments published by the state-run Korean Central News Agency (KCNA) on Wednesday. Thomas-Greenfield earlier this week urged the international body to adopt a resolution aimed at forcing Pyongyang to give up its nuclear weapons. He added that an attempt to do so "will be dealt with strictly in accordance with the DPRK's nuclear forces," adding that to do so would be a declaration of war. A nuclear attack by a foreign power or when a "catastrophic crisis endangers the existence of the state or the security of the people" are only two of the five scenarios outlined in North Korea's recently passed nuclear weapons law that has changed its nuclear weapons policies. updated. The US and its allies must work toward the "complete, verifiable and irreversible" denuclearization of North Korea, Thomas-Greenfield reiterated calls made by several prior administrations during a UN meeting on Monday. However, the DPRK has repeatedly rejected US demands, claiming that its weapons are only for defensive purposes and that it has a legal right to possess them. The representative also accused Russia and China of obstructing disarmament efforts as both countries regularly veto US-backed resolutions at the UN Security Council. Moscow and Beijing have issued warnings that Washington's current strategy is unlikely to be effective and will only serve to increase tensions between the two Koreas. Jo continued to threaten that Thomas-Greenfield "will be the first to stand in the judgment seat of justice as a pawn of the evil empire" if she "continues to speak maliciously without self-restraint" – Former President Ronald Reagan An explicit work of the famous description of the Soviet Union at the height of the Cold War. Military activity on the Korean peninsula has increased significantly recently, and the North conducted a record number of weapons tests last year while Seoul and the US regularly engage in war games. Since coming to power in 2021, the current administration has taken a more combative approach, issuing a constant stream of threats and ultimatums. While former President Donald Trump made occasional diplomatic inroads with Pyongyang, including a "freeze-for-freeze" deal that halted the DPRK's missile tests and US-South Korean exercises, the current administration has taken much more Took an aggressive approach.
english
{ "name": "http-metrics", "version": "1.0.0", "description": "This is a simple Monitoring system application This app sends periodic HTTP request to a URL and records latency and availability for that particular URL. it is similar to pingdom.com but in a very simple and basic way. Anyone is welcome to improve this", "main": "index.js", "scripts": { "package": "zip -r http-metrics.zip .", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/prashidi/http-metrics.git" }, "keywords": [], "author": "", "license": "ISC", "bugs": { "url": "https://github.com/prashidi/http-metrics/issues" }, "homepage": "https://github.com/prashidi/http-metrics#readme", "dependencies": { "axios": "^0.19.0" }, "devDependencies": { "aws-sdk": "^2.562.0" } }
json
package com.b.a; import com.b.a.a.a.a.a; import com.b.a.a.a.b.b; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.zip.CRC32; import java.util.zip.CheckedOutputStream; public class b { public byte[] a(String... paramVarArgs) { byte[] arrayOfByte = null; b b1 = new b(); int[] arrayOfInt = b1.b(); try { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); CRC32 cRC32 = new CRC32(); DataOutputStream dataOutputStream = new DataOutputStream(new CheckedOutputStream(byteArrayOutputStream, cRC32)); dataOutputStream.writeInt(2); dataOutputStream.writeInt(arrayOfInt.length); for (int k : arrayOfInt) dataOutputStream.writeInt(k); dataOutputStream.flush(); int i = byteArrayOutputStream.size(); if (paramVarArgs == null) { dataOutputStream.writeInt(0); } else { dataOutputStream.writeInt(paramVarArgs.length); for (String str : paramVarArgs) dataOutputStream.writeUTF(str); } dataOutputStream.flush(); dataOutputStream.writeLong(cRC32.getValue()); dataOutputStream.close(); int j = byteArrayOutputStream.size(); arrayOfByte = byteArrayOutputStream.toByteArray(); byte[] arrayOfByte1 = new byte[i]; (new b(305419896, 396776, 1040058, -1745425238)).nextBytes(arrayOfByte1); byte b2; for (b2 = 8; b2 < arrayOfByte1.length; b2++) arrayOfByte[b2] = (byte)((arrayOfByte[b2] ^ arrayOfByte1[b2]) & 0xFF); byte[] arrayOfByte2 = new byte[j]; b1.nextBytes(arrayOfByte2); while (b2 < arrayOfByte2.length) { arrayOfByte[b2] = (byte)((arrayOfByte[b2] ^ arrayOfByte2[b2]) & 0xFF); b2++; } } catch (IOException iOException) { throw new RuntimeException(iOException); } return arrayOfByte; } public String[] a(byte[] paramArrayOfbyte) { String[] arrayOfString = null; byte[] arrayOfByte = null; DataInputStream dataInputStream = new DataInputStream(new ByteArrayInputStream(paramArrayOfbyte)); try { int i = dataInputStream.readInt(); int j = dataInputStream.readInt(); arrayOfByte = new byte[8 + j * 4]; (new b(305419896, 396776, 1040058, -1745425238)).nextBytes(arrayOfByte); for (byte b1 = 8; b1 < arrayOfByte.length; b1++) paramArrayOfbyte[b1] = (byte)((paramArrayOfbyte[b1] ^ arrayOfByte[b1]) & 0xFF); int[] arrayOfInt = new int[j]; for (byte b2 = 0; b2 < j; b2++) arrayOfInt[b2] = dataInputStream.readInt(); byte[] arrayOfByte1 = new byte[paramArrayOfbyte.length]; (new b(arrayOfInt)).nextBytes(arrayOfByte1); int k; for (k = arrayOfByte.length; k < arrayOfByte1.length; k++) paramArrayOfbyte[k] = (byte)((paramArrayOfbyte[k] ^ arrayOfByte1[k]) & 0xFF); if (i >= 2) { CRC32 cRC32 = new CRC32(); cRC32.update(paramArrayOfbyte, 0, paramArrayOfbyte.length - 8); if (cRC32.getValue() != a.d(paramArrayOfbyte, paramArrayOfbyte.length - 8)) throw new IOException("CRC error!!"); } k = dataInputStream.readInt(); arrayOfString = new String[k]; for (byte b3 = 0; b3 < k; b3++) arrayOfString[b3] = dataInputStream.readUTF(); } catch (IOException iOException) { throw new RuntimeException(iOException); } finally { try { dataInputStream.close(); } catch (Exception exception) {} } return arrayOfString; } } /* Location: /mnt/r/ConTenDoViewer.jar!/com/b/a/b.class * Java compiler version: 11 (55.0) * JD-Core Version: 1.1.3 */
java
Salman Khan Hugs Vicky Kaushal After IIFA controversy , Watch the video. All is well between actors Salman Khan and Vicky Kaushal, who are currently in Abu Dhabi for IIFA 2023. On Thursday, a video took the internet by storm wherein Salman’s security can be seen pushing Vicky aside as he bumps into Bhaijaan at the event. The video didn’t go down well with Vicky’s fans on the internet and they felt outraged with how the actor was treated by Salman’s bodyguards and fans. However, on Friday night, Salman surprised everyone on IIFA Rocks green carpet by giving Vicky a wide hug. Take a look at how the duo greeted each other on the red carpet.
english
<reponame>mpslxz/icvae<gh_stars>1-10 input_size = (1, 128, 128) ORIG_SIZE = (480, 640) RESIZE_TO = (input_size[1], input_size[2])
python
## Gb2Fasta: A CLI for Converting GenBank Files to FASTA Format. ### Prerequisites: - Python >= 3.6 ### Quickstart: ``` pip install gb2fasta ``` ### Quickstart: ``` Usage: gb2fasta [OPTIONS] FILE Arguments: File GenBank file (.gb) to convert to fasta format (.fasta). Options: -v, --version Show version number and exit. --help Show this message and exit. ``` e.g. ``` gb2fasta pRS315.gb ```
markdown
""" Copyright 2021 <NAME>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import os from dataclasses import dataclass import pygmo as pg from yacos.essential import Sequence from yacos.essential import IO from yacos.essential import Engine class Pygmo: """A Pygmo's strategy.""" __version__ = '1.0.0' __flags = None # {key: {'goal': float, # 'seq': list}} __results = None # SGA # {gen = {'fevals': int, # 'best': float, # 'improvement': float}} # # PSO # {gen: {'fevals': int, # 'gbest': float, # 'meanvel': float, # 'meanlbest': float, # 'avgdist': float} __log = None class Problem: """Pygmo's problem.""" def __init__(self, first_key, last_key, passes_dict, dimension, goal, compiler, benchmark_directory, working_set, times, tool, verify_output): """Construct a Pygmo problem. Parameters ---------- first_key : int The index of the first pass. last_key : int The index of the last pass. passes_dict : dict The dictionary with the available passes. dimension : int The length of a sequence. goal : str compiler : str benchmark_directory : str working_set : int times: int tool: str Execution tool verify_output: bool The goal is valid only if the execution status is OK. """ self.first_key = first_key self.last_key = last_key self.passes_dict = passes_dict self.dimension = dimension self.goal = goal self.compiler = compiler self.benchmark_directory = benchmark_directory self.working_set = working_set self.times = times self.tool = tool self.verify_output = verify_output def __deepcopy__(self, *args, **kwargs): """Deeep copy.""" return self def fitness(self, sequence): """Calculate and return the fitness.""" sequence = Sequence.fix_index(list(sequence)) sequence = Sequence.sanitize(sequence) sequence = Sequence.index_pass_to_list(sequence, self.passes_dict) goal_value = Engine.evaluate(self.goal, Sequence.name_pass_to_string( sequence ), self.compiler, self.benchmark_directory, self.working_set, self.times, self.tool, self.verify_output) return [goal_value] def get_nix(self): """Integer dimension of the problem.""" return self.dimension def get_bounds(self): """Box-bounds.""" return ([self.first_key] * self.dimension, [self.last_key] * self.dimension) def get_name(self): """Problem name.""" return 'Optimization Selection' def get_extra_info(self): """Info.""" return '\tDimensions: ' + str(self.dimension) @dataclass class PygmoFlags: """Pygmo flags. Parameters ---------- first_key : int The index of the first pass. last_key : int The index of the last pass. passes_dict : dict The dictionary with the available passes. dimension : int The length of a sequence. population : int goals : dict compiler : str benchmarks_directory : str working_set : int The dataset to execute the benchmark. times: int Execution times tool : str Execution tool verify_output: bool The goal is valid only if the execution status is OK. """ first_key: int last_key: int passes_dict: dict dimension: int population: int goals: dict compiler: str benchmarks_directory: str working_set: int times: int tool: str verify_output: bool def __init__(self, dimension, population, passes_filename, goals, compiler, benchmarks_directory, working_set, times, tool, verify_output): """Initialize the arguments. Parameters ---------- dimension : int The length of a sequence. population : int passes_filename : str The file that describes the passes to use. goals : dict compiler : str benchmarks_directory : str working_set : int The dataset to execute the benchmark. times: int Execution times tool: str Execution tool verify_output: bool The goal is valid only if the execution status is OK. """ first_key, last_key, passes_dict = IO.load_passes(passes_filename) # When the goal is obtained during compile time # and the working set is not defined during compilation, # we do not need the working set. self.__flags = self.PygmoFlags(first_key, last_key, passes_dict, dimension, population, goals, compiler, benchmarks_directory, working_set, times, tool, verify_output) @property def results(self): """Getter.""" return self.__results @property def log(self): """Getter.""" return self.__log def exec(self, algorithm, benchmark): """Execute the algorithm. Parameter --------- algorithm : Pygmo algorithm benchmark : str """ # Step 1: Algorithm algorithm = pg.algorithm(algorithm) # algorithm.set_verbosity(1) # Step 2: Instantiate a pygmo problem index = benchmark.find('.') # Benchmark directtory bench_dir = os.path.join(self.__flags.benchmarks_directory, benchmark[:index], benchmark[index+1:]) problem = self.Problem(self.__flags.first_key, self.__flags.last_key, self.__flags.passes_dict, self.__flags.dimension, self.__flags.goals, self.__flags.compiler, bench_dir, self.__flags.working_set, self.__flags.times, self.__flags.tool, self.__flags.verify_output) problem = pg.problem(problem) # Step 3: The initial population population = pg.population(problem, self.__flags.population) # Step 4: Evolve the population population = algorithm.evolve(population) # Step 5: Get the results sga_sequence = population.get_x().tolist() sga_fitness = population.get_f().tolist() self.__results = {} for index in range(self.__flags.population): sequence = Sequence.index_pass_to_list(sga_sequence[index], self.__flags.passes_dict) goal_value = sga_fitness[index][0] if goal_value == float('inf'): continue self.__results[index] = {'seq': sequence, 'goal': goal_value} # Step 6: Get the log self.__log = {} if algorithm.get_name() == 'SGA: Genetic Algorithm': uda = algorithm.extract(pg.sga) log = uda.get_log() for (gen, fevals, best, improvement) in log: self.__log[gen] = {'fevals': fevals, 'best': best, 'improvement': improvement} elif algorithm.get_name() == 'PSO: Particle Swarm Optimization': uda = algorithm.extract(pg.pso) log = uda.get_log() for (gen, fevals, gbest, meanvel, meanlbest, avgdist) in log: self.__log[gen] = {'fevals': fevals, 'gbest': gbest, 'meanvel': meanvel, 'meanlbest': meanlbest, 'avgdist': avgdist} class SGA(Pygmo): """Simple Genetic Algorithm.""" __version__ = '1.0.0' __flags = None @dataclass class Flags: """Pygmo flags. Parameters ---------- generations : int cr : float Crossover probability m : float Mutation probability param_m : float Distribution index (polynomial mutation), gaussian width (gaussian mutation) or inactive (uniform mutation) param_s : float The number of best individuals to use in “truncated” selection or the size of the tournament in tournament selection. crossover : str exponential, binomial or single mutation : str gaussian, polynomial or uniform selection : str tournament or truncated seed : int """ generations: int cr: float m: float param_m: float param_s: float crossover: str mutation: str selection: str seed: int def __init__(self, generations, population, cr, m, param_m, param_s, crossover, mutation, selection, seed, dimension, passes_filename, goals, compiler, benchmarks_directory, working_set, times, tool, verify_output): """Initialize a SGA object. Parameters ---------- generations : int population : int cr : float Crossover probability m : float Mutation probability param_m : float Distribution index (polynomial mutation), gaussian width (gaussian mutation) or inactive (uniform mutation) param_s : float The number of best individuals to use in “truncated” selection or the size of the tournament in tournament selection. crossover : str exponential, binomial or single mutation : str gaussian, polynomial or uniform selection : str tournament or truncated seed : int dimension : int The length of a sequence. passes_filename : str The file that describes the passes to use. goals : dict compiler : str benchmarks_directory : str working_set : int The dataset to execute the benchmark. times : int Execution times tool : str Execution tool verify_output: bool The goal is valid only if the execution status is OK. """ self.__flags = self.Flags(generations, cr, m, param_m, param_s, crossover, mutation, selection, seed) super().__init__(dimension, population, passes_filename, goals, compiler, benchmarks_directory, working_set, times, tool, verify_output) def run(self, benchmark): """Execute the algorithm. Parameter -------- benchmark: str """ if self.__flags.seed is None: algorithm = pg.sga(gen=self.__flags.generations, cr=self.__flags.cr, m=self.__flags.m, param_m=self.__flags.param_m, param_s=self.__flags.param_s, crossover=self.__flags.crossover, mutation=self.__flags.mutation, selection=self.__flags.selection) else: algorithm = pg.sga(gen=self.__flags.generations, cr=self.__flags.cr, m=self.__flags.m, param_m=self.__flags.param_m, param_s=self.__flags.param_s, crossover=self.__flags.crossover, mutation=self.__flags.mutation, selection=self.__flags.selection, seed=self.__flags.seed) # Execute super().exec(algorithm, benchmark) class PSO(Pygmo): """Particle Swarm Optimization.""" __version__ = '1.0.0' __flags = None @dataclass class Flags: """PSO flags. Parameters ---------- generations : int omega : float Inertia weight (or constriction factor) eta1 : float Social component eta2 : float Cognitive component max_vel : float Maximum allowed particle velocities (normalized with respect to the bounds width) variant : int Algorithmic variant neighb_type : int Swarm topology (defining each particle’s neighbours) neighb_param : int Topology parameter (defines how many neighbours to consider) memory : bool When true the velocities are not reset between successive calls to the evolve method seed : int Seed used by the internal random number generator. """ generations: int omega: float eta1: float eta2: float max_vel: float variant: int neighb_type: int neighb_param: int memory: bool seed: int def __init__(self, generations, population, omega, eta1, eta2, max_vel, variant, neighb_type, neighb_param, memory, seed, dimension, passes_filename, goals, compiler, benchmarks_directory, working_set, times, tool, verify_output): """Initialize a PSO object. Parameters ---------- generations : int population : int omega : float Inertia weight (or constriction factor) eta1 : float Social component eta2 : float Cognitive component max_vel : float Maximum allowed particle velocities (normalized with respect to the bounds width) variant : int Algorithmic variant neighb_type : int Swarm topology (defining each particle’s neighbours) neighb_param : int Topology parameter (defines how many neighbours to consider) memory : bool When true the velocities are not reset between successive calls to the evolve method seed : int Seed used by the internal random number generator. """ self.__flags = self.Flags(generations, omega, eta1, eta2, max_vel, variant, neighb_type, neighb_param, memory, seed) super().__init__(dimension, population, passes_filename, goals, compiler, benchmarks_directory, working_set, times, tool, verify_output) def run(self, benchmark): """Execute the algorithm. Parameter -------- benchmark : str """ if self.__flags.seed: algorithm = pg.pso(self.__flags.generations, self.__flags.omega, self.__flags.eta1, self.__flags.eta2, self.__flags.max_vel, self.__flags.variant, self.__flags.neighb_type, self.__flags.neighb_param, self.__flags.memory, self.__flags.seed) else: algorithm = pg.pso(self.__flags.generations, self.__flags.omega, self.__flags.eta1, self.__flags.eta2, self.__flags.max_vel, self.__flags.variant, self.__flags.neighb_type, self.__flags.neighb_param, self.__flags.memory) # Execute super().exec(algorithm, benchmark)
python
[ { "DeniedAlternatives": [], "Files": { "objects/vanity/cute/cuteflag/cuteflag.object": [ "/description" ] }, "Texts": { "Chs": "一面可爱的旗帜。按^green;[E]^white;来记录这面旗帜的传送坐标。", "Eng": "A cute flag. Use ^green;[E]^white; to bookmark a teleportation location.^reset;" } }, { "DeniedAlternatives": [], "Files": { "objects/vanity/cute/cuteflag/cuteflag.object": [ "/shortdescription" ] }, "Texts": { "Chs": "可爱的旗帜", "Eng": "Cute Flag" } } ]
json
7 But into the second [division of the tabernacle] none but the high priest goes, and he only once a year, and never without taking a sacrifice of blood with him, which he offers for himself and for the errors and sins of ignorance and thoughtlessness which the people have committed.(A) 8 By this the Holy Spirit points out that the way into the [true Holy of] Holies is not yet thrown open as long as the former [the outer portion of the] tabernacle remains a recognized institution and is still standing, 9 Seeing that that first [outer portion of the] tabernacle was a parable (a visible symbol or type or picture of the present age). In it gifts and sacrifices are offered, and yet are incapable of perfecting the conscience or of cleansing and renewing the inner man of the worshiper. 10 For [the ceremonies] deal only with clean and unclean meats and drinks and different washings, [mere] external rules and regulations for the body imposed to tide the worshipers over until the time of setting things straight [of reformation, of the complete new order when Christ, the Messiah, shall establish the reality of what these things foreshadow—a better covenant]. 11 But [that appointed time came] when Christ (the Messiah) appeared as a High Priest of the better things that have come and are to come. [Then] through the greater and more perfect tabernacle not made with [human] hands, that is, not a part of this material creation, 12 He went once for all into the [Holy of] Holies [of heaven], not by virtue of the blood of goats and calves [by which to make reconciliation between God and man], but His own blood, having found and secured a complete redemption (an everlasting release for us). 13 For if [the mere] sprinkling of unholy and defiled persons with blood of goats and bulls and with the ashes of a burnt heifer is sufficient for the purification of the body,(B) 14 How much more surely shall the blood of Christ, Who [a]by virtue of [His] eternal Spirit [His own preexistent [b]divine personality] has offered Himself as an unblemished sacrifice to God, purify our consciences from dead works and lifeless observances to serve the [ever] living God? - Hebrews 9:14 Marvin Vincent, Word Studies. - Hebrews 9:14 Henry Alford, cited by Kenneth Wuest, Word Studies. 25 Nor did He [enter into the heavenly sanctuary to] offer Himself regularly again and again, as the high priest enters the [Holy of] Holies every year with blood not his own. 26 For then would He often have had to suffer [over and over again] since the foundation of the world. But as it now is, He has once for all at the consummation and close of the ages appeared to put away and abolish sin by His sacrifice [of Himself]. 27 And just as it is appointed for [all] men once to die, and after that the [certain] judgment, - Hebrews 9:28 G. Abbott-Smith, Manual Greek Lexicon.
english
(Report coordinated by Richie Lasrado) Mangalore, May 27: The Ullal constituency is witnessing high drama of by-election now. The blame game among the politicians of different parties is going in full swing. Every political leader is now busy blaming the other party leaders. But the voters here are enjoying all this drama and waiting for June 2 to exercise their voting right. The Ullal constituency also has created a scope for a rift between JD (S) and BJP who are the partners of coalition government in the state. Both parties have been vouching that this is a friendly fight between the two parties. While at an election campaign on Friday May 25, state minister and also the JD (S) leader Iqbal Ansari declared that Kumaraswami would continue as chief minister even after the completion of his term, if JDS were to win in Ullal. The chief minister was present on the dais while Ansari spoke so. Later he clarified that he was committed to handing over the CM's post to a BJP candidate later this year and washed his hands off saying that he did not know in what context Ansari had made the remark. BJP state president and Mangalore MP Sadananda Gowda took this statement lightly and described it as an election stunt. But Yediyurappa, present deputy chief minister and widely expected chief ministerial candidate from BJP after completion of JD (S) term, is furious over this statement. He is said to have sought an explanation from both Ansari and Kumaraswamy, especially since the remark was made in the CM's presence. On the other hand, Congress is jittery over the way JD(S) has been going about campaigning. Even chief minister Kumaraswami has camped in the city on Saturday and Sunday and has campaigned in favour of his candidate Abubakkar Natekal for about 2 days. Interestingly, the chief minister has concentrated only on minorities here. Hence, the Congress leaders are blaming JD (S) leaders for breaking minority votes. Janardhan Poojary, former KPCC president, on Saturday May 26 alleged that, JD (S) was sure about its defea and yet the party leaders fielded their candidate only to break the minority votes. Congress or BJP could win this constituency this time, but never JDS. Even though JD (S) is concentrating on minorities here, it is only to help the BJP, he alleged. On the other hand, he cautioned the voters that casting a single vote in favour of JD (S) means would mean two votes for BJP. The CPI has also declared its support to Congress, on the basis of ‘secularism’. Congress has also taken this election seriously than any recent past elections in the coastal area. To counter the effect of the village stay of chief minister H D Kumaraswamy, some bigwigs of the party have decided to stay in the constituency until the election. Hemanath Shetty from Puttur, Byndoor MLA Gopal Poojary, former minister D K Shivakumar, former Karkala MLA Gopal Bhandary and other leaders are reported to have decided to camp here until the election is through. CPI (M) candidate Balakrishna Shetty has also taken the election seriously and is busy with the door-to-door campaign. Bangarappa, president of state Samajavadi Party has pledged his support to CPI (M) here and joined a campaign for him on Saturday. Whatever it is, it is no doubt a straight fight between BJP candidate Chandrashekhar Uchil and Congress candidate U T Khader. The BJP is highlighting the developmental work done by the coalition government in the state. On the other hand, Congress is trying to capitalize on its past achievements and secularism. The question which would remain unanswered till June 5: Who will the voter favour? With cross-voting and abstentions, will a surprise result emerge? Let's keep our fingers crossed. All Eyes on Ullal:
english
Eyes have been on BTS’ military enlistment for a while now. With the group’s oldest member Jin turning 30 this year (international age), fans are keeping a close eye to see if South Korea make a historic change in policies and allow him along with his fellow members RM, Suga, J-Hope, Jimin, V and Jungkook exemption from the compulsory military training. The recent statements of South Korean Defense Minister Lee Jong-sup seems to hint that the possibility of exemption is less but they can accommodate the group’s concert schedule. For the unversed, according to South Korea’s policies, almost all abled men have to undergo compulsory military training. They are asked to enlist before the age of 28. A revision in policies took place in 2019, allowing the two-time Grammy-nominated K-pop stars to delay their service until the age of 30. On Monday, during a parliamentary session, Lee Jong-sup said that he is considering a number of alternative military service options for BTS. This includes allowing them time to prepare and perform international concerts during their service period. As reported by The Korea Herald, Lee Jong-sup said, “(The BTS members) should come to the military, and I believe there will be a way for us to give them the opportunity to practice as well as allow them to leave the country and perform anytime if they have overseas concerts scheduled. " He added, “Many people do think highly of military service itself, and I think (BTS members enlisting) can actually help them with their popularity. " Military Manpower Administration Commissioner Lee Ki-sik also revealed that the administration is currently reviewing “various aspects” regarding military service exemption. “We are reviewing (the matter) within the overall framework of alternative service,” he said. According to K-pop Herald, Lee Jong-sup also addressed the question about granting exemptions to award-winning pop culture artists, including BTS, he said, “Granting exemptions to the pop artists may shake the overall grounds of the alternative service system so we’re approaching it carefully. " BTS is currently taking a break from group activities and is focusing on individual projects.
english
Fortnite Season 8 has already seen a ton of high-profile names arriving on the island. From the very recent Fortnite Jinx skin to the Carnage skin, almost every big name has been associated with Fortnite in one way or another. While collaborations are nothing new in Fortnite, one person or character's arrival might break the internet. The person in question right now is none other than The Rock. The community has previously speculated the Rock to be the voice behind The Foundation skin. While that's not the case, it seems like the WWE star-turned-actor might grace the community with his presence in Fortnite Season 8. The Epic Games legal dispute with Apple has offered the community leads, including a presentation that contains new and allegedly upcoming content coming to Fortnite. The presentation even mentions a skin for Dwayne Johnson, aka The Rock. The said presentation also revealed Epic's designs for previous events, such as the Marvel crossover event and Neymar collaboration, adding reliability to the news. The Rock had previously also posted an intriguing Instagram video in which he briefly pointed to The Foundation. This post was created on March 16, the same day Fortnite Season 6 began. This led to many thinking that The Rock was the voice of The Foundation. While nothing has yet been confirmed by the developers or Dwayne Johnson himself, the idea is interesting nonetheless. The Rock is an influential personality and adding him to the long list of Fortnite collaborations will surely boost Fortnite's popularity. Previously, some private files for lawyers were leaked to the public, which elaborated on Epic's future strategies for Fortnite. The file also contained a mention of Naruto coming to Fortnite. However, as of now, both Naruto and The Rock are nowhere to be seen in Fortnite. With Fortnite Season 8 almost reaching its final stages, The Rock x Fortnite collaboration might be an excellent way to end things. The Battle Bus is heading into Fortnite Chapter 4 Season 4 soon! Check out the final Fortnite item shop today!
english
--- layout: tag title: Twitter notes subtitle: random possibly useful things I got from Twitter tag: twitter ---
html
//=============『 Utama 』================== // global.owner = ['6285795035419', '6289688069444', '6285750336781'] global.mods = ['6285795035419'] global.prems = [] //=============『 Info Owner 』============== // global.nameowner = 'Az' global.numberowner = '6285795035419' global.instagram = 'https://instagram.com/ azrycb' global.github = 'https://github.com/ AzRyCb' global.dana = '085795035419' global.pulsa = '085795035419' global.gopay = '087892711054' //=============『 Info Bot 』=================// global.namebot = 'AzBoTz-Md' global.gc = 'https://chat.whatsapp.com/Jzd9DEVB5nODtNBk1VCNrV' global.web = 'https://hyzerr-apii.herokuapp.com' //ubah jadi website lu, bisa link ig, link github, link yt, klo link gc ntr beda tampilan lagi. global.price1 = '1 bulan = 7.000\npermanen 20.000\n1 Minggu 3.000' //=======『 Tampilan Dan Lainnya 』============// global.fotonya1 = 'https://telegra.ph/file/ 0572e0fe0501890afc9b0.jpg' //ganti jadi foto bot mu global.fotonya2 = 'https://telegra.ph/file/ 0572e0fe0501890afc9b0.jpg' //ini juga ganti global.lolkey = 'Papah-Chan' //biar mudah ngegantinya semisal apikeynya expired:v global.zenzkey = 'BagasPrdn' //ganti jadi apikey lu kalau expired global.wm = 'AzBoTz' global.watermark = wm global.wm2 = ' 「 AzBoTz-Md あ⁩ 」' global.wm3 = '⫹⫺ AzBoTz-Md' global.htki = '––––––『' global.htka = '』––––––' global.media = 'https://telegra.ph/file/72168c6f1aaa90315c369.jpg' global.fla = 'https://www6.flamingtext.com/net-fu/proxy_form.cgi?&imageoutput=true&script=smurfs-logo&doScale=true&scaleWidth=800&scaleHeight=500&fontsize=100&text=' global.wait = '_*tunggu sedang di proses...*_' global.eror = '_*Server Error*_' global.benar = 'Benar ✅\n' global.salah = 'Salah ❌\n' global.stiker_wait = 'Stiker sedang dibuat' global.packname = '2022' global.author = '©Az' //=============『 Apikey 』================== // global.APIs = { // API Prefix // name: 'https://website' amel: 'https://melcanz.com', bx: 'https://bx-hunter.herokuapp.com', dhnjing: 'https://dhnjing.xyz', hardianto: 'https://hardianto-chan.herokuapp.com', jonaz: 'https://jonaz-api-v2.herokuapp.com', neoxr: 'https://neoxr-api.herokuapp.com', nrtm: 'https://nurutomo.herokuapp.com', xteam: 'https://api.xteam.xyz', nzcha: 'http://nzcha-apii.herokuapp.com', bg: 'http://bochil.ddns.net', fdci: 'https://api.fdci.se', dzx: 'https://api.dhamzxploit.my.id', bsbt: 'https://bsbt-api-rest.herokuapp.com', zahir: 'https://zahirr-web.herokuapp.com', zeks: 'https://api.zeks.xyz', zekais: 'http://zekais-api.herokuapp.com', hardianto: 'https://hardianto-chan.herokuapp.com', pencarikode: 'https://pencarikode.xyz', erdwepe: 'https://erdwpe-api.herokuapp.com', lolhuman: 'https://api.lolhuman.xyz', LeysCoder: 'https://leyscoders-api.herokuapp.com', rey: 'https://server-api-rey.herokuapp.com' } global.APIKeys = { // APIKey Here // 'https://website': 'apikey' 'https://melcanz.com': 'elaina', 'https://server-api-rey.herokuapp.com': 'apirey', 'https://api.xteam.xyz': 'd37372311698ed1d', 'https://zahirr-web.herokuapp.com': 'zahirgans', 'https://bsbt-api-rest.herokuapp.com': 'benniismael', 'https://api.zeks.xyz': 'apivinz', 'https://hardianto-chan.herokuapp.com': 'hardianto', 'https://pencarikode.xyz': 'pais', 'https://leyscoders-api.herokuapp.com': 'dappakntlll', 'https://zekais-api.herokuapp.com': 'apikeymu', 'https://api.lolhuman.xyz': 'Deffbotz', } //=============『 RPG GAMES 』================== // global.multiplier = 69 // The higher, The harder levelup global.rpg = { emoticon(string) { string = string.toLowerCase() let emot = { exp: '✉️', money: '💵', potion: '🥤', diamond: '💎', common: '📦', uncommon: '🎁', mythic: '🗳️', legendary: '🗃️', pet: '🎁', sampah: '🗑', armor: '🥼', sword: '⚔️', kayu: '🪵', batu: '🪨', string: '🕸️', kuda: '🐎', kucing: '🐈' , anjing: '🐕', petFood: '🍖', gold: '👑', emerald: '💚' } let results = Object.keys(emot).map(v => [v, new RegExp(v, 'gi')]).filter(v => v[1].test(string)) if (!results.length) return '' else return emot[results[0][0]] } } //===========『 Jangan Di Ubah 』================ // let fs = require('fs') let chalk = require('chalk') let file = require.resolve(__filename) fs.watchFile(file, () => { fs.unwatchFile(file) console.log(chalk.redBright("Update 'config.js'")) delete require.cache[file] require(file) })
javascript
T2 chip controls the security features of the MacBook and iMac (2018 model) Apple recently launched the 2018 iMac and the MacBook Pro with newer chipsets from Intel, improved display with better keyboards. The latest machines from Apple also comes with a special co-processor chip called T2, which will handle the Touch ID, Touch Bar and other basic tasks. How does it work? Every part from the flash storage, RAM, display, processor, the battery comes with a serial number, which will be programmed to the T2 chip. If someone replaces the RAM on the mac with the T2 chip included MacBook or the iMac, then the device will not be able to detect that part, as the information about the specific hardware will not be present on the T2 chip and the device will not turn on. According to a report, the device (in this case the iMac Pro or the MacBook) has to pass the Apple diagnostics to undergo a repair. Those devices, which does not pass the Apple diagnostics and undergoes a repair or a part replacement will become non-functional. As of now, only the Apple Authorised service centres have the access for the Apple diagnostics software. So, even if you replace an SSD or RAM on your newly bought MacBook, the laptop might become unfunctional altogether. Does it affect every user? As of now, this feature (the T2 chip) is only available on the Apple MacBook Pro 2018 and the iMac Pro. So, if you have a MacBook Pro from 2017 or the older model, you can repair your device without having to worry about anything, unless you have the right skills and right parts to fix. If you own the latest machine from Apple (2018 MacBook Pro and iMac Pro), then do not try to repair yourself or get it fixed from an unauthorised store, as it might completely brick your $2000+ (Rs 1,50,000+) machine. What do you think about this? Should Apple be more open about the repairability of a product after the purchase or the company should have strict laws when it comes to third-party repairs? Share your views in the comment box.
english
<filename>src/query/config.go package query import ( "bytes" "encoding/json" "fmt" "strings" "github.com/please-build/gcfg" "github.com/thought-machine/please/src/core" ) // Config prints configuration settings in human-readable format. func Config(config *core.Configuration, options []string) { if len(options) == 0 { v, err := gcfg.Stringify(config) if err != nil { log.Fatal(err) } fmt.Print(v) } else { for _, option := range options { section, subsection, name, err := parseOption(option) if err != nil { log.Fatal(err) } values, err := gcfg.Get(config, section, subsection, name) if err != nil { log.Fatalf("Failed to get %s: %s", option, err) } for _, value := range values { fmt.Println(value) } } } } // ConfigJSON prints the configuration settings as JSON. func ConfigJSON(config *core.Configuration) { data, err := gcfg.RawJSON(config) if err != nil { log.Fatalf("Failed to get JSON configuration: %s", err) } var out bytes.Buffer if err := json.Indent(&out, data, "", " "); err != nil { log.Fatalf("Failed to parse JSON configuration: %s", err) } fmt.Print(out.String()) } func parseOption(option string) (section, subsection, name string, err error) { parts := strings.Split(option, ".") if len(parts) < 2 || len(parts) > 3 { return "", "", "", fmt.Errorf("Bad option format. Example: section.subsection.name or section.name") } if len(parts) == 2 { return parts[0], "", parts[1], nil } return parts[0], parts[1], parts[2], nil }
go
<filename>_qatar/0066.md --- pid: '0066' label: 浮世多登恵 order: '0066' layout: nishikie_item collection: qatar thumbnail: "/img/derivatives/iiif/images/0066_001/full/250,/0/default.jpg" full: "/img/derivatives/iiif/images/0066_001/full/1140,/0/default.jpg" 題名: 浮世多登恵 書名: 維新前後諷刺画 一 所蔵機関: 東京大学史料編纂所 請求記号: '0380-17-1-(61)' 画工名: 芳盛戯画 和暦年月日: 文久2年5月(18620050550) 版元名: 太田屋多吉(多吉) 版元住所: 判: 大判 形態: 竪絵 2枚続 彩色: 錦絵 検印状況: あり 主題: 尊皇攘夷 細目: 風刺画 その他書誌事項: manifest: "/img/derivatives/iiif/0066/manifest.json" 人名: 検印: 戌五改 その他固有件名: 彫師: 地名: ---
markdown
<filename>src/components/category/modules/WishesFilterBy.js import React from 'react'; import { Button, InputField, Stack, Separator, Checkbox } from '@kiwicom/orbit-components/lib'; import BlackText from '../../text/BlackText'; import { useFormik } from 'formik'; import * as Yup from 'yup'; import { getLocations } from '@api/common/location'; const WishesFilterBy = ({ onLatLngUpdated, items, currentRefinement, refine }) => { const validationSchema = Yup.object().shape({ postalCode: Yup.string().matches(/\d{6}/, 'Invalid postal code'), }); const formik = useFormik({ initialValues: { postalCode: '', }, validationSchema: validationSchema, onSubmit: (values) => { handleSubmitPostalCode(values); }, }); const handleSubmitPostalCode = async (values) => { try { const { postalCode } = values; if (postalCode.trim().length > 0) { const postalCodeArray = [postalCode]; const locations = await getLocations(postalCodeArray); if (locations.length > 0) { const latLng = `${locations[0].latitude},${locations[0].longitude}`; onLatLngUpdated(latLng); } else { onLatLngUpdated(''); } } else { onLatLngUpdated(''); } } catch (error) { console.error(error.message); } }; return ( <div> <BlackText style={{ marginBottom: '10px' }} size="large"> Filter By </BlackText> <Separator /> <Stack> {items.map((item, index) => { return ( <Checkbox label={item.label + ' (' + item.count + ') '} value={item.value} checked={item.isRefined} key={item.value} onChange={() => { refine(item.value); }} /> ); })} <form onSubmit={formik.handleSubmit}> <Stack> <InputField placeholder="postal code" label="Nearest - Furthest" error={formik.touched.postalCode && formik.errors.postalCode ? formik.errors.postalCode : ''} {...formik.getFieldProps('postalCode')} /> <Button onClick={formik.handleSubmit}>Go</Button> </Stack> </form> </Stack> </div> ); }; export default WishesFilterBy;
javascript
# Copyright (C) 2010-2011 <NAME> # # 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. from CIM16.IEC61970.Core.Curve import Curve class StartIgnFuelCurve(Curve): """The quantity of ignition fuel (Y-axis) used to restart and repay the auxiliary power consumed versus the number of hours (X-axis) the unit was off lineThe quantity of ignition fuel (Y-axis) used to restart and repay the auxiliary power consumed versus the number of hours (X-axis) the unit was off line """ def __init__(self, ignitionFuelType="oil", StartupModel=None, *args, **kw_args): """Initialises a new 'StartIgnFuelCurve' instance. @param ignitionFuelType: Type of ignition fuel Values are: "oil", "coal", "lignite", "gas" @param StartupModel: The unit's startup model may have a startup ignition fuel curve """ #: Type of ignition fuel Values are: "oil", "coal", "lignite", "gas" self.ignitionFuelType = ignitionFuelType self._StartupModel = None self.StartupModel = StartupModel super(StartIgnFuelCurve, self).__init__(*args, **kw_args) _attrs = ["ignitionFuelType"] _attr_types = {"ignitionFuelType": str} _defaults = {"ignitionFuelType": "oil"} _enums = {"ignitionFuelType": "FuelType"} _refs = ["StartupModel"] _many_refs = [] def getStartupModel(self): """The unit's startup model may have a startup ignition fuel curve """ return self._StartupModel def setStartupModel(self, value): if self._StartupModel is not None: self._StartupModel._StartIgnFuelCurve = None self._StartupModel = value if self._StartupModel is not None: self._StartupModel.StartIgnFuelCurve = None self._StartupModel._StartIgnFuelCurve = self StartupModel = property(getStartupModel, setStartupModel)
python
Sri Lanka beat India in the final of the 2014 ICC T20 World Cup to lift the title for the first time. It was the best parting gift for Kumar Sangakkara and Mahela Jayawardene, two of Sri Lanka’s best batsmen, who were making their final T20I appearance. Having faced the heartbreak of losing four finals, Sangakkara and Jayawardene got the monkey off their backs with the wicketkeeper batsman remaining unbeaten on 52 to guide his team home. Jayawardene contributed with 24, but its significance was a lot more. India were defending just 130 and they applied pressure on Sri Lanka from each end. Mohit Sharma had gotten rid of Kusal Perera, and R Ashwin and Suresh Raina had kept things tight. Yet, Jayawardene and Sangakkara used all their experience to ensure Sri Lanka didn’t slip below the required rate. Jayawardene’s run-a-ball 24 saw him add a run-a-ball 24 and even though he slapped the ball to Ashwin in 10th over, Sangakkara ensured the held one end up. India kept chipping away but were eventually blows away by Nuwan Kulasekara’s counter-attacking 23- off 14, who finished the game with a six. But Sangakkara was the real hero, scoring his runs at a strike-rate of almost 150 with six boundaries and a six. With 47 needed off six, Sangakkara took on Amit Mishra, whose first two overs had cost just four runs. Perera and Sangakkara took him on for 14 and 15 in his next two overs to tilt the game in Sri Lanka’s favour. The world would remember Yuvraj Singh‘s innings as much as it would Sangakkara’s. One of India’s biggest match-winners was given the nod ahead of Raina by MS Dhoni, but his painstaking 11 off 21 wasted India’s chance to get quick runs in the end of their innings. Virat Kohli, in breath-taking form during the tournament to emerge as its highest run-getter, was setting up for a big finish after a slow start, but Yuvraj’s inability to give his partner strike hurt India’s ambitions of going big. Kohli had set up for a final flourish spanking 16 off the 16th over from Kulasekara. But as Yuvraj stuttered, Sri Lanka saw the opening and squeezed out highly economical final four overs, in which Kulasekara, Lasith Malinga and Sachithra Senanayake gave away 19 as India finished on the lowest-ever World T20 final score, also the least with just four wickets down. Sangakkara and Jayawardene were just that good and went out swinging.
english
<gh_stars>1-10 //! A dead simple hash-based HTTP router built on hyper. //! //! ``` //! use grout::{path, Body, Method, Request, Response, ResponseBuilder, RouterBuilder, Server}; //! //! async fn handler(params: Vec<String>, _req: Request) -> Response { //! Ok(ResponseBuilder::default().body(Body::empty())?) //! } //! //! #[tokio::main] //! async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> { //! let addr = ([127, 0, 0, 1], 3000).into(); //! let router = RouterBuilder::default() //! .register(Method::GET, path![], handler) //! .register(Method::GET, path![foo / _], handler) //! .register(Method::POST, path![foo / _], handler) //! .build(); //! //! let server = Server::bind(&addr).serve(router); //! println!("Listening on http://{}", addr); //! //! server.await?; //! Ok(()) //! } //! ``` //! //! Path segments denoted with a `_` are matched dynamically if no other static segment matches. //! Dynamic segments are passed into the route handler as the first parameter. Only one route can //! match any given request. //! //! The router builder exposes `internal_error_handler` and `not_found_handler` which can handle //! errors returned from handlers and unmatched requests respectively. #[cfg(feature = "http")] mod http; #[cfg(feature = "http")] pub use http::*; // mod pool; /// Various types and utilities for defining routes and route handlers. pub mod route; /// Contains the core structs of the router. /// /// Use the RouterBuilder to create a Router: pass the router to hyper as the service. pub mod router; pub use route::*; pub use router::*;
rust
<filename>users/data/departments.json { "project": [ { "name": "Owner", "description": "Owner department holds the user who created the module/app. This department cannot be deleted or modified.", "short_name": "owner" }, { "name": "Administration", "description": "This department is for administrative works associated with a module/app.", "short_name": "administration" } ], "hr": [ { "name": "Owner", "description": "Owner department holds the user who created the module/app. This department cannot be deleted or modified.", "short_name": "owner" }, { "name": "Administration", "description": "This department is for administrative works associated with a module/app.", "short_name": "administration" } ], "accounting": [] }
json
[ { "id": 975295, "githubLoginMasked": "va", "githubLoginEncrypted": "AjMvz1Wfn1PxOt5k9nJlLyZ+Nf9VsgD7", "githubLoginHashed": "AjMvz1Wfn1PxOt5k9nJlLyZ+Nf9VsgD7", "score": 20034 }, { "id": 60872, "githubLoginMasked": "Lu", "githubLoginEncrypted": "OCcvwk+zhVf1WfkVJ86zilSbqzJ0Zm0m3mI=", "githubLoginHashed": "OCcvwk+zhVf1WfkVJ86zilSbqzJ0Zm0m3mI=", "score": 19397 }, { "id": 228141, "githubLoginMasked": "ke", "githubLoginEncrypted": "<KEY>", "githubLoginHashed": "<KEY>", "score": 19042 }, { "id": 60947, "githubLoginMasked": "cr", "githubLoginEncrypted": "FyArzVWSk3yi6pmdSFWlRBtxemAEbYQ=", "githubLoginHashed": "FyArzVWSk3yi6pmdSFWlRBtxemAEbYQ=", "score": 12470 }, { "id": 228132, "githubLoginMasked": "aa", "githubLoginEncrypted": "FTM9wlKdyjIXOAGiKoPIapcX6WuABg==", "githubLoginHashed": "FTM9wlKdyjIXOAGiKoPIapcX6WuABg==", "score": 9275 }, { "id": 1245223, "githubLoginMasked": "ze", "githubLoginEncrypted": "Djcq01ODhEr0T2EO9ZQKW3lfH3Qa+izRZ5hE", "githubLoginHashed": "Djcq01ODhEr0T2EO9ZQKW3lfH3Qa+izRZ5hE", "score": 7224 }, { "id": 501855, "githubLoginMasked": "md", "githubLoginEncrypted": "GTYozE6UiXJ2OBzc59K8KkyPtDMSt5s=", "githubLoginHashed": "GTYozE6UiXJ2OBzc59K8KkyPtDMSt5s=", "score": 5863 }, { "id": 228134, "githubLoginMasked": "ta", "githubLoginEncrypted": "ADM20Vmfmp8g3Y8MLh+OSaUUS8fporo=", "githubLoginHashed": "ADM20Vmfmp8g3Y8MLh+OSaUUS8fporo=", "score": 1776 }, { "id": 60940, "githubLoginMasked": "ze", "githubLoginEncrypted": "DjcqzVmDnUTzlfRVJ87g08zJswR5XvF2pQ==", "githubLoginHashed": "DjcqzVmDnUTzlfRVJ87g08zJswR5XvF2pQ==", "score": 1515 }, { "id": 1054089, "githubLoginMasked": "tu", "githubLoginEncrypted": "ACclzVSHlEDmUy9HPwDYkIagJClpTI+scA==", "githubLoginHashed": "ACclzVSHlEDmUy9HPwDYkIagJClpTI+scA==", "score": 1296 }, { "id": 127698, "githubLoginMasked": "al", "githubLoginEncrypted": "FT4mxk6Fn0KnEsLQIlt8h+41dZeL1IhyrAE=", "githubLoginHashed": "FT4mxk6Fn0KnEsLQIlt8h+41dZeL1IhyrAE=", "score": 1027 }, { "id": 2245539, "githubLoginMasked": "No", "githubLoginEncrypted": "<KEY> "githubLoginHashed": "<KEY> "score": 784 }, { "id": 1616975, "githubLoginMasked": "AD", "githubLoginEncrypted": "NRYxzl2YnkDNCwRnz1RBcCjHGBfcRa6c", "githubLoginHashed": "NRYxzl2YnkDNCwRnz1RBcCjHGBfcRa6c", "score": 700 }, { "id": 292660, "githubLoginMasked": "Gn", "githubLoginEncrypted": "<KEY>", "githubLoginHashed": "<KEY>", "score": 658 }, { "id": 127693, "githubLoginMasked": "jo", "githubLoginEncrypted": "Hj03xkyZnkzzQngnVjPck6Tv9kj3q+r13a56T+O1", "githubLoginHashed": "Hj03xkyZnkzzQngnVjPck6Tv9kj3q+r13a56T+O1", "score": 630 }, { "id": 292605, "githubLoginMasked": "jt", "githubLoginEncrypted": "HiYrzEufhVYHHPbU87lIiK42VqP364Mx", "githubLoginHashed": "HiYrzEufhVYHHPbU87lIiK42VqP364Mx", "score": 598 }, { "id": 60918, "githubLoginMasked": "wo", "githubLoginEncrypted": "Az0v2rReCfhFStveTaR5bBJFYeU=", "githubLoginHashed": "Az0v2rReCfhFStveTaR5bBJFYeU=", "score": 178 }, { "id": 211507, "githubLoginMasked": "vh", "githubLoginEncrypted": "Ajoh0UmCOt8W11O2j5RQnSs2AwuUYA==", "githubLoginHashed": "Ajoh0UmCOt8W11O2j5RQnSs2AwuUYA==", "score": 69 }, { "id": 1690439, "githubLoginMasked": "ls", "githubLoginEncrypted": "GCE+xlKtYa64EZup9zWYkeh2PxU2", "githubLoginHashed": "GCE+xlKtYa64EZup9zWYkeh2PxU2", "score": 48 }, { "id": 228146, "githubLoginMasked": "pi", "githubLoginEncrypted": "BDsh0U+FkUftgSe4QDDa4DOpZqfqz+Qx", "githubLoginHashed": "BDsh0U+FkUftgSe4QDDa4DOpZqfqz+Qx", "score": 34 }, { "id": 228140, "githubLoginMasked": "fi", "githubLoginEncrypted": "Ejsq00mfm478bIh2Bj0LIq+UeryNR14=", "githubLoginHashed": "Ejsq00mfm478bIh2Bj0LIq+UeryNR14=", "score": 17 }, { "id": 2245526, "githubLoginMasked": "na", "githubLoginEncrypted": "GjM311mfm0q2rAvEwMP3Lf/+vDGHD0jA", "githubLoginHashed": "GjM311mfm0q2rAvEwMP3Lf/+vDGHD0jA", "score": 0 } ]
json
A well-established group of German hackers, the Chaos Computer Club, has accused the German government of releasing a backdoor Trojan into the wild. According to Mikko Hypponen of F-Secure, the announcement was made public on the group's website in the form of a 20-page PDF (in German). The accompanying English-language post claims the group reverse-engineered and analyzed the program, which it calls "a 'lawful interception' malware program used by German police forces". It has been found in the wild and submitted to the CCC anonymously. The malware can not only siphon away intimate data but also offers a remote control or backdoor functionality for uploading and executing arbitrary other programs. Significant design and implementation flaws make all of the functionality available to anyone on the internet. The trojan can, for example, receive uploads of arbitrary programs from the Internet and execute them remotely. This means, an "upgrade path" from Quellen-TKÜ to the full Bundestrojaner's functionality is built-in right from the start. Activation of the computer's hardware like microphone or camera can be used for room surveillance. According to the CCC, Quellen-TKÜ means "'source wiretapping' or lawful interception at the source" and Bundestrojaner means "federal trojan" and is "the colloquial German term for the original government malware concept." The group includes a screen shot purporting to show the Trojan in action. According to the report, the CCC wrote its own remote control program that wrested control of the Trojan, which consists of a Windows DLL and a kernel driver. That allowed the group to analyze the program's behavior and determine that it goes well beyond the ability to "observe and intercept internet based telecommunication" (in other words, wiretapping Internet-based telephony), which is allowed by German courts. Here's a partial list of what the CCC analysis uncovered: The trojan can ... receive uploads of arbitrary programs from the Internet and execute them remotely. Activation of the computer's hardware like microphone or camera can be used for room surveillance. [T]he design included functionality to clandestinely add more components over the network right from the start, making it a bridge-head to further infiltrate the computer. [With an additional module] it can be used to remotely control infected PCs over the internet [and] watch screenshots of the web browser on the infected PC – including private notices, emails or texts in web based cloud services. In its own analysis, F-Secure confirmed the workings of the program: The backdoor includes a keylogger that targets certain applications. These applications include Firefox, Skype, MSN Messenger, ICQ and others. The backdoor also contains code intended to take screenshots and record audio, including recording Skype calls. In addition, the backdoor can be remotely updated. Servers that it connects to include 83.236.140.90 and 207.158.22.134. F-Secure sidestepped the thorny question of where the Trojan came from, saying, "We do not know who created this backdoor and what it was used for. ... We have no reason to suspect CCC's findings, but we can't confirm that this trojan was written by the German government. As far as we see, the only party that could confirm that would be the German government itself." The company further added, "We have never before analysed a sample that has been suspected to be governmental backdoor. We have also never been asked by any government to avoid detecting their backdoors." This isn't the first time a government has been accused of using software to clandestinely spy on its citizens. The recent takeover of digital certificates issued by the Dutch firm DigiNotar was attributed by some sources to the Iranian government, which then reportedly used the forged certificates to snoop on its citizens' communications via Google Mail. Similarly, the Chinese government was blamed for Operation Aurora, a 2010 attack that broke into servers at Google and as many as 30 other large corporations. Over the years, Microsoft has been accused of working with the U.S. National Security Agency to build backdoors into Windows. Those accusations have been mostly discredited. (See this 2008 report and an earlier, overblown dustup over a cryptographic key dating back more than a decade.) If the CCC analysis turns out to be accurate, this will be a first, and a significant black eye for a government that has largely been in the forefront of safeguarding personal privacy of its citizens. The German government has not yet responded.
english
Roberto Bautista Agut recently shared his thoughts on Roger Federer's comeback to the tour from a year-long layoff. The World No. 12 also touched upon how Federer being in sight again, along with his arch-rivals Novak Djokovic and Rafael Nadal, was good for tennis' global appeal. Speaking to Spanish sports daily AS Diario, Bautista Agut was asked what he expected from Roger Federer in his comeback. In response, the Spaniard claimed that Federer always has a lot of hopes riding on his shoulders whenever he takes the court, and that that can only be a good thing for the sport. "There are a lot of expectations on him when he plays," Roberto Bautista Agut said. "It's very good for tennis to have him back." Bautista Agut then added how Roger Federer, along with his 'Big 3' rivals Novak Djokovic and Rafael Nadal, had greatly enhanced the popularity of the sport. "(Hope) that he can compete as long as possible because Roger, Rafa and Novak make tennis more popular and important," the Spaniard continued. "They are global icons." Roger Federer's comeback in Doha earlier this month didn't quite go the way his fans would have hoped. The Swiss maestro won his first match (against Dan Evans) in three sets, but ended up bowing out to Nikoloz Basilashvili in the quarters. Federer subsequently withdrew from the Dubai Tennis Championships and the Miami Open, citing the need to do more physical conditioning work in preparation for Wimbledon. Novak Djokovic, Rafael Nadal and Dominic Thiem followed Roger Federer in withdrawing from Miami, leaving the Masters 1000 tournament without its four biggest male stars. But when asked to weigh in on the withdrawals of the Big 3 and Thiem from the hardcourt event, Roberto Bautista Agut insisted that their absence was good for him and the rest of the field. "The Big 3 plus Thiem will not play in Miami, which is good for us players who instead entered the draw,"Bautista Agut quipped. "Even if tennis is a very balanced sport and anyone can beat you."
english
A structural diagram is much more informative to chemists than thousands of words. Multimedia provides the technology for endowing pictograms with a third dimension, looking at them from different angles, and making virtual experiments with them on the basis of data of exemplary tests. The specialized Information Centre for Chemistry in Berlin uses modern multimedia technologies to create a new chemical information system on the basis of a database. The project, which is supported by the Federal Ministry for Education, Science, Research and Technology under its programme on "Scientific and Technological Information for the 21st Century," is a combination of a database and animation software. It shows chemical reactions by means of three-dimensional structural pictograms. The viewer may experiment interactively at the screen in order to get a better understanding of the principles and the background of reactive processes. The catch-phrase "Global Info 2000" stands for a multidisciplinary cooperative initiative at Bochum University to develop and use global electronic and multimedia information systems for science and technology in order to contribute to the structural change in the scientific and technological information infrastructure. The participants in the project intend to start a library for science and technology matching the modern standards of teaching and research. The database is supposed to be intelligent and to provide tools to access and process the relevant information from the desktop. It is intended to classify and catalogue meta data on electronic information for a meta database having an appropriate design and being equipped with the necessary retrieval software. The services offered could include the authentification of electronic signatures of authors or servers as a central part of quality management. In addition to processing information directly, the database could also allow to annotate electronic texts and to cooperate with national and international partners. At the Hanover CeBIT'98 in March this year, the development of a 3D-Server was presented. The device allows a realistic 2D and 3D representation of different kinds of geo-data and realtime representations. In view of its performance it is structured in a relatively simple way, which does not only have a positive effect on its calculation speed but also on its low price. The calculation is based on combining digital country models, vectorized cultural data and satellite imagery into a scene, with the possibility of including dynamic objects. The applications of the 3D Server, which has been built on behalf of the company Dornier Gmbh in Friendrichshafen by the Laboratory for Measurement and Information Technology at the Federal Armed Forces University in Hamburg and an engineering company, are planning flight routes, landscaping, aerial picture assessment or seabed geography. For managing scarce water reserves in arid areas, the application of knowledge-based decision systems is quite significiant. In 2000, a team of researchers at Jena University is going to present their prototype of a knowledge-based decision system called Integrated Water Resources Management System (IWRMS). This expert system allows planners to consider in their planning scenarios the needs of the rural population as well as ecologic and economic aspects of water management. The simulation system has been funded under a multi-national EU project and developed in close cooperation with partners from Europe and Africa, that is from France, Italy, Great Britain, South Africa, Swasiland and Zimbabwe. The IWRMS expert system is developed in the catchment areas of three African rivers , with the research data being collected in Jena, where the IWRMS prototype will be developed into a knowledge based decision system by means of the hardware and software technology available there. Contact: Prof. Dr. Wolfgang-Albert Fluegel, Institute fuer Geographie der Friedrich-Schiller-Universitaet Jena, Loebdergraben 32, D-07743 Jena. Advanced Telecommunications Research Institute International said it has developed technology for controlling a computer by signing with bare hands. The Kyoto-based multimedia-research facility foresees a wide range of applications for such bare-hand capability. Systems for hand-sign control with gloved hands already exist. Three cameras at varying angles enable the computer to identify hand and finger positions and interpret them as operating commands. The industry-academic lab believes the technology will enable conversion of signing to voice messages. Video-game developers have shown interest in it. A " Robolympic panel" set up by the Science and Technology Agency (STA) agreed on 23 January 1998 to the idea of an international competitions of robots, the `Robolympic', to be held in Japan in the summer of 2001. STA considers that a competitions of robots would be an effective way to help construct the environment in which science and technology can be understood and enjoyed. The Agency set up a panel consisting of university professors, journalists, and other members in February 1997 to examine the meaning, concept, and image of the competition as a whole. According to the report of the panel, it has, as a general idea, the image of a comprehensive set of events combining an international robot forum, robot competition, and other various events including exhibitions and a film festival which would attract the attention of the general public. STA invites opinions and ideas on a Robolympic through the Internet (robo[at]sta.gokp) and fax: (03-3595-0567). Twenty-eight of the state governments 40 -odd departments have been fully computerised. The Government of India has provided a 2 mbps line through which a State Wide Area Network (SWAN) has been created. The chief minister, Mr. Chandrababu Naidu, has created a new company called the Andhra Pradesh Technology Services Limited, which intends to tie up with any private company that will provide services to the common man at a nominal rate approved by the Andhra government. The director of the Hyderabad-based Centre for Telecom Management & Studies (CTMS), Mr.T.H. Chowdary, says, "the AP. government has realised that it cannot provide an efficient service by itself and hence has decided to invite private companies for offering such service." Speaking about the advantages, Mr.Chowdary said that it would help in better governance in several areas including the public distribution scheme (PDS), where stock positions in different areas will be available at the touch of a button? For the common man, important documents like birth certificates and caste certificates will be available at a nominal charge immediately. Public information kiosks could be operated just like ISD/STD fitted with PCs connected to SWAN to which different departments have their servers connected. The Andhra government will pay some amount to SWAN operators, who will build, own and operate them. They will also be allowed to sell other services at a price to be agreed upon by the government. In fact, on an experimental basis, some companies have come forward and have been running the service. A full-fledged service is expected to start in three to six months. The secretariat office in Hyderabad already has such a service running. The information super highway contains detailed updated statistical information at district level including 200 treasuries. The 28 departments that have been connected through the SWAN include the revenue department, sales department, commercial department, AP.State Electricity Board, and the AP. Road Transport Corporation. Fujitsu Laboratories Ltd., has developed a system that can identify the current speaker when groups of people participate in a teleconference. The system uses a personal computer to analyze voice from microphones and video images from camcorders. Such a system could be used to automatically zoom in on speakers in turn and to filter out sounds from other microphones. The same technology could be used in noisy outdoor settings to help voice recognition systems zero in on a customer. One example would be for automated vending machines. The system utilizes three microphones and two video cameras connected to a computer for voice and image processing. The computer pinpoints the source of the talking based on time lags and differences in strength of sounds picked up by the microphones, similar to the way the epicenter of an earthquake in calculated. The computer also contains a standard graphic pattern for head shapes, and it compares this with the images captured by the cameras to quickly focus in on the person talking. The world's smallest, lightest PHS — a wristwatch phone — will be put into trial use by NTT at the Nagano Olympics. It will be used for communications among the event's staff. Developed by the company's Human Interface Laboratory, this terminal is just 30 cc in volume and weighs a mere 45g, making it ideal for wearing on the wrist. With the wrist strap removed, the unit can also be worn as a pendant. The voice-recognition function makes it possible to make calls by just speaking the number into the microphone. Using the pre-registration function, users can register upto 20 parties having names in Japanese or any other language. The National Institute of Science & Technology Policy (NISTEP) of STA Japan in its recent survey has identified technologies that will be developed in the next 20 to 30 years. Table below indicates the ranking of ten technologies and the year by which these are expected to be developed: Researchers at the Ernest Orlando Lawrence Berkeley National Laboratory, California, USA have found that diamond coating allows computer disk-drives to hold nearly 20 times more data than the existing drives. They have also found that the diamond coating is much harder than, hydrogenate carbon, meaning the new disks would last longer. The prototype diamond-drive developed by IBM stores about 20 gigabytes whereas hard drives can store merely four gigabytes of data. The drives allows thousands of tiny disks to be stacked within the unit. The product is likely to be available in the market in about 10 months. A UK company, Norweb Communications, has invented a way to send Internet signals to home lines by using ordinary power cables instead of telephone lines. Previous attempts at such a system are said to have failed because the electricity in the cables interfered with Internet data. Users will need to install a card in their PC and fix a small box to their standard electricity meter to use the services. Trials are expected to start next spring in north-west England, the heartland of the company. These are expected to go on for at least six months before a wider roll-out is considered. According to the company sources, the company would concentrate on delivering the Internet through power cables rather than competing with telecom companies to provide telephone. But when Internet technology allows telephone signals to be sent as Internet data, telephone applications could find their way into this new system. The company has patented the technology that allows to send data through powerlines without it being corrupted by interference from the power itself. The Dialog Corporation manages and maintains many hundreds of unique databases that enable it to deliver the most powerful and authoritative collection available anywhere in the world today. Many of these databases are costly to maintain and support and therefore do not make commercial sense independently. Customers have told us that the collection within Dialog is the single most important reason for maintaining access to the service. Dialog's decision was simple. Either encourage customers to use Dialog as their first online service of choice, or eliminate a selection of databases that were not profitable independently. The $75 minimum usage charge encourages you to use Dialog regularly and as your first choice. Many customers are already using the service in excess of this charge on a monthly basis anyway and will therefore not be affected. Dialog has also done away with connect time charges with effect from Ist June 1998, which has been a long standing complaint with users all over. This connect rate has been replaced by Dial Units, which are average charges relating to the way customers the have historically searched individual publisher databases on Dialog. Dialog is confident that many customers will see a reduction in their charges as a result of this new policy. For additional information write to: Matrix Information Services Ltd. 24 A, Nariman Bhawan, 227, Nariman Point, The Technical University of Berlin has set up a database FORDAT on the Internet, which informs about research projects. This service is available at http:// www.tu-berlin.de/ zuv /IIIC/fordat. It is an online description of current and recently closed research projects conducted at the Technical University of Berlin. Presently this database comprises more than 1000 entries, which consist of the topic and a generally short description of the project. The entries also inform about the period of time, the cooperation partners, funds, institute as well as the head of the project. Contact : URL : http://www.tu-berlin.de/zuv/IIIC/fordat. A new fibre optic technology is supposed to speed up Internet traffic significantly to the benefit of all its users. Researchers at Heinrich-Hertz-Institute for Telecommunications Technology in Berlin have tested a fibre optic system transmitting 16 times as much data as presently possible within the same period of time. For using this system new cables need not be laid. A laboratory test reached all-time data throughputs of 160 gigabits per second. A European initiative is supposed to develop a cheap network computer. The new machine will cost between 500 and 700 Marks and to make surfing the Internet affordable in particular for schools and private households. A first prototype has been presented in Mainz. The Netpc has been developed by the Irish company Ferrotec and is equipped with a Risc/DSP processor of the German producer Hyperstone in Constance. It is supposed to be commercially available by March,1998. In an integrated system such as an "intelligent" house, a local data network connects various units, sensors and other devices. In general, this communication is dependent on installed cables, but wiring up a detached or semi-detached area is an expensive business. Researchers at the Fraunhofer Institute for Integrated Circuits in Erlangen have developed a special radio-controlled LAN which requires no wiring. The local radio network measures the indoor and outdoor temperature, and detects whether anyone is at home and which rooms are occupied. The system can also switch off lights and forgotten stoves and electric irons when the house is left empty. And this network is only one of a number of projects on automated domestic systems in which a working group of seven Fraunhofer Institutes is collaborating. Contact: Hans Hauer and Frank Mayer, Fraunhofer-Institut fuer Integrierte Schaltungen IIS, Am Weichselgarten 3, The basis of installed information and communications technology in Germany is good, but still the economic use with new services and new enterprises leaves a great deal to be desired. While the German government regulates education, the Internet offers it unregulated, and the attempt to apply traditional guild rules to computer business results in mental obstructions preventing new Internet businesses. Thus over the past three years 200,000 new jobs have been created, with another 50, 000 potential jobs left uncreated. For 1998 some 91,000 new jobs have been created, with another 50,000 potential jobs left uncreated. For 1998 some 91,000 new jobs are expected. The growth of this branch of industry could well be one or two percent higher if Germany had enough qualified staff. Despite the need of some 20,000 computer scientists annually, only 6,000 to 7,000 out 11,000 study places are occupied at the universities. This cautious attitude is in sharp contrast to the technological infrastructure in Germany, which, on the other hand, is hardly used: With the penetration of host computers being at 12 per 1,000 inhabitants, compared to 88 in Finland or 78 in the USA, and of PCs being at 26 per 100 inhabitants, compared to 49 in the USA or 44 in Switzerland and the Nordic countries Germany remains in the weak midfield. The only comfort is that in 1997 the number of digital main extensions rose by 20%, ISDN connections by 90%, and Internet subscriptions by 60%, so that the installed computer capacity in Germany now makes up for one third in western Europe. On 26 January, 1998, the Albert Einstein Institute, a scientific research institute of Germany's Max Planck Society for the Advancement of Science, has launched a scientific journal of a new kind. The journal, which is called Living Reviews in Relativity, takes advantage of the flexibility of the Internet, World WideWeb, and modern computer technology to provide what is hoped to become an important research tool for scientists working around the world. Living Reviews in Relativity is a review journal. However, it goes beyond merely distributing its articles on the Web. Uniquely, its authors promise to keep their articles "living". authors will revise and update them periodically as the research field develops. Articles will remain current as long as their research areas remain active. As the number of articles grows, the journal will expand into an authoritative and comprehensive survey of current research in relativity. The subjects embraced by the journal include the big bang, black holes, gravitational waves, quantum gravity — in fact, all the modern applications of Einstein's theory of relativity. Six technology-related companies have developed a refrigerator that doubles as a terminal for accessing the Internet, sources close to the companies said. The six will start to test the product in June, using a high throughput communications network constructed by Okayama Prefecture. They aim to offer a commercial product about one year afterwards, targeting the growing number of home-based Internet users. A touch-screen liquid crystal display built into the door incorporates voice capability to enable users to quickly and easily access Internet services. About 30 Okayama Prefecture households will participate in the test by hooking up refrigerators to the cable - television service that provides the Internet link. Sharp Corp., Nihon Silicon Graphics Cray KK, Teleway Japan Corp., Netscape Communications Japan Ltd. and two other companies will test the product with electronic bulletin boards and via personal handy-phone system terminals. Information about the Indian Ministry of Environment and Forests is now available on the Internet. The ministry's home page contains at present basic details about the organisational structure of the ministry, including the names, responsibilities and functions of the various divisions, auxiliary bodies, associated offices and autonomous agencies of the ministry. It also contains the complete addresses, telephone and telefax numbers, etc. of the associated and autonomous bodies of the ministry located in different parts of the country to enable the user to access a particular organisation of the Ministry directly. Detailed information about the Environmental Information Systems (ENVIS) of the ministry, including the list of ENVIS centres, with their areas of specialisation and complete addresses is also provided. Future plans for development of the ministry's website include a substantial increase in the information content of the home page and its regular updation. Consultancy Development Centre (CDC) proudly announces launching of Indian Consultancy homepage on Internet. In addition to the ongoing activities of the Centre, it also contains information on the following: (i) Indian consultancy scenario. (ii) Name and communication details of members alongwith main sector of operation as per Dacon system. (iii) Name and communication details of consultants from database alongwith main sector of operation. (iv) Important future events planned. (v) Consultancy opportunities. (vi) CDC newsletter. Consultants who wish to display their names, sectors of activities, banner advertisements, projects turnover, contact persons, etc. may register with CDC by sending the registration form. The three options are available: Option No. 1: Display of subsectors in addition to name, address and main sectors which are already being displayed Fee: [Rs. 2,500/- per annum]. Option No. 2: Banner advertisement on Website (front page) [Fee: Rs. 3,000/- per quarter and Rs.10,000/- per annum]. Option No.3 : Display of subsectors, services, key personnel, contact persons, financial turnover, typical project executed, any visual, etc. [Fee: Rs5,000/- per annum]. The following details may be given: Name : Address : Telephone : Fax : E-mail : Website : Mail your registration form at : E-mail: cdc[at]giasdl1.vsnl.net.in. The World Wide Web offers an ideal environment for `electronic commerce' because there companies can advertise effectively and approach millions of potential customers in a simple way. There are predictions that the online trade will multiply and reach more than 10 billion Marks by 2000. However, there are also unsettled safety concerns: confidentiality, integrity of data, bindingness and liability, which are indispensible preconditions for serious business deals on the Internet. Within the project E2S (End-to-end security over the Internet) of the European Union, the business protocol BOPD (Browse, order, pay, deliver) has been developed at the GMD in Darmstadt, which removes these shortcomings. The BOPD allows to buy goods safely from a catalogue offer on the Internet by covering the whole course of the deal in the business-to-business area. Cooperation partners for the development and the implementing of the protocol have been Hewlett-Packard Laboratories in Bristol, the Internet service provider Onyx Internet in Middlesbourgh, GEMPLUS IN Gemenos as well as SECUDE GmbH in Darmstadt. The GMD Institute for Computer Systems and Software Technology (FIRST) has established a software tool to professionally schedule time tables. The system can be used e.g. in semester planning at universities, allocation of rooms in public administrations, or the use of rooms and personnel in large medical clinics. The software, called CharPlan, is an automatic and interactive systems which is currently being used and tested by the Medical Faculty of the Humboldt-University, Berlin. In theory the common problem of time tables cannot be solved due to complexity. The systems being used so far are rather inflexible and cannot react to short term changes and need time for solving the respective problem. CharPlan can yield solutions within seconds taking into account various parameters such as all lectures and seminars, medical training courses, allocation of rooms and even the walking distances between different locations. Linguists at Cologne University have developed an uncommon kind of software — a computer based text analysis checking for the comprehensibility of texts and making short summaries of them. Possible applications have been tested with several thousand of texts out of 30 areas such as technical texts of different areas of science, PR texts, instructions, political speeches, essays, administrative and legal documents, literary and didactic texts for schools. The software could be used for sifting, classifying and filtering information from huge amounts of literature. Interested persons may send their own texts for analysis to http.//www.unikoeln.de/ew-fac/cut. With a destiny of 10 gigabite per square inch, the hard disks following the next generation will have reached their density limits. Under a research project, researchers at the Cryophysics Laboratory at Duisburg University together with Siemens, Erlangen, are developing on advanced hard disks pushing the limits of that generation. Their nanostructured storage media have tiniest elementary magnets that are specially separated so that they can be put together very close without magnetic coupling occurring. The bits are stored in super small dots having a diameter of 70nm and being 130 nm apart from each other. These dots are placed on an area of a few milionths of a millimeter instead of a homogenous magnetic layer. The researchers aim at making storage media having a density of 65 gigabits per square inch, making possible to store about 40 gigabits on a conventional smart card, being equivalent to 27,700 floppies with a capacity of 1.4 megabyte. Help — The Health Eduction Library for People — is a modern public library that providesa reliable and comprehensive collectionof healtheductional materials, so that you are better informed about your own health. It is India's firstHealth Education Resource Centrewhich provides people with the information they need to promote their health, and prevent and treat medical problems in the family in partnership with their doctor. It contains over 15000 consumerhealth books, pamphlets, newsletters and magazines, 500 video tapes, 30CD-ROMs onall health and medical topics. Itprovidesphotocopying facilities at reasonablerates. Library catalogue is computerized, andalsoavailable on the Intenet at www. healthlibrary.com so that readers can browse through the catalogue from their homes. Entry fee for all doctors and patients is free. Help has access to information on every health and, medical topic under the sun explained in lay persons language. In order to help and educate doctors to `prescibe information' HELP has started a `Prescription for Information Compaign'. It is important that the doctors then discuss the results of this information search with the patient, so that the doctor can guide the patient as to which information is relevant to his particular problem. `Prescription for Information' service will also prevent health fraud and quackery by educating the consumer about health and illness as the patients will be well aware about health, disease and treatment available internationally. Avail facilities at or contact: Dr. Michael Guggolz, a dentist from Oberried near Freiburg Germany, has developed a new method to write by mouth, which has now been patented. The Fraunhofer Patent Centre for German Research helped him turn his invention into a marketable product. The device makes it much easier for physically handicapped people to wield a pen or operate a keyboard. From a normal dentist's cast of teeth, a plate is produced to match the individual mouth. This very thin plastic plate is a perfect fit on the upper and lower teeth on the right-hand or left-hand side as the person prefers. Attached to the plate is a thin S-curved steel rod about 20cm long. On the end of the rod is a universal adapter that will take any pen or pencil or stylus up to 15 mm in diameter. The new device allows a person to write or type with the eyes at normal distance from the paper or keyboard and with more relaxed sitting position.
english
package org.geometrycommands; import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.io.WKTReader; import org.geometrycommands.RandomCommand.RandomOptions; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.util.Map; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; /** * The RandomCommand UnitTest * @author <NAME> */ public class RandomCommandTest extends BaseTest { @Test public void execute() throws Exception { String inputGeometry = "POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))"; RandomOptions options = new RandomOptions(); options.setGeometry(inputGeometry); options.setNumber(10); options.setConstrainedToCircle(false); options.setGutterFraction(Double.NaN); Reader reader = new StringReader(inputGeometry); StringWriter writer = new StringWriter(); RandomCommand command = new RandomCommand(); command.execute(options, reader, writer); String output = writer.getBuffer().toString(); Geometry geometry = new WKTReader().read(output); assertEquals("MultiPoint", geometry.getGeometryType()); assertEquals(10, geometry.getNumGeometries()); } @Test public void executeGriddedWithLineString() throws Exception { String inputGeometry = "LINESTRING (0 0, 10 10)"; RandomOptions options = new RandomOptions(); options.setGeometry(inputGeometry); options.setGridded(true); options.setNumber(10); Reader reader = new StringReader(inputGeometry); StringWriter writer = new StringWriter(); RandomCommand command = new RandomCommand(); command.execute(options, reader, writer); String output = writer.getBuffer().toString(); Geometry geometry = new WKTReader().read(output); assertEquals("MultiPoint", geometry.getGeometryType()); assertEquals(16, geometry.getNumGeometries()); } @Test public void run() throws Exception { // Geometry from options String result = runApp(new String[]{ "random", "-g", "POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))", "-n", "10" }, null); Geometry geometry = new WKTReader().read(result); assertEquals("MultiPoint", geometry.getGeometryType()); assertEquals(10, geometry.getNumGeometries()); // Geometry from input stream result = runApp(new String[]{ "random", "-n", "10" }, "POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))"); geometry = new WKTReader().read(result); assertEquals("MultiPoint", geometry.getGeometryType()); assertEquals(10, geometry.getNumGeometries()); // Geometry from input stream result = runApp(new String[]{ "random", "-n", "10", "-r", "-c", "-f", "0.25" }, "POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))"); geometry = new WKTReader().read(result); assertEquals("MultiPoint", geometry.getGeometryType()); assertEquals(16, geometry.getNumGeometries()); } @Test public void runWithWrongGeometryType() throws Exception { Map<String,String> result = runAppWithOutAndErr(new String[]{ "random", "-g", "POINT (1 1)", "-n", "10" }, null); assertEquals("Geometry must be a Polygon or MultiPolygon!" + NEW_LINE + "Usage: geom <command> <args>" + NEW_LINE + " --help : Print help message (default: false)" + NEW_LINE + " --web-help : Open help in a web browser (default: false)" + NEW_LINE + " -c (--constrained) : The flag for whether the random points should be" + NEW_LINE + " constrained to a circle when gridded. (default:" + NEW_LINE + " false)" + NEW_LINE + " -f (--gutterFraction) N : The gutter distance or padding for random points" + NEW_LINE + " when gridded. (default: NaN)" + NEW_LINE + " -g (--geometry) VAL : The input geometry (default: POINT (1 1))" + NEW_LINE + " -n (--number) N : The number of points" + NEW_LINE + " -r (--gridded) : The flag for whether the random points should be" + NEW_LINE + " gridded. (default: false)", result.get("err")); } }
java
(Reuters) – Meta Platforms Inc (META. O) signed an agreement to have chip-maker Qualcomm Inc (QCOM. O) produce custom chipsets for its Quest virtual reality (VR) devices, the companies announced at a consumer electronics conference in Berlin on Friday. Engineering and product teams of both companies will work together to produce the chips, powered by Qualcomm’s Snapdragon platforms, they said in a statement. The agreement shows the dependency of Meta, known as Facebook until last year, on Qualcomm’s technology even as it tries to develop custom silicon of its own for its virtual, augmented and mixed reality devices. “Unlike mobile phones, building VR brings novel multidimensional challenges in spatial computing, cost and form factor,” Meta Chief Executive Mark Zuckerberg said in a video message. “We are still in the early stages of the metaverse and this sort of deep technical integration will help VR move towards being a multifunctional computing platform,” he said. Meta has been investing heavily in technologies like pass-through goggles and augmented reality glasses as it tries to bring to life Zuckerberg’s vision for the metaverse, a concept involving an immersive set of digital worlds. It has relied on Qualcomm’s chips for its VR devices for years, including for its latest Quest2 headset. The chipsets produced through the collaboration will not be exclusive to Meta, but will be optimized specifically for Quest’s system specifications, Meta spokesperson Tyler Yee told Reuters. Financial terms of the deal were not disclosed. The agreement covers only VR devices, Yee said, and Meta will continue working to develop some of its own silicon solutions. “There could be situations where we use off-the-shelf silicon or work with industry partners on customizations, while also exploring our own novel silicon solutions. There could also be scenarios where we use both partner and custom solutions in the same product,” said Yee.
english
Most eligible bachelor of Bollywood Salman Khan’s heart fluttered for the first time ever for Shaheen Jaffery who is the granddaughter of Ashok Kumar. Jaffrey was a model and they started dating in their twenties and was very romantic he used to wait outside her college in his red sports car! They split up after a long relationship. But that did not let them get apart. Aishwarya Rai dated Rajeev Mulchandani before she made it to the silver screen. The two started their modelling careers together. But she dumped Mulchandani as soon as she started getting film offers. She instantly broke up with him and became “more than friends” with Salman Khan. The former Miss World is now wife of Abhishek Bacchan.
english
LOK SABHA LOK SABHA DEBATES Monday, September 3, 2012/Bhadra 12, 1934 (Saka) The Lok Sabha met at Eleven of the Clock [MADAM SPEAKER in the Chair] OBITUARY REFERENCE MADAM SPEAKER: Hon. Members, I have to inform the House of the sad demise of our former colleague Shri Kashiram Rana. Shri Kashiram Rana was a Member of the Ninth to Fourteenth Lok Sabhas from 1989 to 2009 representing the Surat Parliamentary Constituency of Gujarat. Shri Kashiram Rana was also a Member of Gujarat Legislative Assembly from 1975 to 1980. A distinguished parliamentarian, Shri Rana was Union Cabinet Minister for Textiles from 1998 to 2003 and Rural Development from 2003 to 2004. He also served as a member of Public Accounts Committee, Estimates Committee and Committee on Public Undertakings. A widely traveled person, Shri Rana represented the country in various international conferences. He was a member of the Indian Parliamentary Delegation of IPU to Chile and USA. Shri Kashiram Rana passed away on 31st August, 2012 at the age of 74 in Ahmedabad. We deeply mourn the loss of our friend and I am sure the House would join me in conveying our condolences to the bereaved family. The House may now stand in silence for a short while as a mark of respect to the memory of the departed. The Members then stood in silence for a short MADAM SPEAKER: Now Question Hour. Q. No. 305 Shri Jaywant Gangaram Awale. At this stage, Shri Ganesh Singh and some other hon. Members came and stood on the floor near the Table. SHRI T.R. BAALU (Sriperumbudur): Madam, Sri Lankan Army should not be given training in the country ...(Interruptions) ORAL ANSWER TO QUESTION Gangaram Awale MADAM SPEAKER: Q.No. 305 Cleaning of Rivers Shri Jaywant *305. SHRI JAYWANT GANGARAM AWALE: SHRI SANJAY DINA PATIL: Will the Minister of ENVIRONMENT AND FORESTS be pleased to state: (a) whether the Government has reviewed the Oral Answer SEPTEMBER 3, 2012 progress made in the cleaning of major rivers in the country; (b) if so, the outcome thereof including the action plan and expenditure incurred so far to clean these rivers, river-wise; (c) whether the Government has also sought the help of World Bank/International Agencies/NonGovernmental Organisations (NGOs) for the cleaning of these rivers; (d) if so, the details thereof including the funds received from these agencies, agency-wise; and (e) the measures taken by the Government for conservation of the rivers? THE MINISTER OF STATE IN THE MINISTRY OF SOCIAL JUSTICE AND EMPOWERMENT (SHRI D. NAPOLEON): (a) to (e) A Statement is laid on the Table of the House. (a) and (b) The Ganga Action Plan (GAP) was launched by the Government in 1985, for pollution abatement activities in identified polluted stretches of river Ganga and later expanded to include other major rivers under National River Conservation Plan (NRCP). NRCP presently covers 40 rivers in 190 towns spread over 20 States. Pollution abatement schemes implemented under the plan include interception, diversion and treatment of sewage; low cost sanitation works on river banks; electric/ improved wood based crematoria, etc. Sewage treatment capacity of 4664 mid (million litres per day) has been created under the Plan. An expenditure of Rs.5343.06 crore has been incurred so far under NRCP, including the National Ganga River Basin Authority (NGRBA) programme, and the river-wise details are given in the enclosed Annexure. Based on independent monitoring undertaken by reputed institutions, the water quality in terms of BOD to Question (Bio-chemical Oxygen Demand) values for major rivers is reported to have improved as compared to the water quality before taking up pollution abatement works. However, the levels of bacterial contamination in terms of fecal coliform are reported to be exceeding the maximum permissible limit at various monitoring locations. In light of experience gained in implementation of the river action plans since 1985, the river conservation strategy was reviewed by the Government. Accordingly, in February 2009, the NGRBA has been constituted as an empowered, planning, financing, monitoring and coordinating authority with the objective to ensure effective abatement of pollution and conservation of the river Ganga by adopting a holistic river basin approach. (c) and (d) External assistance from bilateral/ multilateral agencies is availed of from time to time by the Government for conservation of rivers. Presently, the Japan International Cooperation Agency (JICA) has extended loan assistance of Yen 13.33 billion for Phase-II and Yen 32.571 billion for Phase-III of the ongoing Yamuna Action Plan (YAP) for pollution abatement of the river. JICA is providing loan assistance of 11.184 billion Yen for pollution abatement of the river Ganga at Varanasi. World Bank is also providing loan assistance of US $ 1 billion for abatement of pollution of river Ganga under the NGRBA programme. (e) Conservation of rivers is an ongoing and collective effort of the Central and State Governments and this Ministry is supplementing the efforts of the State Governments in abatement of pollution in rivers under NRCP. Further, the Central Pollution Control Board and respective State Pollution Control Boards monitor industries for compliance with respect to effluents discharge standards and take action for noncompliance under the Water (Prevention and Control of Pollution) Act, 1974 and the Environment (Protection) Act, 1986.
english
<gh_stars>1-10 import React, { useEffect, useState } from 'react'; import { useHistory } from 'react-router'; import { useAlert } from 'src/store/useAlert'; import { useLoader } from 'src/store/useLoader'; const AppModal = React.lazy(() => import('src/components/AppModal')); const TemplateCards = React.lazy(() => import('src/components/templates/TemplateCards')); const PrismHighlight = React.lazy(() => import('src/components/templates/PrismHighlight')); import { useUser } from 'src/store/userContext'; import { DonkeyApi } from 'src/utils/helpers'; interface Props {} const User: React.FC<Props> = () => { const { user } = useUser(); const { push } = useHistory(); const { setLoader } = useLoader(); const [isModal, setModal] = useState(false); const [newTemplate, setTemplate] = useState({ title: '', markup: '' }); const { setAlerts } = useAlert(); const handleInput = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => { const target = e.target; setTemplate({ ...newTemplate, [target.name]: target.value, }); }; useEffect(() => { if (!isModal) { setTemplate({ markup: '', title: '', }); } }, [isModal]); async function createTemplate() { setLoader(true); DonkeyApi.post(`/template/`, { ...newTemplate, }) .then( (res) => ( setModal(false), setAlerts({ message: `Template ${res.data.title} is created successfully !`, type: 'success', }), setTemplate({ markup: '', title: '' }), setLoader(false), push(`/template/${res.data.id}`) ), ) .catch((err) => (console.log(err), setAlerts({ message: err.response.data, type: 'error' }))); } return ( <div className="container"> <AppModal isModal={isModal} closeModal={() => setModal(false)} heading={'Create new Template'} > <form onSubmit={(e) => (e.preventDefault(), createTemplate())} className="grid grid-cols-1 gap-3" > <div> <label htmlFor="title">Title</label> <input id="title" name="title" type="text" value={newTemplate.title} onChange={handleInput} className="rounded-md w-full" /> </div> <div> <label>Basic template</label> <PrismHighlight code={newTemplate.markup} minHeight={300} language={'html'} onCode={(e) => setTemplate({ ...newTemplate, markup: e })} /> </div> <div className="flex justify-end"> <button className="p-2 rounded-md bg-red-500 hover:bg-red-600 text-white ml-1 transition duration-200 ease-in-out" onClick={() => setModal(false)} type="button" > Cancel </button> <button className={`p-2 rounded-md bg-indigo-500 text-white ml-1 transition duration-200 ease-in-out ${ newTemplate.markup.length < 1 || newTemplate.title.length < 1 ? 'disabled:opacity-50 cursor-not-allowed' : 'hover:bg-indigo-600' }`} type="submit" disabled={newTemplate.markup.length < 1 || newTemplate.title.length < 1} > Submit </button> </div> </form> </AppModal> <div> <button className="bg-indigo-500 p-2 hover:bg-indigo-600 float-right text-white rounded-md transition duration-200 ease-in-out" onClick={() => setModal(true)} > Create </button> <p className="text-3xl font-bold">Dashboard</p> </div> <p className="text-lg"> {' '} Hii <span className="font-bold"> {user.name} </span> ! Welcome to PDF-Donkey. </p> <p className="text-lg">You can find all of your templates here.</p> <TemplateCards /> </div> ); }; export default User;
typescript
<filename>node_modules/@angular-devkit/build-optimizer/src/.cache/9e8fb6465a4133815c22c0a9b2308c10.json {"remainingRequest":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js??ref--3-1!/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/aws-sdk/lib/signers/v2.js","dependencies":[{"path":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/aws-sdk/lib/signers/v2.js","mtime":1529418306562},{"path":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/cache-loader/dist/cjs.js","mtime":1529418306962},{"path":"/Users/vamsikarri/Desktop/Gathi/Angular/FederatedQuery/node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js","mtime":1529418304772}],"contextDependencies":[],"result":["var AWS = require('../core');\nvar inherit = AWS.util.inherit;\n\n/**\n * @api private\n */\nAWS.Signers.V2 = inherit(AWS.Signers.RequestSigner, {\n addAuthorization: function addAuthorization(credentials, date) {\n\n if (!date) date = AWS.util.date.getDate();\n\n var r = this.request;\n\n r.params.Timestamp = AWS.util.date.iso8601(date);\n r.params.SignatureVersion = '2';\n r.params.SignatureMethod = 'HmacSHA256';\n r.params.AWSAccessKeyId = credentials.accessKeyId;\n\n if (credentials.sessionToken) {\n r.params.SecurityToken = credentials.sessionToken;\n }\n\n delete r.params.Signature; // delete old Signature for re-signing\n r.params.Signature = this.signature(credentials);\n\n r.body = AWS.util.queryParamsToString(r.params);\n r.headers['Content-Length'] = r.body.length;\n },\n\n signature: function signature(credentials) {\n return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64');\n },\n\n stringToSign: function stringToSign() {\n var parts = [];\n parts.push(this.request.method);\n parts.push(this.request.endpoint.host.toLowerCase());\n parts.push(this.request.pathname());\n parts.push(AWS.util.queryParamsToString(this.request.params));\n return parts.join('\\n');\n }\n\n});\n\n/**\n * @api private\n */\nmodule.exports = AWS.Signers.V2;\n",null]}
json
<reponame>GeertJohan/etcd package v2 import ( "fmt" "net/url" "testing" "time" "github.com/coreos/etcd/server" "github.com/coreos/etcd/tests" "github.com/stretchr/testify/assert" ) // Ensures that a key is set to a given value. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // func TestV2SetKey(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") resp, err := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBody(resp) assert.Nil(t, err, "") assert.Equal(t, string(body), `{"action":"set","key":"/foo/bar","value":"XXX","modifiedIndex":1}`, "") }) } // Ensures that a time-to-live is added to a key. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d ttl=20 // func TestV2SetKeyWithTTL(t *testing.T) { tests.RunServer(func(s *server.Server) { t0 := time.Now() v := url.Values{} v.Set("value", "XXX") v.Set("ttl", "20") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["ttl"], 20, "") // Make sure the expiration date is correct. expiration, _ := time.Parse(time.RFC3339Nano, body["expiration"].(string)) assert.Equal(t, expiration.Sub(t0)/time.Second, 20, "") }) } // Ensures that an invalid time-to-live is returned as an error. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d ttl=bad_ttl // func TestV2SetKeyWithBadTTL(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") v.Set("ttl", "bad_ttl") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 202, "") assert.Equal(t, body["message"], "The given TTL in POST form is not a number", "") assert.Equal(t, body["cause"], "Update", "") }) } // Ensures that a key is conditionally set only if it previously did not exist. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d prevExist=false // func TestV2CreateKeySuccess(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") v.Set("prevExist", "false") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["value"], "XXX", "") }) } // Ensures that a key is not conditionally because it previously existed. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d prevExist=false // func TestV2CreateKeyFail(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") v.Set("prevExist", "false") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) tests.ReadBody(resp) resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 105, "") assert.Equal(t, body["message"], "Already exists", "") assert.Equal(t, body["cause"], "/foo/bar", "") }) } // Ensures that a key is conditionally set only if it previously did exist. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=YYY -d prevExist=true // func TestV2UpdateKeySuccess(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) tests.ReadBody(resp) v.Set("value", "YYY") v.Set("prevExist", "true") resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["action"], "update", "") assert.Equal(t, body["prevValue"], "XXX", "") }) } // Ensures that a key is not conditionally set if it previously did not exist. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d prevExist=true // func TestV2UpdateKeyFailOnValue(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo"), v) v.Set("value", "YYY") v.Set("prevExist", "true") resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 100, "") assert.Equal(t, body["message"], "Key Not Found", "") assert.Equal(t, body["cause"], "/foo/bar", "") }) } // Ensures that a key is not conditionally set if it previously did not exist. // // $ curl -X PUT localhost:4001/v2/keys/foo -d value=XXX -d prevExist=true // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d prevExist=true // func TestV2UpdateKeyFailOnMissingDirectory(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "YYY") v.Set("prevExist", "true") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 100, "") assert.Equal(t, body["message"], "Key Not Found", "") assert.Equal(t, body["cause"], "/foo", "") }) } // Ensures that a key is set only if the previous index matches. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=YYY -d prevIndex=1 // func TestV2SetKeyCASOnIndexSuccess(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) tests.ReadBody(resp) v.Set("value", "YYY") v.Set("prevIndex", "1") resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["action"], "compareAndSwap", "") assert.Equal(t, body["prevValue"], "XXX", "") assert.Equal(t, body["value"], "YYY", "") assert.Equal(t, body["modifiedIndex"], 2, "") }) } // Ensures that a key is not set if the previous index does not match. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=YYY -d prevIndex=10 // func TestV2SetKeyCASOnIndexFail(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) tests.ReadBody(resp) v.Set("value", "YYY") v.Set("prevIndex", "10") resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 101, "") assert.Equal(t, body["message"], "Test Failed", "") assert.Equal(t, body["cause"], "[ != XXX] [10 != 1]", "") assert.Equal(t, body["index"], 1, "") }) } // Ensures that an error is thrown if an invalid previous index is provided. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=YYY -d prevIndex=bad_index // func TestV2SetKeyCASWithInvalidIndex(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "YYY") v.Set("prevIndex", "bad_index") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 203, "") assert.Equal(t, body["message"], "The given index in POST form is not a number", "") assert.Equal(t, body["cause"], "CompareAndSwap", "") }) } // Ensures that a key is set only if the previous value matches. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=YYY -d prevValue=XXX // func TestV2SetKeyCASOnValueSuccess(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) tests.ReadBody(resp) v.Set("value", "YYY") v.Set("prevValue", "XXX") resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["action"], "compareAndSwap", "") assert.Equal(t, body["prevValue"], "XXX", "") assert.Equal(t, body["value"], "YYY", "") assert.Equal(t, body["modifiedIndex"], 2, "") }) } // Ensures that a key is not set if the previous value does not match. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=YYY -d prevValue=AAA // func TestV2SetKeyCASOnValueFail(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) tests.ReadBody(resp) v.Set("value", "YYY") v.Set("prevValue", "AAA") resp, _ = tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 101, "") assert.Equal(t, body["message"], "Test Failed", "") assert.Equal(t, body["cause"], "[AAA != XXX] [0 != 1]", "") assert.Equal(t, body["index"], 1, "") }) } // Ensures that an error is returned if a blank prevValue is set. // // $ curl -X PUT localhost:4001/v2/keys/foo/bar -d value=XXX -d prevValue= // func TestV2SetKeyCASWithMissingValueFails(t *testing.T) { tests.RunServer(func(s *server.Server) { v := url.Values{} v.Set("value", "XXX") v.Set("prevValue", "") resp, _ := tests.PutForm(fmt.Sprintf("http://%s%s", s.URL(), "/v2/keys/foo/bar"), v) body := tests.ReadBodyJSON(resp) assert.Equal(t, body["errorCode"], 201, "") assert.Equal(t, body["message"], "PrevValue is Required in POST form", "") assert.Equal(t, body["cause"], "CompareAndSwap", "") }) }
go
<reponame>dutille/doconce<filename>doc/pub/quiz/sphinx-rs/_static/edu-python.js /* Online Python Tutor Copyright (C) 2010 <NAME> (<EMAIL>) https://github.com/pgbovine/OnlinePythonTutor/ This program 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 of the License, or (at your option) any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ // The Online Python Tutor front-end, which calls the cgi-bin/web_exec.py // back-end with a string representing the user's script POST['user_script'] // and receives a complete execution trace, which it parses and displays to HTML. var PythonTutor; if (! PythonTutor) { PythonTutor = {}; } (function () { function Visualizer(source_code, trace_data, divid) { this.stdOutElement = "#pyStdout_" + divid; this.warnOutElement = "#warningOutput_" + divid; this.errorOutputElement = "#errorOutput_" + divid; this.vcrControlsDiv = "#vcrControls_" + divid; this.dataVisElement = "#dataViz_" + divid; this.outputPaneTable = "#pyOutputPane_" + divid; this.codeOutputTable = "#pyCodeOutput_" + divid; this.curTrace = null; this.curInstr = 0; this.divid = divid; this.jmpFirstInstr = $("#jmpFirstInstr_"+divid); this.jmpLastInstr = $("#jmpLastInstr_"+divid); this.jmpStepBack = $("#jmpStepBack_"+divid); this.jmpStepFwd = $("#jmpStepFwd_"+divid); this.renderPyCodeOutput(source_code); this.processTrace(trace_data); $(this.outputPaneTable).show(); var myvis = this; this.jmpFirstInstr.click(function() { myvis.curInstr = 0; myvis.updateOutput(); logBookEvent({'event':'codelens', 'act': 'first', 'div_id':myvis.divid}); // Log the run event }); this.jmpLastInstr.click(function() { myvis.curInstr = myvis.curTrace.length - 1; myvis.updateOutput(); logBookEvent({'event':'codelens', 'act':'last', 'div_id': myvis.divid}); // Log the run event }); this.jmpStepBack.click(function() { if (myvis.curInstr > 0) { myvis.curInstr -= 1; myvis.updateOutput(); logBookEvent({'event':'codelens', 'act': 'back', 'div_id': myvis.divid}); // Log the run event } }); this.jmpStepFwd.click(function() { if (myvis.curInstr < myvis.curTrace.length - 1) { myvis.curInstr += 1; myvis.updateOutput(); logBookEvent({'event':'codelens', 'act':'fwd', 'div_id':myvis.divid}); // Log the run event } }); } Visualizer.prototype.processTrace = function(traceData) { this.curTrace = traceData; this.curInstr = 0; // delete all stale output $(this.warnOutElement).html(''); $(this.stdOutElement).val(''); if (this.curTrace.length > 0) { var lastEntry = this.curTrace[this.curTrace.length - 1]; // if there is some sort of error, then JUMP to it so that we can // immediately alert the user: // (cgi-bin/pg_logger.py ensures that if there is an uncaught // exception, then that exception event will be the FINAL // entry in this.curTrace. a caught exception will appear somewhere in // the MIDDLE of this.curTrace) // // on second thought, let's hold off on that for now /* if (lastEntry.event == 'exception' || lastEntry.event == 'uncaught_exception') { // updateOutput should take care of the rest ... curInstr = this.curTrace.length - 1; } */ if (lastEntry.event == 'instruction_limit_reached') { this.curTrace.pop() // kill last entry var warningMsg = lastEntry.exception_msg; $(this.warnOutElement).html(htmlspecialchars(warningMsg)); } // as imran suggests, for a (non-error) one-liner, SNIP off the // first instruction so that we start after the FIRST instruction // has been executed ... else if (this.curTrace.length == 2) { this.curTrace.shift(); } } this.updateOutput(); } Visualizer.prototype.highlightCodeLine = function(curLine, visitedLinesSet, hasError) { var tbl = $(this.codeOutputTable); /* colors - see edu-python.css */ var lightYellow = '#F5F798'; var lightLineColor = '#FFFFCC'; var errorColor = '#F87D76'; var visitedLineColor = '#3D58A2'; // reset then set: tbl.find('td.lineNo').css('color', ''); tbl.find('td.lineNo').css('font-weight', ''); $.each(visitedLinesSet, function(k, v) { tbl.find('td.lineNo:eq(' + (k - 1) + ')').css('color', visitedLineColor); tbl.find('td.lineNo:eq(' + (k - 1) + ')').css('font-weight', 'bold'); }); var lineBgCol = lightLineColor; if (hasError) { lineBgCol = errorColor; } tbl.find('td.cod').css('border-bottom', '1px solid #ffffff'); if (!hasError) { tbl.find('td.cod:eq(' + (curLine - 1) + ')').css('border-bottom', '1px solid #F87D76') } tbl.find('td.cod').css('background-color', ''); tbl.find('td.cod:eq(' + (curLine - 1) + ')').css('background-color', lineBgCol); } // relies on this.curTrace and curInstr globals Visualizer.prototype.updateOutput = function() { var curEntry = this.curTrace[this.curInstr]; var hasError = false; // render VCR controls: var totalInstrs = this.curTrace.length var vcr = $(this.vcrControlsDiv); vcr.find("#curInstr_"+this.divid).html(this.curInstr + 1); vcr.find("#totalInstrs_"+this.divid).html(totalInstrs); this.jmpFirstInstr.attr("disabled", false); this.jmpStepBack.attr("disabled", false); this.jmpStepFwd.attr("disabled", false); this.jmpLastInstr.attr("disabled", false); if (this.curInstr == 0) { this.jmpFirstInstr.attr("disabled", true); this.jmpStepBack.attr("disabled", true); } if (this.curInstr == (totalInstrs - 1)) { this.jmpLastInstr.attr("disabled", true); this.jmpStepFwd.attr("disabled", true); } // render error (if applicable): if (curEntry.event == 'exception' || curEntry.event == 'uncaught_exception') { assert(curEntry.exception_msg); if (curEntry.exception_msg == "Unknown error") { $(this.errorOutputElement).html('Unknown error: <a id="editCodeLinkOnError" href="#">view code</a> and please<br/>email as a bug report to <EMAIL>'); } else { $(this.errorOutputElement).html(htmlspecialchars(curEntry.exception_msg)); } $(this.errorOutputElement).show(); hasError = true; } else { $(this.errorOutputElement).hide(); } // render code output: if (curEntry.line) { // calculate all lines that have been 'visited' // by execution up to (but NOT INCLUDING) curInstr: var visitedLinesSet = {} for (var i = 0; i < this.curInstr; i++) { if (this.curTrace[i].line) { visitedLinesSet[this.curTrace[i].line] = true; } } this.highlightCodeLine(curEntry.line, visitedLinesSet, hasError); } // render stdout: // keep original horizontal scroll level: // var oldLeft = $(this.stdOutElement).scrollLeft(); // $(this.stdOutElement).val(curEntry.stdout); // $(this.stdOutElement).scrollLeft(oldLeft); // // scroll to bottom, tho: // $(this.stdOutElement).scrollTop($(this.stdOutElement).attr('scrollHeight')); $(this.stdOutElement).text(curEntry.stdout); // render data structures: $(this.dataVisElement).html(''); // CLEAR IT! // render locals on stack: if (curEntry.stack_locals != undefined) { var self = this; $.each(curEntry.stack_locals, function (i, frame) { var funcName = htmlspecialchars(frame[0]); // might contain '<' or '>' for weird names like <genexpr> var localVars = frame[1]; $(self.dataVisElement).append('<div class="vizFrame">Local variables for <span style="font-family: Andale mono, monospace;">' + funcName + '</span>:</div>'); // render locals in alphabetical order for tidiness: var orderedVarnames = []; $.each(localVars, function(varname, val) { orderedVarnames.push(varname); }); orderedVarnames.sort(); if (orderedVarnames.length > 0) { $(self.dataVisElement + " .vizFrame:last").append('<br/><table class="frameDataViz"></table>'); var tbl = $(self.outputPaneTable + " table:last"); $.each(orderedVarnames, function(i, varname) { var val = localVars[varname]; tbl.append('<tr><td class="varname"></td><td class="val"></td></tr>'); var curTr = tbl.find('tr:last'); if (varname == '__return__') { curTr.find("td.varname").html('<span style="font-size: 10pt; font-style: italic;">return value</span>'); } else { curTr.find("td.varname").html(varname); } self.renderData(val, curTr.find("td.val")); }); tbl.find("tr:last").find("td.varname").css('border-bottom', '0px'); tbl.find("tr:last").find("td.val").css('border-bottom', '0px'); } else { $(this.dataVisElement + " .vizFrame:last").append(' <i>none</i>'); } }); } // render globals LAST: $(this.dataVisElement).append('<div class="vizFrame">Global variables:</div>'); var nonEmptyGlobals = false; var curGlobalFields = {}; if (curEntry.globals != undefined) { $.each(curEntry.globals, function(varname, val) { curGlobalFields[varname] = true; nonEmptyGlobals = true; }); } if (nonEmptyGlobals) { $(this.dataVisElement + " .vizFrame:last").append('<br/><table class="frameDataViz"></table>'); // render all global variables IN THE ORDER they were created by the program, // in order to ensure continuity: var orderedGlobals = [] // iterating over ALL instructions (could be SLOW if not for our optimization below) for (var i = 0; i <= this.curInstr; i++) { // some entries (like for exceptions) don't have GLOBALS if (this.curTrace[i].globals == undefined) continue; $.each(this.curTrace[i].globals, function(varname, val) { // eliminate duplicates (act as an ordered set) if ($.inArray(varname, orderedGlobals) == -1) { orderedGlobals.push(varname); curGlobalFields[varname] = undefined; // 'unset it' } }); var earlyStop = true; // as an optimization, STOP as soon as you've found everything in curGlobalFields: for (o in curGlobalFields) { if (curGlobalFields[o] != undefined) { earlyStop = false; break; } } if (earlyStop) { break; } } var tbl = $(this.outputPaneTable + " table:last"); var self = this; // iterate IN ORDER (it's possible that not all vars are in curEntry.globals) $.each(orderedGlobals, function(i, varname) { var val = curEntry.globals[varname]; if (val != undefined) { // might not be defined at this line, which is OKAY! tbl.append('<tr><td class="varname"></td><td class="val"></td></tr>'); var curTr = tbl.find('tr:last'); curTr.find("td.varname").html(varname); self.renderData(val, curTr.find("td.val")); } }); tbl.find("tr:last").find("td.varname").css('border-bottom', '0px'); tbl.find("tr:last").find("td.val").css('border-bottom', '0px'); } else { $(this.dataVisElement + " .vizFrame:last").append(' <i>none</i>'); } } // render the JS data object obj inside of jDomElt, // which is a jQuery wrapped DOM object // (obj is in a format encoded by cgi-bin/pg_encoder.py) Visualizer.prototype.renderData = function(obj, jDomElt) { // dispatch on types: var typ = typeof obj; if (obj == null) { jDomElt.append('<span class="nullObj">None</span>'); } else if (typ == "number") { jDomElt.append('<span class="numberObj">' + obj + '</span>'); } else if (typ == "boolean") { if (obj) { jDomElt.append('<span class="boolObj">True</span>'); } else { jDomElt.append('<span class="boolObj">False</span>'); } } else if (typ == "string") { // escape using htmlspecialchars to prevent HTML/script injection // print as a JSON literal var literalStr = htmlspecialchars(obj); literalStr = literalStr.replace('\"', '\\"'); literalStr = '"' + literalStr + '"'; jDomElt.append('<span class="stringObj">' + literalStr + '</span>'); } else if (typ == "object") { assert($.isArray(obj)); if (obj[0] == 'LIST') { assert(obj.length >= 2); if (obj.length == 2) { jDomElt.append('<div class="typeLabel">empty list (id=' + obj[1] + ')</div>'); } else { jDomElt.append('<div class="typeLabel">list (id=' + obj[1] + '):</div>'); jDomElt.append('<table class="listTbl"><tr></tr><tr></tr></table>'); var tbl = jDomElt.children('table'); var headerTr = tbl.find('tr:first'); var contentTr = tbl.find('tr:last'); var self = this; jQuery.each(obj, function(ind, val) { if (ind < 2) return; // skip 'LIST' tag and ID entry // add a new column and then pass in that newly-added column // as jDomElt to the recursive call to child: headerTr.append('<td class="listHeader"></td>'); headerTr.find('td:last').append(ind - 2); contentTr.append('<td class="listElt"></td>'); self.renderData(val, contentTr.find('td:last')); }); } } else if (obj[0] == 'TUPLE') { assert(obj.length >= 2); if (obj.length == 2) { jDomElt.append('<div class="typeLabel">empty tuple (id=' + obj[1] + ')</div>'); } else { jDomElt.append('<div class="typeLabel">tuple (id=' + obj[1] + '):</div>'); jDomElt.append('<table class="tupleTbl"><tr></tr><tr></tr></table>'); var tbl = jDomElt.children('table'); var headerTr = tbl.find('tr:first'); var contentTr = tbl.find('tr:last'); var self = this; jQuery.each(obj, function(ind, val) { if (ind < 2) return; // skip 'TUPLE' tag and ID entry // add a new column and then pass in that newly-added column // as jDomElt to the recursive call to child: headerTr.append('<td class="tupleHeader"></td>'); headerTr.find('td:last').append(ind - 2); contentTr.append('<td class="tupleElt"></td>'); self.renderData(val, contentTr.find('td:last')); }); } } else if (obj[0] == 'SET') { assert(obj.length >= 2); if (obj.length == 2) { jDomElt.append('<div class="typeLabel">empty set (id=' + obj[1] + ')</div>'); } else { jDomElt.append('<div class="typeLabel">set (id=' + obj[1] + '):</div>'); jDomElt.append('<table class="setTbl"></table>'); var tbl = jDomElt.children('table'); // create an R x C matrix: var numElts = obj.length - 2; // gives roughly a 3x5 rectangular ratio, square is too, err, // 'square' and boring var numRows = Math.round(Math.sqrt(numElts)); if (numRows > 3) { numRows -= 1; } var numCols = Math.round(numElts / numRows); // round up if not a perfect multiple: if (numElts % numRows) { numCols += 1; } var self = this; jQuery.each(obj, function(ind, val) { if (ind < 2) return; // skip 'SET' tag and ID entry if (((ind - 2) % numCols) == 0) { tbl.append('<tr></tr>'); } var curTr = tbl.find('tr:last'); curTr.append('<td class="setElt"></td>'); self.renderData(val, curTr.find('td:last')); }); } } else if (obj[0] == 'DICT') { assert(obj.length >= 2); if (obj.length == 2) { jDomElt.append('<div class="typeLabel">empty dict (id=' + obj[1] + ')</div>'); } else { jDomElt.append('<div class="typeLabel">dict (id=' + obj[1] + '):</div>'); jDomElt.append('<table class="dictTbl"></table>'); var tbl = jDomElt.children('table'); var self = this; $.each(obj, function(ind, kvPair) { if (ind < 2) return; // skip 'DICT' tag and ID entry tbl.append('<tr class="dictEntry"><td class="dictKey"></td><td class="dictVal"></td></tr>'); var newRow = tbl.find('tr:last'); var keyTd = newRow.find('td:first'); var valTd = newRow.find('td:last'); self.renderData(kvPair[0], keyTd); self.renderData(kvPair[1], valTd); }); } } else if (obj[0] == 'INSTANCE') { assert(obj.length >= 3); jDomElt.append('<div class="typeLabel">' + obj[1] + ' instance (id=' + obj[2] + ')</div>'); if (obj.length > 3) { jDomElt.append('<table class="instTbl"></table>'); var tbl = jDomElt.children('table'); var self = this; $.each(obj, function(ind, kvPair) { if (ind < 3) return; // skip type tag, class name, and ID entry tbl.append('<tr class="instEntry"><td class="instKey"></td><td class="instVal"></td></tr>'); var newRow = tbl.find('tr:last'); var keyTd = newRow.find('td:first'); var valTd = newRow.find('td:last'); // the keys should always be strings, so render them directly (and without quotes): assert(typeof kvPair[0] == "string"); var attrnameStr = htmlspecialchars(kvPair[0]); keyTd.append('<span class="stringObj">' + attrnameStr + '</span>'); // values can be arbitrary objects, so recurse: self.renderData(kvPair[1], valTd); }); } } else if (obj[0] == 'CLASS') { assert(obj.length >= 4); var superclassStr = ''; if (obj[3].length > 0) { superclassStr += ('[extends ' + obj[3].join(',') + '] '); } jDomElt.append('<div class="typeLabel">' + obj[1] + ' class ' + superclassStr + '(id=' + obj[2] + ')</div>'); if (obj.length > 4) { jDomElt.append('<table class="classTbl"></table>'); var tbl = jDomElt.children('table'); var self = this; $.each(obj, function(ind, kvPair) { if (ind < 4) return; // skip type tag, class name, ID, and superclasses entries tbl.append('<tr class="classEntry"><td class="classKey"></td><td class="classVal"></td></tr>'); var newRow = tbl.find('tr:last'); var keyTd = newRow.find('td:first'); var valTd = newRow.find('td:last'); // the keys should always be strings, so render them directly (and without quotes): assert(typeof kvPair[0] == "string"); var attrnameStr = htmlspecialchars(kvPair[0]); keyTd.append('<span class="stringObj">' + attrnameStr + '</span>'); // values can be arbitrary objects, so recurse: self.renderData(kvPair[1], valTd); }); } } else if (obj[0] == 'CIRCULAR_REF') { assert(obj.length == 2); jDomElt.append('<div class="circRefLabel">circular reference to id=' + obj[1] + '</div>'); } else { // render custom data type assert(obj.length == 3); typeName = obj[0]; id = obj[1]; strRepr = obj[2]; // if obj[2] is like '<generator object <genexpr> at 0x84760>', // then display an abbreviated version rather than the gory details noStrReprRE = /<.* at 0x.*>/; if (noStrReprRE.test(strRepr)) { jDomElt.append('<span class="customObj">' + typeName + ' (id=' + id + ')</span>'); } else { strRepr = htmlspecialchars(strRepr); // escape strings! // warning: we're overloading tuple elts for custom data types jDomElt.append('<div class="typeLabel">' + typeName + ' (id=' + id + '):</div>'); jDomElt.append('<table class="tupleTbl"><tr><td class="tupleElt">' + strRepr + '</td></tr></table>'); } } } else { alert("Error: renderData FAIL!"); } } Visualizer.prototype.renderPyCodeOutput = function(codeStr) { var tbl = $(this.codeOutputTable); tbl.html(''); var lines = codeStr.rtrim().split('\n'); $.each(lines, function(i, cod) { var lineNo = i + 1; var htmlCod = htmlspecialchars(cod); tbl.append('<tr><td class="lineNo"></td><td class="cod"></td></tr>'); var curRow = tbl.find('tr:last'); curRow.find('td.lineNo').html(lineNo); curRow.find('td.cod').html(htmlCod); }); } PythonTutor.Visualizer = Visualizer; })(); String.prototype.rtrim = function() { return this.replace(/\s*$/g, ""); } function assert(cond) { if (!cond) { alert("Error: ASSERTION FAILED"); } } // taken from http://www.toao.net/32-my-htmlspecialchars-function-for-javascript function htmlspecialchars(str) { if (typeof(str) == "string") { str = str.replace(/&/g, "&amp;"); /* must do &amp; first */ // ignore these for now ... //str = str.replace(/"/g, "&quot;"); //str = str.replace(/'/g, "&#039;"); str = str.replace(/</g, "&lt;"); str = str.replace(/>/g, "&gt;"); // replace spaces: str = str.replace(/ /g, "&nbsp;"); } return str; }
javascript
New Delhi, July 20: The BJP today constituted committees on Economic Affairs and South Asian Affairs to be headed by former Union ministers Murli Manohar Joshi and Yashwant Sinha respectively. A decision to this effect was taken at a meeting of BJP General Secretaries, BJP President Rajnath Singh told newspersons. The committees will advise the party on issues relating to them. Mr Arun Shourie, another former union minister, has been appointed in charge of North-Eastern states. He was handling these states when he was a minister in the Atal Bihari Vajpayee government. The party appointed its BJP General Secretary Arun Jaitley as the election in charge of Gujarat. Mr Jailtely had lodged his protest with the RSS the very day he was made in charge of Uttar Pradesh only.
english
<reponame>advishnuprasad/azure-quickstart-templates { "itemDisplayName": "Application Gateway for Url Path Based Routing", "description": "This template creates an Application Gateway and configures it for URL Path Based Routing.", "summary": "Application Gateway for URL Path Based Routing", "githubUsername": "puneetsaraswat", "dateUpdated": "2015-12-14" }
json
PUBG Mobile is one of the most-played mobile games today, and has led to the birth of a variety of career opportunities in the eSports industry, especially for the upcoming generation. And now, to enhance its influence across the world, the company has come up with a concept called the PUBG Mobile Global Ultimate Team Selection. In this new event, PUBG Mobile officials have joined hands with PUBG Mobile streamers across various regions. From India, they have invited the likes of SouL Mortal, ScoutOP, Dynamo, SouL Viper, SouL Regaltos, Kronten, Jonathan and Rawknee, and PUBG Mobile fans will need to vote for their favorite eSports influencer. #1 Event period: First of all, put on the PUBG Mobile game. You then need to select the present icon, which is present on the bottom right. After that, select the recommended events tab. There, you will find an Ultimate Team Selection option on the right action bar. Select that for further process. Give a rose to an influencer you like on the page to increase his/her popularity. Each rose increases the popularity of an influencer by 20 points. Also, players gain one heart for every rose they give, and can collect corresponding rewards when they have enough hearts. Players can get roses by completing Activity Missions every day. Another way to get roses is by purchasing them from the event page. The item combination pack refreshes at 00:00 (UTC +0), i.e, 5:30 AM IST, on even-numbered days. a) The top 50 percent of most popular influencers in each region will join the Global Extreme Challenge and then participate in deciding the Ultimate Team. b) The top 10 players in the Global Heart Rankings will get exclusive pack rewards from the PUBG development team.
english
The absence led to a tennis legend stating that even Novak Djokovic cannot fill the "massive hole" left at Roland Garros by Nadal. Amid concern among over Rafa's health, his uncle, Toni Nadal, gives a clear response on whether the Spaniard will make a return to Roland Garros next year. Djokovic heads to Paris with a 5-3 record on clay. He had lost in the third round of Monte Carlo Masters before losing to Holger Rune in the quarters in Rome. Nadal's absence leaves Djokovic as the heavy favourite for a third French Open title after wins in 2016 and 2021. Rafael Nadal has confirmed that he will miss the French Open this year due to hip injury. Nadal has been struggling with hip injury since Australian Open, and fears he may miss French Open grew after he pulled out of this week's Italian Open. Nadal skipped last week's Madrid Open and also missed tournaments at Indian Wells, Miami, Monte Carlo and Barcelona. The 36-year-old Nadal did not mention his prospects for being fit for the French Open starting on May 28. Alcaraz has emerged as favourite for Roland Garros after victories on clay at Buenos Aires and Barcelona but the World No. 2 said Nadal cannot be written off. It was the third title won this year by the 19-year-old Spaniard, and the ninth of his career. While no specific reason was given for Djokovic’s withdrawal, he did discuss issues with his elbow recently, mostly downplaying the extent of the problem. The 22-time Grand Slam winner has been sidelined since January by a left hip flexor injury he picked up at the Australian Open. The Spaniard, a 14-times French Open champion, hopes to be fully fit for the clay court Grand Slam starting in May. Nadal made the announcement on Twitter, less than a week before the start of the first Masters 1000 event of the calendar year on clay. Nadal has already signed up for the Monte-Carlo Masters, which will kick off early next month, but the Spaniard has now added a second tournament on his schedule as he looks to gear up to defend his crown at Roland Garros. Rafa Nadal said on Tuesday he had decided to withdraw from two upcoming Masters 1000 hardcourt events in Indian Wells and Miami due to injury. Djokovic shut all the talk about his rivalry with Alcaraz with a stunning remark on Nadal ahead of 2023 French Open. Rafael Nadal spoke out on Djokovic equalling his Slam record while Roger Federer shared a priceless five-word post. Where does Djokovic stand in all-time Grand Slam list with Nadal, Federer? Where does this unprecedented 10th Australian Open title leave Novak Djokovic in the all-time Grand Slam list with Rafael Nadal and Roger Federer? Let's have a look. Novak Djokovic claimed a record-extending 10th Australian Open title after defeating Stefanos Tsitsipas 6-3, 7-6(4), 7-6(5) and also levelled Rafael Nadal's record of 22 Grand Slam crowns. Rafael Nadal's early exit from Australian Open has led tennis legend Boris Becker to issue statements on the former's chances of bidding adieu to the sport. The 36-year-old had an MRI scan on his left leg in Melbourne on Thursday, which revealed a grade 2 injury in the Illiopsoas, the primary hip flexor. First things first: How seriously did Nadal injure his hip during a 6-4, 6-4, 7-5 loss to 65th-ranked Mackenzie McDonald in the Australian Open's second round on Wednesday? Was there damage to a muscle, joint or cartilage? What will recovery entail? When might Nadal return to the ATP Tour? The Spanish 36-year-old, who was struggling with what appeared to be a hip injury, slumped 6-4, 6-4, 7-5 under a closed roof on Rod Laver Arena. Kyrgios has already made his prediction for the Australian Open tournament, where he named Novak Djokovic as the favourite to lift the title, but has also warned the Serb of a "dangerous" rival and it wasn't defending champion Rafael Nadal.
english
<filename>data/raw/semeval2017-task8-dataset/rumoureval-data/sydneysiege/544271362022338560/replies/544277466639257601.json {"contributors":null,"truncated":false,"text":"@Andrew_Denney @meganne121 Get the snipers out and exterminate \n@JihadistJoe","in_reply_to_status_id":544271362022338560,"id":544277466639257601,"favorite_count":0,"source":"<a href=\"http:\/\/twitter.com\" rel=\"nofollow\">Twitter Web Client<\/a>","retweeted":false,"coordinates":null,"entities":{"symbols":[],"user_mentions":[{"id":109234928,"indices":[0,14],"id_str":"109234928","screen_name":"Andrew_Denney","name":"<NAME>"},{"id":130568721,"indices":[15,26],"id_str":"130568721","screen_name":"meganne121","name":"<NAME>"},{"id":1920286333,"indices":[64,76],"id_str":"1920286333","screen_name":"JihadistJoe","name":"<NAME>"}],"hashtags":[],"urls":[]},"in_reply_to_screen_name":"Andrew_Denney","id_str":"544277466639257601","retweet_count":0,"in_reply_to_user_id":109234928,"favorited":false,"user":{"follow_request_sent":false,"profile_use_background_image":true,"profile_text_color":"333333","default_profile_image":false,"id":53000691,"profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/380376927\/image.jpg","verified":false,"profile_location":null,"profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/547533702499028992\/i6N5Poe8_normal.jpeg","profile_sidebar_fill_color":"C0DFEC","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/RyNarOTsqw","indices":[0,22],"expanded_url":"http:\/\/www.narrowboater.blogspot.com","display_url":"narrowboater.blogspot.com"}]},"description":{"urls":[]}},"followers_count":517,"profile_sidebar_border_color":"A8C7F7","id_str":"53000691","profile_background_color":"022330","listed_count":33,"is_translation_enabled":false,"utc_offset":0,"statuses_count":12899,"description":"Writer, Playwright, Poet, Lyricist, Muscian, All round good chap. If all you have is other peoples quotes I will not follow you.\r\n\r\nI live on a narrowboat.","friends_count":582,"location":"OXFORD","profile_link_color":"0084B4","profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/547533702499028992\/i6N5Poe8_normal.jpeg","following":false,"geo_enabled":true,"profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/53000691\/1407713721","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/380376927\/image.jpg","name":"Maffi","lang":"en","profile_background_tile":true,"favourites_count":85,"screen_name":"TheMaffster","notifications":false,"url":"http:\/\/t.co\/RyNarOTsqw","created_at":"Thu Jul 02 07:24:25 +0000 2009","contributors_enabled":false,"time_zone":"London","protected":false,"default_profile":false,"is_translator":false},"geo":null,"in_reply_to_user_id_str":"109234928","lang":"en","created_at":"Sun Dec 14 23:47:14 +0000 2014","in_reply_to_status_id_str":"544271362022338560","place":null}
json
// For android 4.4- if (HTMLElement && !HTMLElement.prototype.remove) { HTMLElement.prototype.remove = function() { this.parentNode.removeChild(this); }; } if (HTMLElement && !HTMLElement.prototype.click) { HTMLElement.prototype.click = function() { this.dispatchEvent(new Event('click', {bubbles: true})); } }
javascript
<reponame>mikiec84/msgraph-training-aspnetmvcapp<gh_stars>0 { "sourceDirectory": ".\\Demos\\03-add-msgraph", "exampleConfigFile": ".\\graph-tutorial\\PrivateSettings.config.example", "configFile": "PrivateSettings.config", "archiveFile": "AspNetQuickStart.zip", "zipReadMe": ".\\README.md" }
json
Who can tell? I remember many who have passed from the land of the living and have gone to another world—and some how suddenly, how rapidly! I have been startled at it often myself. I have seen some here on the Sabbath, and by the Tuesday or by the Thursday the message has come, “On what day can you bury such and such a one?” “Bury her!” “Yes, sir, bury her, she is gone;” and I have said, “How strange it seems that she should be dead who so lately was living in our midst!” Forty days is a long lease compared with that which you have any reason to conclude that God has bestowed on you. But what if it were forty years, how short a time even then. If you will but look with the eye of wisdom, how rapidly our years revolve. Are you not startled even now to see the withered leaf in your path? It was but yesterday that the fresh green buds were seen. It seems but a month ago since first we saw the wheat starting up from the ground, and now the harvest is over and gone and many of the birds have disappeared and the tints of autumn are succeeding the verdure of summer. Years seem but months now and months but days, and days pass so rapidly that they flit like shadows before us. O! men and women, if we could but measure life it is but a span, and in a time how short, how brief, every one of us must appear before his God. The shortness of time should help to arouse us. For meditation: Time seems to speed up the older we get! In contrast the unbeliever will discover in eternity that time has ground to a terrible halt.
english
Islamabad, June 8: Balloting for 24 constituencies of the second Gilgit-Baltistan Legislative Assembly, in Pakistan-administered Kashmir ended at 4 p. m. on Monday amid tight security arrangements. New Delhi has dismissed the elections and termed the process as Islamabad’s attempt “to camouflage its forcible and illegal occupation of the region” and to deny its people their political rights. Polling in all seven districts began at 8 a. m. and over six lakh voters were expected to cast their votes with about 278 candidates belonging to different parties contesting for the 24 legislative assembly seats, Dawn reported. Pakistani Rangers, Army, police and GB scouts were deployed in all the districts to maintain law and order during polling. Balloting was temporarily suspended during the day at a few places following clashes between political workers, which left a few people injured. According to the Election Commission of Pakistan (ECP), therewere 618,364 registered voters in the region. The number of female voters was 288,889 while male voters numbered 329,475. A total of 278 candidates were in the fray for the 24 legislative assembly seats. The Gilgit-Baltistan legislative assembly was created through a presidential order in 2009 and the Pakistan Peoples Party won the first elections, completing a five-year term in office. On December 13, 2014, an interim government was set up with a 12-member caretaker cabinet to conduct free and fair elections. The Gilgit-Baltistan area of Pakistan-administered Kashmir covers 85,793 sq km territory. (IANS)
english
version https://git-lfs.github.com/spec/v1 oid sha256:811fd0356d527a7662325e3dfe4c5308d131d4e9fbfcf3e31e5dec4c056d0df6 size 3605
json
THIRUVANANTHAPURAM: Vande Bharat Express has returned to Thiruvananthapuram Central after completing its trial run. It left Thiruvananthapuram East at 5. 10 am on Monday. Vande Bharat returned to Thiruvananthapuram in 7 hours 20 minutes from Kannur. The train reached Kannur from Thiruvananthapuram in 7 hours and 10 minutes. It left Thiruvananthapuram at 5. 10 am and reached Kannur railway station at 12. 19 pm. At the same time, the Railways has started construction of a third track on the Shornur-Eranakulam route for the Vande Bharat train to reach Kannur from Thiruvananthapuram in less time. Efforts are being made to implement this without acquiring much land. The survey was conducted and the bends on tracks will also be straightened without land acquisition. The target is 110 kmph in the first phase and 130 kmph in the future. There is also much pressure to increase the number of stops. Stopping for one minute at a stop will lose up to three minutes of time. It has been demanded for a stop at places like Kayamkulam, Thiruvalla, Aluva, Shornur and Thirur. The train reached Thiruvananthapuram from Kannur in the night after evaluating the efficiency and safety of the tracks during the trial run. consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
english
<filename>training_data/concerts/output/list/bnfbib/artist/f1e11530-e516-354b-b964-a2ebc5a07063.json http://data.doremus.org/artist/6d6eafea-b4a8-36a5-b109-dad388cf838a http://data.doremus.org/artist/141b63e3-dc27-306e-8ec6-160a72fd7d98 http://data.doremus.org/artist/1f1c9292-087a-3ac7-b854-84e213e69dc6 http://data.doremus.org/artist/0fcfbd78-4865-3594-b869-6525f54d855f http://data.doremus.org/artist/209e49f0-5e49-3941-9c1c-23760025e4e4
json
<reponame>wowawiwa/ghuser.io { "_comment": "DO NOT EDIT MANUALLY - See ../../../README.md", "name": "git-stalk", "full_name": "SolidScript/git-stalk", "owner": "SolidScript", "private": false, "html_url": "https://github.com/SolidScript/git-stalk", "description": "A Chrome extension to keep track of your friend's today's Contributions.", "fork": false, "url": "https://api.github.com/repos/SolidScript/git-stalk", "languages_url": "https://api.github.com/repos/SolidScript/git-stalk/languages", "pulls_url": "https://api.github.com/repos/SolidScript/git-stalk/pulls{/number}", "created_at": "2018-04-10T04:36:51Z", "updated_at": "2018-05-07T13:24:44Z", "pushed_at": "2018-04-10T04:36:53Z", "homepage": "", "size": 1, "stargazers_count": 2, "language": null, "mirror_url": null, "archived": false, "license": { "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, "default_branch": "master", "organization": { "login": "SolidScript", "id": 31892564, "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxODkyNTY0", "avatar_url": "https://avatars0.githubusercontent.com/u/31892564?v=4", "gravatar_id": "", "url": "https://api.github.com/users/SolidScript", "html_url": "https://github.com/SolidScript", "followers_url": "https://api.github.com/users/SolidScript/followers", "following_url": "https://api.github.com/users/SolidScript/following{/other_user}", "gists_url": "https://api.github.com/users/SolidScript/gists{/gist_id}", "starred_url": "https://api.github.com/users/SolidScript/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/SolidScript/subscriptions", "organizations_url": "https://api.github.com/users/SolidScript/orgs", "repos_url": "https://api.github.com/users/SolidScript/repos", "events_url": "https://api.github.com/users/SolidScript/events{/privacy}", "received_events_url": "https://api.github.com/users/SolidScript/received_events", "type": "Organization", "site_admin": false }, "contributors": { "aashutoshrathi": 1 }, "pulls_authors": [], "languages": {}, "fetched_at": "2018-09-05T16:59:34.602Z" }
json
<reponame>WebberHuang/DeformationLearningSolver<gh_stars>100-1000 __author__ = "<NAME>" __contact__ = "<EMAIL>" __website__ = "http://riggingtd.com" import maya.cmds as cmds import maya.OpenMaya as om import maya.OpenMayaAnim as oma from DLS.core import utils class FnSkinCluster(object): def __init__(self, skinCluster=None): """ Args: skinCluster (str, Optional): Defaults to None """ self.skinCluster = skinCluster if skinCluster: self.fn = oma.MFnSkinCluster(utils.getDependNode(skinCluster)) def setSkinCluster(self, skinCluster): """ Args: skinCluster (str, Optional): Defaults to None Returns: SkinClusterFn """ self.skinCluster = skinCluster self.fn = oma.MFnSkinCluster(utils.getDependNode(skinCluster)) return self def getLogicalInfluenceIndex(self,influence): """ Args: influence (str) Returns: int """ try: dagPath = utils.getDagPath(influence) except: raise utils.UserInputError("Could not find influence '%s' in %s" % (influence, self.skinCluster)) return self.fn.indexForInfluenceObject(dagPath) #---------------------------------------------------------------------- def getPhysicalInfluenceIndex(self, influence): """ Args: influence (str) Returns: int """ matrices = cmds.listConnections("%s.matrix" % self.skinCluster, s=1, d=0) return matrices.index(influence) #---------------------------------------------------------------------- def getInfluenceData(self, influence): """ Args: influence (str) Returns: WeightData """ try: dagPath = utils.getDagPath(influence) except: raise utils.UserInputError("Could not find influence '%s' in %s" % (influence, self.skinCluster)) selList = om.MSelectionList() weights = om.MDoubleArray() self.fn.getPointsAffectedByInfluence(dagPath, selList, weights) componentStr = [] selList.getSelectionStrings(componentStr) componentStr = cmds.ls(componentStr, ap=1, fl=1) weights = [w for w in weights] return WeightData(componentStr, weights) #---------------------------------------------------------------------- def listInfluences(self, asDagPath=True): """ Returns: list """ dagPaths = om.MDagPathArray() self.fn.influenceObjects(dagPaths) if asDagPath: return dagPaths else: return [dagPaths[i].partialPathName() for i in xrange(dagPaths.length())] #---------------------------------------------------------------------- def getWeightData(self, elements): """ Args: elements (list) Returns: SkinWeightData """ dagPath, components = utils.getDagPathComponents(elements) # Get all influences infs = self.listInfluences(asDagPath=False) influenceIndices = om.MIntArray() [influenceIndices.append(self.getPhysicalInfluenceIndex(inf)) for inf in infs] # Get all weights weights = om.MDoubleArray() self.fn.getWeights(dagPath, components, influenceIndices, weights) weights = [w for w in weights] return SkinWeightData(elements, infs, weights) #---------------------------------------------------------------------- def setWeightData(self, data, normalize=True): """ Args: data (SkinWeightData) normalize (bool, Optional): Defaults to True """ # Construct dagPath and components compList = data.getComponents() dagPath, components = utils.getDagPathComponents(compList) # Construct influence indices influenceIndices = om.MIntArray() [influenceIndices.append(self.getPhysicalInfluenceIndex(inf)) for inf in data.getInfluences()] # Construct weights weights = om.MDoubleArray() [weights.append(w) for w in data.getWeights()] oldValues = om.MDoubleArray() self.fn.getWeights(dagPath, components, influenceIndices, oldValues) self.fn.setWeights(dagPath, components, influenceIndices, weights, normalize, oldValues) #---------------------------------------------------------------------- def flushWeights(self, influence): """ Args: influence (str) """ weightData = self.getInfluenceData(influence) skinData = SkinWeightData(weightData.getElements(), [influence], weightData.getWeights()) [skinData.addInfluence(comp, influence, 0.0) for comp in skinData.getComponents()] self.setWeightData(skinData) #---------------------------------------------------------------------- def getInfluenceTransforms(self, space=om.MSpace.kObject): infs = self.listInfluences() if space == om.MSpace.kWorld: return [infs[i].inclusiveMatrix() for i in xrange(infs.length())] return [om.MFnTransform(infs[i]).transformation().asMatrix() for i in xrange(infs.length())]
python
import { getIdFromUrl } from './get-video-id'; describe('getIdFromUrl', () => { it('Returns matching ID for YouTube formats', () => { const youtubeRegEx = '^[a-zA-Z0-9_-]{11}$'; const formats = [ { url: 'http://www.youtube.com/ytscreeningroom?v=NRHEIGHTx8I', id: 'NRHEIGHTx8I', }, { url: 'http://www.youtube.com/ytscreeningroom?v=NRH_IGHTx8I', id: 'NRH_IGHTx8I', }, { url: 'http://www.youtube.com/ytscreeningroom?v=NRH-IGHTx8I', id: 'NRH-IGHTx8I', }, ]; formats.forEach((_) => { expect(getIdFromUrl(_.url, youtubeRegEx, false, 'v')).toBe(_.id); }); }); it('Returns matching ID for Vimeo formats', () => { const vimeoRegEx = '(\\d+)($|\\/)'; const formats = [ { url: 'https://vimeo.com/channels/staffpicks/332085955', id: '332085955', }, { url: 'https://vimeo.com/channels/another/staffpicks/332085955', id: '332085955', }, { url: 'https://vimeo.com/channels/staffpicks/123456', id: '123456', }, ]; formats.forEach((_) => { expect(getIdFromUrl(_.url, vimeoRegEx, true)).toBe(_.id); }); }); it('Throws an error if it cannot find an ID', () => { expect(() => { getIdFromUrl('https://theguardian.com', '', false, 'v'); }).toThrow(); expect(() => { getIdFromUrl('https://theguardian.com?p=test', '', false, 'v'); }).toThrow(); expect(() => { getIdFromUrl('https://theguardian.com/test', '', false, 'p'); }).toThrow(); }); it('Throws an error if it ID is in incorrect format', () => { expect(() => { getIdFromUrl('https://theguardian.com/test', 'nottest', true); }).toThrow(); expect(() => { getIdFromUrl( 'https://theguardian.com?p=test', 'nottest', false, 'p', ); }).toThrow(); }); });
typescript
<filename>session/api/v1/serializers.py from rest_framework import serializers from session.models import Session class SessionSerializer(serializers.ModelSerializer): class Meta: model = Session fields = ('session_id', 'device_id', 'session_name', 'recorded_on', 'duration_in_seconds', 'is_active')
python
package mango import ( "fmt" "net/http" "os" "os/signal" "runtime" ) var ( CookieSecret = "<KEY>" Debug = false ) type Application struct { Addr string Port int Url map[string]map[string]Handler StaticPath string TemplatePath string Debug bool PreHandler Handler NotFoundHandler Handler ErrorHandler Handler } func (app *Application) Run() { runtime.GOMAXPROCS(runtime.NumCPU()) http.Handle("/", NewRouter(app.Url, app.NotFoundHandler, app.ErrorHandler, app.PreHandler)) if app.StaticPath != "" { http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(app.StaticPath)))) } if app.TemplatePath != "" { TemplateLoader(app.TemplatePath) } fmt.Printf("http://%s:%d\n", app.Addr, app.Port) root := "" if cwd, err := os.Getwd(); err != nil { panic(fmt.Sprintf("Error getting working directory: %s", err)) } else { root = cwd } Debug = app.Debug if app.Debug { start(app.Addr, app.Port, root) } else { go func() { err := http.ListenAndServe(fmt.Sprintf("%s:%d", app.Addr, app.Port), nil) if err != nil { fmt.Println("Failed to start server:", err) } }() ch := make(chan os.Signal) signal.Notify(ch, os.Interrupt, os.Kill) <-ch } }
go