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
/* Este es un ejemplo de fijar un bloque en la esquina superior izquierda, usando css | |
sacado de la libreria blackbird | |
Vamos a sacar una de las partes más interesantes, para colocar un bloque siempre a | |
la esquina superior izquierda: | |
*/ | |
#blackbird { | |
z-index:10; margin:0; padding:0; position:fixed; _position:absolute; | |
font:11px/1.3 Consolas, 'Lucida Console', Monaco, monospace; _border:2px solid #BBB; |
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
// Ext.ux.GMapPanel - Google Maps | |
// Extensión para ExtJs para crear mapas de google | |
function open_map(el, evn){ | |
_latitude = 10; | |
_longitude = -70; | |
winMap = new Ext.Window({ | |
layout: 'fit', | |
title: 'Unidad en google maps', | |
//closeAction: 'hide', |
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 | |
import pygtk | |
import datetime | |
import locale | |
pygtk.require('2.0') | |
t = 'Fri May 09 02:38:22 +0000 2008' | |
print datetime.datetime.strptime(t, "%a %b %d %H:%M:%S +0000 %Y") | |
print datetime.datetime.strftime(datetime.datetime.now(), '%a %b %d %H:%M:%S +0000 %Y') | |
print locale.getlocale() |
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/python | |
# -*- coding: UTF-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 | |
# Autor: Hector Miuler Malpica Gallegos | |
# Email: miuler@gmail.com | |
# Rev: $Rev | |
# ------------------------------------------------------------------- | |
import gtk | |
import datetime |
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/python | |
# -*- coding: UTF-8 -*- | |
# vim: ai ts=4 sts=4 et sw=4 | |
# Autor: Hector Miuler Malpica Gallegos | |
# Email: miuler@gmail.com | |
# Rev: $Rev | |
# ------------------------------------------------------------------- | |
""" | |
Este es un ejemplo de como agegar una método que genere |
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
-- DAR PERMISOS A TODAS LAS TABLA DES UN SCHEMA | |
-- ============================================ | |
-- Funcion para asigar todos lo privilegios a un usuario | |
-- para todas las tablas, vistas, | |
-- que pertenecen aun esquema en particular. | |
-- | |
-- Esta función te lo resuelve: | |
CREATE OR REPLACE FUNCTION grant_all_privileges(p_user text, p_schema text) | |
RETURNS void AS |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
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
" .VIMRC | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" TEMPORAL PARA USAR MIENTRAS USO DARES | |
au BufWritePost *.js silent! !ctags -R src/main/java src/main/webapp/resources/js/ & | |
au BufWritePost *.js :TlistUpdate | |
map ,rr :!rsync -avze ssh /home/miuler/Personal/Clients/Proyectos/gas/ virtuar0@miuler.com:/home1/virtuar0/miuler/www/www/dares/<CR> | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
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
object lzw { | |
trait Appendable[T] { | |
def append(value: T) | |
} | |
import scala.collection.generic._ | |
case class GrowingAppendable[T](growable: Growable[T]) extends Appendable[T] { | |
def append(value: T) { | |
growable += value |
OlderNewer