Simple force-directed graph with just links, no weights or values, for industry supplies.
Crudely adapted from (http://bl.ocks.org/mbostock/4062045)
Simple force-directed graph with just links, no weights or values, for industry supplies.
Crudely adapted from (http://bl.ocks.org/mbostock/4062045)
int main() { | |
int dollars, cents; | |
float paid = 4.00f; | |
float price = 3.10f; | |
int paidInt = paid * 100; | |
int priceInt = price * 100; | |
int changeInt = paidInt - priceInt; | |
require 'socket' | |
require 'rubygems' | |
require 'collectd/pkt' | |
class Stats | |
def initialize name, instance, opts = {} | |
@name, @instance = name, instance | |
@sock = UDPSocket.new | |
@sock.connect opts[:host] || '239.192.74.66', |
# $Id: dns_cache.rb 5040 2007-10-05 17:31:04Z francis $ | |
# | |
# | |
require 'rubygems' | |
require 'eventmachine' | |
require 'resolv' | |
module EventMachine |
Adapted to Markdown format from rom Aman Gupta's gist at: http://gist.github.com/79224
Using:
require 'rubygems'
require 'eventmachine'
require 'benchmark' | |
require 'rubygems' | |
require 'rest_client' | |
Benchmark.bm(25) do |x| | |
etag = nil | |
x.report("(freshen view, fetch etag)") do | |
resp = RestClient.get "localhost:5984/gateway-development/_view/Image/all?include_docs=true&reduce=false" |