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
# Brew Formulas | |
brew update | |
brew install libpng jpeg lzlib freetype readline openssl imap-uw curl postgresql libxml2 gettext libxslt mcrypt homebrew/dupes/libiconv icu4c expat | |
# MAMP | |
mkdir -p /Applications/MAMP/bin/php/php7.0.6/include | |
cd /Applications/MAMP/bin/php/php7.0.6/include | |
# Download PHP | |
wget -O php-7.0.6.tar.bz2 http://fr2.php.net/get/php-7.0.6.tar.bz2/from/this/mirror |
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
#!/bin/bash | |
PHP_VERSION=7.4.2 | |
# Command lines tools | |
xcode-select --install | |
# Install dependencies | |
brew install wget autoconf openssl lzlib curl imap-uw readline postgresql gettext libxslt libiconv bison pkg-config krb5 bzip2 openldap tidy-html5 | |
# Dirs |
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: " "; |
OlderNewer