Skip to content

Instantly share code, notes, and snippets.

View dukeDanjou's full-sized avatar

William THIERRY dukeDanjou

View GitHub Profile

Blender Tips

Edge intersection

With Blender 2.8+ you can use the Auto Merge Tool to insert a vertex between intersecting edges.

enter image description here

Just enable the option Auto Merge and Split Edges & Faces in the Tool Shelf, then select a vertex and move it. Upon placing it down the tool will create vertices between the connected edges and the edges intersecting them.

  • Reveals js : Create Stunning Presentations on the Web reveal.js is an open source HTML presentation framework. It's a tool that enables anyone with a web browser to create fully-featured and beautiful presentations for free. https://revealjs.com/ Note : compatible with markup markdown \o/

  • StackEdit : In-browser Markdown editor

@Testcontainers(disabledWithoutDocker = true)
@DataCouchbaseTest
public class TestWithContainerIT {
@Autowired
private Bucket bucket;
@Autowired
private SomeRepository messageRepository;

Warning : using azerty + left click as select button (blender 2.79b)

Modeling

Action Shortcut
new element Shift + A
scale S
move G
rotate R
duplicate Shift + D
@dukeDanjou
dukeDanjou / batmanHeat.js
Created September 14, 2014 11:25
CodinGame Medium 2 - Heat Detector
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
var inputs = readline().split(' ');
var W = parseInt(inputs[0]); // width of the building.
var H = parseInt(inputs[1]); // height of the building.
var N = parseInt(readline()); // maximum number of turns before game over.
var inputs = readline().split(' ');
@dukeDanjou
dukeDanjou / horses.js
Created September 6, 2014 21:30
CodinGame Easy 10 - Horse-racing Duals
// Read inputs from Standard Input (use readline()).
// Write outputs to Standard Output (use print()).
function sortHorses(a , b )
{
return a-b;
}
const n = readline();
if( n < 2 )
@dukeDanjou
dukeDanjou / defibrilator.js
Created September 6, 2014 21:00
CodinGame Easy 10 - Defibrillators
// Read inputs from Standard Input (use readline()).
// Write outputs to Standard Output (use print()).
function readFloat ( string )
{
return parseFloat(string.replace(',','.'));
}
function Defibrilator ( name , longitude , latitude )
{
this.name = name ;
@dukeDanjou
dukeDanjou / MarsLanderLv1.js
Created September 6, 2014 18:51
CodinGame Easy 5 - Mars Lander - Level 1
// Read init information from standard input, if any
const N = parseInt(readline());
var maps = [];
var flatZone = [];
function Point( X, Y )
{
this.X = X;
this.Y = Y;
@dukeDanjou
dukeDanjou / onbarding.js
Created September 6, 2014 18:31
CodinGame Easy 1 - Onboarding
/**
* The code below will read all the game information for you.
* On each game turn, information will be available on the standard input, you will be sent:
* -> the total number of visible enemies
* -> for each enemy, its name and distance from you
* The system will wait for you to write an enemy name on the standard output.
* Once you have designated a target:
* -> the cannon will shoot
* -> the enemies will move
* -> new info will be available for you to read on the standard input.
@dukeDanjou
dukeDanjou / MIME.js
Created September 6, 2014 18:27
CodinGame Easy 9 - MIME Type
// Read inputs from Standard Input (use readline()).
// Write outputs to Standard Output (use print()).
const n = parseInt(readline());
const q = parseInt(readline());
var mimeMap = {};
function getMimeType ( fileName )
{