Skip to content

Instantly share code, notes, and snippets.

View jordanhudgens's full-sized avatar

Jordan Hudgens jordanhudgens

View GitHub Profile
@jordanhudgens
jordanhudgens / sheets.json
Created May 21, 2023 02:02
JSON object exported by the 'Sheets™ to JSON' Google Sheets™ addon.
{}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HTML CSS Animated Text</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
.slider-cursor {
@include flex-center();
position: fixed;
top: 0;
left: 0;
width: 30px;
height: 30px;
border: 3px solid $primary;
background-color: $off-white;
border-radius: 100%;
export const useMousePosition = () => {
const [mousePosition, setMousePosition] = React.useState({
x: null,
y: null,
});
React.useEffect(() => {
const mouseMoveHandler = (event: { clientX: number; clientY: number }) => {
const { clientX, clientY } = event;
setMousePosition({ x: clientX, y: clientY });

Custom filed name is hardcoded to exclusive with one of the values t, true, 1, yes. If the product was already listed it's required to change state to Overwrite to sync to MM. Same goes when changing exclusive to falsy value or removing it completely. With the amount of products right now it's best to Overwrite only those products with exclusive field set. With recent imports we managed to import new products at a rate of 1000/min, overwrite might be a bit faster.

Flxpoint UI is clunky and sometimes it doesn't add the custom field, this happens when typing in the name of the custom field it does a search request for similar fields. When results show up it's required to select the name from a dropdown list img

Otherwise it won't be saved! Reload the page to make sure. I've let flxpoint team know that this is really confusing.

Last note: it's possible to add custom fields in product catalo

import * as React from "react";
import {
DTCheckbox,
DTTextField,
DTToggle,
Heading,
Pane,
PaneAccordianContainer,
PaneAccordionItem,
PaneContentContainer,
require "socket"
require "escpos"
port = 9100
printer = Escpos::Printer.new
printer << "Testing from #{port}"
ip = "68.0.171.246"
type EmployeeType = {
email: string;
roles?: string[];
}
let data: {employees?: EmployeeType[]};
data = {
employees: [
{email: "test@example.com", roles: ["admin", "superAdmin"]},
const familyNames = ["Jordan", "Tiffany", "Kristine"];
// let capitalizedNames: string[] = [];
// for (var i = 0; i < familyNames.length; i++) {
// capitalizedNames.push(familyNames[i].toUpperCase())
// }
// console.log(capitalizedNames)
import React from "react";
import { StyleSheet, Animated } from "react-native";
const styles = StyleSheet.create({
imageOverlay: {
position: "absolute",
left: 0,
right: 0,
bottom: 0,
top: 0,