Skip to content

Instantly share code, notes, and snippets.

@Thibaut-B
Thibaut-B / index.html
Last active November 15, 2016 19:29
Inline svg icon
<svg width="16" height="16">
<use xlink:href="sprite.svg#github"></use>
</svg>
@Thibaut-B
Thibaut-B / index.html
Last active November 8, 2016 21:08
SVG Sprites
<svg width="16" height="16">
<use xlink:href="sprite.svg#github"></use>
</svg>
@Thibaut-B
Thibaut-B / main.js
Created October 7, 2015 13:14
Find the closest location
var cities = [
{
name: 'berlin',
latitude: '52.5167',
longitude: '13.3833',
},
{
name: 'athena',
latitude: '37.9667',
longitude: '23.7167',
@Thibaut-B
Thibaut-B / index.html
Created February 19, 2015 14:46
Facebook Open Graph
<meta property="og:image" content="jquerymobile.jpg"/>
<meta property='og:title' content='tuto open graph facebook '/>
<meta property='og:site_name' content='Thibaut développeur web et mobile' />
<meta property='og:url' content='http://thibaut-baillet.com/blog/tutoriaux/open-graph-facebook/' />
<meta property='og:type' content='article' />
@Thibaut-B
Thibaut-B / map.html
Created February 19, 2015 14:43
Google Maps with jQuery Mobile
<!DOCTYPE HTML>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Google Maps</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<style>.page-map, .ui-content, #map-canvas { width: 100%; height: 100%; padding: 0; }</style>
@Thibaut-B
Thibaut-B / humans.txt
Created February 19, 2015 14:37
Standard humans.txt
/* TEAM */
Développeur HTML5 : Nom prénom
Site : http://exemple.com
Twitter : @twitter
Location : France
[...]
/* THANKS*/
Traducteur : Nom prénom
@Thibaut-B
Thibaut-B / style.css
Created February 19, 2015 14:33
input submit on iOS
input[type=submit]{
-webkit-appearance: none;
border-radius: 0;
}
@Thibaut-B
Thibaut-B / style.css
Last active August 29, 2015 14:15
Font smoothing Firefox
-moz-osx-font-smoothing: grayscale;
server {
listen 80;
server_name server.mydomain.net
root /var/www/app/web;
index index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
@Thibaut-B
Thibaut-B / font-ie.js
Created April 14, 2013 18:53
Font face icon for IE6 and 7
window.onload = function() {
function addIcon(el, entity) {
var html = el.innerHTML;
el.innerHTML = '<span style="font-family: \'fontName\'">' + entity + '</span>' + html;
}
var icons = {
'icon-newspaper' : '&#xe000;',
'icon-play' : '&#xe001;',
'icon-film' : '&#xe002;'
},