Skip to content

Instantly share code, notes, and snippets.

View chepecarlos's full-sized avatar

Jose Carlos Garcia Diaz chepecarlos

View GitHub Profile
@jameskoster
jameskoster / functions.php
Created March 11, 2013 11:24
WooCommerce - Add new product tab
add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
function woo_new_product_tab( $tabs ) {
// Adds the new tab
$tabs['test_tab'] = array(
'title' => __( 'New Product Tab', 'woocommerce' ),
'priority' => 50,
'callback' => 'woo_new_product_tab_content'
);
@joksan
joksan / Alfombra_Pro_Micro.ino
Created August 27, 2012 07:05
Codigo para la alfombra de baile de Grupo Linux
int mapa_botones[9] = { 5, 6, 7, 8, 9, 10, 16, 14, 15 };
int BotonesAnt[9] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 };
int BotonesAct[9] = { 1, 1, 1, 1, 1, 1, 1, 1, 1 };
void setup() {
int i;
for (i=0; i<9; i++) {
digitalWrite(mapa_botones[i], HIGH);
pinMode(mapa_botones[i], INPUT);
@malambra
malambra / usuarios.py
Created September 23, 2011 12:41
Script para creacion de usuarios Linux - Python
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Copyright: Manolo
Licencia: Affero GPL V3
Requisitos: Python 2.4
Script para crear usuarios Unix.
Uso:
----