Skip to content

Instantly share code, notes, and snippets.

View Art2B's full-sized avatar

Arthur Battut Art2B

View GitHub Profile
@Art2B
Art2B / treejs_work.js
Last active August 29, 2015 14:23
Workaround with three.js
<!DOCTYPE html>
<html>
<head>
<title>My first Three.js app</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
</style>
</head>
<body>
@Art2B
Art2B / checkEmpty.js
Last active August 29, 2015 14:21
Check empty elements
$('p,em,b,strong,i,span,h1,h2,h3,h4,h5,h6,li').each(function() {
if($(this).text().length == 0 && $(this).children().length == 0){
console.log('Empty Element',$(this));
}
});
@Art2B
Art2B / gist:2f738b159565426d758f
Created March 23, 2015 17:14
array of name for svg <3
var objectsToClick = ['Objet-1', 'Objet-2', 'Objet-3', 'Objet-5',
'right-object-1', 'right-object-2', 'right-object-3', 'right-object-4', 'right-object-5', 'right-object-6a', 'right-object-7'];
var numberToClick = ['No-1', 'No-2', 'No-3', 'No-5',
'right-No-1', 'right-No-2', 'right-No-3', 'right-No-4', 'right-No-5', 'right-No-6', 'right-No-7'];
var lines = ['line-1', 'line-2', 'line-3', 'line-5', 'right-line-1', 'right-line-2', 'right-line-3', 'right-line-4', 'right-line-5', 'right-line-6', 'right-line-7'];
var lineTops = ['line-1-top', 'line-2-top', 'line-3-top', 'line-5-top', 'right-line-1-top', 'right-line-2-top', 'right-line-3-top', 'right-line-4-top', 'right-line-5-top', 'right-line-6-top', 'right-line-7-top' ];
var lineBottoms = ['line-1-bottom', 'line-2-bottom', 'line-3-bottom', 'line-5-bottom', 'right-line-1-bottom', 'right-line-2-bottom', 'right-line-3-bottom', 'right-line-4-bottom', 'right-line-5-bottom', 'right-line-6-bottom', 'right-line-7-bottom'];
@Art2B
Art2B / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console