This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "time" | |
func main() { | |
c := make(chan string, 3) | |
go func() { | |
c <- "Testing, " | |
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UUIDField - a strictly binary, filterable, efficient UUID field that works with MySQL, PostgreSQL, SQLite3 | |
# Needs a lot more testing. Current version not tested on PostgreSQL. Partially based on David Cramer's | |
# UUIDField, with ideas taken from django-extensions, django's BinaryField and some other places. | |
import uuid | |
from django import forms | |
from django.db.models import Field, SubfieldBase | |
# Enable native UUIDs in PostgreSQL (from dcramer/django-uuidfield) | |
try: |
NewerOlder