Skip to content

Instantly share code, notes, and snippets.

View mindrones's full-sized avatar

Luca Bonavita mindrones

View GitHub Profile
@mindrones
mindrones / README.md
Last active August 29, 2015 13:58 — forked from mbostock/.block
Wrapping Long Labels (fork)

Fork of Wrapping Long Labels.

The difference is that we do a join to create the tspans, so that they have their own __data__, in case we want to use it. Here I color them based on their text length.

@mindrones
mindrones / meta
Created August 7, 2015 15:24
Homebrew: how to list installed bottles and their OS version?
bash command: brew info $(brew list) > output.txt
stackoverflow question: http://stackoverflow.com/questions/31876845/homebrew-how-to-list-installed-bottles-and-their-os-version
@mindrones
mindrones / .block
Last active March 11, 2016 09:35
Enabling and disabling zoom with a timer
license: gpl-3.0
scrolling: yes
@mindrones
mindrones / .block
Last active May 5, 2016 14:45
Love the new D3 simulation forces! :)
license: gpl-3.0
height: 700
> cycle_rollup@0.0.0 build ~/Dev/tryouts/cycle_report
> rollup -c
node_modules/symbol-observable/es/index.js (4:12) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten. See https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined for more information
Error parsing ~/Dev/tryouts/cycle_report/node_modules/es5-ext/object/set-prototype-of/shim.js: Unexpected token (78:5) in ~/Dev/tryouts/cycle_report/node_modules/es5-ext/object/set-prototype-of/shim.js
Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki
@mindrones
mindrones / .babelrc
Last active October 27, 2016 20:11
Browserify build works, Rollup build doesn't (https://github.com/rollup/rollup/issues/1086)
{
"presets": ["es2015"]
}
@mindrones
mindrones / .block
Last active November 5, 2017 22:34
The world population crowd
license: gpl-3.0
height: 700
@mindrones
mindrones / .block
Last active November 30, 2017 12:11
Infinite race
license: mit
@mindrones
mindrones / App.html
Created November 25, 2018 15:01
Pressed key
<svelte:window on:keydown="onkeydown(event)" />
<div>
<p>Pressed key: {pressed}</p>
</div>
<script>
export default {
data () {
return {
pressed: null
@mindrones
mindrones / App.html
Last active December 6, 2018 19:12
Dropdown
<select on:change="doSomethingWith(event)">
<option value="noerr">Por favor escolha uma opção</option>
<option value="err500" default>500</option>
<option value="err400" default>400</option>
</select>
{#if error}
<p>{error.status}: {error.msg}</p>
{/if}