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
| #!/usr/bin/env node | |
| 'use strict'; | |
| var spawn = require('child_process').spawn; | |
| var args = [ | |
| '--harmony', | |
| 'app/bootstrap.js' | |
| ]; |
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
| <?php | |
| /* | |
| * doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php | |
| * | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
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
| <?php | |
| /** | |
| * La Clase LDAP permite abstraer una conexión con un servidor de autenticación LDAP | |
| * Esta Clase permite autenticarse a través de un servidor LDAP así como obtener datos | |
| * del Servidor. | |
| * | |
| * @author José Gabriel González <jgabrielsinner10@gmail.com> | |
| * @createdAt 2012-02-17 | |
| * @editedAt 2012-08-24 |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| <VirtualHost *:80> | |
| ServerName sgc | |
| ServerAlias sgc sgc.dev sgc.com.ve | |
| SetEnv SYMFONY__DATABASE__USER "postgres" | |
| SetEnv SYMFONY__DATABASE__PASSWORD "postgres" | |
| DocumentRoot "/var/www/sgc/web" | |
| DirectoryIndex app.php |
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
| # Este comando funciona para descargar una versión de Symfony2 (2.1.3) y crear un proyecto con el framework. Descarga todos los vendors preconfigurados. | |
| composer create-project symfony/framework-standard-edition myproject/ 2.1.3 | |
| # Este comando permite generar un nuevo bundle dentro del proyecto symfony2 | |
| php app/console generate:bundle --namespace=Sgi/CommonBundle --format=yml | |
| # Este comando permite que la función assets vincule correctamente los recursos | |
| php app/console assets:install web | |
| # comando que permite limpiar la caché |
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
| <?php | |
| abstract class BaseModelManager { | |
| protected $em; | |
| protected $class; | |
| protected $repository; | |
| protected $container; | |
| /** | |
| * Constructor. |
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
| <VirtualHost *:80> | |
| ServerName sgc | |
| ServerAlias sgc sgc.dev sgc.com.ve | |
| SetEnv SYMFONY__DATABASE__USER "postgres" | |
| SetEnv SYMFONY__DATABASE__PASSWORD "postgres" | |
| DocumentRoot "/var/www/sgc/web" | |
| DirectoryIndex app.php |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> | |
| <title>Pure CSS Scrollable Table with Fixed Header</title> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <meta http-equiv="language" content="en-us" /> | |
| <script type="text/javascript"> | |
| <!-- | |
| /* http://www.alistapart.com/articles/zebratables/ */ | |
| function removeClassName (elem, className) { | |
| elem.className = elem.className.replace(className, "").trim(); |