Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Eglen sje30

View GitHub Profile
View 1592550423.516e4eefee43649e.light,U=49890:2,S
Return-path: <daniel.nuest@uni-muenster.de>
Envelope-to: S.J.Eglen@damtp.cam.ac.uk
Delivery-date: Fri, 19 Jun 2020 07:07:19 +0100
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
by carrot.maths.cam.ac.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.92.3)
(envelope-from <daniel.nuest@uni-muenster.de>)
id 1jmABL-0004kp-KC
for S.J.Eglen@damtp.cam.ac.uk; Fri, 19 Jun 2020 07:07:19 +0100
X-Cam-AntiVirus: not scanned (internal relaying)
@sje30
sje30 / yu.el
Created Jun 4, 2020
Snippet to yank current Chrome URL into Emacs buffer
View yu.el
(defun yank-url-from-chrome ()
"Grab the current URL from Chrome and yank into point."
(interactive)
(shell-command
"xdotool search --onlyvisible --class Chrome windowfocus key ctrl+l key ctrl+c")
(shell-command
"xdotool search --onlyvisible --class Emacs windowfocus key ctrl+y"))
(defalias 'yu 'yank-url-from-chrome)
View LastTest.log
This file has been truncated, but you can view the full file.
Start testing: May 25 15:52 BST
----------------------------------------------------------
1/2 Testing: inttest-uk-based
1/2 Test: inttest-uk-based
Command: "/nfs/software/spack/linux-sles12-x86_64/gcc-7.3.0/python-3.6.8-iymaq7iryayd6hucj7kmjbztrwj6mx5a/bin/python3" "/nfs/st01/hpc-cbi-sje30/sje30/codecheck-report9/covid-sim/tests/integration-test.py" "--input" "/nfs/st01/hpc-cbi-sje30/sje30/codecheck-report9/covid-sim/tests/uk-input" "--output" "/nfs/st01/hpc-cbi-sje30/sje30/codecheck-report9/covid-sim/build-fawcett/tests/uk-output" "--covidsim" "/nfs/st01/hpc-cbi-sje30/sje30/codecheck-report9/covid-sim/build-fawcett/src/CovidSim" "--popfile" "/nfs/st01/hpc-cbi-sje30/sje30/codecheck-report9/covid-sim/data/populations/wpop_eur.txt.gz" "--r" "1.1"
Directory: /nfs/st01/hpc-cbi-sje30/sje30/codecheck-report9/covid-sim/build-fawcett/tests
"inttest-uk-based" start time: May 25 15:52 BST
Output:
----------------------------------------------------------
@sje30
sje30 / Frictionless-app.md
Last active May 16, 2020
Frictionless data tool fund application (Eglen)
View Frictionless-app.md

Introduction

(A copy of this application is available at https://bit.ly/eglen-fd2020)

Author: Stephen Eglen sje30@cam.ac.uk

Name of organisation: University of Cambridge

Title: Analysis of spontaneous activity patterns in developing neural circuits using frictionless data tools.

@sje30
sje30 / gist:8d71b46004c97d2d182a524a3fdec2b1
Last active May 16, 2020
Application for Frictionless data tool fund
We couldn’t find that file to show.
View check_biorxiv.R
## How many new articles have been deposited in biorxiv? When new
## papers get uploaded to biorxiv, this information is sent to
## crossref. So, we can use the excellent rcrossref package from the
## ropensci team to get information.
## Note, this does not include revised versions of papers.
##
## Thanks to Scott Chamberlain for providing the magic lines of code to
## grab the information efficiently from crossref.
## Note also there is some code below to grab the infomration from
@sje30
sje30 / .emacs.el
Last active Jun 4, 2020
makefile-eval-current-target
View .emacs.el
;; This is inspired by Org mode: hitting C-c C-c inside a Makefile
;; rule will run "make TARGET" where TARGET is the name of the current
;; target at point.
;; Stephen Eglen 2016-01-31 GPL applies.
(defun makefile-eval-current-target ()
"Evaluate the current Makefile rule in a *Compile* buffer."
(interactive)
(let ((target (makefile-add-log-defun)))
(if (null target)
View gist:c9cf694db59c034a011d
---
title: "Can we keep slides in sync?"
author: Stephen J Eglen
date: 2014-06-09
output:
ioslides_presentation:
self_contained: false
---
## Getting started
You can’t perform that action at this time.