Skip to content

Instantly share code, notes, and snippets.

@picrin
picrin / script.R
Created December 19, 2018 07:31
script.R
temp <- readRDS("dropEst_out.rds")
write.csv(temp$aligned_reads_per_cell, "aligned_reads_per_cell.csv")
@picrin
picrin / script.R
Created December 19, 2018 07:31
script.R
temp <- readRDS("dropEst_out.rds")
write.csv(temp$aligned_reads_per_cell, "aligned_reads_per_cell.csv")
@picrin
picrin / adamstalk.txt
Created August 10, 2018 12:37
Adam's Canterbury talk
Hi Everyone,
My name is Adam Kurkiewicz and I'm a second year PhD student in the filed of transcriptomics, which is entirely tangential to the field of computer science education, and is not the reason why I'm here.
I'm here because I took Computer Science in the Classroom in 2015/2016, and I'm considered to be one of the students for whom the course "worked", as it inspired me to start my own computer science and mathematics after-school club, which has been running every Tuesday evening since September 2017, and attracts students from three Glasgow High Schools (two state schools and one private school).
I'm going to say a few words about what in the course worked for me, what didn't, and I'll try to point at a particular worrisome pattern that I, and other students taking the course in my cohort, have noticed in many Glasgow high schools.
As Douglas mentioned in his part of talk, the course has highly vocational nature, with plenty of "hands-on" teaching experience with real pupils and real high-schoo
@picrin
picrin / gist:943d8345865c94f38429b3b5729b2e28
Created June 5, 2018 12:58
huex.core.to.trans.id.csv
2315125, OR4F5
2315251, OR4F29
2315554, TTLL10
2315633, B3GALT6
2315674, SCNN1D
2315739, PUSL1
2315773, CPTP
2315786, TAS1R3
2315880, TMEM88B
2315894, VWA1
\score{
{
\key g \minor
\numericTimeSignature
\clef basse
\time 4/4
% This voice is furious and angry,
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy"
@picrin
picrin / mark_to_band.py
Created December 7, 2017 12:26
Converting Marks to Bands at UoG
official_bands = ["A1", "A2", "A3", "A4", "A5", "B1", "B2", "B3", "C1", "C2", "C3", "D1", "D2", "D3", "E1", "E2", "E3", "F1", "F2", "F3", "G1", "G2", "H"]
epsilon = 10**(-6)
def encode_as_band(grade, out_of, bands=None):
if bands is None:
bands = official_bands
# We estabilish thresholds that have to be met in order to be awarded a given band.
# For example, in a world with three four bands exist, ["A1", "A2", "A3", "A4"], the thresholds would be [0, 0.25, 0.5, 0.75]
thresholds = [i/float(len(bands)) for i, band in enumerate(bands)]
# Identify representation of a grade as a fraction. 1 out of 4 would be 0.25.
@picrin
picrin / mark_to_band
Created December 7, 2017 12:26
Bands at UoG
official_bands = ["A1", "A2", "A3", "A4", "A5", "B1", "B2", "B3", "C1", "C2", "C3", "D1", "D2", "D3", "E1", "E2", "E3", "F1", "F2", "F3", "G1", "G2", "H"]
epsilon = 10**(-6)
def encode_as_band(grade, out_of, bands=None):
if bands is None:
bands = official_bands
# We estabilish thresholds that have to be met in order to be awarded a given band.
# For example, in a world with three four bands exist, ["A1", "A2", "A3", "A4"], the thresholds would be [0, 0.25, 0.5, 0.75]
thresholds = [i/float(len(bands)) for i, band in enumerate(bands)]
# Identify representation of a grade as a fraction. 1 out of 4 would be 0.25.
from __future__ import print_function
paths = []
size = 5
def validate_partial_path(partial_path):
last_elem = partial_path[-1]
out_of_boundary = last_elem[0] < 0 or last_elem[0] >= size or last_elem[1] < 0 or last_elem[1] >= size
if out_of_boundary:
return False