Code to generate the map of India
The string is a run-length encoding of the map of India. Alternating characters in the string stores how many times to draw a space, and how many times to draw an exclamation mark consecutively.
[mai mult...]Soluții pentru problemele tale IT
The string is a run-length encoding of the map of India. Alternating characters in the string stores how many times to draw a space, and how many times to draw an exclamation mark consecutively.
[mai mult...]Command Prompt-ul (CMD-ul) este un tool pe care il folosim des in activitatea de suport tehnic si nu numai. In solutia actuala va voi arata cum sa il accesati din Run.
[mai mult...]In acest tutorial o sa va prezint cum sa compilati Pawn (in special, pentru SA-MP). in Sublime Text 3.
Ce este Sublime Text 3?
Sublime Text 3 este un editor de text foarte personalizabil, cu o mulțime de caracteristici interesante, pe care nu le gasiti in editorul standard Pawno sau Notepad ++.
Dati click pe icoana ‘autodl-irssi’ dupa care alegeti optiunea ‘Preferences’:
[mai mult...]preg_replace( $pattern, $replacement, $subject);
Parameters:
$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt
mango
apple
papaya
guava
apple
grapes
mango
apple
This program deletes the entire word from the file.
[mai mult...]preg_replace( $pattern, $replacement, $subject);
Parameters:
$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt
mango
apple
papaya
guava
apple
grapes
mango
apple
This program deletes a specific content from the file using preg_replace() function.
[mai mult...]