This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:6baf5a863f7167c4155fa8824ae158ef802992daa2b13cdc3e3c756a1e761def" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from traits.api import * | |
from traitsui.api import * | |
from chaco.api import Plot, ArrayPlotData | |
from enable.component_editor import ComponentEditor | |
class Rectangle(HasTraits): | |
width = Range(0.0, 10.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Test import of required and optional packages for SciPy 2015 tutorial | |
""" | |
from __future__ import print_function | |
import importlib | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Name: onewire.pde | |
Read data from multiple DS18x20 digital temperature sensors | |
DS18B20 <http://www.maxim-ic.com/datasheet/index.mvp/id/2812> | |
DS18S20 <http://www.maxim-ic.com/datasheet/index.mvp/id/2815> | |
* Detect number and type of sensors, and whether each is using parasitic power | |
* Gracefully handles plugging/unplugging of sensors (but will not | |
detect new sensors after initialization) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
based on gil_detector.py | |
http://codepad.org/CeI6gJLk | |
Swapped out multiprocessing for threading | |
Effective use of multiple processors is done by checking how fast multiprocess code | |
is executed in relation to single-threaded code. | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: iso-8859-15 -*- | |
"""Calculate position for comet Garradd | |
Author: Kelsey Jordahl | |
Time-stamp: <Sun Feb 26 12:28:17 EST 2012> | |
License: GPLv3 | |
""" | |
import ephem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests_oauthlib import OAuth1 | |
import json | |
from my_auth import APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET | |
# Number of tweets to capture | |
MAX_COUNT = 1000 | |
# New York City | |
west, south, east, north = -74.26, 40.48, -73.70, 40.92 |
OlderNewer