Skip to content

Instantly share code, notes, and snippets.

🏏

Saul Shanabrook saulshanabrook

🏏
Block or report user

Report or block saulshanabrook

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 {
View CMakeOutput.log
The system is: Darwin - 17.7.0 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
Build flags:
Id flags:
The output was:
0
@saulshanabrook
saulshanabrook / notes.md
Last active Aug 17, 2018
JL tutorial notes
View notes.md

Question:

  • Should we reccomend npm or yarn?

Todo:

  • Figure out what changing to use onUpdateRequest does?

Notes:

You can’t perform that action at this time.