Skip to content

Instantly share code, notes, and snippets.


Buti nobuti

Block or report user

Report or block nobuti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Four solutions

I have worked first with the file downloaded to make sure I got the result right. Those drafts are not here.

After that we have four solutions:

  1. A simple one that fetches the entire payload in one request.
  2. An streamed one, same idea, but processing by chunks.
  3. A parallel approach that speeds up the download using HTTP range requests.
  4. A variant of the previous one that parallelizes the computation as well.
ramiroaznar /
Last active Feb 3, 2017
Como hacer el mapa de Geología de España (Península Ibérica y Baleares) con CARTO BUILDER
ramiroaznar / styleCities.css
Created Sep 30, 2016
How to hide and show layers with CartoCSS based on zoom
View styleCities.css
/** cities style */
marker-fill-opacity: 0.8;
marker-line-color: #FFF;
marker-line-width: 0.2;
marker-line-opacity: 0.7;
marker-placement: point;
marker-type: ellipse;
marker-width: 10;
javivelasco /
Last active Feb 1, 2020
Proposal for lightning talk at Reactive Conf 2016

Please star ⭐️ the gist to help! This is a proposal for a ⚡️ talk at Reactive Conference.

Styling Components in React Toolbox 2

I wrote react-toolbox and presented it almost a year ago in lighning talk at Reactive Conf 2015 in Bratislava. At first it was just a proof of concept of a component library styled with CSS Modules and SASS. Now the project has grown quite a bit, and during this year there has been tons of changes and lessons learned.

Theming and customization is one of the most difficult and interesting problems to solve. For the first version we needed a custom Webpack loader to generate themes and doing simple style overrides was very painful. Today I'm working on a new playground that will allow you try CSS Modules live, and to create React Toolbox themes on the f

dverbovyi / gulpfile.js
Last active Apr 14, 2019
ES6 project with Gulp, Sass, Babel & Browserify
View gulpfile.js
* Created by Dmytro on 3/27/2016.
var browserify = require('browserify'),
gulp = require('gulp'),
sourcemaps = require('gulp-sourcemaps'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
addyosmani / package.json
Last active Feb 8, 2020
npm run-scripts boilerplate
View package.json
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
toolmantim / Makefile
Last active Nov 14, 2019
An example of using Make instead of Grunt for fast, simple and maintainable front-end asset compilation.
View Makefile
# A simple Makefile alternative to using Grunt for your static asset compilation
## Usage
# $ npm install
# And then you can run various commands:
# $ make # compile files that need compiling
# $ make clean all # remove target files and recompile from scratch
View Assetfile
require 'rake-pipeline-web-filters'
output "public"
class Rake::Pipeline::DSL::PipelineDSL
def production?
ENV['RAKEP_MODE'] == 'production'
jeffreyiacono / Rakefile
Created Feb 8, 2012
rake task for precompiling assets using sprockets within a sinatra app + view helpers
View Rakefile
require 'rubygems'
require 'bundler'
require './application'
namespace :assets do
desc 'compile assets'
task :compile => [:compile_js, :compile_css] do
You can’t perform that action at this time.