Skip to content

Instantly share code, notes, and snippets.

@petrockblog
petrockblog / gist:3051595
Created July 5, 2012 05:49
Matlab plugin for Sublime Text 2
import sublime
import sublime_plugin
import os
class OpenmatlabfunctionCommand(sublime_plugin.TextCommand):
def run(self, edit):
for sels in self.view.sel():
didFind = False
@jo
jo / README.md
Created November 13, 2012 21:46
Selectable elements

Provide selection capabilities for DOM elements, geared to <select multiple>.

  • click: select element
  • ctrl + click: add element to current selection
  • click + move: select elements while dragging
  • ctrl + a: select all elements within focused list
  • ctrl + shift + a: deselect all elements within focused list
  • ctrl + click + move: toggle selection while dragging
  • shift + click: select range from nearest last selected element to clicked element
  • shift + ctrl + click: add range to current selection
@nbremer
nbremer / .block
Last active February 14, 2017 06:39
Brushable Horizontal Bar Chart - I
height: 540
@larsenmtl
larsenmtl / .block
Created May 21, 2016 16:57
Getting hover-interaction and brushing to co-exist
license: cc-by-sa-4.0
@mbostock
mbostock / .block
Last active April 2, 2018 18:47
Drag Slider
license: gpl-3.0
@zefer
zefer / Install_nginx_from_src_with_module.sh
Created February 16, 2011 12:26
Compile nginx from source, include the Headers More module - Ubuntu
sudo su -
# stuff we need to build from source
apt-get install libpcre3-dev build-essential libssl-dev
# get the nginx source
cd /opt/
wget http://nginx.org/download/nginx-0.8.54.tar.gz
tar -zxvf nginx*
# we'll put the source for nginx modules in here
@d3noob
d3noob / .block
Last active May 18, 2021 11:58
Favorite tooltip (complex version)
license: mit
@mbostock
mbostock / .block
Last active June 1, 2021 21:40 — forked from mbostock/.block
Multi-Series Line Chart
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-multi-line-chart
@jebeck
jebeck / CDT all about D3 time scales.png
Last active June 2, 2022 02:21
all about D3 time scales
CDT all about D3 time scales.png
@tmcw
tmcw / index.html
Created January 3, 2013 17:05
d3.keybinding
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font:12px/20px 'Helvetica';
}
textarea, input {
width:100%;
height:20px;
margin:0;