- Complete this TODO.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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": "info-stocks" | |
}, | |
"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.
This file contains hidden or 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": "Day_21_EdwardLee" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or 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
# From https://code.google.com/p/modwsgi/wiki/ReloadingSourceCode | |
import os | |
import sys | |
import time | |
import signal | |
import threading | |
import atexit | |
import Queue | |
_interval = 1.0 |
This file contains hidden or 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 os | |
import monitor | |
monitor.start(interval=1.0) | |
monitor.track(os.path.join(os.path.dirname(__file__), 'site.cf')) | |
# ... | |
# The rest of your wsgi.py file |
This file contains hidden or 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 java.util.*; | |
import static org.junit.Assert.*; | |
import static org.junit.Assume.*; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Parameterized; | |
import org.junit.runners.Parameterized.Parameters; | |
import org.junit.experimental.theories.DataPoint; |
This file contains hidden or 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
float padding = Util.dpToPx(1); | |
RectF touchPoint = new RectF(x, y, x + padding, y + padding); | |
Path touchPointPath = new Path(); | |
touchPointPath.addRect(touchPoint, Path.Direction.CW); | |
for (int i = 0; i < mHourPaths.length; i++) { | |
hourPath = mHourPaths[i]; | |
touchPointPath.addCircle(x, y, padding, Path.Direction.CW); | |
touchPointPath.close(); | |
Path hourPathCopy = new Path(hourPath); |
This file contains hidden or 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
int[] colors = new int[]{ | |
getResources().getColor(R.color.flatui_red_1), | |
getResources().getColor(R.color.flatui_red_2), | |
getResources().getColor(R.color.flatui_orange_1), | |
getResources().getColor(R.color.flatui_orange_2), | |
getResources().getColor(R.color.flatui_yellow_1), | |
getResources().getColor(R.color.flatui_yellow_2), | |
getResources().getColor(R.color.flatui_green_1), | |
getResources().getColor(R.color.flatui_green_2), | |
getResources().getColor(R.color.flatui_blue_1), |
OlderNewer