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
<VirtualHost *:80> | |
ServerName daluen.localhost.org #server local | |
ServerAdmin [email protected] #Mail del sysadmin | |
#Establecer la ruta del proyecto | |
DocumentRoot /home/lesthack/public_html/daluen | |
#Establecer la ruta del proyecto | |
<Directory /home/lesthack/public_html/daluen> | |
Options FollowSymLinks |
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 mutagen import File | |
file = File('some.mp3') # mutagen can automatically detect format and type of tags | |
artwork = file.tags['APIC:'].data # access APIC frame and grab the image | |
with open('image.jpg', 'wb') as img: | |
img.write(artwork) # write artwork to new image |
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 | |
""" | |
example.py | |
Created in 2010 by Ulrik Sverdrup <[email protected]> | |
This work is placed in the public domain. | |
""" | |
import gtk | |
import keybinder |
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
prototipo_parameters: | |
_attributes: { phpName: Parameters } | |
id: | |
name: { type: VARCHAR, size: '50', required: true } | |
value: { type: VARCHAR, size: '100', required: true } |
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 gi.repository import Gtk,WebKit | |
def ftest(): | |
print "testing ok" | |
def load_finish(param1, param2): | |
print "termino de cargar" | |
dom = view.get_dom_document() | |
test = dom.get_element_by_id("test") | |
test.connect_object('click-event', ftest, test) |
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
http://www.youtube.com/watch?v=ecMBOZ8YDew | |
http://www.youtube.com/watch?v=YOjrkrudZj8 | |
http://www.youtube.com/watch?v=6rSizcgAtXA&feature=related | |
http://www.youtube.com/watch?v=5EgPIfKXolc | |
http://www.youtube.com/watch?v=fsd1R74t8DM |
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
<?php | |
... | |
public function parseArrayToJSon($object){ | |
if( $this->is_assoc($object) ){ | |
$ctotal = count($object); | |
$ccount = 0; | |
$source = ""; | |
foreach($object as $key=>$value){ |
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
<VirtualHost *:80> | |
ServerName django.localhost.com | |
ServerAdmin [email protected] | |
<Location "/"> | |
SetHandler python-program | |
PythonHandler django.core.handlers.modpython | |
SetEnv DJANGO_SETTINGS_MODULE preventa.settings | |
PythonDebug On | |
PythonPath "['/home/lesthack/public_html/django', '/home/lesthack/public_html/django/preventa'] + sys.path" |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<graphics.h> | |
#include<conio.h> | |
main() | |
{ | |
int a,b; | |
int n,xc; |
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
# -*- coding: utf-8 -*- | |
ADMINS = ( | |
('', ''), | |
) | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | |
'NAME': 'nibiru', # Or path to database file if using sqlite3. |
OlderNewer