Skip to content

Instantly share code, notes, and snippets.

View wesm's full-sized avatar

Wes McKinney wesm

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ nm -g -D -C --defined-only debug/libparquet.so | grep " T "
0000000000102c08 T _fini
0000000000051b10 T _init
00000000000e12aa T parquet::BufferReader::Read(long)
00000000000e121a T parquet::BufferReader::Read(long, unsigned char*)
00000000000e10b0 T parquet::BufferReader::Seek(long)
00000000000e100c T parquet::BufferReader::BufferReader(std::shared_ptr<parquet::Buffer> const&)
00000000000e100c T parquet::BufferReader::BufferReader(std::shared_ptr<parquet::Buffer> const&)
000000000005cc26 T parquet::ColumnReader::ReadDefinitionLevels(long, short*)
000000000005cc7c T parquet::ColumnReader::ReadRepetitionLevels(long, short*)
@wesm
wesm / GroupbyFirst.ipynb
Created June 9, 2016 21:39
Implementing a pandas idiom using ibis + window functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
The following packages will be downloaded:
package | build
---------------------------|-----------------
mkl-11.3.1 | 0 121.2 MB
xz-5.0.5 | 1 572 KB
python-3.5.1 | 0 16.7 MB
numpy-1.10.4 | py35_1 5.9 MB
pytz-2015.7 | py35_0 173 KB
setuptools-20.2.2 | py35_0 457 KB
six-1.10.0 | py35_0 17 KB
@wesm
wesm / gist:335347239aa509bc1041
Created October 7, 2015 05:11
Hide Moments with Tampermonkey
// ==UserScript==
// @name Hide moments
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://twitter.com/*
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==
@wesm
wesm / gist:11338078
Created April 27, 2014 05:15
Format JSON nicely in Emacs
(defun node-format ()
(interactive)
(save-excursion
(shell-command-on-region (mark) (point) "node -e \"process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function (chunk) { eval('foo = ' + chunk); console.log(JSON.stringify(foo, null, 2));});\"" (buffer-name) t)
)
)
(global-set-key "\C-c\C-j" 'node-format)
@wesm
wesm / gist:6160217
Created August 5, 2013 22:34
A metaclass for marking test cases (including superclasses) as requiring network connection (for nosetests -A "not network" to work)
# Author: Wes McKinney
# License: MIT
from pandas.util.testing import network
class NetworkTests(type):
def __new__(cls, name, bases, attrs):
for k, v in attrs.iteritems():
if k.startswith('test_'):
@wesm
wesm / gist:5861474
Created June 25, 2013 19:16
pandas git stats
{
"metadata": {
"name": "GitStats"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{