This file contains 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
## ItemView.coffee in the specs/coffee folder ## | |
define ["ItemView"], (ItemView) -> | |
### | |
Specs for ItemView | |
### | |
describe "Item View", -> | |
### | |
Common setup and teardown |
This file contains 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
from hd44780 import HD44780 | |
import ctypes | |
from time import sleep | |
class CameraFilePath(ctypes.Structure): | |
_fields_ = [('name', (ctypes.c_char * 128)), | |
('folder', (ctypes.c_char * 1024))] | |
gp = ctypes.CDLL('libgphoto2.so.2') |
This file contains 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
""" | |
An example of minimum requirements to make MultiValueField-MultiWidget for Django forms. | |
""" | |
import pickle | |
from django.http import HttpResponse | |
from django import forms | |
from django.template import Context, Template | |
from django.views.decorators.csrf import csrf_exempt |
This file contains 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: utf-8 -*- | |
# | |
# multiple_dispatch.py | |
# | |
# My version: | |
# https://gist.github.com/fish2000/1af4b852d20b7568a9b9c90fe2346b6d | |
# | |
# Forked from the originall by @wolfv: | |
# https://gist.github.com/wolfv/73f56e4a9cac84eea6a796fde3213456 |
This file contains 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
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch of the current git/mercurial repository | |
# * the return value of the previous command | |
# | |
# USAGE: |