Skip to content

Instantly share code, notes, and snippets.

View AntoineAugusti's full-sized avatar
🚄
High speed, low carbon

Antoine Augusti AntoineAugusti

🚄
High speed, low carbon
View GitHub Profile
// Keyboard shortcuts
var isG = false;
var peutFaireAction = true;
$(document).ready(function()
{
$("input").focus(function(){
peutFaireAction = false;
});
$("input").mouseover(function(){
@AntoineAugusti
AntoineAugusti / gist:2854724
Created June 1, 2012 19:47
Classement Elo
<?php
/*
// Classement Elo
// Antoine AUGUSTI - antoine@augusti.fr
*/
//************** CONFIGURATION ****************//
//**********************************************/
// cote initiale de P1
@AntoineAugusti
AntoineAugusti / gist:2792962
Created May 26, 2012 08:49
Keyboard shortcut style
.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;
@AntoineAugusti
AntoineAugusti / gist:2792947
Created May 26, 2012 08:38
Keyboard shortcuts
// 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)
{
<?php
function display_icon_social_network ($alt,$link)
{
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>';
}
?>
function display_icon_social_network ($alt,$link)
{
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>';
}
function display_icon_social_network ($alt,$link)
{
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>';
}
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;
<?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/');
?>
<?php
function display_icon_social_network ($alt,$link)
{
echo '<a href="'.$link.'" target="_blank" title="'.ucfirst($alt).'"><span class="icon '.strtolower($alt).'"></span></a>';
}
?>