Skip to content

Instantly share code, notes, and snippets.

View thedevelobear's full-sized avatar
🐻
out in the woods

Jakub Szewczyk thedevelobear

🐻
out in the woods
View GitHub Profile
@thedevelobear
thedevelobear / memphisAnimation.js
Created March 25, 2022 15:49
Lottie-web memphis animation
const data = {
'v': '5.4.1',
'fr': 29.9700012207031,
'ip': 0,
'op': 75.0000030548126,
'w': 1280,
'h': 800,
'nm': 'Confetti',
'ddd': 0,
'assets': [
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
import React, { useState } from 'react';
import { Form, message, Modal } from 'antd';
import { useHistory } from 'react-router-dom';
import { useGlobalState } from '../../components/GlobalStateContext';
import { RequestDocumentsScreen } from './RequestDocuments';
import {
FormValues,
RequestDocumentsScreenProps,
@thedevelobear
thedevelobear / gist:599ef0a693aa870a26e4714086136203
Created June 21, 2019 09:54
Cognito custom verification email
var CustomMessage_ForgotPassword =
`
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
>
<head>
@thedevelobear
thedevelobear / zsh_rainbow
Last active July 25, 2023 13:10
ZSH Rainbow - a function that turns your username in zsh to a random emoji. Paste it in .zshrc
prompt_context() {
# Custom (Random emoji)
emojis=("⚡️" "🔥" "💀" "👑" "😎" "🐸" "🐵" "🦄" "🌈" "🍻" "🚀" "💡" "🎉" "🔑" "🇹🇭" "🚦" "🌙")
RAND_EMOJI_N=$(( $RANDOM % ${#emojis[@]} + 1))
prompt_segment black default "${emojis[$RAND_EMOJI_N]} "
}