Skip to content

Instantly share code, notes, and snippets.

View tdurand's full-sized avatar

Thibault Durand tdurand

View GitHub Profile
{"mosaicjson": "0.0.3", "version": "0.0.1", "minzoom": 8, "maxzoom": 14, "quadkey_zoom": 8, "bounds": [-55.82600992669785, -35.32555493598746, -51.971435543157554, -33.39432388162573], "center": [-53.8987227349277, -34.359939408806596, 8], "tiles": {"21033002": ["https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/21/H/XC/2023/8/S2A_21HXC_20230805_0_L2A/TCI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/21/H/YC/2023/8/S2A_21HYC_20230805_0_L2A/TCI.tif"], "21033003": ["https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/21/H/YB/2023/8/S2A_21HYB_20230805_0_L2A/TCI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/22/H/BG/2023/8/S2A_22HBG_20230805_0_L2A/TCI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/21/H/XC/2023/8/S2A_21HXC_20230805_0_L2A/TCI.tif", "https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/21/H/YC/2023/8/S2A_21HYC_20230805_0_L2A/TCI.tif", "https://sentinel-cog
@tdurand
tdurand / gltf.html
Last active April 24, 2019 19:57
GLTF viewer of maps3d.io
<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 March 4, 2016 21:37
Active Link Unexpected behaviour with query param React Router
$(self.elImg).attr("src", self.currentStill.get("srcLowRes"));
@tdurand
tdurand / dabblet.css
Created February 6, 2015 16:38 — forked from stoikerty/dabblet.css
SVG alternative to fittext.js
/* 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);
#!/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"
}
#!/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 November 25, 2012 11:40 — forked from vitorbal/tumblrscripts.html
Embed gists to Tumblr just by pasting the gist link directly
<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 November 25, 2012 11:19
Blog : Discussing jQuery Mobile and Backbone.js integration with a simple FAQ App
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 November 21, 2012 15:12 — forked from chriscoyier/dabblet.css
Loading dot dot dot
/*
Loading dot dot dot
*/
body {
padding: 100px;
font-size: 62.5%;
}
.loading {