Skip to content

Instantly share code, notes, and snippets.

View maccevedor's full-sized avatar

Mauricio Acevedo Rueda maccevedor

View GitHub Profile
document.getElementsByTagName("BUTTON")[0];
@media all and (min-width: 480px) and (max-width: 900px) {
td.col_1{
display:none;
width:0;
height:0;
opacity:0;
visibility: collapse;
}
{# src/DMW/DemoBundle/Resources/views/Notice/index.html.twig #}
{% extends 'DMWDemoBundle::layout.html.twig' %}
{% block content %}
<div>
<p>Noticias recientes</p>
<ol>
{% for index,notice in notices %}
<li><a href="{{ path('DMWDemoBundle_noticeView', {'notice_id': index}) }}">{{notice.title}}</a></li>
{% endfor %}
@maccevedor
maccevedor / BitBucket
Created October 30, 2014 14:58
Download Commit Bitbucket
Example especific download commit with bitbucket , writing sha commit.
https://bitbucket.org/maccevedor/educampbackup/get/0512644.zip
@maccevedor
maccevedor / commit
Created October 30, 2014 14:23
Clone Commit
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>
@maccevedor
maccevedor / Terminal
Created August 21, 2014 13:48
Delete files mac , Applications
Sudo rm -Rf file
@maccevedor
maccevedor / terminal
Created August 5, 2014 15:37
Mac OS dar acceso a las subCarpetas
sudo chmod -R 777 app/*.*
@maccevedor
maccevedor / new_gist_file_0
Created July 28, 2014 18:22
Validar Formularios en Symfony
/**
* @var string $title
*
* @ORM\Column(name="title", type="string", length=255)
* @Assert\NotNull(message="Debe escribir un titulo")
*/
private $title;
@maccevedor
maccevedor / push
Created July 28, 2014 14:33
Comando BitBucket iniciar un proyecto
echo "Mauricio Acevedo|" >> contributors.txt
git add contributors.txt
git commit -m 'Initial commit with contributors'git push -u origin master
@maccevedor
maccevedor / selectSymfony.php
Created July 25, 2014 14:27
Consulta Symfony Doctrine
$em = $this->getDoctrine()->getEntityManager();
$dql = "select a from MDWDemoBundle:Articles a";
$query = $em->createQuery($dql);
$articulos = $query->getResult();