Skip to content

Instantly share code, notes, and snippets.

@leehinde
leehinde / html.json
Created November 28, 2016 18:47
4D Snippets for Visual Studio Code
"4dscript": {
"prefix": "4dscript",
"body": [
"<!--#4dscript/$1-->"
]
},
"4deval": {
"prefix": "4deval",
"body": [
"<!--#4deval $1-->"
@leehinde
leehinde / gist:b2742213556f9d14232f
Last active September 21, 2018 09:01
4D Method that converts local date and time to GMT date and time...
// PROJECT METHOD: GMT_DateTime PATH: GMT_DateTime
// PARAMETERS
// $1 = pointer to variable that will hold GMT date
// $2 = pointer to variable that will hold GMT time
// $3 = local date (optional, defaults to current date)
// $4 = local time (optional, defaults to a current time, or one second past midnight if date is provided without the time.)
// ----------------------------------------------------
// RETURNED VALUE(s)
// none
// ----------------------------------------------------
Class Note(models.Model):
"""
Base storage object in system. All roads lead here.
"""
recipient = models.ManyToManyField(UserProfile, through = "NoteRecipient")
created_by = models.ForeignKey(UserProfile,
related_name = "created_by",
help_text="The person who created this note.")
subject = models.CharField(max_length=80,db_index=True,help_text="A topic sentence for this note.")
created = models.DateTimeField(auto_now_add=True,help_text="The date created. The default is 'today'.")