Skip to content

Instantly share code, notes, and snippets.

View moxpower's full-sized avatar
🦊

moxpower moxpower

🦊
View GitHub Profile
@moxpower
moxpower / Final Project
Last active February 4, 2016 11:30
jupyter notebook to test nbviewer
{
"cells": [
{
"cell_type": "code",
"execution_count": 52,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@moxpower
moxpower / index.html
Created October 6, 2015 20:32 — forked from dnprock/index.html
World Map
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@moxpower
moxpower / index.html
Created October 6, 2015 19:47 — forked from tomhaymore/index.html
Zoomable Icicle with Text in D3.js
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<style>
@moxpower
moxpower / git-version-control.markdown
Last active October 5, 2015 16:25 — forked from albatrocity/git-version-control.markdown
Some basic Git instructions for Github for Mac and the command line
@moxpower
moxpower / pandasrecipe.py
Last active October 2, 2015 17:41 — forked from why-not/gist:4582705
Pandas recipe:
"""quick way to create a data frame to try things out"""
df = pd.DataFrame(np.random.randn(5, 4), columns=['a', 'b', 'c', 'd'])
df['A'] """ will bring out a col """ df.ix[0] """will bring out a row, #0 in this case"""
"""Given a dataframe df to filter by a series s:"""
df[df['col_name'].isin(s)]
"""to do the same filter on the index instead of arbitrary column"""
df.ix[s]
@moxpower
moxpower / apod.py
Last active October 1, 2015 20:40 — forked from cwoebker/apod.py
A simple script that crawls NASA's Astronomy Picture of the Day.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
*********************************************
Nasa's picture of the day since 1995.
by Cecil Woebker (http://cwoebker.com)
*********************************************
Test