Skip to content

Instantly share code, notes, and snippets.

View guignonv's full-sized avatar

Valentin Guignon guignonv

  • Bioversity International
  • Montpellier
View GitHub Profile
@guignonv
guignonv / tripal_dt.css
Created January 13, 2017 00:39
CSS file for tripal_dt @PAG2017
/**
* Tree elements defaults
*/
#tripal_dt-tree .node {
cursor: pointer;
}
#tripal_dt-tree .overlay {
border: 1px solid #000;
background-color: #efefef;
@guignonv
guignonv / d3.min.js
Created January 12, 2017 23:32
D3 Min JS for Tripal hackathon @PAG2017
!function(){function n(n,t){return t>n?-1:n>t?1:n>=t?0:0/0}function t(n){return null!=n&&!isNaN(n)}function e(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function r(n){return n.length}function u(n){for(var t=1;n*t%1;)t*=10;return t}function i(n,t){try{for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}catch(r){n.prototype=t}}function o(){}function a(n){return ia+n in this}function c(n){return n=ia+n,n in this&&delete this[n]}function s(){var n=[];return this.forEach(function(t){n.push(t)}),n}function l(){var n=0;for(var t in this)t.charCodeAt(0)===oa&&++n;return n}function f(){for(var n in this)if(n.charCodeAt(0)===oa)return!1;return!0}function h(){}function g(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function p(n,
@guignonv
guignonv / d3.dndtree.js
Last active January 13, 2017 01:15
Modified d3.dndtree for Triapl hackathon @ PAG 2017
/**
src: http://bl.ocks.org/robschmuecker/7880033
*/
(function ($, Drupal, window, document, d3) {
"use strict";
Drupal.tripal_dt = Drupal.tripal_dt || {};
/******************************************************************************/