Skip to content

Instantly share code, notes, and snippets.

View gpennington's full-sized avatar

Garrett Pennington gpennington

View GitHub Profile
@gpennington
gpennington / apex_json
Created February 13, 2015 21:01
Apex expression as JSON
{
'objectName':'Account',
'conditions':[
{
'type':'first';
'expressions': [
{
'operator':'equals',
'value1':'SVMXC__Order_Status__c',
'value2':'Parts Needed'

Keybase proof

I hereby claim:

  • I am gpennington on github.
  • I am gpennington (https://keybase.io/gpennington) on keybase.
  • I have a public key whose fingerprint is CA23 EA34 7FF7 2A07 23BA 9DB3 9E67 68CD 5EEC AEA6

To claim this, I am signing this object:

@gpennington
gpennington / gist:8676650
Last active January 4, 2016 20:49
Pulse Area/Users
#webserver
(activate virtualenv first)
python manage.py shell --settings=settings.production
#python console
>>> from django.contrib.auth.models import User
>>> from meta.models import Area
>>> janelle = User.objects.get(pk=2)
>>> hodgins2 = User.objects.get(pk=54)
@gpennington
gpennington / template.html
Created December 7, 2011 23:00
Multiple Inline Formsets example for Eddie
<form method="post" action=".">
{{ sunday_formset.management_form }}
{{ monday_formset.management_form }}
{{ tuesday_formset.management_form }}
{% csrf_token %}
<p>sunday form</p>
{% for form in sunday_formset %}
<p>{{ form }}</p>