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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
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
<script type="text/javascript"> | |
(function(){ | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'; | |
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(s); | |
})(); | |
</script> |
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
a { | |
-webkit-transition: all 0.3s ease-in; | |
-moz-transition: all 0.3s ease-in; | |
-o-transition: all 0.3s ease-in; | |
transition: all 0.3s ease-in; | |
} |
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
$.extend($.expr[:], { | |
isInline: function(e) { | |
return $(e).css('display') == 'inline'; | |
} | |
}) |
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 python | |
import os | |
import web | |
from jinja2 import Environment,FileSystemLoader | |
# Router | |
urls = ( | |
"/.*", "hello", | |
'/contact', 'rsvp' |
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
/mobile/i.test(navigator.userAgent) && !location.hash && setTimeout(function () { | |
if (!pageYOffset) window.scrollTo(0, 1); | |
}, 1000); |
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
Avantages d'atoum sur PHPUnit : | |
# Sa rapidité | |
C'est "blazing fast". SERIOUSLY | |
# Simplicité de l'API | |
La documentation de PHPUnit est tellement longue qu'on s'y perd : la seule documentation dont j'ai eu besoin pour utiliser atoum, c'est son README et quelques posts du wiki parmi le bootstrap, le changement du namespaces pour les classes de tests et les mocks. | |
La lecture du code source pour les classes d'assert aussi. |
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
before_script: | |
- ./path/to/mongo-php-driver-installer.sh |
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 | |
namespace MyCompany\ControllerProvider; | |
use Silex\ControllerProviderInterface, | |
Silex\ControllerCollection, | |
Silex\Application, | |
Silex\Route; | |
/** |
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 remove php56 php56-igbinary php56-mcrypt php56-memcached php56-redis php56-xdebug php56-msgpack; | |
brew install php56 --disable-opcache --with-homebrew-curl --with-homebrew-libxslt --with-homebrew-openssl --without-apache --without-fpm; | |
brew install php56-igbinary; | |
brew install php56-mcrypt; | |
brew install php56-memcached --with-igbinary; | |
brew install php56-redis --with-igbinary; | |
brew install php56-msgpack; | |
brew install php56-xdebug; |
OlderNewer