Skip to content

Instantly share code, notes, and snippets.

Saul Shanabrook saulshanabrook

View GitHub Profile
View graph.json
{
"background": null,
"operators": [
{ "id": 0, "type": "operator", "root": true },
{ "id": 1, "type": "operator", "value": 0, "signal": "width" },
{ "id": 2, "type": "operator", "value": 0, "signal": "height" },
{
"id": 3,
"type": "operator",
"value": { "top": 0, "bottom": 0, "left": 0, "right": 0 },
@saulshanabrook
saulshanabrook / Untitled (1).ipynb
Created Mar 25, 2019
Deeply Embedded DSLs in Python
View Untitled (1).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Deeply Embedded DSLs in Python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View install.sh
conda create -n jupyterlab-omnisci-test -c conda-forge jupyterlab pymapd
conda activate jupyterlab-omnisci-test
pip install jupyterlab_omnisci git+https://github.com/Quansight/ibis.git@omnisci-sample git+https://github.com/jakevdp/altair.git@vl3-rc8
# Add resolutions as it says on REAMDE
# https://github.com/quansight/jupyterlab-omnisci/#bleed-edge-installation
vim $(python -c 'import os; import jupyterlab; print(os.path.dirname(jupyterlab.__file__))')/staging/package.json
jupyter labextension install jupyterlab-omnisci
jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38.x
View Untitled21.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saulshanabrook
saulshanabrook / compose_python.py
Created Dec 2, 2018
Little example of how to have a typed ADT-ish compose in Python
View compose_python.py
import dataclasses
import typing
import typing_extensions
T = typing.TypeVar("T")
U = typing.TypeVar("U")
V = typing.TypeVar("V")
View Untitled1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View llvm.ll
define i32 @"_ZN8__main__13something$241E"(i32* noalias nocapture %"retptr", {i8*, i32}** noalias nocapture %"excinfo")
{
entry:
%"$0.1" = alloca i8*
store i8* null, i8** %"$0.1"
%"$0.2" = alloca i8*
store i8* null, i8** %"$0.2"
%"$0.3" = alloca i8*
store i8* null, i8** %"$0.3"
%"$const0.4" = alloca i64
View ir.ll
; ModuleID = 'nrt'
source_filename = "<string>"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-darwin17.7.0"
@.const.picklebuf.4556225032 = internal constant { i8*, i32 } { i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.const.pickledata.4556225032, i32 0, i32 0), i32 101 }
@.const.pickledata.4556225032 = internal constant [101 x i8] c"\80\04\95Z\00\00\00\00\00\00\00\8C\08builtins\94\8C\0CRuntimeError\94\93\94\8C6numba jitted function aborted due to unresolved symbol\94\85\94\86\94."
; Function Attrs: norecurse nounwind
define i64 @nrt_atomic_add(i64* nocapture %.1) local_unnamed_addr #0 {
You can’t perform that action at this time.