Skip to content

Instantly share code, notes, and snippets.

View alesasnouski's full-sized avatar

Alex Sasnouski alesasnouski

  • Elixirator
  • Poland
View GitHub Profile
#!/usr/bin/env escript
%% -*- erlang -*-
%%! +sbtu +A1
-mode(compile).
-export([init_server/1]).
-define(UNIT, nanosecond).
%%-define(UNIT, millisecond).
@thomasyip
thomasyip / common [stash] fields.py
Created July 22, 2012 04:19
Updated version of Django BigInt Patch for 64bit Primary Keys
"""
module mydjangolib.bigint_patch
A fix for the rather well-known ticket #399 in the django project.
Create and link to auto-incrementing primary keys of type bigint without
having to reload the model instance after saving it to get the ID set in
the instance.
Logs: