Skip to content

Instantly share code, notes, and snippets.

View tigerza117's full-sized avatar
🎯
Focusing

tigerza117

🎯
Focusing
View GitHub Profile
@tigerza117
tigerza117 / SelectField.tsx
Created May 19, 2023 07:21 — forked from hubgit/SelectField.tsx
Use react-select with Formik
import { FieldProps } from 'formik'
import React from 'react'
import Select, { Option, ReactSelectProps } from 'react-select'
export const SelectField: React.SFC<ReactSelectProps & FieldProps> = ({
options,
field,
form,
}) => (
<Select
@tigerza117
tigerza117 / NoVNC_Paste.js
Created July 3, 2022 01:13 — forked from byjg/NoVNC_Paste.js
How to Paste code to NoVNC.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
window.sendString = function (str) {
f(str.split(""));
function f(t) {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);