Cerca
Heus ací els resultats de la cerca.
Noms de pàgina coincidents:
Resultats de text complet:
- think python @development:python
- or parámetro el delimitador * ''<delimitador>.join(<lista>)'': junta los elementos de la lista, poni... : ''cadenas[1] = 'DOS' '' * búquedas: '' 'tres' in cadenas'' -> true * recorridos: * ''for i in numeros:'' * ''for i in range(len(mixta)):'' * ''range(num)'': genera progresión aritmética
- Python iterables @development:python
- valor máximo de una colección iterable dada * min — Devuelve el valor mínimo de una colección itera... , 17, 18, 19, 20] even_number_list = [num for num in my_numbers if num%2 == 0] print(even_number_list)... yield counter counter += 1 for num in even_generator(20): print(num) </code> <code python> cube = (num ** 3 for num in range(1, 6)) for c in cube: print(c) </code>
- PYTHON @development:python
- ps://raw.githubusercontent.com/github/gitignore/main/Python.gitignore # init and activate virtual environment python3 -m venv ./venv && source venv/bin/activate # init Poetry. It will rely only the pre... lake8 src # Enforce styling poetry run autopep8 --in-place --recursive src # Using pytype for type che... s python sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 20 sudo update-alt
- Enum @development:java
- e + campo <sxh java> public enum WhoisRIR { ARIN("whois.arin.net"), RIPE("whois.ripe.net"), APNIC("whois.apnic.net"), AFRINIC("whois.afrin... <sxh java> System.out.println(WhoisRIR.ARIN.url()); //whois.arin.net </sxh> === simple + campo + lógica <sxh java> public enum Operation {
- Python: Entornos virtuales @development:python
- v virtualenv -p /home/username/opt/python-3.10.1/bin/python3 venv # crea venv pip3 install --upgrade ... pip failed with error code 1` error source venv/bin/activate # activar pip3 install <module> # instal... e virtualenv -p /home/username/opt/python-3.10.1/bin/python3 <environment_name> # activar source <environment_name>/bin/activate # desactivar deactivate </code> == venv
- core @development:php:codeigniter
- <campo>','<alias>');'' * ''$this->db->select_min('<campo>','<alias>');'' * ''$this->db->select... this->db->from('<tabla>');'' * ''$this->db->join('<tabla>','<condicion_join>');'' * ''$this->db->count_all('<tabla>')'' * ''$this->db->order_b... ere('<campo>','valor')'' * ''$this->db->where_in('<campo>','array_valores')'' * ''$this->db->w
- json @development:json
- ión <code javascript; ejemplo> { "ACTION": "domain.list", "DATA": [ { "TYPE": "slave", "AXFR_IPS": "none", "DOMAIN": "domain1.com", "TTL_SEC": 0, "SOA_EMAIL": "", "DOMAINID": 11111, "DESCRIPTI... E": "slave", "AXFR_IPS": "none", "DOMAIN": "domain2.net", "TTL_SEC": 0, "SOA_E
- Python strings @development:python
- (equality comparison): ==, != * Partial match: in, not in * Forward/backward match: startswith(), endswith() * Order comparison: <, <=, >, >= * C... letter “ f ”. The string itself can be formatted in much the same way that you would with str.format(... day:%B %d, %Y}") </code> Backslash Cannot be used in format string directly. <code python error> f"new
- jquery @development:jquery
- ackoverflow.com/questions/25874375/multiple-dates-in-bootstrap-date-picker]] === ejemplo <code html> ... script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script src="https://cdnjs.cloudfla... /cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script> <script type="text/javascript" src... .datatables.net/1.10.20/js/dataTables.bootstrap4.min.js"></script> <div id="desant" class="toast" r
- Python aberraciones @development:python
- , 17, 18, 19, 20] even_number_list = [num for num in my_numbers if num%2 == 0] </code> * [[info:cu... ['hello', 'world', 'you', 'look', 'nice'] ', '.join(f'[{w}]' for w in words) # '[hello], [world], [you], [look], [nice]' </code> * operador walrus:<cod... puede usar (en este caso en el condional). * Sin **:** da error de sintaxis. Se debería asignar a
- RegExp @development:java
- -> regexp extendidas * **\<palabra** : palabra sin que tenga nada a la izquierda (signo < escapado) * **palabra\>** : palabra sin que tenga nada a la derecha (signo > escapado) ... simplemente se usan otra expresión de reemplazo sin subexpresiones: <code bash>sed 's/.*/"&"/g' frase
- Python argparse @development:python
- * help: Muestra la ayuda del programa y finaliza sin hacer nada más. * version: Muestra la versi... arse.html#module-argparse]] <code python> #!/usr/bin/env python # -*- coding: utf-8 -*- import argpa... arser.parse_args() </code> <code python> #!/usr/bin/env python # -*- coding: utf-8 -*- import argpa
- Python decoradores @development:python
- ype)) # False print(type(function)) # <class '__main__.Decorator'> </code> == Decorando métodos de un... rint('En bar(...) : ',a,b,c) if __name__ == "__main__": bar(1, "Hola", True) #Out: # en decorador ... emplo decoración con clases <code python> #!/usr/bin/env python3 # -*- coding: utf-8 -*- from types i
- Item / Lista @development:php:item-lista
- () ) ); $oL->save(); $oP->delete(); </code> === IN / NOT IN from ARRAY <code php> $oListaT = new Lista("treballadors","id"); $oListaT->setRestrict('active','=','1'); $oListaT->setRestrict( 'id','IN',implode(',',getIdsTreballadorsGrup("MENJADOR"))
- angular: directivas y personalización @development:angular
- l:<sxh html; highlight:7> <div class="container main.container"> <h1>Demo <small>directivas</small... <sxh html; highlight:6-8> <div class="container main.container"> <h1>Demo <small>directivas</small