Skip to content

Instantly share code, notes, and snippets.

⛵️
Sailing around

Thibault Durand tdurand

⛵️
Sailing around
Block or report user

Report or block tdurand

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tdurand
tdurand / gltf.html
Last active Apr 24, 2019
GLTF viewer of maps3d.io
View gltf.html
<html>
<head>
<title>Model Viewer - Google</title>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
<style>
html, body {
font-family: sans-serif;
margin: 0;
padding: 0;
@tdurand
tdurand / active-link-query-bug-react-router.js
Created Mar 4, 2016
Active Link Unexpected behaviour with query param React Router
View active-link-query-bug-react-router.js
View remplaceImgLowRes
$(self.elImg).attr("src", self.currentStill.get("srcLowRes"));
@tdurand
tdurand / dabblet.css
Created Feb 6, 2015 — forked from stoikerty/dabblet.css
SVG alternative to fittext.js
View dabblet.css
/* SVG alternative to fittext.js */
div {
width: 300px;
height: 150px;
float: left;
margin-right : 10px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);
View set_timestamp_from_commit.sh
#!/bin/sh
OS=${OS:-`uname`}
if [ "$OS" = 'Linux' ]
then
update_file_timestamp() {
file_time=`git log --no-merges --format=%ai "$1" | head -n 1`
echo "change timestamp file $file_time $1"
touch -d "$file_time" "$1"
}
View devicelab.sh
#!/bin/sh
# Usage:
# Open browser on all connected devices -
# ./devicelab.sh
# Open a url on all connected devices -
# ./devicelab.sh http://paul.kinlan.me/
adb kill-server
port=9220
@tdurand
tdurand / tumblrscripts.html
Created Nov 25, 2012 — forked from vitorbal/tumblrscripts.html
Embed gists to Tumblr just by pasting the gist link directly
View tumblrscripts.html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/eojssfq/QG5m6cm3z/embedgist.js"></script>
@tdurand
tdurand / handler-routes-backbone.js
Created Nov 25, 2012
Blog : Discussing jQuery Mobile and Backbone.js integration with a simple FAQ App
View handler-routes-backbone.js
category:function(lang,id,idEntry) {
var categoryView=new CategoryView({id:id,lang:lang,idEntry:idEntry});
faq.appView.show(categoryView);
this.changePage(categoryView,transition);
$.mobile.showPageLoadingMsg();
},
@tdurand
tdurand / dabblet.css
Created Nov 21, 2012 — forked from chriscoyier/dabblet.css
Loading dot dot dot
View dabblet.css
/*
Loading dot dot dot
*/
body {
padding: 100px;
font-size: 62.5%;
}
.loading {
You can’t perform that action at this time.