This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: iso-8859-15 -*- | |
from tastypie.resources import ModelResource | |
class SpineFrontedResource(ModelResource): | |
"""A base model resource for spine-fronted models. | |
* Bins the 'id' that spine sends. | |
* Removes 'meta' from the list, returns only objects. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
import argparse | |
import commands | |
from datetime import datetime | |
try: | |
import progressbar as pb | |
except ImportError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# watch.rb by Brett Terpstra, 2011 <http://brettterpstra.com> | |
# with credit to Carlo Zottmann <https://github.com/carlo/haml-sass-file-watcher> | |
# edited by Dave Arter to refresh Chrome using code suggested in Brett's original blog post: <http://brettterpstra.com/watch-for-file-changes-and-refresh-your-browser-automatically/> | |
# edited more by Steve Pike to not do any of that, and instead recompile coffee. | |
trap("SIGINT") { exit } | |
if ARGV.length < 1 | |
puts "Usage: #{$0} watch_folder" |
NewerOlder