Skip to content

Instantly share code, notes, and snippets.

@MrMaksimize
MrMaksimize / README.md
Created January 25, 2015 20:30
query result

README is empty

Find all layers on the map map.getStyle().layers.reverse();

@MrMaksimize
MrMaksimize / council_districts.geojson
Last active August 11, 2017 23:25
San Diego Council Districts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MrMaksimize
MrMaksimize / handler.py
Created February 9, 2017 17:11
Iron-ajax and px-data-table
import sys, os, json
here = os.path.dirname(os.path.realpath(__file__))
#sys.path.append(os.path.join(here, "./vendored"))
env_path = os.path.join(here, "./venv/lib/python2.7/site-packages/")
sys.path.append(env_path)
import requests
from contextlib import closing
@MrMaksimize
MrMaksimize / useful_pandas_snippets.py
Last active December 6, 2016 18:01 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
# Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
# Grab DataFrame rows where column has certain values
valuelist = ['value1', 'value2', 'value3']
df = df[df.column.isin(valuelist)]
@MrMaksimize
MrMaksimize / cx_oracle_docker.md
Last active November 4, 2016 21:14 — forked from thom-nic/cx_oracle_instructions.md
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.
@MrMaksimize
MrMaksimize / vptest.info
Last active December 24, 2015 12:49 — forked from voxpelli/vptest.info
name = VoxPelli OAuth Test
core = 7.x
dependencies[] = oauth_common
dependencies[] = http_client
// Before
- (IBAction)buttonTouchUpInside:(id)sender {
UIButton *buttonPressed = (UIButton*)sender;
if (buttonPressed == self.messageButton) {
AYHTReceiverListTableViewController *receiverTableViewController = [[AYHTReceiverListTableViewController alloc] init];
FPPopoverController *peoplePopover = [[FPPopoverController alloc] initWithViewController:receiverTableViewController];
peoplePopover.tint = FPPopoverLightGrayTint;
[peoplePopover presentPopoverFromView:buttonPressed];
[peoplePopover setShadowsHidden:YES];
channels = (
{ name = "#allplayers"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#api-craft"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#Node.js"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#drupal"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#drupal-chicago"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#cadug"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#drupal-wscci"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#drupal-services"; chatnet = "freenode"; autojoin = "yes"; },
{ name = "#drupal-contribute"; chatnet = "freenode"; autojoin = "yes"; },