Skip to content

Instantly share code, notes, and snippets.

View lizturp's full-sized avatar

Elizabeth lizturp

View GitHub Profile
@davidson-joseph
davidson-joseph / cloudformation-kinesis-fh-delivery-stream.yaml
Last active July 28, 2022 07:24 — forked from lizturp/cloudformation-kinesis-fh-delivery-stream.json
AWS Cloudformation template to build a firehose delivery stream to S3, with a kinesis stream as the source. JSON, but it's fine.
AWSTemplateFormatVersion: '2010-09-09'
Description: The AWS CloudFormation template for Kinesis Stream
Parameters:
Environment:
Description: dev, stage, or prod - this is for bucket tags
Type: String
MinLength: '3'
MaxLength: '5'
Resources:
KinesisStream:
@Alex-Just
Alex-Just / strip_emoji.py
Last active May 27, 2024 16:44
Python regex to strip emoji from a string
import re
# http://stackoverflow.com/a/13752628/6762004
RE_EMOJI = re.compile('[\U00010000-\U0010ffff]', flags=re.UNICODE)
def strip_emoji(text):
return RE_EMOJI.sub(r'', text)
print(strip_emoji('🙄🤔'))