Skip to content

Instantly share code, notes, and snippets.

d3.csv("data/gates_money.csv", function(data) {
custom_bubble_chart.init(data);
custom_bubble_chart.toggle_view('all');
});
$(document).ready(function() {
$('#view_selection a').click(function() {
var view_type = $(this).attr('id');
$('#view_selection a').removeClass('active');
$(this).toggleClass('active');
@margulies
margulies / wos.php
Created April 6, 2013 18:02 — forked from pol/wos.php
<?php
$auth_url = "http://search.isiknowledge.com/esti/wokmws/ws/WOKMWSAuthenticate?wsdl";
$auth_client = @new SoapClient($auth_url);
$auth_response = $auth_client->authenticate();
print_r($auth_response);
echo "REQUEST HEADERS:\n" . $auth_client->__getLastRequestHeaders() . "\n";
$search_url = "http://search.isiknowledge.com/esti/wokmws/ws/WokSearchLite?wsdl";
@margulies
margulies / wos.php
Created April 6, 2013 17:59 — forked from pol/wos.php
<?php
$auth_url = "http://search.isiknowledge.com/esti/wokmws/ws/WOKMWSAuthenticate?wsdl";
$auth_client = @new SoapClient($auth_url);
$auth_response = $auth_client->authenticate();
print_r($auth_response);
echo "REQUEST HEADERS:\n" . $auth_client->__getLastRequestHeaders() . "\n";
$search_url = "http://search.isiknowledge.com/esti/wokmws/ws/WokSearchLite?wsdl";
@margulies
margulies / index.html
Last active December 15, 2015 21:09 — forked from nrabinowitz/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Histogram</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.min.js"></script>
<style type="text/css">
body {
margin: 3em;
}
<html>
<head>
<title>Interactive Line Graph</title>
<script src="http://d3js.org/d3.v2.js"></script>
<!--
using JQuery for element dimensions
This is a small aspect of this example so it can be removed fairly easily if needed.
-->
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="sample_data.js"></script>
# -*- coding: utf-8 -*-
# <nbformat>3</nbformat>
# <codecell>
import argparse
import os
from surfer import Brain
import scipy.io as sio