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
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overwritten in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# overwritten, place it in the following location: | |
# unix/linux: | |
# $HOME/.config/matplotlib/matplotlibrc or |
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 matplotlib.font_manager | |
from IPython.core.display import HTML | |
def make_html(fontname): | |
return "<p>{font}: <span style='font-family:{font}; font-size: 24px;'>{font}</p>".format(font=fontname) | |
code = "\n".join([make_html(font) for font in sorted(set([f.name for f in matplotlib.font_manager.fontManager.ttflist]))]) | |
HTML("<div style='column-count: 2;'>{}</div>".format(code)) |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> |
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
(function() { | |
var width = 500, | |
height = 500; | |
var svg = d3.select("#chart") | |
.append("svg") | |
.attr("height", height) | |
.attr("width", width) | |
.append("g") | |
.attr("transform", "translate(0,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
<OGRVRTDataSource> | |
<OGRVRTLayer name="2012"> | |
<SrcDataSource>2012.csv</SrcDataSource> | |
<GeometryType>wkbPoint</GeometryType> | |
<LayerSRS>+proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=us-ft +no_defs</LayerSRS> | |
<GeometryField encoding="PointFromColumns" x="xcoord" y="ycoord"/> | |
</OGRVRTLayer> | |
</OGRVRTDataSource> |
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
NULL 0 | |
0 12886 | |
1800 229 | |
1804 1 | |
1822 3 | |
1824 4 | |
1825 2 | |
1826 4 | |
1829 20 | |
1830 9 |
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
// When upgrading the LocalNotification plugin from PhoneGap to Cordova, you run | |
// into the error "Request for member 'webView' in something not a structure or union" | |
// from the LLVM GCC 4.2 compiler. | |
// | |
// The wonderful callback support is to blame! | |
// | |
// You just need to edit AppDelegate.m and replace all instances of this.webView | |
// with this.viewController.webView and you'll be good to go! | |
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification |
NewerOlder