Skip to content

Instantly share code, notes, and snippets.

View andybak's full-sized avatar

Andy Baker andybak

View GitHub Profile
import django_admin_blocks
django_admin_blocks.register({
'script_blocks': [
{'url_path': 'js/jQuery.cookies.js'},
{'url_path': 'js/cms_admin.js'},
],
})
# Requires https://github.com/andybak/codebase-python-api-client.git
import csv
from codebase.client import CodeBaseAPI
codebase = CodeBaseAPI(username='account name/user name', apikey='your key here', project='project name')
tickets = [codebase.ticket(ticket_id=x) for x in range(1,151)]
f = open('tickets.csv', 'wb')
tickets = [x['ticket'] for x in tickets if x.get('ticket')]
def set_stock_count(self, timestamp, stock_level):
StockCount.objects.filter(timestamp__gte=timestamp, stock_item=self).delete()
StockCount.objects.create(timestamp=timestamp, stock_level=stock_level, stock_item=self)
<p><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning></w:PunctuationKerning>
<w:ValidateAgainstSchemas></w:ValidateAgainstSchemas>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
See below. Remember - the sizes tell you two things:
a) the minimum size you should use. Scaling images up makes them look blurry
b) the proportions of the image. You can upload a larger image and we'll resize it automatically but it still needs to fit in a hole of these proportions. Anything taller or wider will get cropped.
Home
-------
slideshow: 563x364
bottom images: 252x150
@andybak
andybak / test
Created February 26, 2014 16:10
1 On the other hand, DNS might not be the panacea that cyberinformaticians expected. Though conventional wisdom states that this quandary is mostly surmounted by the construction of the Turing machine that would allow for further study into the location-identity split, we believe that a different solution is necessary.
2 Based on ISD empirical literature, is suggested that structures like ISDM might be invoked in the ISD context by stakeholders in learning or knowledge acquisition, conflict, negotiation, communication, influence, control, coordination, and persuasion. Although the structuration perspective does not insist on the content or properties of ISDM like the previous strand of research, it provides the view of ISDM as a means of change.
3 McKeown uses intersecting multiple hierarchies in the domain knowledge base to represent the different perspectives a user might have. This partitioning of the knowledge base allows the system to distinguish between different types of information tha
@andybak
andybak / _.md
Created March 5, 2014 22:34
Circles01
@andybak
andybak / _.md
Created March 5, 2014 22:44
Circles02
@andybak
andybak / _.md
Created March 7, 2014 15:35
Circles06