Skip to content

Instantly share code, notes, and snippets.

View arsenovic's full-sized avatar

alex arsenovic arsenovic

View GitHub Profile
@arsenovic
arsenovic / HomogeneousCollections.py
Last active December 18, 2015 04:08
Provides classes for a Homogeneous Mutable Mapping (HomoDict) and Homogeneous Sequence (HomoList), which allow for quick accessing of the properties and methods of the elements, as well as searching like numpy arrays.
class HomoDict(collections.MutableMapping):
'''
A Homogeneous Mutable Mapping
Provides a class for a dictionary-like object which contains
homogeneous values. Attributes of the values can be accessed through
the attributes of HomoDict. Searching is done like numpy arrays.
Initialized from a dictionary containing values of all the same type
{
"metadata": {
"name": "Calibration Example"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@arsenovic
arsenovic / matplotlib to plotly demo
Created January 11, 2014 18:57
matplotlib to plotly demo
{
"metadata": {
"name": "Plotly Demo"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
<html>
<head>
<style type="text/css">
.left_col {
float: left;
width: 50%;
}
.right_col {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 Test</title>
<script type="text/javascript" src="d3/d3.js"></script>
<style type="text/css">
div.bar {
display: inline-block;
width: 20px;