Skip to content

Instantly share code, notes, and snippets.

View Golodhros's full-sized avatar

Marcos Iglesias Golodhros

View GitHub Profile
@Golodhros
Golodhros / .block
Created June 4, 2020 20:33
Collapsible Tree
license: gpl-3.0
redirect: https://observablehq.com/@d3/d3-collapsible-tree
@Golodhros
Golodhros / .block
Created June 4, 2020 20:25
Collapsible Force Layout with Hover
license: gpl-3.0
@Golodhros
Golodhros / .block
Last active January 2, 2019 11:22
Bar Chart
license: gpl-3.0
@Golodhros
Golodhros / .block
Last active August 10, 2018 16:13
Bar Chart in D3 v5
license: gpl-3.0
@Golodhros
Golodhros / .block
Last active August 1, 2017 22:35
Britecharts Heatmap MVP
license: mit
@Golodhros
Golodhros / .block
Last active September 8, 2016 05:30
TDD Bushing Demo
license: mit
gulp.task('critical', function() {
var request = require('request');
var path = require( 'path' );
var criticalcss = require("criticalcss");
var fs = require('fs');
var tmpDir = require('os').tmpdir();
var cssUrl = 'http://PROJECT.dev/app/themes/sage/dist/styles/main-3c29b398.css';
var cssPath = path.join( tmpDir, 'style.css' );
var includePath = path.join( 'dist/styles/', 'critical.css' );
<?php
namespace Roots\Sage\LazyStyles;
use Roots\Sage\Assets;
/**
* Load theme scripts in the footer
* Ref: http://gomakethings.com/inlining-critical-css-for-better-web-performance/
*/
function load_theme_files() {
@Golodhros
Golodhros / javascriptTestObjectBuilder.js
Last active December 30, 2021 18:03
JavaScript Object Builder
/**
* @summary Generates a testObjectBuilder example object
* @requires underscore, requirejs/commonjs
*/
var testObjectBuilder = function(require) {
'use strict';
var _ = require('underscore'),
OrderModel = require('./order_model');
@Golodhros
Golodhros / README.md
Last active May 17, 2016 15:43
TDD D3 Template

Gist to serve as template for future TDD D3 blocks