Skip to content

Instantly share code, notes, and snippets.

View trace2.json
{
"@context": "https://schema.n1analytics.com/api/monitor/1/system/list",
"offset": 0,
"limit": 300000,
"@list": [
{
"id": 0,
"spanTsUS": 1563069429900611,
"spanID": 1,
"parentID": 0,
View keybase.md

Keybase proof

I hereby claim:

  • I am maxott on github.
  • I am maxott (https://keybase.io/maxott) on keybase.
  • I have a public key whose fingerprint is B587 95C2 0C10 47F0 4CF5 FC8A 552D 2D06 D882 E048

To claim this, I am signing this object:

@maxott
maxott / test.asciidoc
Last active Aug 29, 2015
Testing AsciiDoc
View test.asciidoc

Lightweight Markup Languages

require 'asciidoctor'  # (1)

puts Asciidoctor.convert_file('sample.adoc', :header_footer => true)  # (2)
@maxott
maxott / try_rete.rb
Created Nov 12, 2012 — forked from jackhong/try_rete.rb
Try omf rete
View try_rete.rb
require 'pp'
require 'omf_rete/store'
N = 10
s = OMF::Rete::Store.create 3
(1..N).each do |i|
s.addTuple(["node_#{i}", 'status', (i % 2) == 0 ? 'ok' : 'failure'])
end
@maxott
maxott / test01.rb
Created Oct 9, 2012 — forked from jackhong/test01.rb
DSL in OMF 6
View test01.rb
# Original test01.rb
defProperty('res1', "unconfigured-node-1", "ID of a node")
defProperty('res2', "unconfigured-node-2", "ID of a node")
defGroup('Actor', property.res1)
onEvent(:ALL_UP) do |event|
wait 3
info "TEST - allGroups"
View density.js
// Create the map
var map = new google.maps.Map(d3.select("#map").node(), {
zoom : 11,
// center: new google.maps.LatLng(37.3943454817, -122.078649925),
center : new google.maps.LatLng(-33.778291, 151.168184),
mapTypeId : google.maps.MapTypeId.ROADMAP
});
// Load the location data. When the data comes back, create an overlay.
d3.json("destinations2.json", function(data) {
@maxott
maxott / index.html
Created Nov 17, 2011 — forked from mbostock/.block
SHowing all unassigned resources in an AM
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Available Resources</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0s"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore.js"></script>
<style type="text/css">
View index.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>Line Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.10.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.10.0"></script>
<script type="text/javascript" src="http://omf.mytestbed.net/projects/omf/repository/revisions/master/raw/omf-common/ruby/omf-common/web/tab/graph3/js/line_chart3.js"></script>
View index.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>Line Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.10.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.10.0"></script>
<script type="text/javascript" src="http://omf.mytestbed.net/projects/omf/repository/revisions/master/raw/omf-common/ruby/omf-common/web/tab/graph3/js/line_chart3.js"></script>