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
<h1>Match all image files (image/*)</h1> | |
<p><label>image/* <input type="file" accept="image/*"></label></p> | |
<h1>Match all video files (video/*)</h1> | |
<p><label>video/* <input type="file" accept="video/*"></label></p> | |
<h1>Match all audio files (audio/*)</h1> | |
<p><label>audio/* <input type="file" accept="audio/*"></label></p> | |
<h1>Match all image files (image/*) and files with the extension ".someext"</h1> |
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
sudo chmod -R 777 /Applications/Calculator.app |
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
# src/MDW/DemoBundle/Resources/config/routing.yml | |
blog_mostrar: | |
pattern: /blog/{slug} | |
defaults: { _controller: MDWDemoBundle:Blog:show } |
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
history | grep phrase_to_search_for |
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
$em = $this->getDoctrine()->getEntityManager(); | |
$dql = "select a from MDWDemoBundle:Articles a"; | |
$query = $em->createQuery($dql); | |
$articulos = $query->getResult(); |
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
echo "Mauricio Acevedo|" >> contributors.txt | |
git add contributors.txt | |
git commit -m 'Initial commit with contributors'git push -u origin master |
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
/** | |
* @var string $title | |
* | |
* @ORM\Column(name="title", type="string", length=255) | |
* @Assert\NotNull(message="Debe escribir un titulo") | |
*/ | |
private $title; |
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
sudo chmod -R 777 app/*.* |
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
Sudo rm -Rf file |
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
Github Tree View If the repo is in github, you can navigate to the tree view of the repo at https://github.com/<repo_name>/tree/<commit_sha> Then clicking on the Download ZIP button on the right-hand navigation bar will download the codes of that repo up to the specified commit. | |
Clone The Repo And Checkout The Specific Commit This will set the HEAD of your master to point to commit_sha. git clone -n <repo_name> git checkout <commit_sha> | |
Clone The Repo And Checkout The Specific Commit Into A Branch This will set the HEAD of your new_branch to point to commit_sha. git clone -n <repo_name> git checkout -b <new_branch> <commit_sha> |