djangosnippets.org: Latest snippets tagged with 'generator'https://djangosnippets.org/tags/generator/2010-12-15T06:01:18.956213-06:00JavaScript implementation of Python xrange() builtin
2010-12-15T06:01:18.956213-06:00fish2000https://djangosnippets.org/snippets/2287/<p>I don't like not having the <code>range()/xrange()</code> in JavaScript &mdash; particularly when working with <a href="http://documentcloud.github.com/underscore/">Underscore.js</a> and other such libraries &mdash; so I wrote it.</p>
<p>It's not rocket science, but it might help make the world a slightly less annoying place for a couple of people.</p>
Freely redistributableCopy/Paste form generation
2007-11-06T14:11:13.435714-06:00dballanchttps://djangosnippets.org/snippets/458/<p>Generator to help make newforms classes a bit like inspectdb does for generating rough model code. This is a standalone script to go in your project directory with settings.py and called from the prompt. It looks up the model, and generates code to copy/paste into your app. Hopefully to make …</p>
Freely redistributable