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 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
diff --git a/tensorflow/python/ops/math_grad.py b/tensorflow/python/ops/math_grad.py | |
index 9e255c2..58338d1 100644 | |
--- a/tensorflow/python/ops/math_grad.py | |
+++ b/tensorflow/python/ops/math_grad.py | |
@@ -266,7 +266,15 @@ def _ErfcGrad(op, grad): | |
@ops.RegisterGradient("Lgamma") | |
def _LgammaGrad(op, grad): # pylint: disable=unused-argument | |
# TODO(ebrevdo): implement digamma | |
- raise NotImplementedError("grad(Lgamma) == Digamma is not implemented") | |
+ |
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
# language corpus here: http://www.kilgarriff.co.uk/BNClists/all.al.gz | |
# a tale of two cities here: http://www.gutenberg.org/cache/epub/98/pg98.txt | |
import math | |
import re | |
codes = {} | |
codelens = {} | |
def baseN(num,b,numerals="abcdefghijklmnopqrstuvwxyz"): |
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 csv | |
AM_PEAK_LEN=3.0 #hours, 6am-9am | |
PM_PEAK_LEN=3.0 #hours 3pm-6pm | |
ROUTE_ROW=0 | |
CUR_TRIP_PEAK_AM=3 | |
CUR_TRIP_PEAK_PM=4 | |
PROP_TRIP_PEAK_AM=5 | |
PROP_TRIP_PEAK_PM=6 |
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 | |
############################################################################### | |
# $Id$ | |
# | |
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008 | |
# Global Map Tiles Classes | |
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326, | |
# generate a simple HTML viewers based on Google Maps and OpenLayers | |
# Author: Klokan Petr Pridal, klokan at klokan dot cz | |
# Web: http://www.klokan.cz/projects/gdal2tiles/ |
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
var http = require('http'); | |
var xml2js = require('xml2js'); | |
var mongodb = require('mongodb') | |
// get mongdb handle | |
var db = new mongodb.Db('test', new mongodb.Server("127.0.0.1", 27017, {})) | |
// keep track of the last time we got a response from nextbus | |
var lastTime = 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
from urllib2 import urlopen | |
from bs4 import BeautifulSoup | |
import time | |
def get_voice_details( soup, i ): | |
resptag = soup.find_all("li", class_="response-%d"%i)[0] | |
name, br, occupation = resptag("p",class_="occupation")[0].contents | |
name = " ".join( name.split()[:-1] )#last word is a dash | |
occupation = occupation.strip() |
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 csv | |
import dateutil.parser | |
import calendar | |
#track 100 has a lot of nice pauses | |
#TRACK = 2000 #defines a box! | |
TRACK = 100 #defines a box! | |
rd = csv.reader( open("points.csv") ) |
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 lzma | |
from xml.dom.minidom import parseString, parse | |
import dateutil.parser | |
import calendar | |
from pyproj import Geod | |
import tarfile | |
from xml.parsers import expat | |
def parse_trkpt( node ): | |
lat = float(node.getAttribute("lat")) |
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
/* I, Brandon Martin-Anderson, release this into the public domain or whatever. */ | |
BufferedReader reader; | |
double ll, bb, rr, tt; | |
float A = 1000.0; | |
GlobalMercator proj = new GlobalMercator(); |