Previous Version. This version is implemented using D3 Version 4.
A visualization of the mean nutrient contents of all 8789 foods in USDA's SR28 Nutrient Database.
Data processed with SQLite and Node.js.
Also see the Nutrient Explorer.
license: mit |
license: gpl-3.0 |
Previous Version. This version is implemented using D3 Version 4.
A visualization of the mean nutrient contents of all 8789 foods in USDA's SR28 Nutrient Database.
Data processed with SQLite and Node.js.
Also see the Nutrient Explorer.
function logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
# NOTES | |
# Spotify 0.9 vs 1.0 is stable, uses less resources overall and works well with Spotify Connect, SpotCommander, Local Files etc | |
# Tested and works on Fedora 29 64-bit with GNOME, but should work on previous versions as well | |
# The sources of the Dropbox files, which are hosted by me and the latest and greatest available, are listed above each one | |
# No system files will be overwritten by these or used by other programs since they depend on the later Fedora versions | |
# Make sure you copy the whole lines into Terminal | |
# Each command is on one line and might be long | |
# START GUIDE |
This is an example of adding simple interface for single axis zoom and pan capability using the mouse. When the mouse is over the x
or y
axes, the panning and zooming with the mouse will execute on only those axes. When the mouse is over the main plotting canvas, pan and zoom with the mouse works on both axes. Feel free to comment on the gist.
.col-ms-1, | |
.col-ms-2, | |
.col-ms-3, | |
.col-ms-4, | |
.col-ms-5, | |
.col-ms-6, | |
.col-ms-7, | |
.col-ms-8, | |
.col-ms-9, | |
.col-ms-10, |
Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
Important: your node location may vary. Use which node
to find it, or use it directly in the command:
#!/bin/bash | |
# hook into inotify to watch a file, and generate | |
# diffs for changes in real-time | |
# | |
# requires inotify-tools (apt-get install inotify-tools) | |
# | |
# @author Filipe Dobreira <[email protected]> | |
usage() { | |
echo "Usage:" | |
echo " in-diff <file>|help" |
// Usage: $form.find('input[type="checkbox"]').shiftSelectable(); | |
// replace input[type="checkbox"] with the selector to match your list of checkboxes | |
$.fn.shiftSelectable = function() { | |
var lastChecked, | |
$boxes = this; | |
$boxes.click(function(evt) { | |
if(!lastChecked) { | |
lastChecked = this; |