This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import { | |
type ColumnDef, | |
flexRender, | |
getCoreRowModel, | |
useReactTable, | |
getPaginationRowModel, | |
getSortedRowModel, | |
getFilteredRowModel, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Learn more: https://dev.to/zechdc/autosize-input-field-plain-js-and-react-examples-38kb | |
import { cn } from "~/lib/shadcnui"; | |
interface InputAutosizeProps | |
extends React.InputHTMLAttributes<HTMLInputElement> { | |
value: string; | |
} | |
export default function InputAutosize({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.textable.co/docs/twilio-setup-guide/ | |
// Textable setup guide doesn't allow you to use Twilio functions or Studio easily. | |
// Instead, you can create a twilio function with this code, then use that function | |
// in Twilio Studio | |
// Add axios 0.20.0 as a dependency under Functions Global Config, Dependencies | |
const axios = require('axios'); | |
// Add qs 6.9.4 as a dependency under Functions Global Config, Dependencies | |
const qs = require('qs'); | |
const crypto = require('crypto'); | |
// Add awesome-phonenumber 2.55 as a dependency under Functions Global Config, Dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//snippet of our package.json | |
{ | |
"dependencies": { | |
"@sentry/browser": "^5.15.4", | |
"@sentry/integrations": "^5.15.4", | |
}, | |
"devDependencies": { | |
"@sentry/webpack-plugin": "^1.10.0", | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Below is the relevant snippets related to sentry | |
const SentryCliPlugin = require('@sentry/webpack-plugin'); | |
const EnvConfig = require('./env'); | |
// EnvConfig.SENTRY_ENABLED = true; | |
function initSourceMaps() { | |
if (EnvConfig.SENTRY_ENABLED) { | |
return 'source-map'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**! | |
* Sortable | |
* @author RubaXa <[email protected]> | |
* @license MIT | |
*/ | |
(function sortableModule(factory) { | |
"use strict"; | |
if (typeof define === "function" && define.amd) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
throw new Error('WHYYYY'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A-- | |
|--B-- | |
|--C | |
|--D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shuffle(deck){ | |
randomNumber(0, 100); | |
}; | |
function randomNumber(min, max){ | |
//do stuff | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder