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 | |
/* | |
* Test des fonctions random | |
* Copyleft 2012 - Antoine AUGUSTI - INSA de Rouen | |
* www.antoine-augusti.fr - antoine@augusti.fr | |
* | |
*/ | |
$nb_tests = 10000000; | |
$erreur_moyenne = 0; | |
$somme_erreur = 0; |
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 span.icon { | |
height: 24px; | |
width: 24px; | |
margin-right: 12px; | |
vertical-align: middle; | |
display: inline-block; | |
background:url(sprite.png); | |
} | |
a span.icon.blog { | |
background-position:0 0; |
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 | |
display_icon_social_network('Blog', '//blog.antoine-augusti.fr'); | |
display_icon_social_network('Cv', '//cv.antoine-augusti.fr'); | |
display_icon_social_network('Facebook', '//www.facebook.com/AntoineAugusti'); | |
display_icon_social_network('Twitter', '//www.twitter.com/AntoineAugusti'); | |
display_icon_social_network('Github', 'https://www.github.com/AntoineAug'); | |
display_icon_social_network('Instagram', '//statigr.am/antoineaugusti'); | |
display_icon_social_network('Feed','//www.antoine-augusti.fr/blog/feed/'); | |
?> |
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 | |
function display_icon_social_network ($alt,$link) | |
{ | |
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>'; | |
} | |
?> |
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 span.icon { | |
height: 24px; | |
width: 24px; | |
margin-right: 12px; | |
vertical-align: middle; | |
display: inline-block; | |
background:url(sprite.png); | |
} | |
a span.icon.blog { | |
background-position:0 0; |
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 display_icon_social_network ($alt,$link) | |
{ | |
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>'; | |
} |
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 display_icon_social_network ($alt,$link) | |
{ | |
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>'; | |
} |
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 | |
function display_icon_social_network ($alt,$link) | |
{ | |
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>'; | |
} | |
?> |
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
.keyboard_key { | |
display:inline-block; | |
min-width:10px; | |
height:18px; | |
padding:0 4px; | |
font-size:11px; | |
line-height:18px; | |
color:#555; | |
text-align:center; | |
background-color:#EEE; |
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
// Keyboard Shortcuts | |
// Antoine AUGUSTI - antoine@augusti.fr | |
// Merci à Adrien COURTOIS pour son aide | |
var isG = false; | |
$(document).keydown(function(e) | |
{ | |
if (e.which == 71 || e.keyCode == 71) | |
{ |