text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
'use strict';
/**
* logic
* @param {} []
* @return {} []
*/
export default class extends think.logic.base {
/**
* index action logic
* @return {} []
*/
async indexAction(){
//auto render template file index_index.html
}
async infoAction() {
let username = await this.session('islogin');
if (!username) {
this.redirect('/');
}
}
} | javascript |
<gh_stars>0
import React, { lazy } from "react";
// project imports
import MainLayout from "layout/MainLayout";
import Loadable from "ui-component/Loadable";
import ScholarshipForm from "views/pages/Forms/ScholarshipForm";
import StadiumForm from "views/pages/Forms/StadiumForm";
import SchoolForm from "views/pages/Forms/SchoolForm";
// dashboard routing
const DashboardDefault = Loadable(
lazy(() => import("views/dashboard/Default"))
);
// utilities routing
const UtilsTypography = Loadable(
lazy(() => import("views/utilities/Typography"))
);
const UtilsColor = Loadable(lazy(() => import("views/utilities/Color")));
const UtilsShadow = Loadable(lazy(() => import("views/utilities/Shadow")));
const UtilsMaterialIcons = Loadable(
lazy(() => import("views/utilities/MaterialIcons"))
);
const UtilsTablerIcons = Loadable(
lazy(() => import("views/utilities/TablerIcons"))
);
// form routing
const PlayerForm = Loadable(lazy(() => import("views/pages/Forms/PlayerForm")));
const TeamForm = Loadable(lazy(() => import("views/pages/Forms/TeamForm")));
const GameForm = Loadable(lazy(() => import("views/pages/Forms/GameForm")));
const IncidentForm = Loadable(
lazy(() => import("views/pages/Forms/IncidentForm"))
);
const RecruitmentIncidentForm = Loadable(
lazy(() => import("views/pages/Forms/RecruitmentIncidentForm"))
);
const RecruitmentRuleForm = Loadable(
lazy(() => import("views/pages/Forms/RecruitmentRuleForm"))
);
const PlayerStatisticsForm = Loadable(
lazy(() => import("views/pages/Forms/PlayerStatisticsForm"))
);
const TeamStaffForm = Loadable(
lazy(() => import("views/pages/Forms/TeamStaffForm"))
);
const LocationForm = Loadable(
lazy(() => import("views/pages/Forms/LocationForm"))
);
// information routing
const PlayerInformation = Loadable(
lazy(() => import("views/pages/Displays/PlayerInformation"))
);
// information routing
const GameInformation = Loadable(
lazy(() => import("views/pages/Displays/GameInformation"))
);
// information routing
const TeamInformation = Loadable(
lazy(() => import("views/pages/Displays/TeamInformation"))
);
// information routing
const PlayerStatisticInformation = Loadable(
lazy(() => import("views/pages/Displays/PlayerStatisticsInformation"))
);
//internal support routing
const InternalSupport = Loadable(lazy(() => import('views/pages/Displays/InternalSupport')));
//internal support routing
const RecruitmentIncidentInformation = Loadable(lazy(() => import('views/pages/Displays/RecruitmentIncidentInformation')));
const RecruitmentRuleInformation = Loadable(lazy(() => import('views/pages/Displays/RecruitmentRuleInformation')));
const ScholarshipInformation = Loadable(lazy(() => import('views/pages/Displays/ScholarshipInformation')));
// ===========================|| MAIN ROUTING ||=========================== //
const MainRoutes = {
path: "/",
element: <MainLayout />,
children: [
{
path: "/",
element: <DashboardDefault />,
},
{
path: "/dashboard/default",
element: <DashboardDefault />,
},
{
path: "/utils/util-typography",
element: <UtilsTypography />,
},
{
path: "/utils/util-color",
element: <UtilsColor />,
},
{
path: "/utils/util-shadow",
element: <UtilsShadow />,
},
{
path: "/icons/tabler-icons",
element: <UtilsTablerIcons />,
},
{
path: "/icons/material-icons",
element: <UtilsMaterialIcons />,
},
{
path: "/player-form",
element: <PlayerForm />,
},
{
path: "/game-form",
element: <GameForm />,
},
{
path: "/incident-form",
element: <IncidentForm />,
},
{
path: "/recruitment-incident-form",
element: <RecruitmentIncidentForm />,
},
{
path: "/team-form",
element: <TeamForm />,
},
{
path: "/recruitment-rule-form",
element: <RecruitmentRuleForm />,
},
{
path: "/scholarship-form",
element: <ScholarshipForm />,
},
{
path: "/player-statistics-form",
element: <PlayerStatisticsForm />,
},
{
path: "/stadium-form",
element: <StadiumForm />,
},
{
path: "/school-form",
element: <SchoolForm />,
},
{
path: "/team-form",
element: <TeamForm />,
},
{
path: "/location-form",
element: <LocationForm />,
},
{
path: "/team-staff-form",
element: <TeamStaffForm />,
},
{
path: "/player-information",
element: <PlayerInformation />,
},
{
path: "/game-information",
element: <GameInformation />,
},
{
path: "/player-statistic-information",
element: <PlayerStatisticInformation />,
},
{
path: "/recruitment-rule-information",
element: <RecruitmentRuleInformation />,
},
{
path: "/recruitment-incident-information",
element: <RecruitmentIncidentInformation />,
},
{
path: "/internal-support",
element: <InternalSupport />,
},
{
path: "/team-information",
element: <TeamInformation />,
},
{
path: "/stadium-information",
element: <StadiumForm />,
},
{
path: "/location-information",
element: <LocationForm />,
},
{
path: "/scholarship-information",
element: <ScholarshipInformation />,
},
],
};
export default MainRoutes;
| javascript |
Film producers know how to increase their publicity before the movie hit the theaters. There are many Bollywood films which are over-hyped before its release. This raises expectations to a greater levels and when the viewer watches the film, he/she comes out disappointed as the publicity raised their level of expectations.
There are many Bollywood films which are overrated and over-hyped at times. The recent example is Kochadaiiyaan which has released today (23rd May, 2014). The movie has been over-hyped since months. Although the movie is originally in Tamil and dubbed in 7-8 different languages, the Rajinikanth starrer film was indeed one of the most awaited films of 2014. The film is directed by Rajnikanth's daughter, Soundarya R. Ashwin.
It is apparently the first time daughter is directing her father in a movie. However, we feel that Kochadaiiyaan has been over-hyped to some extent. Be it the delay of film's release or making it the first Indian film to be made with new technologies. The movie promises to be a treat to the eyes. It is the first photo realistic 3D film ever produced in India. Kochadaiiyaan is equipped with Auro 3D sound technology and four separate tech teams and many teams worked to make it picture perfect.
There are some other over-hyped movies in Bollywood as well which have created a lot of stir but failed to stay for long. For example, Jab Tak Hain Jaan is one of the overrated and over-hyped movies in Bollywood which became all the more popular after the sad demise of its producer, Yash Chopra. The film was shown as a tribute to the legendary producer.
Here is a list of some over-hyped Bollywood movies. If you have more to add to the list, do share with us.
The Over-Hyped Bollywood Movies:
The multi-starrer Rajinikanth film is one of the most over-hyped movies. Although it is basically in Tamil, the movie which also released in Hindi has been overrated due to the presence of superstar Rajinikanth. It also marks Tamil debut of leading Bollywood actress, Deepika Padukone.
It was another over-hyped movies from the YRF banner. The sad demise of Yash Chopra made it all the more memorable yet overrated as the story of the SRK starrer film was not that impressive. Worst it had expressionless Katrina Kaif!
It might have been a blockbuster hit last year and grabbed many awards as well. However, the movie has been over-hyped.
This is no doubt one of the most over-hyped Bollywood movies of 2013. The musical drama marked the debut of Aditya Roy Kapoor and Shraddha Kapoor. The stars were lucky as the overrated film was a super hit.
2014 marked the over-hyped film of Salman Khan, Jai Ho. The movie did not fare well at the box office as it did not meet the expectations of Sallu fans.
The Khiladi has been giving back to back flop movies. Seems like his bad luck is following him for sometime as the over-hyped Bollywood movie Boss to failed miserably at the box office.
Vidya Balan went crazy and signed this irritating film. Even after wide promotions in character, Vidya and Emraan failed to make the film a hit.
Madhur Bhandarkar's Heroine was the talk of the town since Aishwarya signed it. From India to Cannes, Heroine was really hyped. Later Kareena signed the film and the promotions also made it overrated. However, the hyped Bollywood movie flopped miserably.
The movie was publicised as it starred Ranbir Kapoor with parents and yesteryear stars, Rishi Kapoor and Neetu Singh. However, the family starred film was over-hyped and flopped at the box office.
This was the next release for Ranveer Singh and Priyanka Chopra after Ram Leela. The bromance, promotions and events failed to make the overrated film a hit.
Do we need to say anything about this publicised and highly overrated Bollywood movie? It was something which was not expected after 2 successfully hit Dhoom series.
| english |
<filename>packages/create-fynpo/src/create.ts
import Path from "path";
import _ from "lodash";
import ck from "chalker";
const xrequire = eval("require"); // eslint-disable-line
import { copyTemplate, sortPackageDeps, getCommitLintSetting } from "./utils";
import { prepareFynpoDir, checkDir } from "./prep-fynpo-dir";
import { ParsedObj } from "./interfaces";
import { isGitInitialized, initializeGitRepo } from "./initialize-git";
export async function createFynpo(targetDir, opts) {
const fynpoDir = await prepareFynpoDir(targetDir);
const dirOk = await checkDir(fynpoDir);
if (!dirOk) {
console.log(`Not able to write to directory '${fynpoDir}'. bye.`);
return;
}
const isGit = await isGitInitialized();
if (!isGit) {
console.log("Initializing Git repository");
await initializeGitRepo();
}
const commitlint = opts && opts.commitlint;
const srcDir = Path.join(__dirname, "../templates");
const configFile = commitlint ? "fynpo.config.js" : "fynpo.json";
const fynpoRc = {
changeLogMarkers: ["## Packages", "## Commits"],
command: { publish: { tags: {}, versionTagging: {} } },
};
const files = {
packages: { dir: true, fromTemplate: false },
_gitignore: { destName: ".gitignore" },
_npmrc: { destName: ".npmrc" },
[configFile]: {
fromTemplate: commitlint ? true : false,
loader: !commitlint ? () => `${JSON.stringify(fynpoRc, null, 2)}\n` : undefined,
},
"README.md": {},
"_package.js": {
loader: (filename) => {
let pkg;
const makePkg = xrequire(filename);
if (commitlint) {
const lint = getCommitLintSetting();
pkg = makePkg(lint, _.merge);
} else {
pkg = makePkg({}, _.merge);
}
sortPackageDeps(pkg);
return `${JSON.stringify(pkg, null, 2)}\n`;
},
destName: "package.json",
},
};
await copyTemplate(srcDir, process.cwd(), {
...files,
});
const commitHookMsg = commitlint
? `\nTo add commit hooks, please run:
<cyan>
npx husky add .husky/commit-msg 'npx --no-install fynpo commitlint --edit $1'</>
`
: "";
console.log(ck`
Successfully initialized fynpo monorepo in directory '${fynpoDir}'. To start development, please run:
<cyan>cd ${fynpoDir}
fyn</>
${commitHookMsg}
`);
}
export async function create(parsed: ParsedObj): Promise<void> {
const dir = parsed.args?.dir || ".";
return await createFynpo(dir, parsed.opts);
}
| typescript |
Our expert Java software developers are highly proficient in java, helping us to deliver success-driven solutions for your business needs. We develop robust mobile and IoT applications for Android devices. We integrate social media plug-ins, adaptive UI/UX, custom widgets, enterprise mobility, mobile payment processing, location-based services, and mVoiP. We also implement Developer, Remote Display, Game Manager, and Android Pay Google Play APIs. Programming of scalable, portable Java Enterprise Edition architecture for data-driven businesses with high-traffic websites. The process of creating this Kotlin Class is same as that of GameView Class.
- Oracle University & Java Training – Learn the language of virtually every type of networked application.
- This cross-platform app development tool is so popular because its graphics quality is absolute.
- This is a program written in another language that decodes the Java program that we write and interacts with the computer platform it is running on.
- As long as you understand the gaming technology, you’ll be one of the most sought after people in tech, with new and exciting opportunities available for game developers and programmers.
- Much of the book is built around the writing of a short adventure game.
By using this low level API you will have to go through many concepts and write lots of lines of code before you see the results. The benefit of doing it this way is that you will get a much better understanding of 3D graphics and also you can get better control. There is no perfect, one-size-fits all programming language for developing games. All of them have different features, target platforms, and developers who prefer them. So consider your affinities and your goals and let them help you decide on which language to learn first.
#3 Heroengine Game Development Tool:
Git seamlessly moved the older version of Fish.java from its database back to the working directory. It happened really fast, because in the distributed VCS the complete code repository is located on the programmers computer and there is no need to do any communication over the network. First we create an instance of the Timeline object and invoke the setCycleCount requesting that the animation will be done only once. In Chapter 11 you’ve learned how to create a file and write into it. The WebSiteReader program just prints the remote data on the console, but you could have saved the data in the local file as well.
NetBeans is cross-platform and runs on Microsoft Windows, Mac OS X, Linux, Solaris and other platforms supporting a compatible JVM. This useful guide covers how to use the NetBeans IDE with the Google App Engine. The NetBeans IDE can be used to https://coba.tonjoostudio.com/?p=70183 develop in Java, but also supports other languages. Thanks to all authors for creating a page that has been read 62,201 times. However, the reality would end up being in both states be it any quantum phenomena. Flutter and widgets for in-game UI and Canvas and custom painters for places where you actually need _full_ control.
At DigitalDefynd, we help you informative post find the best courses, certifications and tutorials online. Hundreds of experts come together to handpick these recommendations based on decades of collective experience. So far we have served 2 Million+ satisfied learners and counting.
This Source code for BE, BTech, MCA, BCA, Engineering, Bs.CS, IT, Software Engineering final year students can submit in college. This desktop application 100% working smooth without any bug. This software code helpful in academic projects for final year students. High-level programming languages are designed to be easy to read and understand.
The engine also allows you to port your game on the Mac Store and on Windows. Feature rich, extremely fast, and flexible, SIO2 allows you to create state of the art AAA games for your favorite mobile platform. Unlike other solutions, SIO2 does not force you to use any specific IDE to code or build your games. While choosing between the different Game Making Software Tools available today, go for a solution that requires little or no coding knowledge and programming skills. Additionally, make sure that the software allows flexibility in game development and ensures a reliable game design. Last but not least, look for a Video Game Software that comes with a wide array of tools for 3D models, items, terrain, environment, objects, behavior, and much more.
More recently, Xbox swapped to Unity for development, which still uses C#. There are also many smaller roles in between, too, like level designers who create the virtual worlds for a game. They also do some coding like adjusting variables, level parameters, creating player encounters, and much more. You will develop amazing games and you will see how JAVA works moving things on screen and objects interaction. You will also create and import pictures used in the games and get familiar with creating randomly movable enemies, animating the game characters and playing music while playing the game.
It is widely known that modern game engines make use of Lua as their primary game design programming language. A very good example is CryEngine making use of Lua to build games like Farcry and Enemy Front. In these series of tutorials I will explain new java concepts of an intermediate level (threads, AWT, Swing, etc.) and basic concepts for game programming .
| english |
{"id":"00079","group":"easy-ham-2","checksum":{"type":"MD5","value":"432c97872ff9af2ac7b9791612ed0ab3"},"text":"From <EMAIL> Sat Jul 20 00:16:23 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id 58460440C8\n\tfor <jm@localhost>; Fri, 19 Jul 2002 19:16:23 -0400 (EDT)\nReceived: from dogma.slashnull.org [2172.16.58.3]\n\tby localhost with IMAP (fetchmail-5.9.0)\n\tfor jm@localhost (single-drop); Sat, 20 Jul 2002 00:16:23 +0100 (IST)\nReceived: from lugh.tuatha.org (<EMAIL> [192.168.127.125]) by\n dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g6JNCdJ13125 for\n <<EMAIL>>; Sat, 20 Jul 2002 00:12:39 +0100\nReceived: from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org\n (8.9.3/8.9.3) with ESMTP id AAA05762; Sat, 20 Jul 2002 00:08:46 +0100\nReceived: from ie.suberic.net (owsla.ie.suberic.net [62.17.162.83]) by\n lugh.tuatha.org (8.9.3/8.9.3) with ESMTP id AAA05726 for <<EMAIL>>;\n Sat, 20 Jul 2002 00:08:39 +0100\nX-Authentication-Warning: lugh.tuatha.org: Host owsla.ie.suberic.net\n [192.168.127.12] claimed to be ie.suberic.net\nReceived: from owsla.ie.suberic.net (owsla [127.0.0.1]) by ie.suberic.net\n (8.11.6/8.11.6) with ESMTP id g6JN8c913959 for <<EMAIL>>;\n Sat, 20 Jul 2002 00:08:38 +0100\nDate: Sat, 20 Jul 2002 00:08:36 +0100\nTo: <NAME> <<EMAIL>>\nCc: <EMAIL>\nSubject: Re: [ILUG] How to copy some files\nMessage-Id: <<EMAIL>>\nReferences: <<EMAIL>7191515.g6JFFnX0298<EMAIL>>\n <<EMAIL>>\n <<EMAIL>>\n <<EMAIL>.<EMAIL>>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=us-ascii\nContent-Disposition: inline\nUser-Agent: Mutt/1.2.5.1i\nIn-Reply-To: <<EMAIL>.<EMAIL>>; from\n <EMAIL> on Fri, Jul 19, 2002 at 06:10:40PM +0100\nX-Operating-System: Linux 2.4.18-5 i686\nX-GPG-Fingerprint: 9C1D 16F4 11F1 6BD2 933C 048D ACC7 9840 89D0 7646\nFrom: <NAME> <<EMAIL>>\nX-Delivery-Agent: TMDA/0.57\nSender: ilug-admin@linux.ie\nErrors-To: ilug-admin@linux.ie\nX-Mailman-Version: 1.1\nPrecedence: bulk\nList-Id: Irish Linux Users' Group <ilug.linux.ie>\nX-Beenthere: ilug@linux.ie\n\nOn Fri, Jul 19, 2002 at 06:10:40PM +0100, <NAME> wrote:\n> Sure, but soft links would do the same. To be honest, I'm trying to\n> think of a useful use of hard links right now, and I'm a little\n> stumped. There's gotta be some benefit that I'm missing that's\n> immediately obvious to everyone.\n\nmh used them nicely. mh stores one message per file. the refile command\nallows you to move a message from one folder to another *or* link it to\nanother folder. it uses hard links to do this. this would suck to if\nit used soft links - what if i later deleted the actual file?\n\nkevin\n\n-- \n<EMAIL> that a believer is happier than a skeptic is no more to\nfork()'ed on 37058400 the point than the fact that a drunken man is happier\nmeatspace place: home than a sober one. the happiness of credulity is a\nhttp://ie.suberic.net/~kevin cheap & dangerous quality -- g.b. shaw\n\n-- \nIrish Linux Users' Group: <EMAIL>\nhttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.\nList maintainer: <EMAIL>\n\n\n"} | json |
<reponame>lmfresneda/loggerage-promisify
{
"name": "loggerage-promisify",
"version": "0.1.0",
"description": "loggerage-promisify is a helper for promisify methods of loggerage package",
"main": "./build/index.js",
"author": "lmfresneda <<EMAIL>>",
"scripts": {
"test": "mocha --compilers js:babel-core/register",
"dev": "babel index.es6 -w -d build -s inline",
"build": "babel index.es6 -d build -s inline",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec",
"report-coverage": "cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
"url": "https://github.com/lmfresneda/loggerage-promisify.git"
},
"bugs": {
"url": "https://github.com/lmfresneda/loggerage-promisify/issues"
},
"license": "MIT",
"homepage": "https://github.com/lmfresneda/loggerage-promisify",
"keywords": [
"promisify",
"promise",
"loggerage",
"log",
"logger",
"storage"
],
"dependencies": {
"promise": "^8.0.1"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-preset-env": "^1.6.0",
"coveralls": "^2.13.1",
"expect.js": "^0.3.1",
"istanbul": "^0.4.5",
"localStorage": "^1.0.3",
"loggerage": "^2.3.1",
"mocha": "^3.5.0"
}
}
| json |
import ca.controller.Controller;
import ca.simulations.Simulation;
import ca.view.SimulationView;
import ca.view.Styler;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Group;
import javafx.scene.chart.Chart;
import javafx.scene.control.Button;
import javafx.scene.control.Slider;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.util.Duration;
import java.util.ResourceBundle;
/**
* This class extends Application and is the Main class of the simulation.
* The stage is created and the scene is called to be made.
* The step function updates the cells every step and updates the graph as well.
*/
public class Main extends Application {
public static final int FRAMES_PER_SECOND = 60;
public static final int MILLISECOND_DELAY = 1000 / FRAMES_PER_SECOND;
public static final double SECOND_DELAY = 1.0 / FRAMES_PER_SECOND;
public static final String TITLE = "Simulation";
public static final int SIZE_WIDTH = 1000;
public static final int SIZE_HEIGHT = 800;
public static final Paint BACKGROUND = Color.AZURE;
public static final String RESOURCE = "ca/resources";
public static final String DEFAULT_RESOURCE_PACKAGE = RESOURCE + ".";
public static final int NEW_SIM_BUTTON_OFFESET = 150;
private SimulationView simulationView;
private Timeline animation;
private Stage stage;
private ResourceBundle myResources;
private Group root;
private Slider numRows;
private Slider numCols;
/**
* This method creates a new instance of the file reader as well as the scene creation.
* Here, the file is retrieved and the simulation is begun.
* Additionally, the animation is started and a game loop is associated with the scene.
* @param stage
*/
@Override
public void start (Stage stage) {
simulationView= new SimulationView();
this.stage = stage;
Scene scene = setupSimulation(simulationView.getSimulation());
stage.setScene(scene);
stage.setTitle(TITLE);
stage.show();
startAnimation();
}
/**
* This method sets up the simulation and creates all the buttons for the simulation. It calls on the Grid class
* in the model to create the grid.
* @return Scene
*/
private Scene setupSimulation(Simulation simulation) {
root = new Group();
TextField num = new TextField();
Styler styler = new Styler();
myResources = ResourceBundle.getBundle(DEFAULT_RESOURCE_PACKAGE + "English");
GridPane gridPane = simulationView.getCurrentGridPane();
Controller controller = simulationView.getController();
Chart lineChart = simulationView.getCurrentLineChart();
int buttonHeight = simulationView.getButtonHeight();
styler.styleTextField("FillerCommand", num,
buttonHeight, myResources);
Button startButton = styler.createButton("StartCommand", event -> controller.startAnimation(),
buttonHeight, 0, myResources);
Button stopButton = styler.createButton("StopCommand", event -> controller.pauseAnimation(),
buttonHeight, 1, myResources);
Button reloadFileButton = styler.createButton("ReloadCommand", event -> reloadFile(),
buttonHeight, 2, myResources);
Button stepButton = styler.createButton("StepCommand", event -> step(),
buttonHeight, 3, myResources);
Button submitButton = styler.createButton("SubmitCommand", event -> controller.setAnimationSpeed(Double.parseDouble(num.getText())),
buttonHeight, 5, myResources);
GridPane setNumRows = styler.createSlider(simulationView.getNumRows(), simulationView.getGridHeight(), 1, myResources, "RowLabel");
GridPane setNumCols = styler.createSlider(simulationView.getNumCols(), simulationView.getGridHeight(), 2, myResources, "ColLabel");
numRows = styler.getRowSlider();
numCols = styler.getColSlider();
numRows.setValue(simulation.getNumOfRows());
numCols.setValue(simulation.getNumOfCols());
Button newSimulButton = styler.createButton("NewSimulation", event -> startNewSimulation(),
buttonHeight, 2, myResources); newSimulButton.setLayoutY(newSimulButton.getLayoutY() + NEW_SIM_BUTTON_OFFESET); newSimulButton.setPrefWidth(150);
root.getChildren().addAll(gridPane, startButton, stopButton, reloadFileButton, stepButton, submitButton, num, lineChart,
newSimulButton, setNumCols, setNumRows);
return new Scene(root, SIZE_WIDTH, SIZE_HEIGHT, BACKGROUND);
}
private void reloadFile() {
simulationView = new SimulationView();
Scene scene = setupSimulation(simulationView.getSimulation());
stage.setScene(scene);
simulationView.getController().setTimeline(animation);
}
private void startNewSimulation(){
Stage newStage = new Stage();
Thread thread = new Thread(() -> {
Platform.runLater(() -> {
Main newSimul = new Main();
newSimul.start(newStage);
});
});
thread.start();
}
/**
* In this method, we will need to call the updateCells method in the other part of the code.
* This method is executed every time the step button on the user interface is clicked.
*/
public void step () {
//System.out.println(animation.getRate());
root.getChildren().removeAll(simulationView.getCurrentGridPane(), simulationView.getCurrentLineChart());
simulationView.updateGridSize((int) numRows.getValue(), (int) numCols.getValue());
simulationView.getSimulation().runOneStep();
root.getChildren().addAll(simulationView.getCurrentGridPane(), simulationView.getCurrentLineChart());
}
/**
* Here, the animation is begun, and the delay between each step is established.
*/
public void startAnimation() {
KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY), event -> step());
animation = new Timeline();
animation.setRate(SECOND_DELAY);
simulationView.getController().setTimeline(animation);
animation.setCycleCount(Timeline.INDEFINITE);
animation.getKeyFrames().add(frame);
animation.play();
}
public static void main(String[] args) {
launch(args);
}
}
| java |
Superstar Mahesh Babu is currently working on his 28th film. He teamed up with Trivikram Srinivas for the third time and there are massive expectations on this project. It is without a doubt one of the most awaited movies in Tollywood and reports suggest that around 30% of the shooting has been wrapped up.
The star hero was recently seen at Sania Mirza's farewell party. Sources say that Mahesh has changed his regular style for #SSMB28 and is going at full speed. He usually takes big breaks between the schedules. But this film was postponed several times during the initial stages of its production due to various reasons. In order to finish the movie on time, Mahesh is reportedly taking less number of breaks.
With Rajamouli's film coming soon, Mahesh reportedly wants to wrap up this project at a rapid pace and release it in August. His globetrotting adventure film with the 'RRR' director is expected to start by the end of 2023 or the beginning of 2024. Let us see if Trivikram manages to finish this project on time or not.
As we know, Pooja Hegde and Sreeleela are the heroines in this film. The latter is going to have a super hit song with Mahesh as well and the latest we hear is that the superstar will be seen as a police officer once again in this movie. If this news turns out to be true, the fans are surely going to have a blast in theatres. He is reportedly donning the police getup after a long time and it will be exciting to see how Trivikram portrays Mahesh as a cop.
Superstar Mahesh Babu and Trivikram Srinivas have joined hands once again after 12 years. Their combination has always given wonderful films like 'Athadu' and 'Khaleja'. #SSMB28 is going to be the third in their combination and there are high expectations on it. P S Vinod will be cranking the camera while Naveen Nooli is the editor. AS Prakash is the art director for this project which is bankrolled under 'Haarika & Hassine Creations'. | english |
What’s up at General Electric? First, in May 2005, CEO Jeff Immelt announced a new corporate initiative dubbed Ecomagination. Under the plan, the company will invest $1.5 billion annually by 2010 – roughly half of its current research budget – in clean-tech R&D. He also pledged to roll back GE’s own greenhouse gas emissions 1 percent by 2012. (They had been on track to rise 40 percent.) Then the $360 billion Fairfield, Connecticut, conglomerate started airing feel-good TV ads starring a tap-dancing elephant. And this spring, a GE executive testifying at a US Senate hearing asked the government to impose mandatory emission limits on American companies.
Not the kind of talk you’d expect from a corporate giant best known among environmentalists for dumping toxic PCBs into the Hudson River for almost three decades. But as evidence mounts that carbon emissions cause global warming, outfits like General Electric – along with fellow Wired 40 companies Exelon, BP, and Toyota – are realizing that going green is good for business.
American corporations have traditionally regarded environmental controls as an expensive nuisance – not as an inspiration for their business plans. And by his own admission, Immelt is no tree hugger. But the focus on carbon reduction makes strategic sense for GE. Obviously, investing in clean technologies pays dividends in public relations and marketing buzz: FedEx has announced plans to cut emissions through the use of hybrid delivery trucks, a move that plays well with consumers.
And much like Toyota (hybrid vehicle technology) and BP (alt-energy program), GE believes there may be a vast market for other environmentally smart products. GE’s initiatives include plans to develop roof tiles that function as solar cells and water purification systems to reduce municipal waste outflows.
The global market is especially hungry for green technology. Most US multinationals do business in Europe and Asia – regions that have accepted, and are beginning to enforce, the limits on greenhouse gases imposed by the Kyoto Protocol. Even if the US never ratifies the relatively stringent treaty, US products will soon be competing abroad in markets that are on a low-carbon diet. GE is already developing wind turbines, low-emission aircraft engines, and hybrid locomotives for overseas customers.
These companies also want to get a jump on any restrictions they may eventually face in the US. “There will be a carbon-constrained future. It’s prudent to take action now, because it will benefit us when regulation comes,” says Helen Howes, vice president of environment, health, and safety at Chicago-based power company Exelon. The firm has pledged to reduce its greenhouse gas emissions – already relatively low – 8 percent by 2008 (using a 2001 baseline).
An Exelon executive also testified at April’s Senate Energy Committee hearings, urging Congress to establish immediate carbon controls, like a mandatory cap-and-trade credit system. Still, congressional action, if any, will come only in baby steps.
Who’s doing it?
Six Trends Driving the Global Economy:
| english |
{"id": 6977, "title": "Ticket #6977: Allow use of private Docker repos", "description": "<blockquote>\nCERN users are starting to want to run their analysis from a private image repository. This repository contains their personal code corresponding to analyses that haven't been published -- not a great candidate for <span class=\"wiki\"><a class=\"missing\" href=\"wiki?p=DockerHub\" title=\"Docker Hub\">DockerHub</a></span>.\n\n<p>They do, however, have access to a token that allows them to access the private repository. They'd like to be able to give this token to HTCondor and have it used when the Docker image is downloaded.</p></blockquote>", "remarks": "<blockquote>\n</blockquote>", "derived_tickets": "", "attachments": "<html><head></head><body></body></html>", "check_ins": "", "type": "enhance", "last_change": "2019-Apr-04 04:25", "status": "new", "created": "2019-Apr-04 04:25", "fixed_version": "2019-Apr-04 04:25", "broken_version": "", "priority": "3", "subsystem": "DaemonsSubmitNode", "assigned_to": "gthain", "derived_from": "", "creator": "bbockelm", "rust": "", "customer_group": "cern", "visibility": "public", "notify": "<EMAIL>", "due_date": ""} | json |
html {
/* margin-bottom: auto; */
height: 150%;
font-size: 150%;
font-family: Arial;
background-image: url('/public/images/monthly.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
button, input {
font-size: 100%;
font-family: Arial;
color: rgb(15, 45, 126);
}
table {
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
.error {
color: red;
}
.wrapper {
margin: 0 auto;
max-width: 825px;
text-align: center;
}
.total {
font-size: 150%;
margin-top: 40px;
text-decoration: underline;
color: rgba(24, 26, 25, 0.897);
}
.form {
margin-top: 10px;
width: 100%;
background-color: rgba(255, 83, 15, 0.678);
}
.transactions {
text-align: left;
max-height: 300px;
overflow: auto;
width: 100%;
margin: 0 auto;
margin-top: 167px;
background-color: rgb(116, 184, 119);
color: rgb(190, 109, 3);
}
#myChart {
max-height: 300px;
overflow: auto;
width: 100%;
background-color: black;
color: pink;
} | css |
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import configRouter from './router'
import {timeStampToCNTimeFormat,timeStampToSecondFormat} from './filter'
import App from './pages/app.vue'
import './assets/style/reset.scss'
Vue.use(VueRouter)
Vue.use(VueResource)
Vue.filter('timeStampToCNTimeFormat', timeStampToCNTimeFormat);
Vue.filter('timeStampToSecondFormat', timeStampToSecondFormat);
const router = new VueRouter({
history: true,
saveScrollPosition: true,
suppressTransitionError: true
})
configRouter(router)
router.start(Vue.extend(App), '#app')
window.router = router
| javascript |
<reponame>midurk/conan-rapidxml
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import ConanFile, tools
import os
class RapiXMLConan(ConanFile):
name = "rapidxml"
version = "1.13"
description = "RapidXml is an attempt to create the fastest XML parser possible"
url = "https://github.com/bincrafters/conan-rapidxml"
homepage = "http://rapidxml.sourceforge.net"
author = "Bincrafters <<EMAIL>>"
license = ("BSL-1.0", "MIT")
exports = ["LICENSE.md"]
exports_sources = ["CMakeLists.txt", "name_lookup_changes_fix.patch"]
source_subfolder = "source_subfolder"
no_copy_source = True
def source(self):
source_url = "https://cfhcable.dl.sourceforge.net/project/rapidxml/rapidxml/rapidxml%20"
tools.get("{0}{1}/{2}-{3}.zip".format(source_url, self.version, self.name, self.version))
os.rename(self.name + "-" + self.version, self.source_subfolder)
tools.patch(base_path=self.source_subfolder, patch_file="name_lookup_changes_fix.patch")
def package(self):
self.copy(pattern="license.txt", dst="licenses", src=self.source_subfolder)
self.copy(pattern="*.hpp", dst="include", src=self.source_subfolder)
def package_id(self):
self.info.header_only()
| python |
<reponame>SunSince90/cnwan-operator
# Service registry
A service registry is basically a database of services: each registered service provides information about its instances, addresses, ports and other data. Often times, *metadata* can be registered as well, which provide additional data about the service.
Therefore, a client can log in to the service registry and *discover* registered services to know how to connect to them and get data about them. Sounds familiar? That's because it is very similar to how DNS works, but the service registry pattern is a [key concept of microservices](https://auth0.com/blog/an-introduction-to-microservices-part-3-the-service-registry/).
**Note** that this document defines how a service registry *should* be for the CN-WAN Operator to support it and, therefore, may also be used as a *guideline* for designing one on your backend; but it does not mean that *all* service registries already existing are implemented as you see here. Some of them may only be *partially* similar to this and can, thus, may not be supported by the CN-WAN Operator in future or too different and thus not supported.
Of course, this does not apply to backends as they are actually oblivious of the data you put there: in case demand is there, we may provide support for them as well in future.
## Metadata
Some service registries allow for *metadata* to be published along with the "object" that you are publishing. These are things that may not really have a meaning for the object itself but more to you, your team, your application or your use case in general. This is just list of `key: value` pairs and we're confident that examples in this document will clarify the concept more.
Examples:
* `hash-commit: asd043qv`, `branch: master` to define repository data
* `protocol: RTP`, `authentication: enabled` to define more information on how to connect to the application
* `team: best-team-in-company`, `contact: <EMAIL>` to define information about the team and how to get help about the application
Please keep in mind that *some* service registries may provide *partial* support for metadata, i.e. a maximum number of values or allow them only for some objects and not all.
## Which one to choose?
Which one you choose depends on different factors, including:
* restrictions on metadata if you plan to have many
* your budget
* visibility
and so on.
As we said on the main documentation, the CN-WAN Operator currently supports *Google Service Directory* and *etcd*.
## Objects
Let's now cover the objects that the CN-WAN Operator will work with. Keep in mind that some products, i.e. Google Service Directory, may work with objects that have the same names but different formats. Nonetheless, the CN-WAN Operator will provide you with data that always look like the ones included in this guide. Even more, some service registries may not even provide some of those objects: in case you want to use those, the CN-WAN Operator will try to abstract them as best as it can while still using the service registry's own format.
We will give examples in a *YAML* format since it is the one that CN-WAN adopts as default, along with a formal description of the objects with their types so that - as long as you respect field names, hierarchies and types - you can marshal and unmarshal them in your application as well.
### Namespace
A namespace, exactly like Kubernetes' definition, is like a virtual cluster or group where you contain applications/services that have similar use or share the same purpose.
Here are some example use cases for namespaces:
* an environment, i.e. `production` or `dev`
* a business unit or team, i.e. `hr` or `my-software-team`
A namespace will look like this in a *YAML* format:
```yaml
name: team
metadata:
env: production
manager: <NAME>
```
This is a more formal description:
| Field | Type | Description
| ----------- | ----------- | -----------
| name | string | the name of the namespace
| metadata | map (dictionary) | A list of key -> value pairs that provide more information about this namespace. Look at the example. Keys and values are both strings.
### Service
As the name suggests, a service is something that provides users/softwares a resource or that performs some operations with a final result. For simplicity, think of a service as an *application*.
It cannot exist by itself but only when it is part of a namespace. For example, two teams may have the same service with the same name but that does different things, even if slightly.
Here are some example services:
* `payroll` or `user-profile`
* `mysql` or `redis`
Note that a service can also have the same name as its parent namespace, i.e. when you don't plan on creating others.
A service looks like this in a *YAML* format:
```yaml
name: payroll
namespaceName: production
metadata:
traffic-profile: standard
version: v1.2.1
maintainers: software-team
contact: <EMAIL>
```
This is a more formal description:
| Field | Type | Description
| ----------- | ----------- | -----------
| name | string | the name of the service
| namespaceName | string | the name of the namespace this service belongs to
| metadata | map (dictionary) | A list of key -> value pairs that provide more information about this service. Look at the example. Keys and values are both strings.
### Endpoint
This is the actual "place" where you can reach a service/application.
It cannot exist by itself, as it obviously only has a meaning within a service.
Here are some example endpoints:
* `payroll-tcp` or `payroll-8080`
* `user-profile-internal` or `user-profile-vpn`
Note that an endpoint can also have the same name as its parent service, i.e. when you don't plan on creating others.
An endpoint looks like this in a *YAML* format:
```yaml
name: payroll-internal
serviceName: payroll
namespaceName: production
address: 10.11.12.13
port: 9876
metadata:
protocol: UDP
weight: 0.25
```
This is a more formal description:
| Field | Type | Description
| ----------- | ----------- | -----------
| name | string | the name of the endpoint
| serviceName | string | the name of the service that will be reached with this endpoint
| namespaceName | string | the name of the namespace that contains the parent service (and therefore the endpoint as well)
| address | string | the IP address of the endpoint
| port | 32 bit integer | the port of the endpoint
| metadata | map (dictionary) | A list of key -> value pairs that provide more information about this endpoint. Look at the example. Keys and values are both strings.
| markdown |
package multiverse.mars.effects;
import multiverse.server.engine.*;
import multiverse.server.util.*;
import multiverse.mars.objects.*;
import multiverse.mars.core.*;
import multiverse.mars.plugins.*;
import java.util.*;
public class DamageEffect extends MarsEffect {
static Random random = new Random();
public DamageEffect(String name) {
super(name);
}
// add the effect to the object
@Override
public void apply(EffectState state) {
super.apply(state);
int dmg = minDmg;
if (Log.loggingDebug)
Log.debug("DamageEffect.apply: doing instant damage to obj=" + state.getObject() +
" from=" + state.getCaster());
if (maxDmg > minDmg) {
dmg += random.nextInt(maxDmg - minDmg);
}
CombatInfo obj = state.getObject();
obj.statModifyBaseValue(getDamageProperty(), -dmg);
obj.sendStatusUpdate();
Engine.getAgent().sendBroadcast(new CombatClient.DamageMessage(obj.getOwnerOid(),
state.getCaster().getOwnerOid(), dmg, damageType));
}
// perform the next periodic pulse for this effect on the object
@Override
public void pulse(EffectState state) {
super.pulse(state);
int dmg = minPulseDmg;
if (maxPulseDmg > minPulseDmg) {
dmg += random.nextInt(maxPulseDmg - minPulseDmg);
}
CombatInfo obj = state.getObject();
obj.statModifyBaseValue(getDamageProperty(), -dmg);
obj.sendStatusUpdate();
Engine.getAgent().sendBroadcast(new CombatClient.DamageMessage(obj.getOwnerOid(),
state.getCaster().getOwnerOid(), dmg, damageType));
}
public int getMinInstantDamage() { return minDmg; }
public void setMinInstantDamage(int hps) { minDmg = hps; }
protected int minDmg = 0;
public int getMaxInstantDamage() { return maxDmg; }
public void setMaxInstantDamage(int hps) { maxDmg = hps; }
protected int maxDmg = 0;
public int getMinPulseDamage() { return minPulseDmg; }
public void setMinPulseDamage(int hps) { minPulseDmg = hps; }
protected int minPulseDmg = 0;
public int getMaxPulseDamage() { return maxPulseDmg; }
public void setMaxPulseDamage(int hps) { maxPulseDmg = hps; }
protected int maxPulseDmg = 0;
public String getDamageProperty() { return damageProperty; }
public void setDamageProperty(String property) { damageProperty = property; }
protected String damageProperty = CombatInfo.COMBAT_PROP_HEALTH;
public String getDamageType() { return damageType; }
public void setDamageType(String damageType) { this.damageType = damageType; }
protected String damageType = "";
}
| java |
With its enormous catalog of on-demand streaming music and its built-in social features for discovering new tunes, Spotify is an absolute must-have for audiophiles and casual listeners alike. But free users, beware of intermittent eardrum-piercing ads.
Editors' note: The newest features of the Spotify desktop app will be rolling out to users in the next few weeks. We'll update this review as soon as they become available.
The fastest way to get started with Spotify on your desktop is by logging in with your Facebook account. You can also become a Spotify member with your e-mail address, but if you go that route, you'll have to fill in a few fields of personal information. In any case, getting set up on the service takes almost no time at all. Once you're in, the program automatically imports your music collection and playlists from iTunes and other music software, giving you a single hub from which to access either Spotify's catalog or your personal stuff.
Users of iTunes will notice that Spotify looks and feels very much like Apple's ubiquitous music player. It is just as polished and is laid out bento-box-style, with resizable panels and an always-present bar of playback controls neatly sitting at the bottom. The search bar at the top can be used to locate artists, albums, specific tracks, or even other Spotify members. And conveniently sitting next to it are browser-style back and forward buttons for navigating through it all.
Spotify's biggest draw is that you can search for any song in its catalog and Spotify will play it back for you in its entirety, instantly. And while other services might charge you for on-demand streaming (like Slacker Radio) or play songs that are similar to what you're looking for rather than the song itself (like Pandora), Spotify offers all of this for free, and it seems to have every reasonably popular artist, song, and album in its catalog. You can't get The Beatles, but Spotify does offer up tracks by everyone from The Rolling Stones to Kanye West, and even a huge number of obscure indie artists. Plus, the app does include a radio feature as well, though it is a little thin in the curated stations department.
And, of course, there is the whole social aspect of the app. While Spotify is certainly good at serving up music that you already know about, the app is as much about discovering new tunes by way of its social integration. The panel on the right shows what your Facebook friends have been listening to in case you need suggestions. And your listening history gets broadcast to your friends likewise. But if you don't feel like sharing, don't worry about it, because you can easily enable the Private Session option.
Playlists are also a huge part of the Spotify experience. You can search through and subscribe to playlists curated by other users or those created by sources like Billboard Music and Spotify itself. This is another great way to discover new tracks. Making your own playlists that other users can subscribe is also a big part of the Spotify experience. But if you don't want to share your playlists with your friends, you can toggle this, as well as other privacy settings, in Spotify's Preferences menu.
Relatively new to Spotify is the App Finder. This is a listing of "apps" developed specifically for the Spotify platform. With these, you can upgrade your Spotify desktop experience with features like TuneWiki lyrics, Rolling Stone recommendations, and Last.fm integration. Since Spotify is still relatively new as an open platform for development, the App Finder has fewer than 100 apps, but with the Spotify user base quickly growing, you can bet that developers are beginning to pay attention.
We can't complain about Spotify's crystal-clear sound quality and consistent streaming. If you have a stable connection to a broadband network, then the app should sound and feel exactly like your personal, locally stored music library. Still, if you feel like you need even higher-quality streaming, a paid account will unlock the feature. It's also worth noting that paying for an account kills the ads that occasionally interrupt your listening experience. And considering the loud, highly annoying nature of many of the ads, heavy listeners should highly consider upgrading. Another reason to upgrade would be to get full access to on-demand streaming on your mobile device.
With an impressive catalog of music readily available for free on-demand streaming, there's absolutely no reason for any audiophile to pass over Spotify. It even offers Pandora-style programmed radio. And what really pushes Spotify over the top are its built-in social features that make it easy to share playlists and discover new music.
| english |
<filename>EventsDW-master/userwidgets/com.konyenb.sessiondetails/modules/require/sessiondetailsControllerActions.js
define({
/*
This is an auto generated file and any modifications to it may result in corruption of the action sequence.
*/
}); | javascript |
கருத்துக்களம் ஒரு ஆன்லைன் கலந்துரையாடல் மன்றம், அங்கு இளைஞர்கள் அல்லது அனுபவம் வாய்ந்த வல்லுநர்கள் தொடர்பான கேள்விகளைப் பற்றி விவாதிக்கிறார்கள், மேலும் அவர்களது கேள்விகளுக்கான பதில்களை மற்ற திறமையான நபர்களிடமிருந்து பெறுகின்றனர். கேள்விகளைக் கேட்டு, மற்றவர்களிடம் பதில்களைக் கேட்பதன் மூலம் ஒரு ஆன்லைன் விவாதம் ஆரம்பிக்கப்படலாம். சிறந்த பகுதியாக இது மிகவும் எளிதானது மற்றும் கட்டணமின்றி இலவசமாகும்.
what is the differnce between int and long int in gcc if both having the same size.
I am getting Confused About the file handling in C. How to create new text file?
How to remove space at last? Sometimes we may get spaces at last while executing for loop.so it is not a case to print space at last.
cant we know the address without using the pointer? and explain in detail about pointers? explain the types of pointers?
I want to place function call using pointer how can i do it? it is quite difficult i am facing problem in my program.
(&)operator is best option for off the bit in the c language.
Any reference websites where we can actually self-assess or may be can brush up our skills.
Is there a crash course that can help me to get basic skills and start my career in it.
Explain the phenomena with suitable examples and references.
| english |
export interface IMiddleware<T> { (ctx: T, next: () => Promise<void>): void }
| typescript |
<gh_stars>0
{"PREVALENCE_BY_GENDER_AGE_YEAR":{"TRELLIS_NAME":[],"SERIES_NAME":[],"X_CALENDAR_YEAR":[],"Y_PREVALENCE_1000PP":[]},"PREVALENCE_BY_MONTH":{"X_CALENDAR_MONTH":[],"Y_PREVALENCE_1000PP":[]},"CONDITIONS_BY_TYPE":{"CONCEPT_NAME":"Observation recorded from EHR","COUNT_VALUE":122},"AGE_AT_FIRST_DIAGNOSIS":{"CATEGORY":["MALE","FEMALE"],"MIN_VALUE":[11,15],"P10_VALUE":[19,25],"P25_VALUE":[30,40],"MEDIAN_VALUE":[48,50],"P75_VALUE":[62,66],"P90_VALUE":[74,73],"MAX_VALUE":[92,77]}}
| json |
Someone started an online petition to change the name of the capital of Pakistan from Islamabad to "Islamagood" and it already has over 300 signatures, claim reports.
The petition posted on Change. org reads, "Islam is good. Pakistan love Islam. Why IslamaBAD? Love from Bangladesh. " It was reportedly started by Ayham Abrar, who claims to be a native of Bangladesh.
People online pointed out that the petition makes zero sense because Islamabad is technically not "Islama-bad". Instead, it is "Islam-abad. "
Here's what they had to say:
It’s not even a joke.
But Ayham Abrar seems to have gotten his facts wrong, Islamabad actually means the City of Islam. It is a compound word consisting of two Urdu words - Islam and Abad. Abad can roughly be translated to location.
Another similar petition had been created on Change. org pushing for changing the name of Columbus, in Ohio, US to "Flavourland. "
The description of the post read: “Columbus is an amazing city, but one whose name is tarnished by the very name itself. Its namesake, Christopher Columbus, is in The Bad Place because of all his raping, slave trading, and genocide. That's not exactly a proud legacy”.
The petitioner also has a new name in mind – Flavourland. Tyler Woodbridge, who started the petition explained the importance of the name. “The new name is twofold. For one, it honors Central Ohio's proud heritage as a culinary crossroads and one of the nation's largest test markets for the food industry. Secondly, cheflebrity Guy Fieri was born in Columbus, so naming the city in honor of him (he's such a good dude, really) would be superior to its current nomenclature, (sic)” he said. | english |
Sri Lanka batter Bhanuka Rajapaksa admitted that things were not easy when his team were five down for just 58 in the Asia Cup 2022 final against Pakistan at Dubai International Cricket Stadium. Rajapaksa played a match-winning 71-run* knock which revived Sri Lanka’s innings from a tough situation. Rajapaksa fought a lone battle for his team after early wickets to take his team to a fighting total of 170/6 in 20 overs. The left-handed Rajapaksa put on a key 58-run stand for the sixth wicket with Wanindu Hasaranga who also scored valuable 36 runs.
Rajapaksa remained unbeaten on 71 runs off 45 balls in which he struck 6 fours and three sixes to pull his team back in the game. His knock set the tone for Sri Lanka as they beat Pakistan by 23 runs to clinch their sixth Asia Cup title.
The southpaw said he and Hasaranga had a plan to take on Pakistan bowlers which worked well for them.
“It was not easy out there. They were bowling well. Wanindu and I had a nice plan. Nature of SL team is to be positive and not have pressure. That helped us score runs," Rajapaksa said after he was named Player of the Match.
The Sri Lanka batter further said in their initial plan, Hasaranga had to play the aggressor but they both got scoring balls which turned out to be a bonus.
“When Iftikhar was bowling, Wanindu wanted to attack, but fortunately both of us were getting the runs," he added.
“I had to change my game today since Pakistan were top at the moment. Had to spend some time in the crease. "
Rajapaksa further revealed that during the drinks break he had a chat with head coach Chris Silverwood where he analysed the pitch and thought of it as a 140-run surface but they managed to get more in the final overs which set the momentum for them.
“When Chris came to talk to us at the drinks break, I told him that it looks like a 140 pitch. And eventually we stayed till the end and the eventual target was much different. This is a game of momentum, and we set the momentum in the last over of the first innings," he added. | english |
U R My Jaan is a song from the album/film “U R My Jaan. This song is sung by Sanjeev Rathod, Shilpa Rao. Its music is composed by Sanjeev-Darshan. And the lyrics are penned by Sameer Anjaan.
U R My Jaan is directed by starring Mikaal, Priti, Himani Shivpuri, Anil Dhawan, Rajesh Khera, Aman verma, Ravi Dubey, Parikshit Sahni.
U R My Jaan Lyrics Transliteration (English)
| english |
IPS officer Param Bir Singh will appear before the one-member commission probing corruption allegations against former Maharashtra home minister Anil Deshmukh on Monday, his lawyer said. The Justice K U Chandiwal commission was formed in March this year to probe the allegations levelled by Singh, a former Mumbai police chief, against Deshmukh, an NCP leader.
On Thursday, the commission had warned that if Singh did not remain present, he would face the execution of the bailable warrant issued against him.
On Friday, Singh's lawyer told the commission that the senior IPS officer won't be able to appear during the day as he was visiting Thane in connection with a case against him.
Singh was ready to appear on Saturday or any other day, he said. The commission said it doesn't sit on Saturday and asked Singh to appear on Monday (November 29).
The commission had fined Singh on many occasions earlier for failing to appear. A bailable warrant had also been issued against him. Singh, transferred from the post of Mumbai police commissioner in March in the aftermath of the Antilia bomb scare episode, alleged that Deshmukh, then home minister, had asked police officers to collect Rs 100 crore a month from bars and restaurants in Mumbai. Declared absconding by a Mumbai court in an extortion case, Singh surfaced in public on Thursday after six months, and appeared before the Mumbai crime branch to record his statement. Meanwhile, a man, claiming to be a social worker, on Friday approached the Justice Chandiwal commission with an intervention application, seeking inquiry against Singh for his "misdeeds" during his tenure as Thane police commissioner. Singh implicated many builders, businessmen and common citizens in false cases, the plea alleged.
The commission took the application on record.
Amarinder targets Choudhary, says Punjab CM turned into 'rubber stamp'
Incidentally, Singh appeared before Thane police on Friday in connection with an extortion case filed against him and some other police officials on the complaint of a local builder. The IPS officer is facing at least five extortion cases in Maharashtra.
The Supreme Court has granted him temporary protection from arrest.
(Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. ) | english |
# PowerToys installer instructions (Delete this)
## MSI installer instructions
1. Install the [WiX Toolset Visual Studio 2019 Extension](https://marketplace.visualstudio.com/items?itemName=RobMensching.WiXToolset).
2. Install the [WiX Toolset build tools](https://wixtoolset.org/releases/) in the development machine.
3. Open `powertoys.sln`, select the "Release" and "x64" configurations and build the `PowerToysSetup` project.
4. The resulting installer will be built to `PowerToysSetup\bin\Release\PowerToysSetup.msi`.
## MSIX installer instructions
### One-time tasks
#### Create and install the self-sign certificate
For the first-time installation, you'll need to generate a self-signed certificate. The script below will generate and add a cert to your [TRCA store](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/trusted-root-certification-authorities-certificate-store).
1. Open `Developer PowerShell for VS` as an Admin
2. Navigate to your repo's `installer\MSIX`
3. Run `.\generate_self_sign_cert.ps1`
**Note:** if you delete the folder, you will have to regenerate the key
#### Elevate `Developer PowerShell for VS` permissions due to unsigned file
`reinstall_msix.ps1` is unsigned, you'll need to elevate your prompt.
1. Open `Developer PowerShell for VS` as admin
2. Run `Set-ExecutionPolicy -executionPolicy Unrestricted`
#### Allow Sideloaded apps
In order to install the MSIX package without using the Microsoft Store, sideloading apps needs to be enabled. This can be done by enabling `Developer Options > Sideload apps` or `Developer Options > Developer mode`.
### Building the MSIX package
1. Make sure you've built the `Release` configuration of `powertoys.sln`
2. Open `Developer PowerShell for VS`
3. Navigate to your repo's `installer\MSIX`
4. Run `.\reinstall_msix.ps1` from the devenv powershell
### What reinstall_msix.ps1 does
`reinstall_msix.ps1` removes the current PowerToys installation, restarts explorer.exe (to update PowerRename and ImageResizer shell extension), builds `PowerToys-x64.msix` package, signs it with a PowerToys_TemporaryKey.pfx, and finally installs it.
## Cleanup - Removing all .msi/.msix PowerToys installations
```ps
$name='PowerToys'
Get-AppxPackage -Name $name | select -ExpandProperty "PackageFullName" | Remove-AppxPackage
gwmi win32_product -filter "Name = '$name'" -namespace root/cimv2 | foreach {
if ($_.uninstall().returnvalue -eq 0) { write-host "Successfully uninstalled $name " }
else { write-warning "Failed to uninstall $name." }
}
```
| markdown |
My hopes for this site when I started a month ago have been dashed. It's been promoted as a Reddit alternative, and I assure you it is not.
Curation rewards have created a gaming system.
People will not vote for what they like, they will vote for what they believe will trend.
People will not vote unless it is 30 minutes old (Who the hell takes 30 minutes to read something?)
People are voting for dollars, and nothing else.
I have had a couple comments get a good reward. I felt good about it. One I was contradictory and explained why, the other supportive with reasons why and additional content. As it turns out I suspect now that all I was, was early to comment. Look at @dollarvigalante's second post here. How I made $15,000 in 12 hours. The top comment is not really related to the post and a plug to a #payitforward (we all vote on each other's shit) post, the post he linked received no boost. I am not at all meaning to attack either of these guys, I am however tired of seeing great authors with good content being overlooked while people are looking at two things, $ and time.
Be interested to hear what you think on this, but my only solution is the comments. As valuable as the posts are, the comments should be equally so. With few exceptions though, the comments receive zero notice after the first few, and the post effectively abandoned shortly after 12 hours.
What would it look like if every upvote added to the post value but every upvote was hidden?
What if instead the author received only the current curation reward of 25% of that value?
The other 75%, allotted between the upvoted material by the votes both comments and post received.
I don't know if that's the solution. However it would make a site I enjoy far more. I judge a quality post by the discussions it sparks, the rebuttals it brings and passion it ignites.
Imagine how things look when you have to defend your post to protect your dollars? You can't just walk away and ignore it.
| english |
Alphabet, Google's parent company, cut 12,000 jobs, or about 6% of its global workforce, at the start of 2023. Meta laid off more than 10,000 employees, or roughly 13% of its staff. So did other household names, including Microsoft, Amazon and Disney.
In addition, HCLTech's operating margin (EBIT margin) expanded significantly by 130 basis points sequentially to 19.8%. This compares with the contraction reported by Infosys and Wipro and an expansion in TCS margin after excluding one-off items.
TVS Motor Company’s daily trend is bullish. The RSI for monthly, weekly and daily is showing bullish momentum. Based on option chain analysis, the range is between 2000 and 2100. Let’s plan a trade around this.
Companies are taking various measures to increase the gender diversity numbers. These include hiring more women from campuses, offering flexibility at work and adding more women in leadership, HR heads and staffing sector experts said.
HDFC Life Insurance Company’s daily trend is bearish to sideways. The RSI for monthly, weekly and daily are showing sideways momentum. Based on option chain analysis, the range is between 600 and 650. Let’s plan a trade around this.
Titan Company’s daily trend is bullish to sideways. The RSI for monthly, weekly and daily are showing bullish momentum. Based on option chain analysis, the range is between 3700 and 3800. Let’s plan a trade around this.
| english |
Pakistan and the United Kingdom have agreed to enhance bilateral cooperation in legal education and ink agreements in this regard.
An understanding to this effect was reached at a meeting between Minister for Law and Justice Senator Azam Nazir Tarar and delegation of British High Commission in Islamabad on Tuesday.
The two sides discussed bilateral agreements in field of law, which can benefit both the countries.
Speaking on the occasion, the Minister said both Pakistan and the United Kingdom are working expeditiously in this regard.
| english |
import { UserEntity } from 'src/auth/user.entity';
import { EntityRepository, Repository } from 'typeorm';
import { CreateTaskDto } from './dto/create-task.dto';
import { GetTasksFilterDto } from './dto/get-tasks-filter.dto';
import { TaskEntity, TaskStatus } from './task.entity';
@EntityRepository(TaskEntity)
export class TaskRepository extends Repository<TaskEntity> {
async getTasks({ status, search }: GetTasksFilterDto, user: UserEntity): Promise<TaskEntity[]> {
const query = this.createQueryBuilder('task');
query.where({ user });
if (status) {
query.andWhere('task.status = :status', { status });
}
if (search) {
query.andWhere(
'(LOWER(task.title) LIKE LOWER(:search) OR LOWER(task.description) LIKE LOWER(:search))',
{
search: `%${search}%`,
},
);
}
const tasks = await query.getMany();
return tasks;
}
async createTask({ title, description }: CreateTaskDto, user: UserEntity): Promise<TaskEntity> {
const task = this.create({ title, description, status: TaskStatus.OPEN, user });
await this.save(task);
return task;
}
}
| typescript |
Getting high-quality services is an important condition when choosing a medical facility for many people. The clinical hospital in Yauza, the opening of which was held at the end of 2015, offers Moscow residents and its guests health care. And also qualified high-tech medical care of the European level.
The capital of Russia is a big city. In the center of Moscow, at ul. Volochaevskaya, house 15, building 1, is a clinical hospital on the Yauza. The patients' comments speak of its indisputable service advantage in the form of its own parking, which is of no small importance in the crowded capital of the capital. The customers of this private medical institution are entitled to free use.
It is convenient to get here with the help of municipal passenger transportation, metro stations ("Ploshchad Ilyicha", "Rimskaya"), stops of public land transport are within walking distance.
You can make an appointment by phone or in electronic form. The institution has a call center, whose employees will help you find out information about the register of medical services, their current cost, and give information about the qualifications of doctors. Here, citizens' applications are registered.
The clinical hospital in Yauza has a convenient work schedule: patients are admitted daily, from 8am to 20pm. The clinic has an emergency room. Its services can be used around the clock.
For the successful functioning of the institution, the qualitative achievement of the tasks facing it, a team of professionals is needed. The clinical hospital in Yauza, in the person of its management, took care of the selection of a team of highly qualified doctors and medical personnel.
Many long-practicing doctors of the hospital combine daily medical work with scientific work. The title of professor was awarded to 4 doctors, doctors of medical sciences - 9 people. More than a third of the medical staff has the title of candidate of medical sciences. These achievements make it possible to enrich and make more reliable assistance at the level of ordinary residents of the capital.
The management of the clinic takes care of the upgrading of the entire staff. For this purpose, doctors are sent for internships to leading domestic clinics and abroad. No less useful exchange of experience occurs during the consultations and operations brought to the hospital by high-class doctors.
Scientific research, participation in specialized conferences, symposia, including international ones, allows doctors to keep abreast of new methods of treatment, share their knowledge.
The clinical hospital in Yauza is a medical facility in which patients can receive the full range of medical services: from qualitative diagnostics to high-tech treatment. Provision of services is possible for all family members, regardless of their age, including in a hospital.
The patients are attracted by a wide range of medical and laboratory directions, which the clinical hospital on the Yauza has. Comments on the work of hemocorrection departments, radiation diagnostics, centers of arrhythmology and spine surgery are only positive. The use of modern equipment, advanced technologies and methods of treatment makes it possible to achieve significant results in curing complex diseases.
The most demanded patients are therapy, surgery, immunology, cardiology, dermatology, pediatrics, dentistry. Other, more specific, narrow directions give the possibility of comprehensive examination and detection of poorly diagnosed ailments.
The Scientific Laboratory for Genetic Research, the Department of Maternity and Reproductive Health - this is what the clinical hospital in Yauza has. IVF, reviews of which leave grateful patients, guarantees a high percentage of birth of healthy children after the artificial insemination of the mother. The scientific potential of the hospital, modern equipment, attraction to the work of specialists with world renown make it possible to solve complex issues in the field of reproduction. | english |
<reponame>marekhanus/postgres-operator
---
title: "4.5.1"
date:
draft: false
weight: 69
---
Crunchy Data announces the release of the PostgreSQL Operator 4.5.1 on November 13, 2020.
The PostgreSQL Operator is released in conjunction with the [Crunchy Container Suite](https://github.com/CrunchyData/crunchy-containers/).
PostgreSQL Operator 4.5.1 release includes the following software versions upgrades:
- [PostgreSQL](https://www.postgresql.org) is now at versions 13.1, 12.5, 11.10, 10.15, 9.6.20, and 9.5.24.
- [Patroni](https://patroni.readthedocs.io/) is now at version 2.0.1.
- PL/Perl can now be used in the PostGIS-enabled containers.
## Changes
- Simplified creation of a PostgreSQL cluster from a `pgcluster` resource. A user no longer has to provide a pgBackRest repository Secret: the Postgres Operator will now automatically generate this.
- The exposed ports for Services associated with a cluster is now available from the `pgo show cluster` command.
- If the `pgo-config` ConfigMap is not created during the installation of the Postgres Operator, the Postgres Operator will generate one when it initializes.
- Providing a value for `pgo_admin_password` in the installer is now optional. If no value is provided, the password for the initial administrative user is randomly generated.
- Added an example for how to create a PostgreSQL cluster that uses S3 for pgBackRest backups via a custom resource.
## Fixes
- Fix readiness check for a standby leader. Previously, the standby leader would not report as ready, even though it was. Reported by <NAME> (@alrooney).
- Proper determination if a `pgcluster` custom resource creation has been processed by its corresponding Postgres Operator controller. This prevents the custom resource from being run by the creation logic multiple times.
- Prevent `initdb` (cluster reinitialization) from occurring if the PostgreSQL container cannot initialize while bootstrapping from an existing PGDATA directory.
- Fix issue with UBI 8 / CentOS 8 when running a pgBackRest bootstrap or restore job, where duplicate "repo types" could be set. Specifically, the ensures the name of the repo type is set via the `PGBACKREST_REPO1_TYPE` environmental variable. Reported by <NAME> (@alrooney).
- Ensure external WAL and Tablespace PVCs are fully recreated during a restore. Reported by (@aurelien43).
- Ensure `pgo show backup` will work regardless of state of any of the PostgreSQL clusters. This pulls the information directly from the pgBackRest Pod itself. Reported by (@saltenhub).
- Ensure that sidecars (e.g. metrics collection, pgAdmin 4, pgBouncer) are deployable when using the PostGIS-enabled PostgreSQL image. Reported by <NAME> (@jdenisgiguere).
- Allow for special characters in pgBackRest environmental variables. Reported by (@SockenSalat).
- Ensure password for the `pgbouncer` administrative user stays synchronized between an existing Kubernetes Secret and PostgreSQL should the pgBouncer be recreated.
- When uninstalling an instance of the Postgres Operator in a Kubernetes cluster that has multiple instances of the Postgres Operator, ensure that only the requested instance to be uninstalled is the one that's uninstalled.
- The logger no longer defaults to using a log level of `DEBUG`.
| markdown |
{
"title": "Hale serves healthy, organic, macrobiotic meals",
"url_title":"hale-serves-healthy-organic-macrobiotic-meals",
"entry_id":"2266",
"channel_id":"70",
"author_id":"114",
"date":"2010-05-18",
"article-excerpt":"On Mother's Day, I was treated to a night out at the Hale Modern Macrobiotic Cuisine restaurant in Honolulu. The folks at Hale describe themselves as \"modern macrobiotic cuisine,\" a title that may deter diners who may mistake it for boring and vegetarian. My boyfriend, who found the place, had stuffed himself with a roast beef sandwich and french fries at home in fear of getting \"tiny servings of vegetables\" at the restaurant -- something he didn't admit until he was asking for his Hale dinner to be put in a takeout box because the portions were so big.",
"caption":"Hale Modern Macrobiotic Cuisine near Ala Moana offers an alternative approach to eating and living healthy.",
"source":"The Hawaii Independent",
"beat":"",
"page_location":"Top",
"art_photo":"http://farm5.static.flickr.com/4047/4620345908_a49f6d4d9c.jpg",
"user": "<NAME>",
"username": "jade"
}
<p><img src="http://www.thehawaiiindependent.com/photography/us/jade.sm.jpg" align="right" /></p><div class="pull-gold"><p> Food Smarts <br />
with <NAME>ardt</p>
</div>
<p>On Mother’s Day, I was treated to a night out at the Hale Modern Macrobiotic Cuisine restaurant in Honolulu. The folks at Hale describe themselves as “modern macrobiotic cuisine,” a title that may deter diners who may mistake it for boring and vegetarian. My boyfriend, who found the place, had stuffed himself with a roast beef sandwich and french fries at home in fear of getting “tiny servings of vegetables” at the restaurant—something he didn’t admit until he was asking for his Hale dinner to be put in a takeout box because the portions were so big.</p>
<p>The space was modern and reminded me of something out of New York City. With an open kitchen lined by a bar where diners can eat and watch the chefs steam veggies, I could see that everything was clean and neat. Organic wine and beer, sake, and a good local beer selection was available.</p>
<p>Hale’s head chef <NAME> harnessed her craft in her family’s restaurant in Tokyo, and expanded on her palette at Honolulu’s Kai. Kubota decided to close Kai in 2008 to follow her dream of creating a healthy and natural restaurant. After receiving her Macrobiotic Certificate of Concierge, she opened Hale as a macrobiotic restaurant that would “abandon the use of refined sugar all together.”</p>
<p>Hale’s menu offers several soy protein main courses. I ordered one of them that was served with an apple miso sauce, which was rich and tasty. Each entree we saw coming out of the kitchen was served on a pretty glass plate that was similar to a luau plate with six or so separate sections filled with different elements of the meal. </p>
<p>The highlight for me was the kale and strawberry salad topped off with sesame tofu dressing—a flavorful mix of fruits and veggies. Other salads were offered, along with several soups, and appetizers like organic french fries with homemade ketchup and deep fried lotus root. Hale serves fish, and my dining partner—who was raised eating fish on Oahu—said his ono was some of the best he’s ever had. All of the delicious sounding desserts were egg, diary, and refined-sugar-free, but we were far to stuffed to try it. A sad thing really.</p>
<p>Starters like the veggie gyoza dumpling and black beans nato were $4.95 and up, salads $11.45 and up, soups$ 3.25 and up, sandwiches $13.75 and up, and a la cartes $12.45 and up. Dinner entrees like the teriyaki tempeh and kuruma-fu cutlet with apple miso sauce are priced at $18.45 and up. The dinner entrees come with grilled vegetable, greens, beans, seaweed, brown rice and miso Soup.</p>
<p>Our waiter told us that business was up-and-down. “Some days are so slow and other days we are pretty busy with no clue as to why,” he said. It was sort of sad actually, to see a unique restaurant that offered healthy, local, and organic meals suffering. </p>
<p>According to Hale’s website, the word “macrobiotic” is Greek in origin and means “long life.” The macrobiotic diet and philosophy were developed by <NAME>, a Japanese educator who believed that simplicity and balance were the key to optimal health. Ohsawa developed a diet that recommended 10 progressively restrictive stages—the last stage consisting only of brown rice and water, something macrobiotic diet counselors don’t recommend these days.</p>
<p>Hale describes the macrobiotic guidelines:</p>
<p>- Whole grains typically make up 50 to 60 percent of each meal. Whole grains include brown rice, whole wheat berries, barley, millet, rye, corn, buckwheat, and other whole grains.<br />
- Soup. One to two cups or bowls of soup per day.<br />
- Vegetables typically make up 25 to 30 percent of the daily food intake. Up to one-third of the total vegetable intake can be raw. Otherwise, vegetables should be steamed, boiled, baked, and sauteed. <br />
- Beans make up 10 percent of the daily food intake. This includes cooked beans or bean products such as tofu, tempeh, and natto.<br />
- Animal products. A small amount of fish or seafood is typically consumed several times per week. Meat, poultry, eggs, and dairy are usually avoided.<br />
- Seeds and nuts in moderation.<br />
- Local fruit can be consumed several times a week. Includes apples, pears, peaches, apricots, grapes, berries, melons, and other fruit. Tropical fruit such as mango, pineapple, and papaya is usually avoided.<br />
- Emphasize naturally sweet foods such as apples, squash, azuki beans, and dried fruit. Natural sweeteners such as rice syrup, barley malt, and amazake can be used. Sugar, honey, molasses, chocolate, carob, and other sweeteners are avoided.<br />
- Cooking oil is typically unrefined vegetable oil. One of the most common oils used is dark sesame oil. Other oils that are recommended are light sesame oil, corn oil, and mustard seed oil. Never use canola oil, as it is not a natural oil, does not come from a plant, and can cause allergies for some people. Canola oil is a variant of rapeseed oil, used during World War II as a machine lubricant.</p>
<p>Hale was an unexpected find on a side street near Ala Moana Shopping Center. If you’re ever in the neighborhood and looking for something filling and healthy, be sure to check it out.</p>
<p><i>For more information, visit <a href="http://www.halemacro.com" title="http://www.halemacro.com">http://www.halemacro.com</a>.</p>
<p>Hale Modern Macrobiotic Cuisine<br />
1427 Makaloa St.<br />
(808) 944-1555</p>
| html |
In this Quick Gun Murugun film, Rajendra Prasad, Anu Menon played the primary leads.
The Quick Gun Murugun was released in theaters on 28 Aug 2009.
Movies like Sam Bahadur, Animal, Dunki and others in a similar vein had the same genre but quite different stories.
The soundtracks and background music were composed by Daniel George for the movie Quick Gun Murugun.
The movie Quick Gun Murugun belonged to the Comedy, genre.
| english |
<reponame>svadakat/MMM_SapientNitro<filename>mediaHub/getRatingsAndReviewData.py
import logging
import pymongo
from pymongo import MongoClient
import pandas as pd
import json
import time
from datetime import datetime
import urllib3
urllib3.disable_warnings()
from urllib.parse import urlencode
from pprint import pprint
client = MongoClient("mongodb://localhost:27017/")
MEDIA="media"
RNR="ratingsAndReviews"
SAMPLE='SAMPLE'
LIVE='LIVE'
RUNMODE=LIVE
LOG_FILENAME = './logs/GoogleAnalytcisData.log'
#FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
logging.info('Initialization done...')
def getGAData(SKU):
gaURL="https://www.nivea.de/shop/getratingreviewserviceresponse?service=getreviews&StreamID="+str(SKU)
logging.info(gaURL)
http = urllib3.PoolManager()
r = http.request('GET', gaURL)
data=json.loads(r.data.decode('utf-8').replace("$","")) #replace $ from the response string
data=data['Data']
data=data['Reviews']
return data
def loadSampleData(SKU):
samplefile="./mmmdash/data/RnR/RnRSample.json"
with open(samplefile) as data_file:
data = json.load(samplefile)
return data
def updateReviewData(datatype,attribute):
db = client.mediamixmodeling
collection = db.products
for product in collection.find({}):
print("Update invoked for "+product['_id'])
product[datatype]=setAttributeData(datatype,product[datatype],product['productCode'],attribute)
result =collection.update({'_id': product['_id']},{"$set" : product})
print("Update completed for "+product['_id'])
return result
def setAttributeData(datatype,data,SKU,attribute):
if attribute in data:
data[attribute] = getAttributeData(datatype,data[attribute],SKU)
return data
def getAttributeData(datatype,attribute,SKU):
reviews=gaDataHandler(SKU)
attribute['Reviews']=reviews #Referesh all data
return attribute
def gaDataHandler(SKU):
data=""
print(RUNMODE)
if RUNMODE == SAMPLE:
data = loadSampleData(SKU)
if RUNMODE == LIVE:
data = getGAData(SKU)
return data;
def main():
dbresult=updateReviewData(MEDIA,RNR)
print(dbresult)
if __name__ == '__main__':
main()
| python |
Latest study has claimed that low sex drive, hair loss and erectile dysfunction are among the various symptoms of long covid. The other symptoms of Covid that lasted beyond 12 weeks included fever, chest pain, bowel incontinence and limb swelling.
Even as the world grips with the threat of the new Omicron variant of the Covid-19, a new study has found that countries that imposed stringent face mask mandates witnessed significantly slower mortality as opposed to the nations that did not imply strict rules.
An analysis of 270,000 antibody tests conducted by Thyrocare across India showed the presence of antibodies in an average of 26% of the people, indicating they had already been exposed to the coronavirus.
In the study, the researchers tested four common models of N95 masks at various temperatures and humidity levels to determine whether the virus could be detected on the treated masks.
Scientists at the Indian Institute of Technology said that smokers could be living on the edge of contracting COVID-19. | english |
There’s so much stuff you can do in Chrome that sometimes it feels like it’s an operating system of its own. That’s because it is. Well, kind of (hello Chromebook users). After stuff like image editing, add the ability to record either a single Chrome tab or the entire PC screen to the list.
There are two extension that can help you do this. Let’s take a look.
The most versatile and feature rich option is Screencastify. When you install the extension you’ll need to give the app permission for accessing your microphone and the front facing camera. This is of course voluntary. But if you do provide access, the extension will be able to record your voice and your face that will then be shown in a little window in the bottom-right.
If you’re recording walkthroughs for someone, this is a great feature to have enabled.
While Screencastify is free to use, you can only record 10-minute videos with the free plan. And they’ll have a Screencastify watermark in the top-right. To remove the restrictions, you’ll need to pay a €20 one time fee.
To get started recording, click the Screencastify icon from the extension bar. You’ll see a drop-down with a list of options.
From here you can select wether you want to record just a tab, the entire screen or the camera.
Below you’ll find options to enable the audio, select the volume, enable the video, and specify the quality of the video. At the bottom, click the Start recording button to get started.
The recording will now start and you’ll see a little preview pop up in the bottom-right corner. In the bottom-left you’ll see options for annotations and showing a cursor. The pop up also lets you pause the video.
To stop the video, click the extension button again and click Stop recording.
You’ll now see a preview of the video. From here you can share the video, save it to the local disk or to Google Drive.
Safe browsing with Chrome: Check out the top 9 security focused Chrome extensions. While you’re at it, finding out just who is tracking you online won’t hurt either.
If you’re looking for a completely free and a simpler option, Snagit is for you. Snagit’s limitation is that it only lets you save videos to Google Drive. Local storage isn’t supported. So if you don’t always have a stable broadband connection, Snagit might not be for you.
Snagit supports both screenshots and screencasts. But only screencasts can record the entire screen.
All about screenshots: check out the best Chrome and iOS extensions for taking full page screenshots.
To get started, click the Snagit icon from the extensions bar. A sidebar with options will show up. Here, select Video and from the pop-up window, select the area you want to record. It can be the entire screen or any of the open windows.
When you’re done, just click the extension icon again and click the square Stop button.
The video preview will show up and the extension will prompt you to log into your Google account so it can save the video in a “TechSmith” folder in your Google Drive.
If you’ve had friends or family bug you about the same web problems over and over again, you know how annoying it can be. Now, just send them a video walkthrough.
What all stuff will you use screencast for? Share with us in the comments below.
The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.
| english |
Agartala: Union Commerce and Industry Minister Piyush Goyal on Thursday said the northeastern region of India can emerge as a hub for natural rubber production, adding the Central government has plans for rubber plantations on two lakh hectares of land in the region in the next five years.
Addressing the investment summit here, Goyal, speaking virtually from Delhi, termed the bamboo as “green gold of forest” said the bamboo cultivation is another major resource in the northeastern region.
He said that four major tyre companies represented by Automotive Tyre Manufacturers Association (ATMA) have together keen to invest Rs 1,000 crore for rubber plantation in 200,000 hectare land in the seven states of the region over a period of five years.
The Rubber Board and the ATMA have signed a Memorandum of Understanding in March this year and the participating tyre companies together have already transferred Rs 12 crore to the Rubber Board for procuring planting materials for commencing plantation, the Union Minister said.
Tripura is the second largest producer of natural rubber in the country while new plantation of rubber has been undertaken in 30,000 hectares of land, he said.
The state currently cultivates natural rubber in 87,500 hectares of land and producing 90,000 tonnes of rubber annually.
Goyal said Tripura is home to the largest bamboo flooring unit and the state has the potential to emerge as the country’s hub of Agarbatti industry by supplying bamboo sticks and make India ‘Aatmanirbhar’ on Bamboo.
Referring to Prime Minister Narendra Modi’s dream to transform northeast region into “Ashth Lakshmi” of India by the all round development of the eight states, the Union Minister said that the Prime Minister has accorded priority to the ‘Focus North-East’ programme and the ‘Make in India’ programme has been implemented here as the ‘Make in North-East’ programme.
Goyal, appreciating the performance and development of Tripura under the leadership of Chief Minister Biplab Kumar Deb, said that the state government has been working tirelessly and giving priority to 3 Ns in administration — Niyat, Niti and Niyam.
Noting that Tripura is the 4th literate state in northeast region, he said that the state has a thriving handlooms industry with 1.36 lakh weavers.
The Minister said that jackfruit from Tripura has been exported to London.
Goyal said that the Centre is encouraging usage of Agro-textiles and Geo-technical textiles in the northeast region through its dedicated schemes.
“With improved connectivity through air, rail, road and waterways, the so called geographical isolation of the state is a thing of the past. The state is an integral part of multimodal connectivity now,” he said.
Goyal said the (under construction) cross-border Agartala-Akhaura (Bangladesh) rail project with an investment of Rs 972 crore would promote exports.
Addressing in the opening session of the two-day summit, Tripura Chief Minister said that the state has already ahead in many sectors in the northeastern region and no one would block its progress as the Centre has come forward with all out support. He said that the state government’s ease of doing business policies facilitate to enthuse to explore the business opportunities of Tripura.
“Earlier the northeast region had always been neglected by the central government’s developmental policies, but since Narendra Modi has become Prime Minister, his total focus is on in the holistic development of the region,” Deb added.
Over a hundred industrialists and representatives of many leading companies and industry bodies from across the country took part in the investment summit called – Destination Tripura — Investment Summit – 2021.
| english |
<reponame>dekaulitz/demoGo<gh_stars>0
package service
import (
"demoGo/apps/handler"
"demoGo/apps/handler/exception"
"demoGo/apps/models"
)
//example for registration service
func Register(user *models.Users) (*models.Users, *exception.ErrorException) {
err := handler.ValidateRequest(user)
if err != nil {
return nil, err
}
return user, nil
}
| go |
<filename>continuous.go<gh_stars>0
package main
import (
"fmt"
"os"
"os/signal"
"strconv"
"syscall"
"time"
log "github.com/sirupsen/logrus"
)
func continuous() {
log.WithFields(log.Fields{"func": "continuous"}).Infof("Starting continuous mode with Config: %+v", brf)
startRestAPI()
sigC := make(chan os.Signal, 1)
signal.Notify(sigC, syscall.SIGINT, syscall.SIGTERM)
ticker := time.NewTicker(time.Duration(polltime) * time.Second)
defer ticker.Stop()
backup()
triggerHealth()
for {
select {
case <-ticker.C:
backup()
triggerHealth()
case <-sigC:
log.WithFields(log.Fields{"func": "continuous"}).Infof("Signal received, exiting continuous mode")
return
}
}
}
func backup() {
success := false
based = strconv.FormatInt(time.Now().Unix(), 10)
switch brf.InfraService {
case INFRA_SERVICE_ZK:
success = backupZK()
case INFRA_SERVICE_ETCD:
success = backupETCD()
case INFRA_SERVICE_CONSUL:
success = backupCONSUL()
default:
log.WithFields(log.Fields{"func": "continuous"}).Fatal(fmt.Sprintf("Infra service %s unknown or not yet supported", brf.InfraService))
}
if !success {
log.WithFields(log.Fields{"func": "continuous"}).Fatal("Backup was not successfull!")
}
}
| go |
۞ وَاَوْحَيْنَآ اِلٰى مُوْسٰٓى اَنْ اَلْقِ عَصَاكَۚ فَاِذَا هِيَ تَلْقَفُ مَا يَأْفِكُوْنَۚ ( الأعراف: ١١٧ )
Wa awhainaaa ilaa Moosaaa an alqi 'asaaka fa izaa hiya talqafu maa yaafikoon (al-ʾAʿrāf 7:117)
Sahih International:
And We inspired to Moses, "Throw your staff," and at once it devoured what they were falsifying. (Al-A'raf [7] : 117)
We revealed to Mūsā, “Throw your staff.” Then of a sudden, it began to swallow all that they had concocted.
Then We inspired Moses, “Throw down your staff,” and—behold!—it devoured the objects of their illusion!
We inspired Moses, “Throw your staff,” and it suddenly swallowed up all their illusionary devices.
And We revealed to Moses: 'Cast thy staff!' And lo, it forthwith swallowed up their lying invention.
Then We inspired Moses, ‘Throw your staff,’ and- lo and behold!––it devoured their fakery.
And we revealed unto Musa: cast down thy rod. And lo! it Was swallowing up that which they had feigned.
We put it into Moses's mind by inspiration; "Throw (now) thy rod"; and behold! it swallows up straight away all the falsehoods which they fake!
Then We directed Moses: 'Now you throw your rod.' And lo! it swallowed up all their false devices.
We said to Moses: "Throw down your staff;" and it swallowed up their conjurations in no time.
And We inspired Moosa that, “Put forth your staff”; it immediately began swallowing up their fabrications.
And We signalled to Moses: ‘Throw down your staff.’ And behold, it was swallowing what they had faked.
We revealed to Moses: "Throw down your staff!" and behold! it swallowed up their false devices.
And We sent a revelation to Moses (saying), `Cast your staff (now).´ Then it began to destroy (as he did it) all their lying show.
And We inspired/transmitted/signaled to Moses, that throw/throw away your stick/cane, so then it snatches/swallows quickly what they lie/falsify.
And We inspired Moosa that, "Put forth your staff"; it immediately began swallowing up their fabrications.
But We inspired Moses (saying), "Throw down your rod." and it swallowed up their lying show.
And We inspired Musa (Moses) (saying): "Throw your stick," and behold! It swallowed up straight away all the falsehoods which they showed.
He said: Cast. So when they cast, they deceived the people’s eyes and overawed them, and they produced a mighty enchantment.
And We revealed to Musa, saying: Cast your rod; then lo! it devoured the lies they told.
And We inspired Moses (saying): Throw thy staff! And lo! it swallowed up their lying show.
We inspired Moses to throw his staff, and suddenly it began to swallow-up all that the magicians had (falsely) invented.
Then We revealed to Moses: 'Now, throw down your staff' And thereupon it swallowed up their false invention.
And We revealed to Musa (saying): "Throw your stick," and behold! It swallowed up straight away all the falsehood which they showed.
Then We inspired Moses, saying, "Throw down your staff." And it immediately swallowed up their false devices.
And We inspired Moses: “Throw your staff.” And at once, it swallowed what they were faking.
And We revealed to Moses [saying]; `Cast your staff.' And lo! it swallowed up (read talaqqafu, with one of the original t' letters [of tatalaqqafu] omitted) the illusion they were creating, that which they were transforming by delusion.
Allah tells;
And We revealed to Musa (saying);"Throw your stick,"
Allah states that at that tremendous moment, in which Allah differentiated between Truth and Falsehood, He sent a revelation to His servant and Messenger Musa, peace be upon him, ordering him to throw the stick that he held in his right hand,
It swallowed straight away,
and devoured,
all the falsehood which they showed.
the magic that they caused the illusion with, of magic with which they caused making it appear real, whereas it was not real at all.
Ibn Abbas said that;
Musa's stick swallowed all the ropes and sticks that the magicians threw.
| english |
[{"e_id":"13505","title":"我军击落台湾U-2间谍飞机","content":"\n 在58年前的今天,1963年11月1日(农历1963年9月16日),我军击落台湾U-2间谍飞机。图片资料:美制U-2间谍飞机1963年11月1日,美制台湾U-2型高空侦察机一架,窜扰至我华东地区上空进行间谍活动,被我中国人民解放军空军部队击落。这是我人民解放军空军部队继1962年9月9日之后打落的第二架美制台湾U-2型高空间谍飞机。这是中国人民给予美国侵略者和蒋介石的又一次严重的警告和沉重的打击。这事发生后,美国政府同1962年前一样,慌慌张张地赶忙出来宣称,这架飞机不是美国的,是蒋介石集团从美国洛克希德飞机公司购买的,妄图以此证明这一事件同美国无关,抵赖美国蓄意侵犯中国大陆领空搜集军事情报的罪责,这真是作贼心虚。美国政府这种“此地无银三百两”的虚假表白,是骗不了任何人的。不错,蒋介石是这次间谍飞行的执行者,但是,谁都知道,驻扎在台湾的U—2飞机全部是由美国控制,直接为美国的侵略政策和战争政策服务的。这种飞机的供应、维修、使用和指挥大权完全操在美国手中。驾驶这种飞机的蒋军飞行员,名义上直属蒋军空军情报署,实际上一切行动,全由美国情报机关控制掌握。1962年,当我们击落那架U-2飞机之后,美国政府在百般狡赖的同时,已经不打自招地承认美国是从这种间谍飞机的活动中获取情报,此次U-2飞机再次被击落了,美帝国主义的罪恶黑手再次被我们抓住了。赃证俱在,罪责难逃,美帝国主义是对我国一再进行间谍活动的元凶。中国人民解放军部队自1959年以来,这已经是打落第7架美制蒋匪帮间谍飞机了。这些飞机中,有B-17、R B-57D、RF-101、P2V和U-2等各种型号。它们有的是从高空来的,有的是从低空来的,有的是白天来的,有的是黑夜来的,不管他们运用什么自以为巧妙的办法,都没有能逃脱被击落的可耻命运。这次U-2飞机被击落,再一次向台湾空军人员指出:窜扰祖国大陆是不会有好下场的。","picNo":"1","picUrl":[{"pic_title":"图片资料:美制U-2间谍飞机","suffix":"jpeg","id":1,"url":"https://aimgs.oss-cn-shenzhen.aliyuncs.com/history_2021/13505_1.jpeg"}]}] | json |
package org.jtmc.siglent.driver;
import java.io.IOException;
import java.util.Collection;
import org.jtmc.core.instrument.FunctionGenerator;
import org.jtmc.core.instrument.common.Impedance;
import org.jtmc.core.scpi.ISCPISocket;
import org.jtmc.core.scpi.SCPICommand;
import org.jtmc.core.scpi.SCPISocketAdapter;
import org.jtmc.core.visa.DeviceIdentifier;
import org.jtmc.core.visa.exception.InstrumentException;
import org.jtmc.siglent.info.SiglentFunctionGeneratorModel;
/**
* Siglent SDG Series function generator driver.
*/
public class SDGDriver extends SCPISocketAdapter implements FunctionGenerator {
public SDGDriver(
ISCPISocket adapter,
DeviceIdentifier deviceIdentifier,
SiglentFunctionGeneratorModel functionGeneratorModel) {
super(adapter, deviceIdentifier);
// TODO Auto-generated constructor stub
}
@Override
public Collection<AnalogOutput> getAnalogOutputs() {
// TODO Auto-generated method stub
return null;
}
private static class AnalogOutputImpl implements FunctionGenerator.AnalogOutput {
private ISCPISocket socket;
private int channelId;
private long memoryDepth;
private int verticalResolution;
public AnalogOutputImpl(
ISCPISocket socket,
int channelId,
long memoryDepth,
int verticalResolution) {
this.socket = socket;
this.channelId = channelId;
this.memoryDepth = memoryDepth;
this.verticalResolution = verticalResolution;
}
@Override
public String getName() {
return String.valueOf(this.channelId);
}
@Override
public void setEnabled(boolean enabled) throws InstrumentException {
try {
this.socket.send(channelCommand("OUTP").with(enabled ? "ON" : "OFF").build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
@Override
public void setOperationMode(OperationMode operationMode) throws InstrumentException {
// TODO Auto-generated method stub
}
@Override
public void setImpedance(double impedance) throws InstrumentException {
try {
//TODO: validate impedance value (50-10000 Ohms or HiZ)
this.socket.send(
channelCommand("OUTP")
.with("LOAD", impedance == Impedance.HIZ ? "HZ" : String.valueOf(impedance))
.build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
@Override
public void setAmplitude(double amplitude) throws InstrumentException {
try {
this.socket.send(channelCommand("OUTP").with("AMP", String.valueOf(amplitude)).build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
@Override
public void setOffset(double offset) throws InstrumentException {
try {
this.socket.send(channelCommand("OUTP").with("OFST", String.valueOf(offset)).build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
@Override
public void setFrequency(double frequency) throws InstrumentException {
try {
this.socket.send(channelCommand("OUTP").with("FREQ", String.valueOf(frequency)).build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
@Override
public void setPhase(double phase) throws InstrumentException {
try {
//TODO: validate Phase 0- 360
this.socket.send(channelCommand("OUTP").with("PHSE", String.valueOf(phase)).build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
@Override
public void setWaveformType(WaveformType waveformType) throws InstrumentException {
try {
//TODO: RampDown = Triangle, 100% Sym; RampUp = Triangle, 0% Sym;
this.socket.send(
channelCommand("OUTP")
.with("WVTP", String.valueOf(waveformType.toString()))
.build());
} catch (IOException e) {
throw new InstrumentException(e);
}
}
private SCPICommand.Builder channelCommand(String command) {
return SCPICommand.builder().command("C" + channelId, command);
}
}
/*
@Override
public synchronized void setAnalogArbitraryWaveform(int channel, Signal<Float> signal)
throws IOException {
validateChannelNumber(channel);
if (signal.getData().size() != WAVE_LENGTH) {
signal = sampler.sample(signal);
}
SCPICommand arbMode = channelCommand(channel, "BSWV").with("WVTP", "ARB").build();
this.send(arbMode);
this.waitForOperation(DEFAULT_TIMEOUT);
SCPICommand srate = channelCommand(channel, "SRATE").with("MODE", "TARB").build();
this.send(srate);
this.waitForOperation(DEFAULT_TIMEOUT);
SCPICommand wdata = channelCommand(channel, "WVDT")
.with("WVNM", signal.getId())
.with("LENGTH", "32KB")
.with("FREQ", 1.0f / signal.period()).with("AMPL", signal.max() - signal.min())
.with("OFST", (signal.max() + signal.min()) / 2.0f)
.with("WAVEDATA", new String(binary(signal).array(), StandardCharsets.ISO_8859_1)).build();
this.send(wdata);
this.waitForOperation(DEFAULT_TIMEOUT);
SCPICommand arbWave = channelCommand(channel, "ARWV").with("NAME", signal.getId()).build();
this.send(arbWave);
this.waitForOperation(DEFAULT_TIMEOUT);
}
private static ByteBuffer binary(Signal<Float> signal) {
ByteBuffer buffer = ByteBuffer.allocate(16384 * 2);
double min = signal.min();
double max = signal.max();
signal.getData().forEach(point -> {
double k = (point.value - min) * 2 / (max - min) - 1;
short value = (short) (k * 65535 / 2);
byte low = (byte) (value & 0xFF);
byte high = (byte) ((value & 0xFF00) >> 8);
buffer.put(low);
buffer.put(high);
});
return buffer;
}
*/
}
| java |
There are two main criminal tax provisions that could possibly apply: a misdemeanor 7203 or a felony 7201.
So to be guilty of either criminal activity, Trump would necessarily have "willfully" avoided or evaded tax.
The Supreme Court has held that "willful" means "a voluntary, intentional violation of a known legal duty" (US v. Pomponio).
In short, that means that criminal conviction won't happen where a taxpayer carelessly makes a mistake. (That's good, right? Like, we all carelessly make mistakes.)
Now did Trump willfully violate the tax law?
That won't protect him from back taxes and interest if he violated the tax law. It may or may not protect him from civil penalties.
| english |
European football’s governing body Uefa has extended its partnership with the European Commission (EC), with the two parties stating their intention to tackle issues surrounding the transfer system and the role of agents within the game.
The International Skating Union (ISU) has expressed its “surprise and disappointment” after it was confirmed that the European Commission (EC) is to launch an investigation into current rules that enable the sport’s global governing body to ban skaters from its own competitions if they take part in non-approved events.
FIFPro and Uefa have stepped up the fight against third-party ownership (TPO) of football players by filing a joint complaint against the practice with the European Commission (EC).
Uefa, European football’s governing body, has agreed terms on a “historic” partnership with the European Commission (EC).
The European Commission (EC) has today (Wednesday) ruled that state aid granted to developers at German motorsport venue the Nuerburgring breached European Union (EU) regulations and must be paid back.
The European Commission (EC) has today (Thursday) launched a Convention on the Manipulation of Sports Competitions, while European football’s key stakeholders have joined forces to introduce a code of conduct which aims to set out the guiding principles for all players, referees, clubs and other officials on issues surrounding the integrity of the game.
The European Commission’s investigation into state support for Spanish football clubs is not part of a jealous witch hunt against the country, according to one of the complainants.
The European Commission has opened a three-pronged investigation into allegations that several Spanish Liga football clubs, including Real Madrid and Barcelona, benefited unfairly from state support.
The European Commission is to launch disciplinary proceedings against seven Spanish football clubs, including Barcelona and Real Madrid, over allegations of benefiting from favourable financial treatment from the state.
| english |
{
"name": "common_test",
"description": "common cookbook tests",
"override_attributes": {},
"run_list": [
"openstack-common::etcd",
"openstack-common::completions"
]
}
| json |
<reponame>huynn96/car-website
require('reflect-metadata');
require('babel-register');
require('./http.bootstrap'); | javascript |
import type { Eq } from '@principia/base/Eq'
import type { Ring } from '@principia/base/Ring'
import { allEquals } from './utils'
export const RingLaws = {
additiveInverse:
<A>(R: Ring<A>, E: Eq<A>) =>
(a: A): boolean => {
return allEquals(E)(R.sub_(a, a), R.add_(R.sub_(R.zero, a), a), R.zero)
}
}
| typescript |
class CLIArgParser {
args = [];
#aliases = {};
#usage = "";
#argv = null;
// constructor
constructor(args) {
if (Array.isArray(args))
this.args = args;
}
usage(usageMsg) {
this.#usage = usageMsg + '\n\nOptions:\n';
return this;
}
alias(key, name, description) {
this.#aliases[key] = {name, description};
return this;
}
showHelp() {
let helpMsg = this.#usage;
for (const [key, value] of Object.entries(this.#aliases)) {
helpMsg += `-${key},--${value.name}\t ${value.description}\n`;
}
console.log(helpMsg);
}
get argv() {
return this.#argv ? this.#argv : this.#parseArgv();
}
static isNumber (x) {
if (typeof x === 'number')
return true;
if (/^0x[0-9a-f]+$/i.test(x))
return true;
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
}
#setArg(key, val, argv) {
const value = CLIArgParser.isNumber(val) ? Number(val) : val;
this.#setKey(argv, key.split('.'), value);
const aliasKey = (key in this.#aliases) ? [this.#aliases[key].name] : [];
if (aliasKey.length < 1) {
for (const [akey, avalue] of Object.entries(this.#aliases)) {
if (key === avalue.name) {
aliasKey.push(akey);
break;
}
}
}
aliasKey.forEach(x => this.#setKey(argv, x.split('.'), value));
}
#setKey(obj, keys, value) {
let o = obj;
for (let i = 0; i < keys.length-1; i++) {
let key = keys[i];
if (key === '__proto__') return;
if (o[key] === undefined) o[key] = {};
if (o[key] === Object.prototype || o[key] === Number.prototype
|| o[key] === String.prototype) o[key] = {};
if (o[key] === Array.prototype) o[key] = [];
o = o[key];
}
let key = keys[keys.length - 1];
if (key === '__proto__') return;
if (o === Object.prototype || o === Number.prototype
|| o === String.prototype) o = {};
if (o === Array.prototype) o = [];
if (o[key] === undefined) {
o[key] = value;
}
else if (Array.isArray(o[key])) {
o[key].push(value);
}
else {
o[key] = [ o[key], value ];
}
}
#parseArgv() {
let aliases=this.#aliases, args = this.args;
let argv = {};
for (let i = 0; i < args.length; i++) {
let arg = args[i];
if (/^--.+/.test(arg)) {
let key = arg.match(/^--(.+)/)[1];
let next = args[i + 1];
if (next !== undefined && !/^-/.test(next)) {
this.#setArg(key, next, argv);
i++;
}
else if (/^(true|false)$/.test(next)) {
this.#setArg(key, next === 'true', argv);
i++;
}
else {
this.#setArg(key, true, argv);
}
}
else if (/^-[^-]+/.test(arg)) {
let key = arg.slice(-1)[0];
if (key !== '-') {
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])) {
this.#setArg(key, args[i+1], argv);
i++;
}
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
this.#setArg(key, args[i+1] === 'true', argv);
i++;
}
else {
this.#setArg(key, true, argv);
}
}
}
else {
console.warn("Unknow CLI options:", arg);
}
}
this.#argv = argv;
return argv;
}
}
module.exports = new CLIArgParser(process.argv.slice(2)); | javascript |
<filename>src/test-variations/test-variations.service.spec.ts<gh_stars>0
import { Test, TestingModule } from '@nestjs/testing';
import { TestVariationsService } from './test-variations.service';
import { PrismaService } from '../prisma/prisma.service';
import { CreateTestRequestDto } from '../test-runs/dto/create-test-request.dto';
import { StaticService } from '../shared/static/static.service';
import { IgnoreAreaDto } from '../test-runs/dto/ignore-area.dto';
import { TestVariation, Baseline, Project, Build, TestRun } from '@prisma/client';
import { CommentDto } from '../shared/dto/comment.dto';
import { convertBaselineDataToQuery } from '../shared/dto/baseline-data.dto';
import { PNG } from 'pngjs';
import { BuildsService } from '../builds/builds.service';
import { TestRunsService } from '../test-runs/test-runs.service';
const initModule = async ({
imageDeleteMock = jest.fn(),
getImageMock = jest.fn(),
variationfindUniqueMock = jest.fn,
variationFindManyMock = jest.fn().mockReturnValue([]),
variationCreateMock = jest.fn(),
variationUpdateMock = jest.fn(),
variationDeleteMock = jest.fn(),
baselineDeleteMock = jest.fn(),
projectFindUniqueMock = jest.fn(),
buildCreateMock = jest.fn(),
buildUpdateMock = jest.fn(),
testRunCreateMock = jest.fn(),
testRunFindMany = jest.fn(),
testRunDeleteMock = jest.fn(),
$executeRawMock = jest.fn(),
}) => {
const module: TestingModule = await Test.createTestingModule({
providers: [
TestVariationsService,
{
provide: StaticService,
useValue: {
getImage: getImageMock,
deleteImage: imageDeleteMock,
},
},
{
provide: BuildsService,
useValue: {
create: buildCreateMock,
update: buildUpdateMock,
},
},
{
provide: TestRunsService,
useValue: {
delete: testRunDeleteMock,
create: testRunCreateMock,
},
},
{
provide: PrismaService,
useValue: {
$executeRaw: $executeRawMock,
testVariation: {
findUnique: variationfindUniqueMock,
findMany: variationFindManyMock,
create: variationCreateMock,
update: variationUpdateMock,
delete: variationDeleteMock,
},
baseline: {
delete: baselineDeleteMock,
},
project: {
findUnique: projectFindUniqueMock,
},
testRun: {
findMany: testRunFindMany,
},
},
},
],
}).compile();
return module.get<TestVariationsService>(TestVariationsService);
};
describe('TestVariationsService', () => {
let service: TestVariationsService;
describe('getDetails', () => {
it('can find one', async () => {
const id = 'test id';
const variationfindUniqueMock = jest.fn();
service = await initModule({ variationfindUniqueMock });
await service.getDetails(id);
expect(variationfindUniqueMock).toHaveBeenCalledWith({
where: { id },
include: {
baselines: {
include: {
testRun: true,
},
orderBy: {
createdAt: 'desc',
},
},
},
});
});
});
describe('findOrCreate', () => {
const projectMock: Project = {
id: '12',
name: 'Project',
buildsCounter: 0,
mainBranchName: 'master',
createdAt: new Date(),
updatedAt: new Date(),
};
it('can find by main branch', async () => {
const createRequest: CreateTestRequestDto = {
buildId: 'buildId',
projectId: projectMock.id,
name: '<NAME>',
imageBase64: 'Image',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
branchName: 'develop',
};
const variationMock: TestVariation = {
id: '123',
projectId: projectMock.id,
name: '<NAME>',
baselineName: 'baselineName',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
branchName: 'develop',
createdAt: new Date(),
updatedAt: new Date(),
};
const variationFindManyMock = jest.fn().mockResolvedValueOnce([variationMock]).mockResolvedValueOnce([undefined]);
const projectFindUniqueMock = jest.fn().mockReturnValueOnce(projectMock);
service = await initModule({ variationFindManyMock, projectFindUniqueMock });
const result = await service.findOrCreate(createRequest.projectId, convertBaselineDataToQuery(createRequest));
expect(projectFindUniqueMock).toHaveBeenCalledWith({ where: { id: createRequest.projectId } });
expect(variationFindManyMock).toHaveBeenNthCalledWith(1, {
where: {
name: createRequest.name,
projectId: createRequest.projectId,
os: createRequest.os,
browser: createRequest.browser,
viewport: createRequest.viewport,
device: createRequest.device,
branchName: projectMock.mainBranchName,
},
});
expect(variationFindManyMock).toHaveBeenNthCalledWith(2, {
where: {
name: createRequest.name,
projectId: createRequest.projectId,
os: createRequest.os,
browser: createRequest.browser,
viewport: createRequest.viewport,
device: createRequest.device,
branchName: createRequest.branchName,
},
});
expect(result).toBe(variationMock);
});
it('can find by current branch', async () => {
const createRequest: CreateTestRequestDto = {
buildId: 'buildId',
projectId: projectMock.id,
name: '<NAME>',
imageBase64: 'Image',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
branchName: 'develop',
};
const variationMock: TestVariation = {
id: '123',
projectId: projectMock.id,
name: '<NAME>',
baselineName: 'baselineName',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
branchName: 'develop',
createdAt: new Date(),
updatedAt: new Date(),
};
const variationFindManyMock = jest.fn().mockResolvedValueOnce([undefined]).mockResolvedValueOnce([variationMock]);
const projectFindUniqueMock = jest.fn().mockReturnValueOnce(projectMock);
service = await initModule({ variationFindManyMock, projectFindUniqueMock });
const result = await service.findOrCreate(createRequest.projectId, convertBaselineDataToQuery(createRequest));
expect(projectFindUniqueMock).toHaveBeenCalledWith({ where: { id: createRequest.projectId } });
expect(variationFindManyMock).toHaveBeenNthCalledWith(1, {
where: {
name: createRequest.name,
projectId: createRequest.projectId,
os: createRequest.os,
browser: createRequest.browser,
viewport: createRequest.viewport,
device: createRequest.device,
branchName: projectMock.mainBranchName,
},
});
expect(variationFindManyMock).toHaveBeenNthCalledWith(2, {
where: {
name: createRequest.name,
projectId: createRequest.projectId,
os: createRequest.os,
browser: createRequest.browser,
viewport: createRequest.viewport,
device: createRequest.device,
branchName: createRequest.branchName,
},
});
expect(result).toBe(variationMock);
});
it('can create if not found', async () => {
const createRequest: CreateTestRequestDto = {
buildId: 'buildId',
projectId: projectMock.id,
name: '<NAME>',
imageBase64: 'Image',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
branchName: 'develop',
};
const variationFindManyMock = jest.fn().mockResolvedValueOnce([undefined]).mockResolvedValueOnce([undefined]);
const projectFindUniqueMock = jest.fn().mockReturnValueOnce(projectMock);
const variationCreateMock = jest.fn();
service = await initModule({ variationFindManyMock, projectFindUniqueMock, variationCreateMock });
await service.findOrCreate(createRequest.projectId, convertBaselineDataToQuery(createRequest));
expect(variationCreateMock).toHaveBeenCalledWith({
data: {
name: createRequest.name,
os: createRequest.os,
browser: createRequest.browser,
viewport: createRequest.viewport,
device: createRequest.device,
branchName: createRequest.branchName,
project: {
connect: {
id: createRequest.projectId,
},
},
},
});
});
});
describe('updateIgnoreAreas', () => {
it('can update', async () => {
const id = 'test id';
const ignoreAreas: IgnoreAreaDto[] = [
{
x: 1,
y: 2.3,
width: 442.1,
height: 32.0,
},
];
const variationUpdateMock = jest.fn();
service = await initModule({ variationUpdateMock });
await service.updateIgnoreAreas(id, ignoreAreas);
expect(variationUpdateMock).toBeCalledWith({
where: {
id,
},
data: {
ignoreAreas: JSON.stringify(ignoreAreas),
},
});
});
});
it('updateComment', async () => {
const id = 'some id';
const commentDto: CommentDto = {
comment: 'random comment',
};
const variationUpdateMock = jest.fn();
service = await initModule({
variationUpdateMock,
});
await service.updateComment(id, commentDto);
expect(variationUpdateMock).toHaveBeenCalledWith({
where: { id },
data: {
comment: commentDto.comment,
},
});
});
it('merge', async () => {
const mergedBranch = 'develop';
const project: Project = {
id: 'some id',
buildsCounter: 0,
name: 'some name',
mainBranchName: 'master',
updatedAt: new Date(),
createdAt: new Date(),
};
const build: Build = {
id: 'a9385fc1-884d-4f9f-915e-40da0e7773d5',
ciBuildId: 'ciBuildId',
number: null,
branchName: project.mainBranchName,
status: null,
projectId: project.id,
updatedAt: new Date(),
createdAt: new Date(),
userId: null,
isRunning: true,
};
const testVariation: TestVariation = {
id: '123',
projectId: project.id,
name: 'Test name',
baselineName: 'baselineName',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
createdAt: new Date(),
updatedAt: new Date(),
branchName: mergedBranch,
};
const testVariationSecond: TestVariation = {
id: '123',
projectId: project.id,
name: 'Test name second',
baselineName: 'baselineName',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
createdAt: new Date(),
updatedAt: new Date(),
branchName: mergedBranch,
};
const testVariationNoBaseline: TestVariation = {
id: '123',
projectId: project.id,
name: 'Test name',
baselineName: null,
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
createdAt: new Date(),
updatedAt: new Date(),
branchName: mergedBranch,
};
const testVariationMainBranch: TestVariation = {
id: '123',
projectId: project.id,
name: '<NAME>',
baselineName: 'baselineName',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
createdAt: new Date(),
updatedAt: new Date(),
branchName: project.mainBranchName,
};
const projectFindUniqueMock = jest.fn().mockResolvedValueOnce(project);
const buildCreateMock = jest.fn().mockResolvedValueOnce(build);
const variationFindManyMock = jest
.fn()
.mockResolvedValueOnce([testVariation, testVariationSecond, testVariationNoBaseline]);
const image = new PNG({
width: 10,
height: 10,
});
const getImageMock = jest.fn().mockReturnValueOnce(image).mockReturnValueOnce(image).mockReturnValueOnce(null);
const findOrCreateMock = jest
.fn()
.mockResolvedValueOnce(testVariationMainBranch)
.mockResolvedValueOnce(testVariationMainBranch);
const testRunCreateMock = jest.fn();
const buildUpdateMock = jest.fn();
const service = await initModule({
projectFindUniqueMock,
buildCreateMock,
buildUpdateMock,
testRunCreateMock,
variationFindManyMock,
getImageMock,
});
service.findOrCreate = findOrCreateMock;
await service.merge(project.id, mergedBranch);
expect(projectFindUniqueMock).toHaveBeenCalledWith({ where: { id: project.id } });
expect(buildCreateMock).toHaveBeenCalledWith({
branchName: project.mainBranchName,
project: project.id,
});
expect(variationFindManyMock).toHaveBeenCalledWith({
where: { projectId: project.id, branchName: mergedBranch },
});
expect(getImageMock).toHaveBeenCalledWith(testVariation.baselineName);
expect(service.findOrCreate).toHaveBeenCalledWith(project.id, {
name: testVariation.name,
os: testVariation.os,
device: testVariation.device,
browser: testVariation.browser,
viewport: testVariation.viewport,
branchName: project.mainBranchName,
});
await new Promise((r) => setTimeout(r, 1));
expect(testRunCreateMock).toHaveBeenNthCalledWith(1, testVariationMainBranch, {
...testVariation,
buildId: build.id,
imageBase64: PNG.sync.write(image).toString('base64'),
diffTollerancePercent: 0,
merge: true,
ignoreAreas: JSON.parse(testVariation.ignoreAreas),
});
expect(testRunCreateMock).toHaveBeenNthCalledWith(2, testVariationMainBranch, {
...testVariationSecond,
buildId: build.id,
imageBase64: PNG.sync.write(image).toString('base64'),
diffTollerancePercent: 0,
merge: true,
ignoreAreas: JSON.parse(testVariationSecond.ignoreAreas),
});
expect(testRunCreateMock).toHaveBeenCalledTimes(2);
expect(buildUpdateMock).toHaveBeenCalledWith(build.id, { isRunning: false });
});
it('delete', async () => {
const testRunId = 'test run id';
const testVariationId = 'test variation id';
const variation: TestVariation & {
baselines: Baseline[];
} = {
id: testVariationId,
projectId: 'project Id',
name: '<NAME>',
baselineName: 'baselineName',
os: 'OS',
browser: 'browser',
viewport: 'viewport',
device: 'device',
ignoreAreas: '[]',
comment: 'some comment',
branchName: 'develop',
createdAt: new Date(),
updatedAt: new Date(),
baselines: [
{
id: 'baseline id 1',
baselineName: 'image name 1',
testVariationId: testVariationId,
testRunId: 'test run id 1',
createdAt: new Date(),
updatedAt: new Date(),
},
],
};
const $executeRawMock = jest.fn();
const variationDeleteMock = jest.fn();
const getDetailsMock = jest.fn().mockResolvedValueOnce(variation);
const deleteBaselineMock = jest.fn().mockResolvedValueOnce(variation.baselines[0]);
const service = await initModule({
variationDeleteMock,
$executeRawMock,
});
service.getDetails = getDetailsMock;
service.deleteBaseline = deleteBaselineMock;
await service.delete(testVariationId);
expect(service.getDetails).toHaveBeenCalledWith(testVariationId);
expect(service.deleteBaseline).toHaveBeenCalledWith(variation.baselines[0]);
expect($executeRawMock).toHaveBeenCalled();
expect(variationDeleteMock).toHaveBeenCalledWith({
where: { id: testVariationId },
});
});
it('deleteBaseline', async () => {
const baseline: Baseline = {
id: 'baseline id 1',
baselineName: 'image name 1',
testVariationId: 'test variation id',
testRunId: 'test run id 1',
createdAt: new Date(),
updatedAt: new Date(),
};
const baselineDeleteMock = jest.fn();
const imageDeleteMock = jest.fn();
const service = await initModule({
baselineDeleteMock,
imageDeleteMock,
});
await service.deleteBaseline(baseline);
expect(imageDeleteMock).toHaveBeenCalledWith(baseline.baselineName);
expect(baselineDeleteMock).toHaveBeenCalledWith({
where: { id: baseline.id },
});
});
});
| typescript |
{
"vorgangId": "74055",
"VORGANG": {
"WAHLPERIODE": "18",
"VORGANGSTYP": "Schriftliche Frage",
"TITEL": "Ausnahmegenehmigungen für zunächst ausgemusterte Bewerber bei der Bundeswehr",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "18/7985",
"DRS_TYP": "Schriftliche Fragen",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/079/1807985.pdf"
},
"EU_DOK_NR": "",
"SCHLAGWORT": [
{
"_fundstelle": "true",
"__cdata": "Bundeswehr"
},
{
"_fundstelle": "true",
"__cdata": "Musterung"
},
"Personalbeschaffung",
"Wehrdienst"
],
"ABSTRAKT": "Originaltext der Frage(n): \r\n \r\nWie viele nachträgliche Ausnahmegenehmigungen für zunächst ausgemusterte Bewerberinnen und Bewerber für die Bundeswehr wurden seit der Aussetzung der Wehrpflicht erteilt (bitte in absoluten Zahlen und nach dem Anteil positiv entschiedener Ausnahmegenehmigungen pro Jahr auflisten), und welche aktuellen Pläne verfolgt die Bundesregierung im Hinblick auf eine etwaige weitere Lockerung der Tauglichkeitskriterien zum Zweck von erleichterten Personalrekrutierungsmöglichkeiten (vgl. Berliner Zeitung vom 29. Februar 2016, S. 4)?"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BT",
"URHEBER": "Schriftliche Frage/Schriftliche Antwort ",
"FUNDSTELLE": "24.03.2016 - BT-Drucksache 18/7985, Nr. 38",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/079/1807985.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Katrin",
"NACHNAME": "Kunert",
"FUNKTION": "MdB",
"FRAKTION": "DIE LINKE",
"AKTIVITAETSART": "Frage"
},
{
"VORNAME": "Markus",
"NACHNAME": "Grübel",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium der Verteidigung",
"AKTIVITAETSART": "Antwort"
}
]
}
}
}
| json |
/*
* Copyright 2006-2007 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.batch.item.file.separator;
import org.springframework.util.StringUtils;
/**
* A {@link RecordSeparatorPolicy} that treats all lines as record endings, as
* long as they do not have unterminated quotes, and do not end in a
* continuation marker.
*
* @author <NAME>
*
*/
public class DefaultRecordSeparatorPolicy extends SimpleRecordSeparatorPolicy {
private static final String QUOTE = "\"";
private static final String CONTINUATION = "\\";
private String quoteCharacter = QUOTE;
private String continuation = CONTINUATION;
/**
* Default constructor.
*/
public DefaultRecordSeparatorPolicy() {
this(QUOTE, CONTINUATION);
}
/**
* Convenient constructor with quote character as parameter.
*
* @param quoteCharacter value used to indicate a quoted string
*/
public DefaultRecordSeparatorPolicy(String quoteCharacter) {
this(quoteCharacter, CONTINUATION);
}
/**
* Convenient constructor with quote character and continuation marker as
* parameters.
*
* @param quoteCharacter value used to indicate a quoted string
* @param continuation value used to indicate a line continuation
*/
public DefaultRecordSeparatorPolicy(String quoteCharacter, String continuation) {
super();
this.continuation = continuation;
this.quoteCharacter = quoteCharacter;
}
/**
* Public setter for the quoteCharacter. Defaults to double quote mark.
*
* @param quoteCharacter the quoteCharacter to set
*/
public void setQuoteCharacter(String quoteCharacter) {
this.quoteCharacter = quoteCharacter;
}
/**
* Public setter for the continuation. Defaults to back slash.
*
* @param continuation the continuation to set
*/
public void setContinuation(String continuation) {
this.continuation = continuation;
}
/**
* Return true if the line does not have unterminated quotes (delimited by
* "), and does not end with a continuation marker ('\'). The test for the
* continuation marker ignores whitespace at the end of the line.
*
* @see org.springframework.batch.item.file.separator.RecordSeparatorPolicy#isEndOfRecord(java.lang.String)
*/
@Override
public boolean isEndOfRecord(String line) {
return !isQuoteUnterminated(line) && !isContinued(line);
}
/**
* If we are in an unterminated quote, add a line separator. Otherwise
* remove the continuation marker (plus whitespace at the end) if it is
* there.
*
* @see org.springframework.batch.item.file.separator.SimpleRecordSeparatorPolicy#preProcess(java.lang.String)
*/
@Override
public String preProcess(String line) {
if (isQuoteUnterminated(line)) {
return line + "\n";
}
if (isContinued(line)) {
return line.substring(0, line.lastIndexOf(continuation));
}
return line;
}
/**
* Determine if the current line (or buffered concatenation of lines)
* contains an unterminated quote, indicating that the record is continuing
* onto the next line.
*
* @param line
* @return
*/
private boolean isQuoteUnterminated(String line) {
return StringUtils.countOccurrencesOf(line, quoteCharacter) % 2 != 0;
}
/**
* Determine if the current line (or buffered concatenation of lines) ends
* with the continuation marker, indicating that the record is continuing
* onto the next line.
*
* @param line
* @return
*/
private boolean isContinued(String line) {
if (line == null) {
return false;
}
return line.trim().endsWith(continuation);
}
}
| java |
When Anthony Davis first made his way through the ranks, one thing stood out about him. Aside from him having the potential to be a generational talent in the NBA, his appearance was a major talking point.
During his lone season at Kentucky, all anyone could talk about was Anthony Davis and his unibrow. It's a look that you don't see very often, and the college star fully embraced it.
All these years later, AD has never shied away from "The Brow." It quickly became his nickname in the league. Now 10 years into his NBA career, the LA Lakers All-Star still sports the look that made him stand out. At this point, it's fair to assume that he is never going to get rid of it.
Like other top athletes, Anthony Davis tried to maximize his earning potential by building a brand outside of basketball. Right before he was drafted first overall by the New Orleans Pelicans in 2012, he decided to capitalize on his look.
In the weeks leading up to the draft, AD trademarked the phrases "raise the brow" and "fear the brow." He did this so that nobody could come along later and try to recreate his iconic look.
On top of trademarking the look, Davis has also done a great job marketing it. He has been in countless commercials where his unibrow is the focal point. One even involved James Harden putting on "The Brow" as a disguise.
In 2018, Davis decided to play a prank on the basketball community. He posted a video online of him shaving his unibrow that quickly went viral. It was later discovered that he did it as a joke for April Fool's Day.
Fans have their fun with "The Brow"
The craziest thing about Davis' adventure with this look is putting up with fan feedback. Many have poked fun at his unique appearance.
For what it's worth, some fans did buy into "The Brow" during the early years of his career. One crazy Pelicans fan even shaved his chest hair to match AD's unibrow.
Most of the time, basketball fans were targeting the unibrow to poke fun at the All-Star big man.
Aside from all the jokes at his iconic facial hair, Davis has carved out a successful career for himself in the NBA. He is an eight-time All-Star, one-time champion and four-time All-NBA selection and was named to the NBA's 75th Anniversary Team.
Check out all NBA Trade Deadline 2024 deals here as big moves are made!
| english |
Our editors will review what you’ve submitted and determine whether to revise the article.
- Related Topics:
yam, any of several plant species of the genus Dioscorea (family Dioscoreaceae) grown for their edible tubers. Yams are native to warmer regions of both hemispheres, and several species are cultivated as staple food crops in the tropics. In certain tropical cultures, notably in West Africa and New Guinea, the yam is the primary agricultural commodity and the focal point of elaborate rituals. Yams are consumed as cooked starchy vegetables. They are often boiled and then mashed into a sticky paste or dough, but they may also be fried, roasted, or baked in the manner of potatoes or sweet potatoes, which are unrelated.
Yam plants have thick tubers (generally a development of the base of the stem) which often have thick, almost barklike skin. The long, slender, annual, climbing stems bear lobed or entire leaves that are either alternate or opposite. The unisexual flowers are borne in long clusters. The flowers are generally small and individually inconspicuous though collectively showy. Each consists of a greenish bell-shaped or flat perianth of six pieces, enclosing six or fewer stamens in the male flowers and surmounting a three-celled three-winged ovary in the female flowers. The ovary ripens into a membranous capsule, bursting by three valves to liberate numerous flattish or globose seeds.
Yam flesh ranges in colour from white to yellow, pink, or purple and varies in taste from sweet to bitter to tasteless. Most yams contain an acrid principle that is dissipated in cooking. Indian yam (D. trifida) and winged, or water, yam (D. alata) are the edible species most widely diffused in tropical and subtropical countries. The tubers of D. alata sometimes weigh 45 kg (100 pounds). Guinea yam (D. rotundata) and yellow Guinea yam (D. cayenensis) are the main yam species grown in West Africa. Lesser yam (D. esculenta), grown on the subcontinent of India, in southern Vietnam, and on South Pacific islands, is one of the tastiest yams. Chinese yam (D. polystachya), also known as cinnamon vine, is widely cultivated in East Asia.
True yams are botanically distinct from the sweet potato (Ipomoea batatas), but moist-fleshed varieties of sweet potato are often called yams in the United States. The air-potato yam (D. bulbifera) is one of the few true yams cultivated for food in the United States.
| english |
<gh_stars>0
export interface UserResponse {
username: string;
} | typescript |
import { makeStyles } from '@mui/styles';
export const useStyles = makeStyles((theme) => ({
paper: {
width: '100%',
[theme.breakpoints.down('md')]: {
padding: 15,
},
[theme.breakpoints.up('md')]: {
padding: 20,
},
},
}));
| typescript |
<filename>README.md
# task-hero
> An online task management app. Built to help creatives stay organized in their usually frenzied daily schedule. Built with Javascript.
## Webpage View
> Home page
>

> App Page
>

> Credit Page
>

## Built With
* HTML5
* CSS3
* Bootstrap 5
* Javascript (ES6)
* Webpack 5
## Live Demo
* [taskHero](https://moreneecoder.github.io/task-hero/)
## Getting Started
To setup a local version of this project on your machine, follow the short simple steps below and you'll be all set in no time.
### Set up
* Open your terminal and navigate to the directory where you will like to clone this project into. E.g: `cd documents/projects`
* Run `git clone https://github.com/Moreneecoder/task-hero.git` to download this project into the directory you have selected.
* Run `npm install` to install all dependencies like Webpack and bootstrap
### Usage
* Navigate to the project's directory using the cd command.
* Run `npm start`. This will compile the project and open it up in your browser
To build/compile your javascript modules into a single source file with webpack:
* Run `npm run build`
### Tests
This project uses `Jest` for its unit testing. To run tests:
* Navigate to the project's root directory.
* Run `npm run test`. This will run your code against the project test suites.
## Authors
👤 **<NAME>**
- GitHub: [@moreenecoder](https://github.com/Moreneecoder)
- Twitter: [@mo_bello19](https://twitter.com/mo_bello19)
- LinkedIn: [<NAME>](https://linkedin.com/morenikeji-bello)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the [issues page](issues/).
## Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
[Microverse](https://microverse.org)
## 📝 License
This project is [MIT](./LICENSE) licensed.
| markdown |
<filename>src/router.js
import VueRouter from 'vue-router'
import HomeContainer from './components/tabber/HomeContainer.vue'
import MemberContainer from './components/tabber/MemberContainer.vue'
import CartContainer from './components/tabber/CartContainer.vue'
import SearchContainer from './components/tabber/SearchContainer.vue'
import NewsListContainer from './components/news/NewsList.vue'
import NewsInfoContainer from './components/news/NewsInfo.vue'
import PhotoLists from './components/photos/photolists.vue'
import PhotoInfo from './components/photos/photoinfo.vue'
import GoodsLists from './components/goods/goodslist.vue'
import GoodsInfo from './components/goods/goodinfo.vue'
import GoodsDesc from './components/goods/goodsdesc.vue'
import GoodsCommnet from './components/goods/goodscomment.vue'
var router=new VueRouter({
routes:[
{path:'/',redirect:'/home'},
{path:'/home',component:HomeContainer },
{path:'/member',component:MemberContainer },
{path:'/cart',component:CartContainer },
{path:'/search',component:SearchContainer },
{path:'/home/newsList',component:NewsListContainer },
{path:'/home/newsList/:id',component:NewsInfoContainer },
{path:'/home/photoLists',component:PhotoLists },
{path:'/home/photoInfo/:id',component:PhotoInfo },
{path:'/home/goodsLists',component:GoodsLists },
{path:'/home/goodsInfo/:id',component:GoodsInfo },
{path:'/home/goodsdesc/:id',component:GoodsDesc,name:'goodsdesc' },
{path:'/home/goodscomment/:id',component:GoodsCommnet,name:'goodscomment' },
],
linkActiveClass:'mui-active'
})
export default router; | javascript |
<reponame>hw3jung/Chanel
html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
min-width: 1024px;
}
body {
font-size: 0;
font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
margin: 0;
padding: 0;
min-width: 100%;
min-height: 100%;
height: 100%;
}
/*.container-fluid {
height: 100%;
padding:0;*/
#bodyContainer {
min-height: 100%;
position: relative;
margin: 0;
padding: 0;
overflow: hidden;
font-size: 14px;
}
div.body {
height: 87.4%;
padding: 0 20px 68px 20px; /* 86px bottom is 36px (footer) + 50px (for whitespace cushion) */
text-align: center;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
form, fieldset {
margin: 0;
padding: 0;
}
fieldset {
border: none;
}
/* site title
----------------------------------------------------------*/
.site-title {
color: #c8c8c8;
font-family: Rockwell, Consolas, "Courier New", Courier, monospace;
font-size: 2.3em;
margin: 0;
}
.site-title a, .site-title a:hover, .site-title a:active {
background: none;
color: #c8c8c8;
outline: none;
text-decoration: none;
}
/* login
----------------------------------------------------------*/
#login {
display: block;
font-size: .85em;
text-align: right;
color: #FFF;
}
#login a {
margin-left: 0px;
margin-right: 10px;
padding: 2px 3px;
text-decoration: none;
color:#D5E5EB;
}
#login a.username {
background: none;
margin: 0;
padding: 0;
text-decoration: underline;
}
#login ul {
margin: 0;
}
#login li {
display: inline;
list-style: none;
}
#loginHome {
text-align: right;
padding-top: 13px;
padding-right: 6px;
height: 37px;
}
#userGreeting {
display: inline-block;
margin-right: 2px;
}
#logoutForm {
display: inline-block;
}
input, textarea {
border: 1px solid #e2e2e2;
background: #fff;
color: #333;
font-size: 1.2em;
margin: 5px 0 6px 0;
padding: 5px;
}
textarea {
font-family: inherit;
}
input:focus, textarea:focus {
border: 1px solid #7ac0da;
}
input[type="checkbox"] {
background: transparent;
border: inherit;
width: auto;
}
input[type="submit"],
input[type="button"],
button {
background-color: #d3dce0;
cursor: pointer;
font-size: 1.2em;
font-weight: 600;
padding: 7px;
margin-right: 8px;
width: auto;
}
td input[type="submit"],
td input[type="button"],
td button {
font-size: 1em;
padding: 4px;
margin-right: 4px;
}
input[type="radio"] {
border: 0px !important;
}
/* info and errors */
.message-info {
border: 1px solid;
clear: both;
padding: 10px 20px;
}
.message-error {
clear: both;
color: #e80c4d;
font-size: 1.1em;
font-weight: bold;
margin: 20px 0 10px 0;
}
.message-success {
color: #7ac0da;
font-size: 1.3em;
font-weight: bold;
margin: 20px 0 10px 0;
}
.error {
color: #e80c4d;
}
/* styles for validation helpers */
.field-validation-error {
color: #e80c4d;
font-weight: bold;
}
.field-validation-valid {
display: none;
}
input.input-validation-error {
border: 1px solid #e80c4d;
}
input[type="checkbox"].input-validation-error {
border: 0 none;
}
.validation-summary-errors {
color: #e80c4d;
font-weight: bold;
font-size: 1.1em;
}
.validation-summary-valid {
display: none;
}
/* tables
----------------------------------------------------------*/
table {
border-collapse: collapse;
border-spacing: 0;
margin-top: 0.75em;
border: 0 none;
}
th {
font-size: 1.2em;
text-align: left;
border: none 0px;
padding-left: 0;
}
th a {
display: block;
position: relative;
}
th a:link, th a:visited, th a:active, th a:hover {
color: #333;
font-weight: 600;
text-decoration: none;
padding: 0;
}
th a:hover {
color: #000;
}
th.asc a, th.desc a {
margin-right: .75em;
}
th.asc a:after, th.desc a:after {
display: block;
position: absolute;
right: 0em;
top: 0;
font-size: 0.75em;
}
th.asc a:after {
content: '▲';
}
th.desc a:after {
content: '▼';
}
td {
padding: 0.25em 2em 0.25em 0em;
border: 0 none;
}
tr.pager td {
padding: 0 0.25em 0 0;
}
/******************************************************************/
/***************************** header *****************************/
/******************************************************************/
header {
float: left;
width: 200px;
margin-top: 10px;
margin-left: 7px;
}
.header-wrapper {
float: left;
height:60px;
background-color:#676767;
width:100%;
padding-top:4px;
border-bottom:2px solid #c8c8c8;
}
/******************************************************************/
/***************************** footer *****************************/
/******************************************************************/
footer{
position: absolute;
height: 22px;
bottom: 0;
width: 100%;
padding: 7px 0;
color: #666;
font-size: 16px;
background-color: rgba(0, 12, 0, 0.7);
}
#footerContent {
text-align: center;
margin: 0;
}
#footerContent .footer-link{
display: inline-block;
margin: 0 10px;
padding: 0 10px;
color: #D5E5EB;
}
footer a:link, footer a:active, footer a:visited{
font: 16px calibri;
color: #fff;
text-decoration: none;
}
footer a:hover {
font: 16px calibri;
color: #36a9e1;
text-decoration: none;
}
/*-------------------------------------------------------------
String-related
-------------------------------------------------------------*/
.Truncate {
white-space: nowrap;
text-overflow: ellipsis;
}
.One-line {
overflow: hidden;
}
.Block {
display: block;
}
.Hide {
display: none;
}
/*-------------------------------------------------------------
Bookspade Miscelleneous Styles
-------------------------------------------------------------*/
h1 {
font-family: Calibri;
}
.bs-divider-horizontal {
border-top: 1px solid #ccc;
text-align: left;
}
.bs-divider-vertical {
border-left: 1px solid #ccc;
text-align: left;
}
/*-------------------------------------------------------------
BookSpade Button Styles
-------------------------------------------------------------*/
.blue-button,
.green-button,
.red-button,
.grey-button {
border: none;
border-radius: 5px;
text-align: center;
color: #fff;
font-family: calibri;
text-decoration: none;
cursor: pointer;
font-weight: normal;
}
.blue-button {
background: #3299BB;
}
.green-button {
background: #6BC257;
}
.red-button {
background: #D5402B;
}
.grey-button {
background: #ccc;
}
.blue-button:hover {
background: #36a9e1;
}
.green-button:hover {
background: #36a049;
}
.red-button:hover {
background: #D50707;
}
.grey-button:hover {
background: #bbb;
}
/*-------------------------------------------------------------
BookSpade Error Styles
-------------------------------------------------------------*/
.error {
color: #fff;
}
| css |
87. 58m on August 7, 2021. These are not just numbers. The numbers India will never forget as finally, India won a track and field medal. It took an agonising 121 years to break India’s Olympics jinx in athletics. And it was a gold medal thanks to Neeraj Chopra, the handsome Haryanvi from Panipat.
As Chopra’s Valhalla javelin flew, over a billion Indians anxiously waited with prayer on their lips. The score was 87. 58 metres in Chopra’s first attempt. When an athletics bronze medal would have been just fine, Chopra dreamed of gold. He knew he had struck gold the moment he released the javelin the first time. And Chopra did not break any record, he created one.
After heartbreaks in 1960 Rome and 1984 Los Angeles where Milkha Singh, PT Usha missed track and field medals by a whisker, the onus fell on the shoulders of Chopra’s shoulders. He dared to dream big.
Vetter had claimed Chopra won’t be able to beat him in Olympics as throwing 90m was like riding a bike in a park for him. But the German giant got eliminated on the D-day. The young Chopra who didn’t look the part of a smiling assassin had the last laugh. August 7 was Neeraj Chopra’s day, a date he now owns. Chopra did not have to do better than Vetter and the world’s best javelin thrower returned home without winning an Olympic medal.
The Panipat boy was destined to script history. Chopra is only the second Indian ever after shooter Abhinav Bindra to win an individual gold medal, and the first Indian since independence to win an athletics medal at the Olympics.
The golden moment that followed the hockey bronze is a genuinely historic moment in Indian sport.
What Chopra achieved on Saturday evening is nothing less than India’s Yuri Gagarin moment or call it India’s moon landing moment. Chopra is both Gagarin and Neil Armstrong of Indian sports. The Indian flag will now fly high in world athletics, the core of all Olympics disciplines. Chopra’s golden act propelled India to its best-ever Olympic tally of seven medals, one up on six in the London Games in 2012.
The Tokyo performance has made India believe in itself and dream big. India will no longer be content with a bronze or silver medal; young India doesn’t want to be a quitter anymore.
Now begins the time to start the hard work to build on Tokyo’s performance. As the new India cannot be content with seven Olympic medals. It cannot be left to Odisha alone to spend crores on hockey. Sports promoters have a duty to look beyond cricket.
Read all the Latest News, Breaking News and Coronavirus News here. | english |
MCC is expected to declare NEET 2022 round 2 seat allotment result on November 14 on mcc. nic. in.
NEET Round 2 Seat Allotment Result 2022: Medical Counselling Committee (MCC) has released the NEET 2022 round 2 provisional seat allotment result today, November 14. Candidates can go to mcc. nic. in to check seat allotment results. NEET round 2 seat allotment result live updates.
Previously, NEET round 2 allotment result was scheduled to be announced on November 11 but on the same day, MCC released a notification saying it has been postponed. As per the revised schedule for the second round of MCC counselling, NEET seat allotment result will be published either on November 14 or on November 15.
After announcement of result, candidates can start reporting for admissions on the same day.
NEET round 2 counselling process was rescheduled following a court order and in view of representations made by candidates to MCC.
MCC NEET UG counselling is held for 15% all India quota MBBS and BDS seats, seats of central and deemed universities, among others. | english |
<gh_stars>1-10
version https://git-lfs.github.com/spec/v1
oid sha256:842907bed255c39e958be57849747c5537510eb93febe55ae0af002fd7237fc9
size 477
| json |
If you're in need of some options buying and selling strategies to offer you a boost in the enterprise, you are at the appropriate place. In this article, you're going to get some ideas on how one can enhance your revenue with the stock choices. So, check out what you are going to get below.
What is Pligg?
Pligg is an open source content management system that lets you easily create your own user-powered website.
| english |
<reponame>Rathod-Sahaab/Rathod-Sahaab.github.io<gh_stars>1-10
.footer {
max-width: 1140px;
padding: 1.5em;
margin: auto;
text-align: center;
margin-top: 3em;
}
| css |
<reponame>cyco130/rakkasjs<gh_stars>0
import { Plugin } from "vite";
export function virtualClientEntry(): Plugin {
return {
name: "rakkasjs:client-entry",
enforce: "pre",
resolveId(id) {
if (id === "/virtual:rakkasjs:client-entry") {
return "virtual:rakkasjs:client-entry";
}
},
async load(id) {
if (id === "virtual:rakkasjs:client-entry") {
return `import "rakkasjs/runtime/client-entry"`;
}
},
};
}
| typescript |
---
_id: 5a88e1afbd6dca0d5f0d2ff4
title: "DrawingBoard2 - A .Net GDI+ drawing component"
url: 'http://channel9.msdn.com/coding4fun/blog/DrawingBoard2-A-Net-GDI-drawing-component'
category: libraries-tools
slug: 'drawingboard2-a-net-gdi-drawing-component'
user_id: 5a83ce59d6eb0005c4ecda2c
username: 'bill-s'
createdOn: '2012-06-22T07:37:23.000Z'
tags: []
---
The second project in our Diagraming week is one that I've wanted to highlight for a while.
Imagine you need a diagramming, or drawing board, component in your app, kind of like a mini-Visio. Yet you also want to extend it, add to it (i.e. you want the source). You want something that is vector based, where you can diagram programmatically or your users can interactively and the diagrams can be serialized as binary or XML.
| markdown |
<filename>API_ERROR_LOGS/invalidpatchrequests.json
[{"LOG":"PATCH ROUTE Not Found [Invalid Request]","STATUS":400,"Message":"Please Visit localhost:5000/ For more info","time":"Logged @ 1/10/2021 @ 0:21:12"},{"LOG":"PATCH ROUTE Not Found [Invalid Request]","STATUS":400,"Message":"Please Visit localhost:5000/ For more info","time":"Logged @ 1/10/2021 @ 0:21:13"}] | json |
<reponame>elastic/enterprise-search-js
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you 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 { test, teardown, afterEach } from 'tap'
import { cleanup } from '../helper'
import { Client } from '../../..'
const url = process.env.ENTERPRISE_SEARCH_URL ?? 'http://localhost:3002'
const username = process.env.ELASTIC_ENTERPRISE_USER ?? 'elastic'
const password = process.env.ELASTIC_ENTERPRISE_PASSWORD ?? '<PASSWORD>'
teardown(cleanup)
afterEach(async () => {
const client = new Client({
url,
auth: { username, password }
})
const synonyms = await client.workplace.listSynonymSets()
for (const synonym of synonyms.results ?? []) {
await client.workplace.deleteSynonymSet({ synonym_set_id: synonym.id! })
}
await client.close()
})
test('creates a batch synonym set', async t => {
const client = new Client({
url,
auth: { username, password }
})
const response = await client.workplace.createBatchSynonymSets({
body: {
synonym_sets: [
{ synonyms: ['house', 'home', 'abode'] },
{ synonyms: ['cat', 'feline', 'kitty'] },
{ synonyms: ['mouses', 'mice'] }
]
}
})
t.equal(response.synonym_sets?.length, 3)
t.notOk(response.has_errors)
await client.close()
})
test('lists a synonym set', async t => {
const client = new Client({
url,
auth: { username, password }
})
await client.workplace.createBatchSynonymSets({
body: {
synonym_sets: [
{ synonyms: ['house', 'home', 'abode'] },
{ synonyms: ['cat', 'feline', 'kitty'] },
{ synonyms: ['mouses', 'mice'] }
]
}
})
const response = await client.workplace.listSynonymSets()
t.equal(response.results?.length, 3)
await client.close()
})
test('get a single synonym set', async t => {
const client = new Client({
url,
auth: { username, password }
})
const response = await client.workplace.createBatchSynonymSets({
body: {
synonym_sets: [
{ synonyms: ['house', 'home', 'abode'] },
{ synonyms: ['cat', 'feline', 'kitty'] },
{ synonyms: ['mouses', 'mice'] }
]
}
})
// @ts-expect-error
const synomym = await client.workplace.getSynonymSet({ synonym_set_id: response.synonym_sets[0].id! })
t.same(synomym.synonyms, ['house', 'home', 'abode'])
await client.close()
})
test('updates a single synonym set', async t => {
const client = new Client({
url,
auth: { username, password }
})
const response1 = await client.workplace.createBatchSynonymSets({
body: {
synonym_sets: [
{ synonyms: ['house', 'home', 'abode'] }
]
}
})
const response2 = await client.workplace.putSynonymSet({
// @ts-expect-error
synonym_set_id: response1.synonym_sets[0].id!,
body: {
synonyms: ['mouses', 'mice', 'luch']
}
})
// @ts-expect-error
t.equal(response2.id, response1.synonym_sets[0].id!)
// @ts-expect-error
const synomym = await client.workplace.getSynonymSet({ synonym_set_id: response1.synonym_sets[0].id! })
t.same(synomym.synonyms, ['mouses', 'mice', 'luch'])
await client.close()
})
| typescript |
var NISLFuzzingFunc = function() {
var d = d || {};
var a = this;
return a.onMouseUpGlobal.dispatch(a, d), a.onMouseOutGlobal.dispatch(a, d), a;
};
NISLFuzzingFunc();
| javascript |
{
"stfFile":"quest/force_sensitive/exit",
"entries": {
"final_fail":"You have failed the Mellichae encounter, you will be given the oppertunity to attempt it again in the near future.", "final_complete":"Congratulations, you have completed the Force sensitive quests! You are now qualified to begin the Jedi Padawan Trials.
", "exit_detail":"Defeat Mellichae at his camp.", "exit_sum":"Find Mellichae's camp.", "leave":"Well it appears you are busy, I will return later.", "old_man_exit":"Very well then %TT, I shall return another time!", "old_man_greeting":"%TT. It is good to see you again. I have some urgent news to share with you!", "taunt3":"%TT, You may have destroyed my power crystals, but now I will destroy you! SOLDIERS ATTACK!!!", "taunt2":"This cannot be! Soldiers protect Mellichae immediately!", "taunt1":"%TT, You shall pay for your tresspass here - SOLDIERS - defend the crystals! Let no one leave here alive."
}}
| json |
Posted On:
The Raksha Mantri Smt Nirmala Sitharaman presented the Raksha Mantri’s Trophy and citation for the Best Service Hospital in the Armed Forces Medical Services (AFMS) for the year 2017 to Command Hospital (Western Command), Chandimandir, here today.
Commandant of Command Hospital (Western Command), Chandimandir Major General RashmiDatta received the awards from the Raksha Mantri on behalf of the hospital. The Command Hospital (Southern Command), Pune was adjudged the Second Best Command Hospital. The Commandant of the Hospital Major General A Chakravarty received a trophy and a citation from the Raksha Mantri.
Speaking on the occasion, the Raksha Mantri Smt Sitharaman praised the yeoman service being rendered by the AFMS over the years both in war and peace. She complimented all members of both the award winning hospitals, and the entire AFMS for their excellent work in providing of contemporary and comprehensive healthcare.
Director General Armed Forces Medical Services (DGAFMS) Lt Gen Bipin Puri, highlighted the modernisation programme of the Medical Services and reassured that the AFMS is fully prepared to meet all challenges in operations, peace time and disaster relief/ humanitarian aid.
The Raksha Mantri's Trophy was instituted in 1989 to create a healthy competition among the Command Hospitals of the Army and its equivalent hospitals in the Navy and Air Force. The Best and Second Best hospital are adjudged on the basis of a number of objective criteria by a Committee headed by Director General (Org &Pers) with Joint Secretary (Navy), Ministry of Defence being a member of the Committee.
The function was attended by the Chief of the Army Staff General Bipin Rawat, Chief of the Naval Staff Admiral Sunil Lanba, Secretary, Department of Ex-Servicemen Welfare Smt SanjeevaneeKutty, Vice Chief of Air Staff Air Marshal SB Deo and other senior service and civilian officials.
| english |
Tonight's edition of SmackDown is a massive show on the Road to WrestleMania and WWE has added a couple of segments to the already stacked lineup.
Gunther is scheduled to put the Intercontinental Championship on the line against Sheamus and Drew McIntyre in a Triple Threat match at WWE WrestleMania 39 in Los Angeles. The Ring General defeated Sheamus in an incredible bout at Clash at the Castle last year but is in for his toughest challenge yet as Intercontinental Champion on the Grandest Stage of Them All.
The Celtic Warrior is one title away from becoming the company's first-ever Ultimate Grand Slam Champion, and McIntyre is highly motivated after losing his shot at the Undisputed WWE Universal Championship last year. Both of McIntyre's reigns with the WWE Championship were during the pandemic era. The 37-year-old will be looking for his WrestleMania moment with the fans at SoFi Stadium.
On tonight's episode of SmackDown, Gunther, Sheamus, and Drew McIntyre will sign a contract to make their Intercontinental Championship Triple Threat match official at this year's WrestleMania.
RAW star Kevin Owens will be bringing his popular talk show segment to the blue brand tonight in Las Vegas.
Sami Zayn will be a guest tonight on the KO Show as the two prepare for their Undisputed WWE Tag Team Championship match against The Usos at WrestleMania. Zayn has spent the past few weeks trying to get The Prizefighter to forgive him so they can team up and take down The Bloodline together.
With the help of The American Nightmare Cody Rhodes, the former best friends reunited and shared a hug on last week's edition of SmackDown. Cody will also be in action tonight against Imperium's Ludwig Kaiser. LA Knight versus Rey Mysterio, and The Judgment Day's Dominik have also been announced for tonight's show.
WrestleMania 39 is next weekend and tonight's show will likely increase the excitement for the company's biggest show of the year. It will be interesting to see if a brawl breaks out during the Contract Signing, or if The Bloodline interrupts tonight's special edition of the KO Show on SmackDown.
Which match are you looking forward to the most at WrestleMania 39? Do you think Kevin Owens and Sami Zayn should end The Usos' historic title reign? Sound off in the comments section below. | english |
Fears about money can make us feel hopeless. But what if you allowed your anxiety to move you closer to Jesus than you’ve ever been? This weeklong devotional, by Chris Hogan, explains how to trust God—whether you’re facing a personal financial crisis or a global one. Each day, meditate on Scripture that will transform your relationship with money and, more importantly, your heavenly Father.
4 Financial Lessons From Solomon (The Richest Man in History)
Money Date: Who's the Boss?
| english |
{
"name": "componentry",
"version": "3.4.1",
"description": "React component library for building custom design systems",
"sideEffects": false,
"main": "cjs/index.js",
"module": "esm/index.js",
"esnext": "esnext/index.js",
"types": "types/index.d.ts",
"keywords": [
"react",
"ui",
"component-library",
"design-system",
"accessible",
"tailwindcss"
],
"contributors": [
"<NAME> <<EMAIL>>",
"<NAME> <<EMAIL>>"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/crystal-ball/componentry.git"
},
"scripts": {
"commit": "cz",
"start": "start-storybook -p 6006",
"babel:watch": "BABEL_ENV=esmodules babel src --watch --out-dir es --ignore '**/*.spec.js'",
"test": "npm run test:lint && npm run test:types && npm run test:unit",
"test:lint": "NODE_ENV=test eslint --format=pretty .",
"test:types": "tsc",
"test:unit": "BABEL_ENV=test NODE_ENV=test jest",
"test:watch": "BABEL_ENV=test NODE_ENV=test JEST_NOTIFY=true jest --watch",
"type-check": "tsc --noEmit",
"type-check:watch": "tsc --noEmit --watch",
"format": "prettier --write . !CHANGELOG.md !coverage",
"prepublishOnly": "npm run clean && npm run compile && npm run types",
"postpublish": "npm run clean",
"compile": "npm run compile:commonjs && npm run compile:esmodules && npm run compile:esnext",
"compile:commonjs": "BABEL_ENV=commonjs babel src -x '.ts,.tsx' --out-dir cjs",
"compile:esmodules": "BABEL_ENV=esmodules babel src -x '.ts,.tsx' --out-dir esm",
"compile:esnext": "BABEL_ENV=esnext babel src -x '.ts,.tsx' --out-dir esnext",
"types": "tsc --project tsconfig.types.json",
"clean": "rm -rf cjs esm esnext types"
},
"peerDependencies": {
"react": ">=16.8"
},
"dependencies": {
"@babel/runtime": "7",
"clsx": "1",
"nanoid": "3"
},
"devDependencies": {
"@babel/cli": "7.15.7",
"@babel/core": "7.15.5",
"@babel/plugin-transform-modules-commonjs": "7.15.4",
"@babel/plugin-transform-runtime": "7.15.0",
"@babel/preset-typescript": "7.15.0",
"@crystal-ball/commitizen-base": "2.11.0",
"@crystal-ball/prettier-base": "2.9.0",
"@storybook/addon-essentials": "6.3.8",
"@storybook/addon-links": "6.3.8",
"@storybook/addons": "6.3.8",
"@storybook/builder-webpack5": "6.3.8",
"@storybook/manager-webpack5": "6.3.8",
"@storybook/react": "6.3.8",
"@storybook/theming": "6.3.8",
"@testing-library/dom": "8.7.1",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "12.1.1",
"@testing-library/react-hooks": "7.0.2",
"@testing-library/user-event": "13.2.1",
"@types/react": "17.0.26",
"@types/react-dom": "17.0.9",
"babel-loader": "8.2.2",
"babel-plugin-tester": "10.1.0",
"css-loader": "6.3.0",
"eslint-config-eloquence": "20.0.1",
"jest": "27.2.4",
"node-notifier": "10.0.0",
"prettier": "2.4.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"sass": "1.42.1",
"sass-loader": "12.1.0",
"style-loader": "3.3.0",
"typescript": "4.4.3",
"webpack": "5.55.1"
}
}
| json |
{
"name": "npmcard",
"version": "1.0.5",
"description": "Your NPM Business Card",
"main": "./src/index.js",
"bin": {
"npmcard": "./bin/index.js"
},
"scripts": {
"test": "standard"
},
"keywords": [
"businesscard",
"card",
"npx",
"terminal"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ovhemert/npmcard.git"
},
"author": "<NAME> <<EMAIL>> (https://ovhemert.dev)",
"license": "MIT",
"bugs": {
"url": "https://github.com/ovhemert/npmcard/issues"
},
"homepage": "https://github.com/ovhemert/npmcard#readme",
"devDependencies": {
"standard": "^14.3.1"
},
"dependencies": {
"boxen": "^4.2.0",
"chalk": "^3.0.0",
"columnify": "^1.5.4",
"npm-user": "^4.1.1"
}
}
| json |
<gh_stars>1-10
package domain;
import aima.search.framework.HeuristicFunction;
public class HeuristicMinCost implements HeuristicFunction {
public double getHeuristicValue(Object obj) {
State state = (State) obj;
return -state.getBenefits();
}
}
| java |
<gh_stars>0
html{ font-size: 100%; overflow-x: hidden; width: 100%; margin: 0px; padding: 0px; touch-action: manipulation; }
body{ font-size: 14px; font-family: 'Encode Sans Expanded', sans-serif; width: 100%; height: 100%; margin: 0; font-weight: 400;
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; word-wrap: break-word;
overflow-x: hidden; color: #333; }
h1, h2, h3, h4, h5, h6, p, a, ul, span, li, img, inpot, button{ margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6{ line-height: 1.5; font-weight: inherit; }
h1,h2,h3{ font-family: 'Encode Sans Expanded', sans-serif; }
p{ line-height: 1.7; font-size: 1.05em; font-weight: 400; color: #555; }
h1{ font-size: 4em; line-height: 1; }
h2{ font-size: 2em; line-height: 1.1; }
h3{ font-size: 1.7em; }
h4{ font-size: 1.3em; }
h5{ font-size: 1.1em; }
h6{ font-size: .85em; }
a, button{ display: inline-block; text-decoration: none; color: inherit; line-height: 1.3;
-webkit-transition: all .25s ease-in-out; transition: all .25s ease-in-out; }
a:focus, a:active, a:hover,
button:focus, button:active, button:hover,
a b.light-color:hover{ text-decoration: none; color: #F9B500; }
b{ font-weight: 700; }
img{ width: 100%; }
li{ list-style: none; display: inline-block; line-height: 1.6; font-size: .9em; }
span{ display: inline-block; }
button{ outline: 0; border: 0; background: none; cursor: pointer; }
.icon{ font-size: 1.1em; display: inline-block; line-height: inherit; }
[class^="icon-"]:before, [class*=" icon-"]:before{ line-height: inherit; }
b.max-bold{ font-weight: 700; }
input:focus,
textarea:focus{ outline-color: #F9B500; }
::placeholder { color: #ccc; }
:-ms-input-placeholder { color: #ccc; }
::-ms-input-placeholder { color: #ccc; }
a{
position: relative;
text-decoration: none;
transition: all .3s;
color:#343a40;
}
a:hover {
opacity: 0.6;
text-decoration: none;
}
.page {
min-height: 100vh;
background-color: #eff0f4;
}
.item {
margin-top: 40px;
}
.item:last-child {
margin-bottom: 50px;
}
.item_title {
font-size: 2rem;
margin-bottom: 40px;
}
.item_thumb {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 30%;
margin-right: 30px;
}
.item_content {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
display: flex;
max-width: 100%;
flex-direction: column;
align-content: space-between;
}
.item_description {
color: #A9A9A9;
}
.pagination-lg {
padding-top: 100px;
padding-bottom: 15px;
}
.pagination .page-item {
margin: 0 3px;
}
.page-item.active .page-link {
background-color: #F9B500;
border-color: #F9B500;
}
.page-item .page-link {
background-color: #eff0f4;
border-color: #eff0f4;
}
.page-link {
color: #000;
}
.item_title.item_title_full {
font-size: 3.2rem;
margin-bottom: 40px;
}
.img_full {
margin-top: 20px;
margin-bottom: 20px;
}
.small_full_text {
color: #A9A9A9;
}
| css |
<reponame>adamgilman/python-popular
{"generated_at": "2017-01-27T09:37:30.048562", "required_by": ["ocds-extension-tester"], "requires": [], "package": "json-merge-patch"} | json |
<gh_stars>0
<div class="leaf "><div class="inner justify"><p class="no-indent ">wishes to keep track of your progress. He will never
answer your letters, nor in the slightest particular take any notice of
them. He detests letter-writing and does not wish you to become a
burden. If any point should ever arise where an answer would seem to
be imperative--such as in the event of your being expelled, which I
trust will not occur--you may correspond with <NAME>, his
secretary. These monthly letters are absolutely obligatory on your
part; they are the only payment that <NAME> requires, so you must be
as punctilious in sending them as though it were a bill that you were
paying. I hope that they will always be respectful in tone and will
reflect credit on your training. You must remember that you are
writing to a Trustee of the John Grier Home.'</p><p class=" stretch-last-line ">Jerusha's eyes longingly sought the door. Her head was in a whirl of
excitement, and she wished only to escape from <NAME>'s
platitudes and think. She</p></div> </div> | html |
{"remainingRequest":"C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\src\\components\\tabs\\tabs.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\src\\components\\tabs\\tabs.vue","mtime":1579239113857},{"path":"C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\WeChain\\Documents\\Programs\\Vue\\vue-component\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KZXhwb3J0IGRlZmF1bHQgewogIG5hbWU6ICJ3LXRhYnMiLAogIHByb3BzOiB7CiAgICBkaXJlY3Rpb246IHsKICAgICAgdHlwZTogU3RyaW5nLAogICAgICBkZWZhdWx0OiAnaG9yaXpvbnRhbC<KEY>},{"version":3,"sources":["tabs.vue"],"names":[],"mappings":";;;;;;AAOA,eAAA;AACA,EAAA,IAAA,EAAA,QADA;AAEA,EAAA,KAAA,EAAA;AACA,IAAA,SAAA,EAAA;AACA,MAAA,IAAA,EAAA,MADA;AAEA,MAAA,OAAA,EAAA,YAFA;AAGA,MAAA,SAAA,EAAA,mBAAA,KAAA,EAAA;AACA,eAAA,IAAA;AACA;AALA;AADA,GAFA;AAWA,EAAA,OAAA,EAAA;AACA,IAAA,UADA,wBACA;AACA,WAAA,KAAA,CAAA,iBAAA;AACA;AAHA;AAXA,CAAA","sourcesContent":["<template>\r\n <div class=\"w-tabs\" @click=\"onSelected\">\r\n <slot></slot>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n export default {\r\n name: \"w-tabs\",\r\n props: {\r\n direction: {\r\n type: String,\r\n default: 'horizontal',\r\n validator: (value) => {\r\n return true;\r\n }\r\n }\r\n },\r\n methods: {\r\n onSelected() {\r\n this.$emit('update:selected');\r\n }\r\n }\r\n }\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>"],"sourceRoot":"src/components/tabs"}]} | json |
Dell's been touting the world's lightest Android phone since March, and today the little guy is officially hits the scene for $100 with a 2-year AT&T contract. Too bad its operating system is over a year behind.
The Aero used to be touted as the lightest Android phone yet, but has since been downgraded to "one of the lightest." Regardless of semantics my hands-on earlier this year there's no question that it's less heavy than most handsets out there.
Too bad it's running Android 1.5, then, an operating system that's been around since April 2009. And that there's no word yet on when—or if—we can expect a Froyo update.
It's especially a pity since there are genuinely some things here to like: 5MP camera with 8x zoom, up to 32GB microSD memory. Even the 624Mhz processor, while not as snazzy as a 1GHz Snapdragon, is nothing to be ashamed of in a $100 phone.
And that's really the crux of it: AT&T's got the $200 Samsung Captivate for anyone who wants a serious Android phone. And it's great that there's now an Android option at a lower price point. But if Dell could launch the Streak with Android 1.6, you'd hope they could have managed at least the same for their other smartphone.
· Dell's first U.S. smartphone, the Dell Aero, is available today in a polished graphite finish at Dell.com/mobile, by phone at 1-800-308-DELL, and coming soon to www.wireless.att.com. Dell Chat representatives are standing by 24 x 7 to answer Dell Aero related questions.
· The Dell Aero is available for $99.99 with new AT&T* two-year contract†, and $299.99 without.
Dell Aero, one of the lightest multi-touch 3.5-inch Google Android-based smartphones in the U.S., is designed to deliver a powerful, flexible, and entertaining experience in a stylish and compact design. Packed with today's popular features, the Dell Aero will ship with Quick Office, Facebook with integrated calendar and contacts, Twitter and additional applications by Google, including YouTube and Android Market.
Dell is a member of the Open Handset Alliance (OHA), a group of technology and mobile companies working to accelerate innovation in mobility. Together, the OHA created Android, the first complete, open and free mobile platform to provide people a rich, inexpensive and exceptional mobile experience.
DELL AERO FEATURES:
DELL AERO SPECIFICATIONS:
| english |
;
(function ($) {
var resourceSmartLoad = {
/**
* Is already initialized (for prevent repeated initializing)
*/
isInitialized: false,
/**
* Contain common function, helpers
*/
fn: {},
/**
* Options of extension (will be exported from server side).
* Null values will be replaced after initialization (on client).
*
* Contain following options:
* <ul>
* <li>{String} {@link extensionOptions.hashMethod}</li>
* <li>{Boolean} {@link extensionOptions.enableLog}</li>
* <li>{Boolean} {@link extensionOptions.activateOnAllPages}</li>
* <li>{String[]} {@link extensionOptions.alwaysReloadableResources}</li>
* </ul>
*
* @type {Object}
*/
extensionOptions: {
/**
* Current hashing method (for resource names)
* @type {String}
*/
hashMethod: null,
/**
* Types of resources, that will be tracked by current extension
* @type {String[]}
*/
resourceTypes: null,
/**
* Enable log of registered/disabled resources
* @type {Boolean}
*/
enableLog: null,
/**
* Activates "smart" disabling of resources on all pages
* @type {Boolean}
*/
activateOnAllPages: null,
/**
* List of resources, that always should be loaded on client.
* @type {String[]}
*/
alwaysReloadableResources: null
},
/**
* Resources, that already loaded on client
*
* @type {Object}
* @see getResourceByHash
* @see getResourcesHashList
* @see addResource
*/
resources: {},
/**
* Returns loaded resource with given hash
*
* @param {String} hash Hash of resource
* @returns {String|null} Resource identifier (for js/css files: name/url of file). Returns null if not found
* @see resources
*/
getResourceByHash: function (hash) {
var app = this;
return app.resources[hash] ? app.resources[hash] : null;
},
/**
* Returns list of hashes of all loaded resources
*
* @return {String[]} List of hashes
* @see resources
*/
getResourcesHashList: function () {
var app = this;
var result = [];
$.each(app.resources, function (hash, resource) {
result.push(resource.hash);
});
return result;
},
/**
* Adds given resource to list of loaded resources {@link resources}
*
* @param {String} hash Hash of resource
* @param {String} [resource] Resource identifier: basename/url of js/css files or part of content
* of inline js/css (supplemental information)
* @param {String} [comment] Description for internal using (on debug mode)
* (supplemental information)
* @see resources
*/
addResource: function (hash, resource, comment) {
var app = this;
var isAlreadyLoaded = Boolean(app.getResourceByHash(hash));
if (!isAlreadyLoaded) {
app.resources[hash] = {
resource: resource,
hash : hash,
source : comment
};
}
app.log('addResource = ', resource, !isAlreadyLoaded ? ' ...added' : ' ...skipped');
},
/**
* Checks global $.ajaxSend handlers. If not found handler of current extension, binds it.
* This is prevents duplicate binding.
*/
bindAjaxSendHandlerIfNotDefined: function () {
var $ = jQuery; // assign actual global instance (for the case, when jQuery reloaded at AJAX request)
var app = this;
var ajaxSendEvents = $._data(document) && $._data(document).events
? $._data(document).events.ajaxSend
: undefined;
var isHandled = false;
if (ajaxSendEvents) {
var bindHandlers = ajaxSendEvents.map(function (event) {
if (event.handler.name === resourceSmartLoadAjaxSendHandler.name) {
isHandled = true;
}
return event.handler;
});
}
// hook for all ajax-requests, in "client" variable we send hashes of all loaded resources
function resourceSmartLoadAjaxSendHandler(event, jqXHR, settings) {
app.setClientVar(jqXHR, {resourcesList: JSON.stringify(app.getResourcesHashList())}, settings.url);
}
if (!isHandled) {
$(document).ajaxSend(resourceSmartLoadAjaxSendHandler);
}
app.log('Check of global $.ajaxSend handler: ', isHandled
? 'already bind... skipped'
: 'not found... bind extension handler');
},
/**
* Initializes extension
*
* @param {Object} extensionOptionsInit Options, that exported from server side,
* see {@link resourceSmartLoad.extensionOptions}
* @see resourceSmartLoad.extensionOptions
*/
initExtension: function (extensionOptionsInit) {
var app = this;
// prevent duplicate initialization of extension
if (!app.isInitialized) {
app.extensionOptions = extensionOptionsInit;
app.isInitialized = true;
}
$(function () {
// This code after each AJAX request checks global $.ajaxSend handlers. If on AJAX request
// for any reason will be reloaded "jquery.js" (for example, at "activateOnAllPages" = false), all
// global handlers of jQuery events will be removed. In this case method restores handler of $.ajaxSend.
app.bindAjaxSendHandlerIfNotDefined();
});
},
/**
* Sets "client" variable for given AJAX request (inserts variable into HTTP headers and cookie).
* Cookie will be deleted after complete of given request.
* On server this variable can be accessed through RSmartLoadHelper::getClientVar(name).
*
* @param {jQuery.jqXHR} jqXHR jQuery.ajax-object of request (returns by function $.ajax,
* or passed as argument in handlers $.ajax.beforeSend, $.ajaxSend etc.).
* @param {Object} vars Object with variables in format {name:value}.
* "value" cannot contain non english symbols.
* @param {String} [url='/'] URL, which will be sent to ajax-request
* (for this URL will be assigned a cookie).
* @see http://api.jquery.com/jQuery.ajax/#jqXHR
* @see http://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings
*/
setClientVar: function (jqXHR, vars, url) {
var app = this;
var prefix = 'clientvar'; // Should not contain extraneous characters, otherwise the cookie names/titles can be invalid
url = url || '/';
$.each(vars, function (key, value) {
jqXHR.setRequestHeader(prefix + key, value);
app.fn.setCookie(prefix + key, value, {path: url});
});
jqXHR.always(function () {
$.each(vars, function (key, value) {
app.fn.deleteCookie(prefix + key, url);
});
});
},
/**
* Adds to log given strings/variables
*
* @param {...*} * Variable number of parameters
*/
log: function () {
var app = this;
if (app.extensionOptions.enableLog) {
var args = ['ResourceSmartLoad >> '];
$.each(arguments, function (key, val) { // copy values from "pseudo array" to normal array
args.push(val);
});
console.log.apply(console, args);
}
}
};
resourceSmartLoad.fn = {
/**
* Returns cookie by name.
*
* @param {String} name Cookie name
* @returns {String} Cookie value. If not found, returns undefined
*/
getCookie: function (name) {
var matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
},
/**
* Sets cookie.
*
* @param {String} name Cookie name
* @param {String} value Cookie value
* @param {Object} [options={}] Addtitional options:
* <ul>
* <li>
* <b>expires</b> - Expiry time of cookie. Is interpreted differently, depending on the type of:
* <ul>
* <li>{Number} — number of seconds. For example, expires: 3600 - Cookie for an hour.</li>
* <li>{Date} — expiration date.</li>
* <li>If expires in the past, the cookie will be deleted.</li>
* <li>If expires is undefined or 0, the cookie will be set as a session and will disappear
* when the browser is closed.</li>
* </ul>
* </li>
* <li><b>path</b> - Cookie path.</li>
* <li><b>domain</b> - Cookie domain.</li>
* <li><b>secure</b> - If =true, cookie will be sent over a secure connection.</li>
* </ul>
*/
setCookie: function (name, value, options) {
options = options || {};
var expires = options.expires;
if (typeof expires == "number" && expires) {
var d = new Date();
d.setTime(d.getTime() + expires * 1000);
expires = options.expires = d;
}
if (expires && expires.toUTCString) {
options.expires = expires.toUTCString();
}
value = encodeURIComponent(value);
var updatedCookie = name + "=" + value;
for (var propName in options) {
updatedCookie += "; " + propName;
var propValue = options[propName];
if (propValue !== true) {
updatedCookie += "=" + propValue;
}
}
document.cookie = updatedCookie;
},
/**
* Deletes cookie by name (for given path).
* If the cookie is set on a certain path, one name is not enough to read/delete.
*
* @param {String} name Cookie name
* @param {String} [url] URL for cookie
*/
deleteCookie: function (name, url) {
var fn = this;
var value = {expires: -1}; // "Cookie expired"
if (url) {
$.extend(value, {path: url});
}
fn.setCookie(name, "", value);
}
};
// Public JS path:
if (!window.yiiResourceSmartLoad) {
window.yiiResourceSmartLoad = resourceSmartLoad; // prevent reload of current js file (on AJAX request)
}
})(jQuery); | javascript |
package ch.epfl.lis.gnwgui;
import java.awt.Frame;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileFilter;
/** This class is used to handle open/save dialogs.
*
* Primarily, this class has been designed to be able to switch easily
* between Swing and AWT dialogs. If the GUI of GNW makes use of Swing
* in order to have the same GUI on all platforms, the possibility to
* release GNW as a Mac application is studying because Mac offer nice
* features to its applications such as drag&drop files on the application
* icon to open them. What was intended with the implementation of this
* class was to benefit from the nice, native open/save Mac dialogs.
*
* EDIT: AWT not used anymore, only Swing.
*
* @author <NAME> (<EMAIL>)
*
*/
public class IODialog {
private String title_;
private Frame parent_;
private String path_;
private String selection_;
public static final Byte LOAD = 0;
public static final Byte SAVE = 1;
private JFileChooser jfc_;
/** Logger for this class */
private static Logger log_ = Logger.getLogger(IODialog.class.getName());
// ============================================================================
// PUBLIC FUNCTIONS
public IODialog(Frame parent, String title, String path, Byte mode)
{
parent_ = parent;
title_ = title;
path_ = path;
try
{
jfc_ = new JFileChooser(path_);
}
catch (IllegalArgumentException iae)
{
log_.log(Level.WARNING, "IODialog::IODialog(): " + iae.getMessage(), iae);
}
catch (Exception e)
{
log_.log(Level.WARNING, "IODialog::IODialog(): " + e.getMessage(), e);
}
}
// ----------------------------------------------------------------------------
/**
* Display the dialog.
*/
public void display()
{
selection_ = null;
int returnVal = jfc_.showDialog(parent_, title_);
if (returnVal == JFileChooser.APPROVE_OPTION)
{
selection_ = jfc_.getSelectedFile().getAbsolutePath();
}
}
// ----------------------------------------------------------------------------
/**
* Add one file filter. To use with Swing dialog.
*/
public void addFilter(final FileFilter filter)
{
jfc_.addChoosableFileFilter(filter);
jfc_.setFileFilter(filter);
}
// ----------------------------------------------------------------------------
public FileFilter getSelectedFilter()
{
return jfc_.getFileFilter();
}
// ----------------------------------------------------------------------------
public String getDirectory()
{
return jfc_.getSelectedFile().getParentFile().getAbsolutePath();
}
// ----------------------------------------------------------------------------
public void selectOnlyFolder(boolean b)
{
if (b)
jfc_.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
else
jfc_.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
}
// ----------------------------------------------------------------------------
public void setAcceptAllFileFilterUsed(final boolean b)
{
jfc_.setAcceptAllFileFilterUsed(b);
}
// ----------------------------------------------------------------------------
public void setSelection(String filename)
{
File f = new File(filename);
jfc_.setSelectedFile(f);
}
// ----------------------------------------------------------------------------
public String getSelection() { return selection_; }
}
| java |
{
"id": 7262,
"cites": 18,
"cited_by": 36,
"reference": [
"Centers for Disease Control and Preventions Information and Prevention Sourcepage, Smoking Prevalence Among U.S. Adults, Centers for Disease Control and Prevention, 1996.",
"Centers for Disease Control and Preventions Tobacco Information and Prevention Sourcepage, Adult Prevalence Data, Centers for Disease Control and Prevention, 1998.",
"<NAME>., and <NAME>, Price Tobacco Control Policies and Smoking Among Young Adults, Journal of Health Economics, 16: 359-373, 1997.",
"<NAME>., and <NAME>, Price, Tobacco Control Policies, and Youth Smoking, National Bureau of Economic Research Working Paper No. 5740, 1996.",
"<NAME>., The Duration of the Smoking Habit, Economic Inquiry, v XXXVI, n1, 49-64, 1998.",
"<NAME>., <NAME>, and <NAME>, Do Workplace Smoking Bans Reduce Smoking'DONE', National Bureau of Economic Research Working Paper No. 5567, 1996.",
"<NAME>., <NAME>, <NAME>, and <NAME>, Tobacco Taxation, Demand, and Oligopoly Behavior: Analysis and Estimation with State Panel Data, Working Paper, Institute of Business and Economic Research, University of California, Berkeley, 1994.",
"<NAME>., <NAME>, and <NAME>, Tobacco Taxes, Smoking Restrictions, and Tobacco Use, National Bureau of Economic Research Working Paper No. 6486, 1998.",
"<NAME>, <NAME>, and <NAME>, Cigarette Taxation and Demand : An Empirical Model, Contemporary Economic Policy, Volume XII, Number3, 1994.",
"<NAME>. and <NAME>, Price, Clean Indoor Air Laws, and Cigarette Smoking: Evidence from Longitudinal Data for Young Adults, National Bureau of Economic Research Working Paper 6937, 1999.",
"Tobacco Institute, The Tax Burden on Tobacco, Washington D.C.: Tobacco Institute, 1997.",
"Historic Compilation, Volume 32. University of Michigan News and Information Services, Monitoring the Future Study Press Release, December 18, 1998, Ann Arbor: University of Michigan News and Information Services, 1998.",
"U.S. Department of Health and Human Services, Reducing the Health Consequences of Smoking: 25 Years of Progress. A Report of the Surgeon General, Rockville, Maryland: U.S. Department of Health and Human Services, Public Health Service, Centers for Disease Control, Center for Chronic Disease Prevention and Health Promotion, Office on Smoking and Health, 1989.",
"U.S. Department of Health and Human Services, The Health Benefits of Smoking Cessation. A Report of the Surgeon General, Rockville, Maryland: U.S. Department of Health and Human Services, Public Health Service, Center for Disease Control, Center for Chronic Disease Prevention and Health Promotion, Office on Smoking and Health, 1990.",
"U.S. Department of Health and Human Services, Preventing Tobacco Use Among Young People: A Report of the Surgeon General, Atlanta Georgia: Public Health Service, Center for Disease Control and Prevention, National Center for Chronic Disease Prevention and Health Promotion, Office on Smoking and Health, 1994.",
"U.S. Department of Health and Human Services. Tobacco Use Among U.S. Racial/Ethnic Minority Groups---African Americans, American Indians and Alaska Natives, Asian Americans and Pacific Islanders, and Hispanics: A Report of the Surgeon General, Atlanta, Georgia: U.S. Department of Health and Human Services, Centers for Disease Control and Prevention, National Center for Chronic Disease Prevention and Health Promotion, Office on Smoking and Health, 1998.",
"U.S. Public Health Service, Smoking and Health. Report of the Advisory Committee to the Surgeon General of the Public Health Service, U.S. Department of Health, Education, and Welfare, Public Health Service, Center for Disease Control, 1964.",
"<NAME>., Cost Effectiveness of Smoking-Cessation Therapies Interpretation of the Evidence and Implications for Coverage, Pharmacoeconomics, 11 (6): 538-549, 1997."
]
} | json |
46|Siemens Information Systems :
solutions, and market PalmSecure and ID Centre.
airports. It also implemented a multi-location complex SAP for MRF.
new coding and multiplexing infrastructure.
In the school education business,
for customized educational resource planning solution in schools.
and South Africa. It expanded its global footprint with Cuba,
Nicragua, and Honduras too getting added to the list.
48|Hexaware Technologies :
A tier-2 IT services company ambitious to join the biggies,
of North America operations.
PeopleSoft business, Hexaware grew its practice in SAP and Oracle.
testing and consulting services to its portfolio.
Hexaware launched a new venture,
global Fortune 500 companies.
after a gap of two years.
SBUs in Chennai and Hyderabad.
shipbuilding to the global market.
revenue generator by catering to modern defense and warfare needs.
organization and achieved the CMMI Level 5i certification.
| english |
In a recent interview, Yeh Hai Mohabbatein actor Vivek Dahiya shared how he started dating Divyanka Tripathi and revealed how love bloomed between them.
Popular celebrity couple Divyanka Tripathi and Vivek Dahiya are among the well-known celebrity duo in the entertainment industry and enjoy a massive fan following. Be it their love-dipped pictures or traveling together to dreamy locations, Divyanka and Vivek have shown us what a perfect relationship looks like. The couple is adorably addressed as DiVek and fans leave no stone unturned to shower love on them. Recently, Vivek appeared on Siddharth Kanan's chat show and revealed how he and Divyanka started dating.
Vivek Dahiya says he was linked up to Divyanka Tripathi:
Recently in a conversation with Siddharth Kanan, Vivek Dahiya was asked how his relationship with Divyanka Tripathi began. Spilling beans on this, Vivek said, "We were co-actors, and there was no time for friendship, we directly started dating. Also, that happened because someone linked us up otherwise there was no love angle. Someone introduced us to each other, and it was sort of an arranged marriage." Further, he mentioned, "Though we worked together, we never interacted, and we never talked."
The Yeh Hai Mohabbatein actor revealed, "Our co-actor and my friend Pankaj Bhatia told me, 'She (Divyanka) is perfect for you, you don't know' I told him 'I'm not ready for marriage' he said, 'Just go' (laughs)." In the same interview, Vivek also spoke about his personal life and professional life.
Speaking about Divyanka and Vivek's personal life, the duo started dating during their stint on the sets of Ekta Kapoor’s hit show Yeh Hai Mohabbatein. Vivek played Inspector Abhishek Singh whereas Divyanka essayed the role of Ishita in Yeh Hai Mohabattein. After dating for a few years, the duo exchanged rings on January 16, 2016. Divyanka and Vivek tied the knot in the same year on July 8, 2016, in Bhopal.
About Vivek Dahiya's professional life:
After being away from the screens for a while now, Vivek recently made a comeback by starring in a Bollywood film. He recently featured in debutant director Vivek Sharma's film Chal Zindagi, which features Shannon K, Vivek Dahiya, Sanjay Mishra, Vikram Singh, and Mita Vashisht as lead characters. Chal Zindagi was released in the theatres on May 26.
NET Worth: ~ 41.7 MN USD (RS 345 cr)
| english |
@font-face {
font-family: "Lobster";
src: url("/theme/webfonts/Lobster-Regular.ttf") format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "OpenSans";
src: url("/theme/webfonts/OpenSans-Regular.ttf") format('truetype');
font-weight: 400;
font-style: normal;
}
| css |
<gh_stars>0
{"brief":"speechless","long":"<i>Meaning:</i> \"speechless\".<br/><i>Usage:</i> dumb (man).<br/><i>Source:</i> from \"H481\";"}
| json |
<reponame>peipeiwang6/Genomic_prediction_in_Switchgrass
import sys,os
inp = open('/mnt/scratch/mengfanr/Switchgrass/02_combine_GVCF_by_group/All_Group_GVCF/Switchgrass_ALL_Chromosomes/' + sys.argv[1],'r')
inl = inp.readline()
D = {}
out = open(sys.argv[1] + '_genotype_matrix','w')
while inl:
if inl.startswith('#CHROM'):
tem = inl.split('\t')[9:]
out.write('Chr\tPos\tRef\tAlt\t%s'%'\t'.join(tem))
out.flush()
if not inl.startswith('#'):
tem = inl.strip().split('\t')
chr = tem[0]
pos = tem[1]
ref = tem[3]
alt = tem[4].split(',')
geno = tem[9:]
res = '%s\t%s\t%s\t%s'%(chr,pos,ref,tem[4])
for g in geno:
type = g.split(':')[0]
type = type.replace('0',ref)
if '1' in type:
type = type.replace('1',alt[0])
if '2' in type:
type = type.replace('2',alt[1])
if '3' in type:
type = type.replace('3',alt[2])
if '4' in type:
type = type.replace('4',alt[3])
if '5' in type:
type = type.replace('5',alt[4])
if '6' in type:
type = type.replace('6',alt[5])
if '7' in type:
type = type.replace('7',alt[6])
res = res + '\t%s'%type
out.write(res + '\n')
out.flush()
inl = inp.readline()
out.close() | python |
<filename>src/com/ab/abmaterial/ThemeContainer.java<gh_stars>1-10
package com.ab.abmaterial;
import anywheresoftware.b4a.BA.Author;
import anywheresoftware.b4a.BA.Hide;
/**
* Can not be created within B4J, But its properties and methods are available through another ABM class.
*/
@Author("<NAME>")
public class ThemeContainer implements java.io.Serializable{
private static final long serialVersionUID = -8263773734192345908L;
protected String ThemeName="default";
protected String MainColor=ABMaterial.COLOR_TRANSPARENT;
public String BackColor=MainColor;
public String BackColorIntensity=ABMaterial.INTENSITY_NORMAL;
public String ZDepth="";
public String TitleColor="grey";
public String TitleColorIntensity="darken-2";
public double NoPrintOpacity=1.0;
ThemeContainer() {
}
ThemeContainer(String themeName) {
this.ThemeName = themeName;
}
public void Colorize(String color) {
MainColor = color;
}
@Hide
public ThemeContainer Clone() {
ThemeContainer c = new ThemeContainer();
c.MainColor=MainColor;
c.ThemeName=ThemeName;
c.BackColor = BackColor;
c.BackColorIntensity = BackColorIntensity;
c.ZDepth=ZDepth;
c.TitleColor = TitleColor;
c.TitleColorIntensity = TitleColorIntensity;
c.NoPrintOpacity=NoPrintOpacity;
return c;
}
}
| java |
Krishan Bansal to Himanshu Rana, wide, out Stumped!! Fired well wide of off, Himanshu fails to reach out to the ball as he slashes at it. In the process, he's also dragged his back foot out of the crease. All over. Himanshu Rana st Manish Goswami b Krishan Bansal 0(0)
| english |
| English | [简体中文](README.md) |
# [5482. Detect Cycles in 2D Grid](https://leetcode-cn.com/problems/detect-cycles-in-2d-grid/)
## Description
<p>Given a 2D array of characters <code>grid</code> of size <code>m x n</code>, you need to find if there exists any cycle consisting of the <strong>same value</strong> in <code>grid</code>.</p>
<p>A cycle is a path of <strong>length 4 or more</strong> in the grid that starts and ends at the same cell. From a given cell, you can move to one of the cells adjacent to it - in one of the four directions (up, down, left, or right), if it has the <strong>same value</strong> of the current cell.</p>
<p>Also, you cannot move to the cell that you visited in your last move. For example, the cycle <code>(1, 1) -> (1, 2) -> (1, 1)</code> is invalid because from <code>(1, 2)</code> we visited <code>(1, 1)</code> which was the last visited cell.</p>
<p>Return <code>true</code> if any cycle of the same value exists in <code>grid</code>, otherwise, return <code>false</code>.</p>
<p> </p>
<p><strong>Example 1:</strong></p>
<p><strong><img alt="" src="https://assets.leetcode.com/uploads/2020/07/15/1.png" style="width: 231px; height: 152px;" /></strong></p>
<pre>
<strong>Input:</strong> grid = [["a","a","a","a"],["a","b","b","a"],["a","b","b","a"],["a","a","a","a"]]
<strong>Output:</strong> true
<strong>Explanation: </strong>There are two valid cycles shown in different colors in the image below:
<img alt="" src="https://assets.leetcode.com/uploads/2020/07/15/11.png" style="width: 225px; height: 163px;" />
</pre>
<p><strong>Example 2:</strong></p>
<p><strong><img alt="" src="https://assets.leetcode.com/uploads/2020/07/15/22.png" style="width: 236px; height: 154px;" /></strong></p>
<pre>
<strong>Input:</strong> grid = [["c","c","c","a"],["c","d","c","c"],["c","c","e","c"],["f","c","c","c"]]
<strong>Output:</strong> true
<strong>Explanation: </strong>There is only one valid cycle highlighted in the image below:
<img alt="" src="https://assets.leetcode.com/uploads/2020/07/15/2.png" style="width: 229px; height: 157px;" />
</pre>
<p><strong>Example 3:</strong></p>
<p><strong><img alt="" src="https://assets.leetcode.com/uploads/2020/07/15/3.png" style="width: 183px; height: 120px;" /></strong></p>
<pre>
<strong>Input:</strong> grid = [["a","b","b"],["b","z","b"],["b","b","a"]]
<strong>Output:</strong> false
</pre>
<p> </p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>m == grid.length</code></li>
<li><code>n == grid[i].length</code></li>
<li><code>1 <= m <= 500</code></li>
<li><code>1 <= n <= 500</code></li>
<li><code>grid</code> consists only of lowercase English letters.</li>
</ul>
## Related Topics
- [Depth-first Search](https://leetcode-cn.com/tag/depth-first-search)
## Similar Questions
| markdown |
/* This file lists the files to be fetched from the node repo
* in the /lib/ directory which will be placed in the ../lib/
* directory after having each of the "replacements" in the
* array for that file applied to it. The replacements are
* simply the arguments to String#replace, so they can be
* strings, regexes, functions.
*/
module.exports['string_decoder.js'] = [
// we do not need internal/util anymore
[
/const internalUtil = require\('internal\/util'\);/
, ''
]
, [
/(?:var|const) (?:{ )Buffer(?: }) = require\('buffer'\)(?:\.Buffer)?;/,
`/*<replacement>*/
var Buffer = require('safe-buffer').Buffer;
/*</replacement>*/
`
]
// add Buffer.isEncoding where missing
, [
/const isEncoding = Buffer\[internalUtil.kIsEncodingSymbol\];/
, '\nvar isEncoding = Buffer.isEncoding'
+ '\n || function(encoding) {'
+ '\n encoding = \'\' + encoding'
+ '\n switch (encoding && encoding.toLowerCase()) {'
+ '\n case \'hex\': case \'utf8\': case \'utf-8\': case \'ascii\': case \'binary\': case \'base64\': case \'ucs2\': case \'ucs-2\': case \'utf16le\': case \'utf-16le\': case \'raw\': return true;'
+ '\n default: return false;'
+ '\n }'
+ '\n }'
+ '\n'
+ '\nfunction _normalizeEncoding(enc) {'
+ '\n if (!enc) return \'utf8\';'
+ '\n var retried;'
+ '\n while (true) {'
+ '\n switch (enc) {'
+ '\n case \'utf8\':'
+ '\n case \'utf-8\':'
+ '\n return \'utf8\';'
+ '\n case \'ucs2\':'
+ '\n case \'ucs-2\':'
+ '\n case \'utf16le\':'
+ '\n case \'utf-16le\':'
+ '\n return \'utf16le\';'
+ '\n case \'latin1\':'
+ '\n case \'binary\':'
+ '\n return \'latin1\';'
+ '\n case \'base64\':'
+ '\n case \'ascii\':'
+ '\n case \'hex\':'
+ '\n return enc;'
+ '\n default:'
+ '\n if (retried) return; // undefined'
+ '\n enc = (\'\' + enc).toLowerCase();'
+ '\n retried = true;'
+ '\n }'
+ '\n }'
+ '\n };'
]
// use custom Buffer.isEncoding reference
, [
/Buffer\.isEncoding\(/g
, 'isEncoding\('
]
// use _normalizeEncoding everywhere
, [
/internalUtil\.normalizeEncoding/g
, '_normalizeEncoding'
]
]
| javascript |
Monday May 02, 2022,
International semiconductor consortium ISMC will invest $3 billion to set up a chip manufacturing plant in Karnataka, according to a release by the state government. ISMC is a joint venture between Abu Dhabi-based Next Orbit Ventures and Israel's Tower Semiconductor. Intel has announced plans to acquire the latter company.
Karnataka's investment department has announced that the planned factory will create 1,500 direct jobs and 10,000 indirect jobs in the state.
The national government has created a $10 billion incentive plan to promote semiconductor fabrication in India, and ISMC and Vedanta are the two largest organisations that have applied so far.
Vedanta recently announced advanced talks to build semiconductor plants in the western Indian states of Gujarat and Maharashtra, and the south Indian state of Telangana. In all, Vedanta has a planned investment outlay of $20 billion for its semiconductor push.
Last week, Prime Minister Narendra Modi and his IT ministers announced plans to push semiconductor manufacturing in India in light of global shortages due to the pandemic and the war in Ukraine. They believe India can become a key global chipmaker in an industry dominated by Taiwan. | english |
{"web":[{"value":["修道院","僧院","寺院"],"key":"Monastery"},{"value":["萨迦寺"],"key":"Sakya Monastery"},{"value":["斯特拉霍夫修道院","史托拉霍夫修道院","斯特拉弗修道院"],"key":"Strahov Monastery"}],"query":"monastery","translation":["修道院"],"errorCode":"0","dict":{"url":"yddict://m.youdao.com/dict?le=eng&q=monastery"},"webdict":{"url":"http://m.youdao.com/dict?le=eng&q=monastery"},"basic":{"us-phonetic":"'mɑnəstɛri","phonetic":"'mɒnəst(ə)rɪ","uk-phonetic":"'mɒnəst(ə)rɪ","explains":["n. 修道院;僧侣"]},"l":"EN2zh-CHS"}
| json |
Alia Bhatt looks so radiant and gorgeous as she poses with her playful cat. (imagesource: instagram/aliaabhatt)
Malaika Arora slays her summer essential Kaftan with her fresh and glowing face.(imagesource: instagram/malaikaaroraofficial)
Karisma Kapoor flashes her lovely light blue eyes for the gram, with a tint of pink on the lips.(imagesource: instagram/therealkarismakapoor )
Katrina Kaif looks like a breathe of fresh air in this no make up picture of hers.(imagesource: instagram/katrinakaif)
Disha Patani looks extremely tranquilized in this picture, she shines like a diamond in this one.(imagesource: instagram/dishapatani)
Kareena Kapoor Khan's most famous pout is on display in this after workout selfie!(imagesource: instagram/kareenakapoorkhan)
| english |
After being a part of Army life I have been making a bucket-list for every place I get posted to. And I made one for Manipur too though I was not very sure if it would be possible, the place being inflicted with so much insurgency. But a trek to Shirui Hills had always been on the top of the list! May be I will sometime write a blog on how this place totally changed my mind and made me fall in love with it... But for now... I am in Ukhrul, in my guest room, tucked in blanket and sipping on some hot soup and writing about how this small district town made my wish come true.
Ukhrul is a district in the north-eastern state of Manipur, India. It lies about 90 kms north of Imphal.
How to reach :- By Air - The nearest airport is Tulihal Airport in Imphal.
By Road - You can drive down from Imphal taking NH-202.
By Rail - The nearest railway station is Dimapur, which is in Nagaland. And is about 330kms away.
Ukhrul is a land of beautiful mountains interspersed by numerous tribal inhabitants echoing with the rhythms of tribal cultures and rich wild life. Besides the serene environment, the ways of life of the simple and friendly tribals who have been known for generations for their honesty and integrity leave one spellbound. The district is the home for a warrior tribe called Tangkhul Nagas. It is believed that the earliest home of the Tangkhuls, the great Mongolian race was the upper reaches of Huang Heo and Yangtze Rivers which lies in the Zinjiang province of China. Like the other desert areas of the world, the people including the Tangkhuls migrated from this place to different directions.
For me the people were bright, warm and always smiling! They were one of the most friendly people I have met in my life ( no exaggeration). There is something about that warm friendly smile that you tend to feel at home at the very first meeting.
We have been planning for a trip to Ukhrul for quite a while now and finally everything just seemed to fall into place for the trip. We had to meet an officer and his wife as they were getting posted out and the time was good for my Longpi Village trip and my Shirui Trek. And I jumped in at the idea!
I have been in Manipur for more than a year and unlike most ladies it was not the 'temple border lungis' , 'the manipuri silk saree' , 'jewellery' that fascinated me. In fact I haven't bought any of them... what I wanted was ' The Longpi Black Stone Pottery'. I did pick up a few pieces from the Sangai Festival and I totally loved cooking in them.
Longpi is famous for age-old pottery making locally called Longpi Ham. It is believed that Longpi ham used to be the main cooking utensil among the Tangkhuls before the advent of aluminum pots. Longpi ham as of today has attained national and international popularity. Longpi pottery is one unique art where the potters do not use the potter's wheel. Longpi ham is made from a mixed paste of ground black serpentinite stone and a special brown clay. As claimed by the locals, the clay is native to only Longpi village. After the pots are shaped, polished and sun-dried they are heated in a bonfire and thereafter polished with a special tree leaf locally called Chiron ni. The black color of Longpi ham is a result of polishing the heated earthen pots with the tree leaf.
A National Award winner, Mr Sasa says, ' 'the government have entrusted me to train the art of making Black Pot to my villagers. Now 200 to 300 people from my village have started making pots and they are earning for a living. Now our village has two more National award winners on the same art. My youngest son is running a pottery shop at Vasant Kunj, since 2005. The powdered raw materials from Nungbi, Ukhrul is sent off to Delhi and groups of skilled potter who are five to six in number make the Black pot and other designs which is a big demand in the National Capital. Shop owners use to buy in bulks. The sale range from 200 to 500 pieces in one buys and the price is good. My 33-year-old son is doing good business promoting the black pot and meeting the demands of the ever-increasing buyers"
Due to his efforts, Longpi Pottery has gained popularity not only in the country but also attained admirers from countries like Australia, Sweden, Germany and the United States.
But today it's really disheartening to see this wonderful artist, striving to live with bare minimum he has. The government has given him awards and certificates but nothing has been done to give the man and his family a better life! It's a shame that this man has given so much to the country, does not have money to paint his house. We have failed him! Like we have failed numerous other jewels of Indian art and craft Industry! It's a shame!
After the Longpi village visit, I visited the vibrant little Ukhrul market. If you want to pick up traditional Naga shawls and souvenirs, this is a good place.
The day ended and I came back to the guest room feeling overwhelmed from all the experiences I had. Being an art lover myself, I had always wanted to meet Mr.Sasa in person and it was a dream come true moment for me! A fan moment that I shall cherish for life.
We ended the day early thanking God for all the wonderful things that had happened that day and praying for a clearer weather for tomorrow. Yet another adventure waited for us the next day... Another dream was to come true!
| english |
Photos of tomatoes growing on a bush.
Photos of tomatoes growing on a bush.
Hi all. Today I decided to share these photos with you. Tomato is an annual or perennial herbaceous plant, a species of the Solanum genus of the Solanaceae family. Cultivated as a vegetable crop. The fruit of a tomato (berry) is colloquially called a tomato.
In the middle of the 16th century, the tomato came to Spain, Portugal, and then to Italy, France and other European countries. In the 18th century, the tomato came to Russia, where it was first cultivated as an ornamental plant. The plant was recognized as a vegetable food crop thanks to the Russian agronomist A. T. Bolotov (1738-1833). For a long time, tomatoes were considered inedible and even poisonous.
| english |
In Bihar 11 people died in hooch tragedy in different localities under Maker police station area of Saran district.
Hospital.
SHO of Maker police station and a Chowkidar have been suspended for their dereliction of duties. Five persons have been arrested in this regard and over two thousand litres of spurious liquor was confiscated.
The district administration has launched combing operation to nab liquor mafia. | english |
//! Utility function to setup logging for a Plugin instance.
use crate::{
common::{
error::Result,
log::{init, proxy::LogProxy, tee_file::TeeFile, Log, LogRecord},
},
host::configuration::PluginLogConfiguration,
};
use ipc_channel::ipc::IpcSender;
/// Setup logging for a Plugin instance.
///
/// Given a [`PluginConfiguration`], start the configured loggers. Consumes
/// the given log channel sender.
///
/// Starts a thread-local ['LogProxy`], given a [`LoglevelFilter`] bigger
/// than [`Off`] which forwards log records to the simulator [`LogThread`].
/// Starts [`TeeFile`] loggers, given a non-empty vector of [`TeeFile`], to
/// forward log records to output files.
pub fn setup_logging(
configuration: &PluginLogConfiguration,
log_channel: IpcSender<LogRecord>,
) -> Result<()> {
let mut loggers = Vec::with_capacity(1 + configuration.tee_files.len());
loggers.push(LogProxy::boxed(
configuration.name.as_str(),
configuration.verbosity,
log_channel,
) as Box<dyn Log>);
let tee_files: Result<Vec<_>> = configuration
.tee_files
.clone()
.into_iter()
.map(TeeFile::new)
.collect();
loggers.extend(tee_files?.into_iter().map(|l| Box::new(l) as Box<dyn Log>));
init(loggers)?;
Ok(())
}
| rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.