Skip to content

Instantly share code, notes, and snippets.

View arajkumar's full-sized avatar
🏡

Arunprasad Rajkumar arajkumar

🏡
View GitHub Profile
#ifdef _MSC_VER
#include <windows.h>
#define gettid() ::GetCurrentThreadId()
#else
#include <stdio.h>
#include <sys/syscall.h>
#include <unistd.h>
#define gettid() syscall(SYS_gettid)
#endif
#include <stdio.h>
// http://stackoverflow.com/questions/960099/how-to-set-up-java-logging-using-a-properties-file-java-util-logging
// put the desired class to debug in a log.conf file
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
com.sun.javafx.webkit.prism.WCGraphicsPrismContext.level = ALL
com.sun.javafx.webkit.prism.WCPathImpl.level = ALL
for commit in `hg out http://hg.openjdk.java.net/openjfx/jfx-dev/rt | grep changeset: | awk -F':' '{print $3}'`;
do
hg strip $commit
done
diff --git a/modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/java/GraphicsContextJava.cpp b/modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/java/GraphicsContextJava.cpp
index ed160b1f76a..177675e6881 100644
--- a/modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/java/GraphicsContextJava.cpp
+++ b/modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/java/GraphicsContextJava.cpp
@@ -258,12 +258,7 @@ void GraphicsContext::clipToImageBuffer(ImageBuffer&, const FloatRect&)
IntRect GraphicsContext::clipBounds() const
{
- // Transformation has inverse effect on clip bounds.
- return enclosingIntRect(m_state
@arajkumar
arajkumar / res.json
Created August 8, 2019 10:00
Response for stack id 68209bcc5b2d4047acd0d2481bf1c3da
{
"version": "v1",
"release": "None:None:None",
"started_at": "2019-08-08T07:01:02.319460",
"finished_at": "2019-08-08T07:01:04.645724",
"request_id": "68209bcc5b2d4047acd0d2481bf1c3da",
"result": [
{
"manifest_name": "dependencies.txt",
"user_stack_info": {
@arajkumar
arajkumar / test.js
Created September 10, 2019 09:24
Windows exec fail on nodejs
const cp = require('child_process');
const testCmd = `python -c 'exec("""\nprint(2)""")'`;
cp.exec(
testCmd,
{ maxBuffer: 1024 * 1200 },
(error, _stdout, _stderr) => {
if (error) {
console.log(_stderr);
console.log(error.message);
} else {
@arajkumar
arajkumar / CHANGELOG.md
Created September 12, 2019 08:12
0.0.13

0.0.13 (September 12th, 2019)

  • enhancement - Add python support. See #308
  • enhancement - Enable transitive(indirect) dependency report by default. See #330
  • enhancement - Show welcome message after upgrading to latest version. See #334
  • enhancement - Resolved dependencies are stored in target in workspace root. See #302
  • fixes - Significant reduction in network traffic as each API call now cover analysis of 5 dependencies
  • fixes - Dependency Analytics Report not generated if triggered via file explorer. See #299
  • fixes - Stop polling for stack-report if it takes any longer tha
@arajkumar
arajkumar / 0.3.1-meta.yaml
Last active February 3, 2021 06:23
0.3.1-meta.yaml
apiVersion: v2
publisher: redhat
name: dependency-analytics
version: 0.3.1
type: VS Code extension
displayName: Dependency Analytics
title: Insights about your application dependencies
description: Insights about your application dependencies, Security, License compatibility and AI based guidance to choose appropriate dependencies for your application.
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/fabric8-analytics/fabric8-analytics-vscode-extension
apiVersion: v2
publisher: redhat
name: hello-tasks
version: 0.0.1
type: VS Code extension
displayName: Hello Tasks
title: Hello Tasks
description: Hello Tasks
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/arajkumar/hello
@arajkumar
arajkumar / dummy-pr.sh
Last active December 2, 2022 13:29
Create dummy PR
set -e
BRANCH="dummy-$(date +%Y.%m.%d-%s)"
git fetch origin master && git checkout -b $BRANCH FETCH_HEAD
touch ${BRANCH}
git add ${BRANCH} && git commit -m "chore: Dummy PR to retrigger CI"
git rm ${BRANCH} && git commit -m "chore: Dummy PR to retrigger CI"
git push fork $BRANCH --force