Skip to content

Instantly share code, notes, and snippets.

View varshneydevansh's full-sized avatar
🧠
No Study No Confusion, More Study More Confusion

Devansh Varshney (देवांश वार्ष्णेय) varshneydevansh

🧠
No Study No Confusion, More Study More Confusion
View GitHub Profile
@varshneydevansh
varshneydevansh / cuifmsearch.hxx
Created March 12, 2025 15:24
cui/source/inc/cuifmsearch.hxx
#pragma once
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <svx/fmsearch.hxx>
#include <vcl/weld.hxx>
#include <tools/link.hxx>
#include <rtl/ustring.hxx>
namespace svxform
@varshneydevansh
varshneydevansh / brwctrlr.hxx
Created March 12, 2025 15:23
dbaccess/source/ui/inc/brwctrlr.hxx
#pragma once
#include <dbaccess/genericcontroller.hxx>
#include "brwview.hxx"
#include "sbagrid.hxx"
#include <svx/fmsrcimp.hxx>
#include <com/sun/star/form/XLoadable.hpp>
@varshneydevansh
varshneydevansh / brwctrlr.cxx
Created March 12, 2025 15:22
dbaccess/source/ui/browser/brwctrlr.cxx
#include <browserids.hxx>
#include <brwctrlr.hxx>
#include <brwview.hxx>
#include <strings.hrc>
#include <strings.hxx>
#include <core_resource.hxx>
#include <queryfilter.hxx>
#include <queryorder.hxx>
#include <sqlmessage.hxx>
@varshneydevansh
varshneydevansh / cuifmsearch.cxx
Created March 12, 2025 15:21
cui/source/dialogs/cuifmsearch.cxx
#include <tools/debug.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <dialmgr.hxx>
#include <sfx2/app.hxx>
#include <svx/fmsrccfg.hxx>
#include <svx/fmsrcimp.hxx>
@varshneydevansh
varshneydevansh / regina_post_comment_histogram.diff
Created January 25, 2025 12:02
regina_post_comment_histogram.diff
diff --git a/chart2/qa/extras/data/fods/tdf82716_HistogramChart.fods b/chart2/qa/extras/data/fods/tdf82716_HistogramChart.fods
index 47d80627ff6d..5defc4498704 100644
--- a/chart2/qa/extras/data/fods/tdf82716_HistogramChart.fods
+++ b/chart2/qa/extras/data/fods/tdf82716_HistogramChart.fods
@@ -316,7 +316,7 @@
<table:table-cell office:value-type="string">
<text:p>1</text:p>
</table:table-cell>
- <table:table-cell office:value-type="float" office:value="12">
+ <table:table-cell office:value-type="float" office:value="10">
@varshneydevansh
varshneydevansh / SAL_USE_VCLPLUGIN=gen make CppunitTest_uui_dialogs_test
Created March 28, 2024 13:11
SAL_USE_VCLPLUGIN=gen make CppunitTest_uui_dialogs_test
[~/libreoffice]
✘  devansh   132007_improve_pswd_msg_lckd_dcmnt  SAL_USE_VCLPLUGIN=gen make CppunitTest_uui_dialogs_test
make -j 3 -rs -f /home/devansh/libreoffice/Makefile.gbuild CppunitTest_uui_dialogs_test
[CUT] uui_dialogs_test
Aborted (core dumped)
LO_TEST_LOCALE=en-US
[_RUN_____] UuiDialogsTest::openAnyDialog
cppunittester: /home/devansh/libreoffice/vcl/source/window/layout.cxx:1580: virtual const vcl::Window* VclFrame::get_child() const: Assertion `GetChildCount() == 2 || pWindowImpl->mbInDispose' failed.
[UIA] writerperfect
Suppression file: /home/devansh/libreoffice/solenv/sanitizers/ui/vcl.suppr
False positive file: /home/devansh/libreoffice/solenv/sanitizers/ui/vcl.false
vcl/uiconfig/ui/printdialog.ui: WARNING: 'GtkLabel' 'labelcopies' does not specify what it labels within 'GtkFrame' 'frPrintRange'
vcl/uiconfig/ui/printdialog.ui: WARNING: 'GtkLabel' 'includeevenodd' does not specify what it labels within 'GtkFrame' 'frPrintRange'
vcl/uiconfig/ui/printdialog.ui: WARNING: 'GtkLabel' 'pagespersheettxt' does not specify what it labels within 'GtkFrame' 'layoutframe'
3 new warnings (46 suppressed by /home/devansh/libreoffice/solenv/sanitizers/ui/vcl.suppr, please fix them)
0 new fatals (7 suppressed by /home/devansh/libreoffice/solenv/sanitizers/ui/vcl.suppr, please fix them)
Explanations are available on https://wiki.documentfoundation.org/Development/Accessibility
```bash
[~/libreoffice]
devansh   new_51779_support_for_sql_interval -  make
mkdir -p /home/devansh/libreoffice/instdir
/home/devansh/libreoffice/solenv/bin/install-gdb-printers -a /home/devansh/libreoffice/instdir -c
make -j 4 -rs -f /home/devansh/libreoffice/Makefile.gbuild build
[UNO] offapi
[DBc] offapi
[SED] CustomTarget/desktop/soffice/soffice.sh
[~/libreoffice]
devansh   97448_pyHelper_addons_generator  cd /home/devansh/libreoffice ; /usr/bin/env /bin/python3 /home/devansh/.vscode/extensions/ms-python.debugpy-2024.2.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 43529 -- /home/devansh/libreoffice/odk/source/helper/addon_console.py
Welcome to the LibreOffice Addons Configuration Tool!
Enter addon name (extID name, e.g., com.<companyname>.<company-namespace>.<extension-namespace>): org.libreoffice.TuesdayPrinter
Do you want to create the 'AddonMenu' item (Tools > Add-ons)? (y/n): n
@varshneydevansh
varshneydevansh / day2_AoC.exs
Created February 11, 2024 16:11
Advent of Code day 2 2023 some problem
defmodule Day2 do
def run do
file_path = Path.expand("./day2_input.txt")
total_red = 12
total_green = 13
total_blue = 14
total_valid_game_ids =
File.stream!(file_path)