Skip to content

Instantly share code, notes, and snippets.

View pcaro's full-sized avatar

Pablo Caro pcaro

View GitHub Profile
@haschek
haschek / _contrast.scss
Last active August 14, 2019 14:20
SCSS/SASS Accessibility Color Methods
/*
SCSS Color Methods for Accessibility
================================================================================
Adjust given colors to ensure that those color combination provide sufficient
contrast.
@version 0.1
@link http://eye48.com/go/scsscontrast
@fabiocerqueira
fabiocerqueira / openerp_client.py
Created August 30, 2011 19:33
Generic XMLRPC Client for OpenERP
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import xmlrpclib
class OpenERPAPI(object):
URL = 'http://your_server:8069/xmlrpc'
USER = 'your_user'
PWD = 'your_passoword'
DBNAME = 'your_dbname'
// COLOR ****************************************************/
$bordercolor: #888;
$activecolor: #D61518;
$aqua:#00FFFF;
$bisque:#ffe4c4;
$black:#000000;
$blue:#0000FF;
$brown:#A52A2A;
@pniederlag
pniederlag / openerp_setup_gist.py
Created June 29, 2012 07:28
automate openerp setup
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 29.03.2012
@author: pn
'''
import sys
import traceback
import argparse
@ganwell
ganwell / profile.sh
Last active October 8, 2015 03:48
Bash history of unique commands
# 5000 unique bash history lines that are shared between
# sessions on every command. Happy ctrl-r!!
shopt -s histappend
# Well the python code only does 5000 lines
export HISTSIZE=10000
export HISTFILESIZE=10000
export PROMPT_COMMAND="history -a; unique_history.py; history -r; $PROMPT_COMMAND"
@audreyfeldroy
audreyfeldroy / pypi-release-checklist.md
Last active February 23, 2023 15:03
My PyPI Release Checklist
  • Update HISTORY.md
  • Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@aras-p
aras-p / preprocessor_fun.h
Last active July 16, 2024 02:50
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,