Skip to content

Instantly share code, notes, and snippets.

@kubinka0505
kubinka0505 / outdated.py
Last active February 26, 2024 20:32
[does not work, don't use] Simple script providing multiline text draw with emoji support (Pillow & emojicdn)
"""Simple script providing multiline text draw with emoji support (Pillow & emojicdn)"""
import io
from requests import get
from textwrap import wrap
from urllib.parse import quote_plus
from emoji import emojize, demojize, UNICODE_EMOJI
from PIL import Image, ImageDraw, ImageFont, UnidentifiedImageError
#-----#
@tir38
tir38 / terminalTimer.sh
Last active August 26, 2020 14:10
in-terminal timer shell script
# script to create timer in terminal
# Jason Atwood
# 2013/6/22
#!/bin/sh
# start up
echo "starting timer script ..."
sleep 1 # seconds
# get input from user
@jwo
jwo / devise.rb
Created October 13, 2012 17:36
OmniAuth with Twitter
config.omniauth :facebook, FACEBOOK_APP_ID, FACEBOOK_APP_SECRET, { :scope => 'user_status,publish_stream' }
config.omniauth :twitter, TWITTER_KEY, TWITTER_SECRET
@guilleferrer
guilleferrer / Date Range Mongo Query
Created January 24, 2012 11:50
Query for a date range using Mongo Timestamps
db.Collection.find({
created_at : {
'$gte': new Timestamp(new Date(2012, 0, 21), 0),
'$lte': new Timestamp(new Date(2012, 0, 22), 0)
})