Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
#!/bin/bash | |
# Run the below script only after "Install NDIS driver failed" error while trying to install Huawei modem drivers on linux. | |
# I checked this script on Ubuntu. | |
# Detailed explanation of this script was given here(http://askubuntu.com/a/414401/202806). | |
path="/usr/local/Mobile_Partner/driver" | |
if [ "$(ls -A $path)" ]; then | |
tput setaf 6; echo "Huawei modem drivers for linux are already installed on your pc.Please wait for NDIS driver installation."; tput sgr0 | |
perl -i -pe 's#^(\s*dbg \("can.t kmalloc dev"\);)#//$1#' /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c | |
cd $path |
# -*- coding: utf-8 -*- | |
from zope.component.hooks import getSite | |
import logging | |
log = logging.getLogger(__name__) | |
def unregister_broken_persistent_components(context): | |
portal = getSite() | |
sm = portal.getSiteManager() |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
mkdir -p $HOME/.buildout/{downloads,eggs,extends,zope} && echo $HOME $HOME $HOME $HOME | awk '{ printf( "[buildout]\neggs-directory = %s/.buildout/eggs\ndownload-cache = %s/.buildout/downloads\nextends-cache = %s/.buildout/extends\nzope-directory = %s/.buildout/zope\nabi-tag-eggs = true\n", $1, $2, $3, $4 ) }' >> ~/.buildout/default.cfg |
# -*- coding: utf8 -*- | |
class Persona(object): | |
""" Clase que representa una persona. """ | |
def __init__(self, cedula, nombre, apellido, sexo): | |
""" Constructor de clase Persona """ | |
self.cedula = cedula | |
self.nombre = nombre | |
self.apellido = apellido |
""" El tipado dinámico significa que los objetos en tiempo de | |
ejecución (valores) tienen un tipo, a diferencia del tipado | |
estático donde las variables tienen un tipo. | |
>>> variable = 11 | |
>>> print ((variable), type(variable)) | |
<class 'int'> | |
>>> variable = "activo" | |
>>> print ((variable), type(variable)) | |
<class 'str'> |
# -*- coding: utf8 -*- | |
""" El tipado dinámico significa que los objetos en tiempo de | |
ejecución (valores) tienen un tipo, a diferencia del tipado | |
estático donde las variables tienen un tipo. | |
>>> variable = 11 | |
>>> print variable, type(variable) | |
11 <type 'int'> | |
>>> variable = "activo" |
""" El fuertemente tipado significa que el tipo de valor no | |
cambia repentinamente. Una cadena que contiene solo dígitos | |
no se convierte mágicamente en un número. Cada cambio de tipo | |
requiere una conversión explícita. | |
>>> valor1 = 2 | |
>>> valor2 = "5" | |
>>> total = valor1 + valor2 | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> |
# -*- coding: utf8 -*- | |
""" El fuertemente tipado significa que el tipo de valor no | |
cambia repentinamente. Una cadena que contiene solo dígitos | |
no se convierte mágicamente en un número. Cada cambio de tipo | |
requiere una conversión explícita. | |
>>> valor1 = 2 | |
>>> valor2 = "5" | |
>>> total = valor1 + valor2 |
To use this:
pip install httpie
python3 my-httpserver.py
http
script from httpie
package,