import { Hono } from "hono";
import PDFDocument from "pdfkit";
const app = new Hono();
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| usage() { | |
| printf 'Usage: %s "commit message" "file" ["file" ...]\n' "$(basename "$0")" >&2 | |
| exit 2 | |
| } | |
| if [ "$#" -lt 2 ]; then |
This file contains hidden or 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
| import cv2 | |
| import numpy as np | |
| from matplotlib import pyplot as plt | |
| left_image_address = '/home/deveshdatwani/Desktop/left.jpg' | |
| right_image_address = '/home/deveshdatwani/Desktop/right.jpg' | |
| left_image = cv2.imread(left_image_address, cv2.IMREAD_GRAYSCALE) | |
| right_image = cv2.imread(right_image_address, cv2.IMREAD_GRAYSCALE) |
This file contains hidden or 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
| import { forwardRef } from 'react'; | |
| import { LinkCore, LinkCoreProps } from 'solito/link'; | |
| import { AnchorProps, styled, Anchor } from 'tamagui'; | |
| const StyledTextLink = styled(Anchor, { | |
| name: 'TextLink', | |
| }); | |
| export type TextLinkProps = Pick<LinkCoreProps, 'href' | 'target'> & | |
| AnchorProps; |
This file contains hidden or 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
| import React, { ComponentProps } from 'react' | |
| import { ScrollView } from 'react-native' | |
| import { useDraggableScroll } from './use-draggable-scroll' | |
| export const DraggableScrollView = React.forwardRef< | |
| ScrollView, | |
| ComponentProps<typeof ScrollView> | |
| >(function DraggableScrollView(props, ref) { | |
| const { refs } = useDraggableScroll<ScrollView>({ | |
| outerRef: ref, |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
This file contains hidden or 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
| CREATE EXTENSION IF NOT EXISTS "unaccent" | |
| CREATE OR REPLACE FUNCTION slugify("value" TEXT) | |
| RETURNS TEXT AS $$ | |
| -- removes accents (diacritic signs) from a given string -- | |
| WITH "unaccented" AS ( | |
| SELECT unaccent("value") AS "value" | |
| ), | |
| -- lowercases the string | |
| "lowercase" AS ( |
This set of instructions goes with this presentation deck.
yum install postgis24_10
This file contains hidden or 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
| #!/usr/bin/bash | |
| # Download zeromq | |
| # Ref http://zeromq.org/intro:get-the-software | |
| wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz | |
| # Unpack tarball package | |
| tar xvzf zeromq-4.2.2.tar.gz | |
| # Install dependency |
- Update
package.json, setversionto a prerelease version, e.g.2.0.0-rc1,3.1.5-rc4, ... - Run
npm packto create package - Run
npm publish <package>.tgz --tag nextto publish the package under thenexttag - Run
npm install --save package@nextto install prerelease package
NewerOlder