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
if(preg_match('/android|blackberry|htc|iphone|ipad|ipaq|ipod|mobile/', strtolower($_SERVER['HTTP_USER_AGENT']))) { | |
$ismobile = 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
<?php | |
/** | |
* Controler PhotoGallery | |
* @author Jimmy Latreille | |
* @email jlatreille@os.ca | |
* @date 3 septembre 2013 | |
*/ | |
class Ckx_PhotoGallery_IndexController extends Mage_Core_Controller_Front_Action{ |
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 | |
# Phalcon Framework | |
# | |
# Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | |
# | |
# This source file is subject to the New BSD License that is bundled | |
# with this package in the file docs/LICENSE.txt. | |
# | |
# If you did not receive a copy of the license and are unable to |
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
table tr:nth-of-type(even){background: transparent;} | |
table tr:nth-of-type(odd){background: #e4e4e4;} |
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
img { | |
max-width: 100%; | |
height: auto; | |
} | |
@media \0screen { | |
img { | |
width: auto; /* for ie 8 */ | |
} | |
} |
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
<!--[if lt IE 9]> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<![endif]--> | |
<!--[if (gte IE 9) | (!IE)]><!--> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<!--<![endif]--> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> |
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
//namespacing event | |
$( 'li' ).on( 'click.logging', function() { | |
console.log( 'a list item was clicked' ); | |
}); | |
$( 'li' ).on( 'click.analytics', function() { | |
doSomethingElse(); | |
}); | |
$( 'li' ).off( 'click.logging' ); |
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
//asynchronously javascript script function | |
function getScript(url){ | |
var elem = document.createElement('script'), | |
script = document.getElementsByTagName('script')[0]; | |
elem.src = url; | |
elem.type = 'text/javascript'; | |
elem.async = true; | |
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
/* ================================================ */ | |
/* Responsive - Media queries */ | |
/* ================================================ */ | |
/*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/ | |
/*At least requires the meta viewport tag with content 'width=device-width'*/ | |
@media only screen and (max-width: 1080px) and (orientation : portrait) { | |
/* PORTRAIT: | |
Windows Surface Pro*/ | |
} |
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
## Mercurial Workflow | |
hg clone http://bitbucket.org/repo => Clone un depot | |
hg log => Pour affichier les log ou hg glog pour plus d'info | |
hg status => Pour afficher le status des changements | |
hg merge => Pour merger des fichier | |
OlderNewer