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
Pour un nouveau repo : | |
git clone --recursive git://github.com/foo/bar.git | |
cd bar | |
Pour les repos déjà clonés : | |
git clone git://github.com/foo/bar.git | |
cd bar | |
git submodule update --init --recursive |
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
{%- set js -%} | |
jQuery(document).ready(function() { | |
$('#calendar').fullCalendar({ | |
events: { | |
url: '{{ uri.base.full }}evenements/load', | |
type: 'POST', | |
data: function() { | |
var data = { | |
'{{ token }}': '1', | |
'filters': [] |
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
/** | |
* Méthode pour uploader un avatar en AJAX. | |
* | |
* @return \stdClass | |
*/ | |
public function uploadavatar() { | |
// Init | |
$result = new \stdClass(); | |
$app = $this->getApplication(); | |
$input = $this->getInput(); |
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
<field name="avatarFile" | |
type="EtdSolutions.File" | |
class="form-control" | |
label="FORM_RESIDENT_FIELD_AVATAR_LABEL" | |
filter="string" | |
allowedFileExtensions="png,gif,jpg,jpeg,bmp" | |
accept="image/*" | |
showRemove="true" | |
showUpload="true" | |
dropZoneEnabled="false" |
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 _load($position, $style = 'none') { | |
$document = JFactory::getDocument(); | |
$renderer = $document->loadRenderer('module'); | |
$modules = JModuleHelper::getModules($position); | |
$params = array('style' => $style); | |
foreach ($modules as $module) { | |
echo $renderer->render($module, $params); | |
} |
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
brew install pkg-config libmemcached | |
git clone https://github.com/php-memcached-dev/php-memcached.git | |
cd php-memcached/ | |
git checkout php7 | |
/Applications/MAMP/bin/php/php7.0.8/bin/phpize | |
./configure --disable-memcached-sasl --with-libmemcached-dir=/usr/local/opt/libmemcached | |
make | |
make install | |
echo "extension=memcached.so" >> /Applications/MAMP/bin/php/php7.0.8/conf/php.ini |
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
#!/usr/bin/env bash | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Plateforme | |
LABELS["framework"]="BFD4F2" | |
LABELS["app"]="BFD4F2" |
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
h2:before { | |
display: block; | |
position: absolute; | |
left: -1050px; | |
top: 50%; | |
background-color: #ecc873; | |
height: 1px; | |
width: 1000px; | |
margin-top: -0.5px; | |
content: " "; |
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 | |
header('Content-Type: text/xml; charset=utf-8'); | |
echo file_get_contents("http://[WEBSITEURL]/index.php?option=com_osmap&view=xml&id=1"); |
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
## Mod_rewrite in use. | |
RewriteEngine On | |
# Sitemap dynamique | |
RewriteRule sitemap.xml sitemap.php [L] |
OlderNewer