redux-api makes it easy to access REST APIs from a React+Redux app. This is a very basic example app showing its usage.
// Basic Android-implementation of Modal | |
// | |
// based on https://github.com/niftylettuce/react-native-loading-spinner-overlay | |
import React, {StyleSheet, View} from 'react-native'; | |
const Portal = require('react-native/Libraries/Portal/Portal.js'); | |
export default React.createClass({ |
Basic example showing how to make a chart based on d3.chart
using the new and shiny UMD interface. This is currently being discussed
in #117, and not ready for use. It will be! present from d3.chart 0.3.0 onwards.
git clone https://gist.github.com/5789e5b2a295156ea48e.git && cd 5789e5b2a295156ea48e.git
npm install
webpack index.js build.js
- open
index.html
- see a basic circle graph
When developing a program in Ruby, you may sometimes encounter a memory leak. For a while now, Ruby has a facility to gather information about what objects are laying around: ObjectSpace.
There are several approaches one can take to debug a leak. This discusses a time-based approach, where a full memory dump is generated every, say, 5 minutes, during a time that the memory leak is showing up. Afterwards, one can look at all the objects, and find out which ones are staying around, causing the
Install Ubuntu Server 15.04 in VirtualBox and enable OpenSSH. Then:
sudo apt-get install -yy apt-transport-https software-properties-common wget
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_9.2.0~kxstudio1_all.deb
sudo dpkg -i kxstudio-*.deb
sudo apt-get update
d3.chart.sankey: Reusable D3 Sankey diagram using d3.Chart.
Interactive Sankey diagram.
d3.chart.sankey: Reusable D3 Sankey diagram using d3.Chart.
D3's classic energy sankey diagram built using d3.chart.sankey
.
d3.chart.sankey: Reusable D3 Sankey diagram using d3.Chart.
This diagram shows how the ingredients may contribute to the total sustainability of a chocolate bar through different issues.

#!/usr/bin/env ruby | |
# | |
# Basic script to retrieve book metadata. | |
# | |
# Usage: genbooks.rb <isbn> [<isbn> [...]] >books.json | |
# Outputs json file with book metadata, for use as input to genpage.rb | |
# | |
# TODO | |
# - add bol.com | |
# - add amazon.com books |