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
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" /> | |
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" /> | |
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" /> | |
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" /> | |
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png" /> | |
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" /> | |
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" /> | |
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" /> | |
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" /> | |
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" /> |
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
####### REQUIRE JQUERY ######### | |
//============== USAGE EXEMPLE =================== | |
var formRegister = 'form#register'; | |
//validate the requiered fields and validate fields | |
var formInputs = validate_inputs(formRegister + ' input'); | |
// //Check if all the requiered fields are equal to the validated fields and that there's no error fields |
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
####### REQUIRE JQUERY ######### | |
//============== USAGE EXEMPLE =================== | |
flash("Flash message", 'info'); | |
//============== HTML ==================== | |
<div class="response"> | |
<h1></h1> |
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
ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
cat ~/.ssh/id_rsa.pub | pbcopy |
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
<meta name="theme-color" content="#FF2813"> |
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
======================== COMPOSER REFERENCE ================= | |
composer install // for building composer.json dependencies | |
composer dump-autoload // to rebuild the autoload file |
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 | |
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
//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
//namespacing event | |
$( 'li' ).on( 'click.logging', function() { | |
console.log( 'a list item was clicked' ); | |
}); | |
$( 'li' ).on( 'click.analytics', function() { | |
doSomethingElse(); | |
}); | |
$( 'li' ).off( 'click.logging' ); |
NewerOlder