Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/main/java/com/transformity/pos/api/TransactionsApiDelegateImpl.java b/src/main/java/com/transformity/pos/api/TransactionsApiDelegateImpl.java
index f443585d..6524247d 100644
--- a/src/main/java/com/transformity/pos/api/TransactionsApiDelegateImpl.java
+++ b/src/main/java/com/transformity/pos/api/TransactionsApiDelegateImpl.java
@@ -1007,10 +1007,12 @@ public class TransactionsApiDelegateImpl implements TransactionsApiDelegate {
final var entityId = entityIdProvider.get();
final Page<TransactionView> transactions;
+ final Page page;
final TransactionTotal transactionTotal;
INSERT INTO department (cohort_id, name, tax, bottledeposit, environmentfee)
VALUES
(16, 'CANNED COCKTAILS', 0.0635, 0.10, 0.05),
(16, 'MIXERS', 0.0635, 0.10, 0.05),
(16, 'WINE - DOMESTIC', 0.0635, 0.10, 0.05),
(16, 'AMARO', 0.0635, 0.10, 0.05),
(16, 'TEQUILA', 0.0635, 0.10, 0.05),
(16, 'WINE - IMPORTED', 0.0635, 0.10, 0.05),
(16, 'GIN', 0.0635, 0.10, 0.05),
(16, 'BOURBON', 0.0635, 0.10, 0.05),
diff --git a/src/hooks/useEntityConfig.tsx b/src/hooks/useEntityConfig.tsx
index 344ad076..a0720489 100644
--- a/src/hooks/useEntityConfig.tsx
+++ b/src/hooks/useEntityConfig.tsx
@@ -67,6 +67,7 @@ export const useEntityConfigInternal = <T,>(
) => {
const [cachedValue, setCachedValue] = useLocalStorage<T>(
`e_${entityId ?? 0}_${key}`,
+ defaultValue,
);
@jay-babu
jay-babu / useful.sql
Created April 17, 2024 16:37
Useful SQL Commands
-- table size, index size, total size
SELECT
table_name,
pg_size_pretty(table_size) AS table_size,
pg_size_pretty(indexes_size) AS indexes_size,
pg_size_pretty(total_size) AS total_size
FROM (
SELECT
table_name,
pg_table_size(table_name) AS table_size,
diff --git a/.github/ISSUE_TEMPLATE/pull_request_template.md b/.github/ISSUE_TEMPLATE/pull_request_template.md
new file mode 100644
index 0000000..a4210a8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/pull_request_template.md
@@ -0,0 +1,32 @@
+### All Submissions:
+
+- [ ] Have you added authorization guards based on permission levels?
+- [ ] Is developer-facing telemtry added?
This file has been truncated, but you can view the full file.
openapi: 3.0.2
x-stoplight:
id: c6861590dda46
info:
title: Finix API
contact:
name: Finix
url: 'https://finix.com'
email: support@finixpayments.com
version: '2022-02-01'

jq -r ".accessToken" ~/.aws/sso/cache/10c4f2dbd6011f68dc44925dcadadae57ef918c1.json

aws sso get-role-credentials --role-name AdministratorAccess --account-id 260558796113 --access-token

diff --git a/shell/.config/nvim/lua/user/lsp/on_attach.lua b/shell/.config/nvim/lua/user/lsp/on_attach.lua
index 256cae8..646103a 100644
--- a/shell/.config/nvim/lua/user/lsp/on_attach.lua
+++ b/shell/.config/nvim/lua/user/lsp/on_attach.lua
@@ -5,4 +5,14 @@ return function(client, bufnr)
inlayhints.on_attach(client, bufnr)
end
end
+
+ if client.name == "jdtls" then
@jay-babu
jay-babu / idealImplShapes.go
Created October 4, 2022 02:26
SOLID: Open-Closed Principle `ideal`
package main
import (
"fmt"
"math"
)
type geometry interface {
// Area of a shape
area() float64
@jay-babu
jay-babu / badImplShapes.go
Created October 4, 2022 01:57
SOLID: Open-Closed Principle `bad`
package main
import (
"fmt"
"math"
)
type badRect struct {
Width, Height float64
}