This file contains hidden or 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
inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a | |
function! s:align() | |
let p = '^\s*|\s.*\s|\s*$' | |
if exists(':Tabularize') && getline('.') =~# '^\s*|' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) | |
let column = strlen(substitute(getline('.')[0:col('.')],'[^|]','','g')) | |
let position = strlen(matchstr(getline('.')[0:col('.')],'.*|\s*\zs.*')) | |
Tabularize/|/l1 | |
normal! 0 | |
call search(repeat('[^|]*|',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) |
This file contains hidden or 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
import gevent | |
from gevent import socket, queue | |
from gevent.ssl import wrap_socket | |
import logging | |
logger = logging.getLogger('irc') | |
logger.setLevel(logging.DEBUG) | |
ch = logging.StreamHandler() |
This file contains hidden or 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
În contextul semantic variantă corectă este (5). | |
Partea 2 | |
B este mereu un parametru necesar care trebuie specificat. |
This file contains hidden or 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
*.swp | |
*~ |
This file contains hidden or 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
Daca voi cauta adresa IP din exterior, de exemplu prin whatismyip.com, voi gasi adresa IP externa, cea a router-ului. | |
Prin ipconfig voi vedea adresa calculatorului pe care sunt conectat la internet, cea interna. | |
Din acestea pot deduce ca din exterior se poate gasi doar adresa router-ului, a LAN-ului, nu si cea privata, | |
deoarece intre mine si internet exista router-ul, care permite retelei mele sa se conecteze la internet. |
This file contains hidden or 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
# Class for managing multiple servers or anything with start() and stop() methods | |
class ServerRack(object): | |
def __init__(self, servers): | |
self.servers = servers | |
def start(self): | |
started = [] | |
try: |
This file contains hidden or 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
Datorita faptului ca HTTP este un protocol stateless si trimite pachete de date separate | |
fara legaturi intre ele, browserul nu poate tine minte ce s-a intamplat pe acel IP/site, | |
dar pentru asta s-au creat asa numitele cookies integrate in clientii www cu ajutorul carora | |
browserul isi poate aminti date pe care acel site le-a prezentat in trecut, cum ar fi | |
numele sau e-mail-ul pe care le-ai introdus intr-un formular de contact. | |
Dar cookies nu are doar parti pozitive, el are si parti negative, deoarece un cookie | |
poate fi folosit pentru a crackui un cont de pe un anumit website, din aceasta cauza | |
unele site-uri, cum ar fi paypal.com nu folosesc cookies. Mai pe scurt "cookies" este folosit | |
pentru a stoca date folosite recent pe un site web. |
This file contains hidden or 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
# encoding: utf-8 | |
""" | |
A python logging Handler that use ZeroMQ (ØMQ). | |
+------+ +------+ +-------+ | |
| app1 | | app2 | | app X | | |
+------+ +------+ +-------+ | |
| PUSH | PUSH | PUSH | |
| | | |
This file contains hidden or 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 este un protocol standard de comunicare care prin calitatea sa de stateless | |
asigura transportul pachetelor de date intre client si daemon fara a fi retinuta | |
si stocata nici o informatie despre aceste pachete de date transmise. |
This file contains hidden or 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 este un protocol stateless, adica nu memoreaza datele transmise de la `daemon`. | |
Astfel, HTTP nu va retine nimic si nu va face legatura intre doua requesturi. Fiecare | |
request HTTP catre daemon este tratat independent. Unele aplicatii pe care le voi crea | |
pot necesita memorarea datelor, iar pentru aceasta vom folosi diferite metode precum | |
stocarea in baze de date sau in PC-ul vizitatorului, prin cookies. |
OlderNewer