Skip to content

Instantly share code, notes, and snippets.

Avatar

Leonardo Gobatto lgobatto

View GitHub Profile
View taxonomy.py
from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils.translation import gettext_lazy as _
# Create your models here.
class CommonModel(models.Model):
name = models.CharField(max_length=128, unique=True)
created_at = models.DateTimeField(_('created date'), auto_now=True)
View gist:2818034f16ee965234028ab586689026
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" href="https://creativep2.local/wp-content/themes/creative_p2/favicon.ico" />
<title>Creative Production Partners</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="https://creativep2.local/wp-content/themes/creative_p2/font-face.css" />
<link rel="stylesheet" type="text/css" media="all" href="https://creativep2.local/wp-content/themes/creative_p2/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="https://creativep2.local/wp-content/themes/creative_p2/slider.css" />
View creativep2.html (old)
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="http://creativep2.com/app/xmlrpc.php">
<title>Creative Production Partners &#8211; Creativity in Progress&#8230;</title>
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
View docker-compose.yml
version: '3.5'
services:
php:
image: easyengine/php:v4.0.0
restart: always
labels:
- "io.easyengine.site=${VIRTUAL_HOST}"
volumes:
@lgobatto
lgobatto / example.php
Created Mar 22, 2012 — forked from jonathonbyrdziak/example.php
Wordpress Metabox, stand alone class for multiple metabox abilities
View example.php
<?php
/*
Here's a couple of metaboxes that I've recently created using this system
*/
$subpostings = redrokk_metabox_class::getInstance('subpostings', array(
'title' => '(optional) Subscription for Postings',
'description' => "As an optional feature, you have a complete api at your disposal which will allow you the ability to offer and manage member posts. In addition to these settings, you may need to create the associated pages for accepting posts from your frontend.",