Skip to content

Instantly share code, notes, and snippets.

View underlost's full-sized avatar
🦄
Unicorn.

Tyler Rilling underlost

🦄
Unicorn.
View GitHub Profile
@underlost
underlost / models.py
Created May 27, 2022 05:50
A simple geoJSON Example
class Event(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
name = models.CharField(max_length=250, blank=True, null=True)
description = models.CharField(
blank=True,
null=True,
max_length=512,
help_text="Reading a book, watching a movie, etc",
)
content = models.TextField(blank=True, null=True)
@underlost
underlost / Gistson.php
Created August 21, 2019 15:12 — forked from phatduckk/Gistson.php
Embed a Gist in Wordpress
<?php
/*
Plugin Name: Gistson - Embedded Gist WP Plugin
Plugin URI: http://arin.me/blog/tag/gistson
Description: Use a shortcode [gist id="12345"] to embed A Gist from http://gist.github.com into your blog
Version: 0.1
Author: Arin Sarkissian
Author URI: http://arin.me
Copyright 2009 Arin Sarkissian

Keybase proof

I hereby claim:

  • I am underlost on github.
  • I am underlost (https://keybase.io/underlost) on keybase.
  • I have a public key whose fingerprint is 43EF 5ED5 F72C 7CE6 CE52 E0CD 430B B7D6 AEBB D60B

To claim this, I am signing this object:

# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
@underlost
underlost / requirements.txt
Created January 23, 2012 19:09
requirements.txt file for Django on Heroku
Django==1.3.1
wsgiref==0.1.2
psycopg2==2.4.1
celery>=2.3.3
gunicorn==0.13.4
django-celery==2.4.2
@underlost
underlost / Procfile
Created January 23, 2012 19:08
Typical Procfile for Django on heroku
web: bin/python underlost/manage.py run_gunicorn -b 0.0.0.0:\$PORT -w 3
worker: bin/python underlost/manage.py celeryd -E -B --loglevel=INFO