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
<?php | |
# | |
# Using PHP Web Scraper Goutte in a Console Task in a Silex project | |
# | |
# http://www.testically.org/2011/09/30/using-php-web-scraper-goutte-in-a-console-task-in-a-silex-project/ | |
# | |
namespace Caefer; |
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
#!/bin/bash | |
acpi -b |\ | |
grep Battery |\ | |
awk '{ | |
if ( int($4) >= 98 ) { | |
system("/usr/local/bin/nma Battery Charged \"Desconecta el pinche cargador\" 0 > /dev/null") | |
} | |
if ( int($4) < 10 ) { | |
system("/usr/local/bin/nma Battery Charged \"Conecta el pinche cargador\" 0 > /dev/null") |
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
(function($){ | |
$.randomages = { | |
defaults: { | |
path: 'images/', | |
images: ['image1.jpg','image2.jpg'] | |
} | |
} | |
$.fn.extend({ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Webpage</title> | |
</head> | |
<body> | |
{% block base %}{% endblock%} | |
</body> | |
</html> |
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
{% extends "layout.html.twig" %} | |
{% block base %} | |
<div id="header"> | |
{% block header %} My WebPage {% endblock %} | |
</div> | |
<div id="content"> | |
{% block content %}{% endblock %} | |
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
{% extends "base.html.twig" %} | |
{% block content %} | |
contenido | |
{% endblock %} |
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
{% extends "base.html.twig" %} | |
{% block aside %} | |
Aside | |
{% endblock %} |
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
// web/index_dev.php | |
require_once __DIR__.'/../vendor/autoload.php'; | |
//inicio de la aplicación | |
$app = new Silex\Application(); | |
//Index | |
$app->match('/', function () { |
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
# .bashrc | |
# User specific aliases and functions | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
alias dl='drush dl' | |
alias en='drush en' | |
alias dis='drush dis' |
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
<?php | |
use \Solarium\Client as Client; | |
$config = array( | |
'endpoint' => array( | |
'localhost' => array( | |
'host' => '127.0.0.1', | |
'port' => 8080, | |
'path' => '/solr4/', |
OlderNewer