Skip to content

Instantly share code, notes, and snippets.

View saxman's full-sized avatar

Paul R. Saxman saxman

View GitHub Profile
@saxman
saxman / notebook.ipynb
Last active January 24, 2024 17:59
Serialize Pandas Dataframe Rows as JSON Objects
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saxman
saxman / MainActivity.java
Created April 9, 2013 16:31
Plotting markers on a map in Android using data from a JSON web service and the Google Maps Android API v2
/*
* Copyright (c) 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// The name of the spreadsheet from the browser location bar.
// Copy after 'key=' until before the next URL parameter beginning w/&
var SPREADSHEET_ID = 'YOUR_SPREADSHEET_ID';
// The name of the sheet, displayed in a tab at the bottom of the spreadsheet.
// Default is 'Sheet1' if it's the first sheet.
var SHEET_NAME = 'YOUR_SHEET_NAME';
function doGet(request) {
var callback = request.parameters.jsonp;
@saxman
saxman / cities.js
Last active December 12, 2015 06:58
Top 100 Cities by Population
var map;
var geometries;
var POP_ATTR = 'POP_MAX';
var NUM_CITIES = 100;
function initialize() {
var mapStyle = [
{
stylers: [