Skip to content

Instantly share code, notes, and snippets.

View wesm's full-sized avatar
💭
➡️ ➡️ ➡️

Wes McKinney wesm

💭
➡️ ➡️ ➡️
View GitHub Profile
@wesm
wesm / sample.json
Created November 30, 2016 18:32
Arrow testing data
{
"schema": {
"fields": [
{
"name": "int8",
"type": {
"name": "int",
"isSigned": true,
"bitWidth": 8
},
$ $HOME/code/iwyu/iwyu_tool.py -p .
In file included from /home/wesm/code/arrow/cpp/src/arrow/array.cc:18:
In file included from /home/wesm/code/arrow/cpp/src/arrow/array.h:22:
In file included from /home/wesm/code/native-toolchain/build/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/memory:72:
In file included from /home/wesm/code/native-toolchain/build/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/iosfwd:40:
In file included from /home/wesm/code/native-toolchain/build/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/postypes.h:40:
In file included from /home/wesm/code/native-toolchain/build/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/cwchar:44:
/usr/include/wchar.h:39:11: fatal error: 'stdarg.h' file not found
# include <stdarg.h>
^
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)