Skip to content

Instantly share code, notes, and snippets.

View tdhopper's full-sized avatar
©️
𝔀𝓸𝓻𝓴𝓲𝓷𝓰 𝓱𝓪𝓻𝓭

Tim Hopper tdhopper

©️
𝔀𝓸𝓻𝓴𝓲𝓷𝓰 𝓱𝓪𝓻𝓭
View GitHub Profile
{
"metadata": {
"name": "Merging Data Frames"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Regression bugs"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Untitled0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "_Scratch Work"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@tdhopper
tdhopper / gist:3876912
Created October 12, 2012 01:55
AllRecipes to Markdown
# Python script to scrape a recipe from AllRecipes.com into a Markdown-ish file. #
# Takes an AllRecipes.com URL as an argument. #
# I connected this to Alfred App so I simply have to paste a URL into Alfred.
import subprocess
import urllib2
from BeautifulSoup import BeautifulSoup
import re, string, sys, os
recipeDirection = os.path.expanduser("~/Dropbox/Text Notes/")
for (int i = 0; i <= numPartitions; i++)
{
Coordinate newCoord = IdealizedValleyFillCTL.ShiftPointAlongLine(
seg.P0,
(seg.P1.Y - seg.P0.Y) / (seg.P1.X - seg.P0.X),
seg.Length / numPartitions * i,
direction); if (i == numPartitions)
yield return newCoord;
}
8:36 AM
8:40 AM
8:43 AM
8:45 AM
8:51 AM
8:54 AM
9:12 AM
9:15 AM
9:45 AM
10:42 AM
{
"metadata": {
"name": "Seans-data"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "JSON Data"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${APPNAME}/0.8.2/dev"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/0.8.2/dev"
# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="--branding gephi -J-Xms64m -J-Xmx1512m -J-Xverify:none -J-Dsun.java2d.noddraw=true -J-Dsun.awt.noerasebackground=true -J-Dnetbeans.indexing.noFileRefresh=true -J-Dplugin.manager.check.interval=EVERY_DAY"
# for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch