Skip to content

Instantly share code, notes, and snippets.

[tool.poetry]
name = "poetry-repro"
version = "0.1.0"
description = "reproduce a problem"
authors = ["Thomas Whaples <whaples@cadre.com>"]
[tool.poetry.dependencies]
python = "^3.7"
django-crispy-forms = {git = "https://github.com/django-crispy-forms/django-crispy-forms.git", rev = "7d7fc345986bf00b7047181448af71eaec28ebcb"}

Keybase proof

I hereby claim:

  • I am twhaples on github.
  • I am twhaples (https://keybase.io/twhaples) on keybase.
  • I have a public key ASC2_HtgyJCp2TXMBmXgkLIaZrMcCLe9B78vBx63DK9aBQo

To claim this, I am signing this object:

@twhaples
twhaples / gist:6391979
Created August 30, 2013 16:54
This is a Sinatra example from the Sinatra README.
get '/foo' do
status 418
headers \
"Allow" => "BREW, POST, GET, PROPFIND, WHEN",
"Refresh" => "Refresh: 20; http://www.ietf.org/rfc/rfc2324.txt"
body "I'm a tea pot!"
end
@twhaples
twhaples / pseudoimport.pl
Created February 4, 2013 18:39
This is an example of how imports in Perl do *not* work.
#! /usr/bin/perl
use strict;
use warnings qw(all);
package Foo;
BEGIN {
*Foo::pseudoimport = sub { printf "Cool beans!\n" };
}
@twhaples
twhaples / gist:1996553
Created March 7, 2012 22:06 — forked from buhrmi/gist:801746
Pessimistic Locking Strategy support for DataMapper (FOR UPDATE)
# This Patch makes it possible to retrieve row-locked records from data-objects repositories
# Sample Usage: User.locked.get(1)
# #=> SELECT [...] WHERE `id` = 1 ORDER BY `id` LIMIT 1 FOR UPDATE
# In user.rb
def self.locked
all(:with_locking => true)
end
# The actual patch