Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Joshua Sierles jsierles

🎯
Focusing
Block or report user

Report or block jsierles

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 gist:1d33ae4084917b9052c96af8fcdccccb
# Source this file to define all the relevant environment variables in Bash
# for this profile. You may want to define the 'GUIX_PROFILE' environment
# variable to point to the "visible" name of the profile, like this:
#
# GUIX_PROFILE=/path/to/profile ; \
# source /path/to/profile/etc/profile
#
# When GUIX_PROFILE is undefined, the various environment variables refer
# to this specific profile generation.
View r.scm
(define-module (nextjournal packages r)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system r)
#:use-module (gnu packages image)
#:use-module (gnu packages algebra)
View gist:ef0fd6be551ef15c69732b8daefc8d82
The following package will be installed:
r-lubridate 1.7.1 /gnu/store/a3mq6s5j87m7xy0r0h9fn027gsx56lfm-r-lubridate-1.7.1
spurious SIGPOLL
spurious SIGPOLL
guix package: error: profile contains conflicting entries for r-rcpp
guix package: error: first entry: r-rcpp@0.12.14 /gnu/store/00x11qjy7ca8w79z8y5yd6ig3scgw3dw-r-rcpp-0.12.14
guix package: error: ... propagated from r-lubridate@1.7.1
guix package: error: second entry: r-rcpp@0.12.14 /gnu/store/ln79b0ymlymn0l6k14780qphcfwfyld9-r-rcpp-0.12.14
View r.scm
(define-module (nextjournal packages r)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system r)
#:use-module (gnu packages image)
#:use-module (gnu packages algebra)
View arrow-fix-build.patch
Fix a build bug that would cause the linker to try linking against
'arrow_static' even when building with -DARROW_BUILD_STATIC=off:
https://issues.apache.org/jira/browse/ARROW-1308
Patch copied from upstream pull request:
https://github.com/apache/arrow/pull/931/commits/88391fe0685742cff489d0bf1a5b1a09b8d73b3b
From 88391fe0685742cff489d0bf1a5b1a09b8d73b3b Mon Sep 17 00:00:00 2001
@jsierles
jsierles / compression.scm
Created Feb 12, 2018
Guix module for google-brotli
View compression.scm
(define-module (nextjournal packages compression)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system cmake))
(define-public google-brotli
(package
(name "google-brotli")
(version "0.6.0")
@jsierles
jsierles / python.scm
Last active Feb 12, 2018
Custom modules for apache-arrow and feather support in Guix
View python.scm
(define-module (nextjournal packages python)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (nextjournal packages compression)
View plot.py
# setting up the layout of matplotlib figure
fig, ax = plt.subplots()
# use the distplot function from seaborn to plot the distribution of AAPL
sns.distplot(AAPL['Daily Return'].dropna(), color = 'indianred',
hist_kws=dict(alpha = 0.7))
# remove the plot borders
sns.despine()
View gist:8b492f2f6e0746007abf962f7f69aab1
core@agent-3-production ~ $ sudo cat /var/lib/docker/containers/bbade0b6f31f614029f93b1e4ac84e2deb59918fbf02d45643a39fec59245438/checkpoints/r-2840-NRXJT7BG3B7MFLDBCMRV-Libraries/criu.work/restore-2017-08-11T14:08:45.480917875Z/restore.log
(00.000462) Pagemap is fully functional
(00.000508) Found task size of 7ffffffff000
(00.013771) Found fd 0 (id pipe:[18293297]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013900) Inherit fd 0 moved to 9 to resolve clash
(00.013912) Found fd 1 (id pipe:[18293298]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013917) Inherit fd 1 moved to 6 to resolve clash
(00.013923) Found fd 2 (id pipe:[18293299]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013927) Inherit fd 2 moved to 8 to resolve clash
(00.065090) Adjust mmap_min_addr 0x1000 -> 0x10000
View gist:35b52bb2fed9827fae3b694258a9125e
build-staging core # guix weather --substitute-urls=http://localhost:8090
computing 5762 package derivations for x86_64-linux...
looking for 6004 store items on http://localhost:8090...###################################################################################]
updating list of substitutes from 'http://localhost:8090'... 100.0%
http://localhost:8090
5.2% substitutes available (310 out of 6004)
unknown substitute sizes
2630.4 MiB on disk (uncompressed)
0.006 seconds per request (33.4 seconds in total)
180.0 requests per second
You can’t perform that action at this time.