Skip to content

Instantly share code, notes, and snippets.

View vagonzalez's full-sized avatar

Vidal González vagonzalez

  • Canarias, Spain
View GitHub Profile
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
"""
Custom log handler for posting log messages to HipChat.
The API documentation is available at https://www.hipchat.com/docs/api/method/rooms/message
The room id can be found by going to https://{{your-account}}.hipchat.com/rooms/ids
The tokens can be set at https://{{your-account}}.hipchat.com/admin/api
Dependencies: Requests (http://docs.python-requests.org)
"""

The order of the items in each group does matter for me. But it is just my personal preferances and you have still and always think about what option fits best (has the least amount of overhead) and wheather it is really neccessary. Less is more, especially when it comes to resources...


Testing

Framework

  1. joe ([github][joe-github], [npm][joe-npm])
  2. mocha ([github][mocha-github], [npm][mocha-npm])

Writing tests

import os
# Our django-pipeline settings
PATH_TO_HERE = os.getcwd()
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
PIPELINE_CSS = {
'standard': {
'source_filenames': (
from os import path, pardir
import sys
PROJECT_ROOT = path.dirname(path.abspath(__file__))
sys.path.append(path.join("apps"))
DEBUG = True
##### PIPELINE ################################################################