Skip to content

Instantly share code, notes, and snippets.

View CapnKernel's full-sized avatar

Mitch Davis CapnKernel

  • Melbourne, Australia
View GitHub Profile
[CAM Processor Job]
Description[de]="<b>Generates Extended Gerber Format</b><p>\nThis CAM job consists of five sections that generate data for a two layer board.<p><p>\nYou will get five gerber files that contain data for:<br>\ncomponent side *.cmp<br>\nsolder side *.sol<br>\nsilkscreen component side *.plc<br>\nsolder stop component side *.stc<br>\nsolder stop solder sid *.sts<br>"
Section=Sec_1
Section=Sec_2
Section=Sec_3
Section=Sec_4
Section=Sec_5
Section=Sec_6
Section=Sec_7
Section=Sec_8
@CapnKernel
CapnKernel / models.py
Created October 29, 2014 02:11
peer saves v2 lite
# -*- coding: utf-8 -*-
from django.db import models
class C(models.Model):
role = models.CharField(max_length=20)
an_int = models.IntegerField(default=0)
master = models.ForeignKey('C', null=True, blank=True)
def save(self, *args, **kwargs):
@CapnKernel
CapnKernel / models.py
Created October 29, 2014 02:08
peer saves v1 verbose
# -*- coding: utf-8 -*-
from django.db import models
class C(models.Model):
role = models.CharField(max_length=20)
an_int = models.IntegerField(default=0)
master = models.ForeignKey('C', null=True, blank=True)
def __unicode__(self):
@CapnKernel
CapnKernel / 2pads.gbr
Created October 1, 2014 05:44
2pads.gbr
G04 This is an RS-274x file exported by *
G04 gerbv version 2.6A *
G04 More information is available about gerbv at *
G04 http://gerbv.geda-project.org/ *
G04 --End of header info--*
%MOIN*%
%FSLAX34Y34*%
%IPPOS*%
G04 --Define apertures--*
%ADD58C,0.0800*%
class NewOrChangeOrderForm(forms.Form):
customer = forms.ModelChoiceField(queryset=Customer.objects.order_by('id'), empty_label='<choose>')
payment_method = forms.ChoiceField(choices=payment_methods, initial='PP afork USD')
def __init__(self, *args, **kwargs):
super(NewOrChangeOrderForm, self).__init__(*args, **kwargs)
# Customise how we show customer name
self.fields['customer'].label_from_instance = lambda obj: "%s (%s %s)" % (obj.name, obj.firstname, obj.lastname) if obj.nick else "%s %s" % (obj.firstname, obj.lastname)
# If we're using this form to alter an existing order, don't allow the
{% extends "layout.html" %}
{% block content %}
<div class="video">
<iframe width="560" height="315" src="//w " frameborder="0" allowfullscreen></iframe>
</div>
<i class="ba girl"></i>
<i class="ba boy"></i>
<i class="ba onio"></i>
<a href="#" target="_blank" class="botao-market bt-appstore">Disponível na AppStore</a>
<a href="#" target="_blank" class="botao-market bt-google-play">Disponível na Google Play</a>
Environment:
Request Method: POST
Request URL: http://localhost:8001/
Django Version: 1.5.7
Python Version: 2.7.5
Installed Applications:
('django.contrib.admin',
import random
import logging
from django.db import models
hash_chars = (
'A', 'B', 'C', 'D', 'E', 'F', 'H', 'J', 'K', 'M', 'N', 'P', 'Q', 'R', 'S', 'T',
'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9'
)
# -*- coding: utf-8 -*-
# Django settings for hv project.
import os
import django.conf.global_settings as DEFAULT_SETTINGS
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (2014-07-09 BZR 4988)-product) date Tuesday, 15 July 2014 00:46:13*
%MOMM*%
G01*
G04 APERTURE LIST*
%ADD10C,0.150000*%
%ADD11C,0.075000*%
%ADD12C,0.100000*%
%ADD13C,0.200000*%