Skip to content

Instantly share code, notes, and snippets.

View kenthorvath's full-sized avatar

Kent Horvath kenthorvath

  • Berkeley, CA
View GitHub Profile
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@kenthorvath
kenthorvath / gist:8244522
Created January 3, 2014 19:18
Vim-like hjkl keybindings for KeyRemap4MacBook, as seen at http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, send escape)</appendix>
<identifier>private.f192f19_escape</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,
@kenthorvath
kenthorvath / defense_qna.md
Created May 1, 2013 18:54
Defense Questions

#Kent's Thesis Defense ##Questions and Answers to Consider

###[Q1] - Is there any evidence for SLX4 involvement in ALT cancers? Or more specifically, do Fanconi patients have any increased/decreased incidence of ALT-cancers?

Our findings indicate that ALT-type cancers have an abundance of SLX4 localization to telomeres. Other members of our lab have found SLX4 knockdown results in substantial impairment of ALT-cell proliferation and colony survival. As ALT-type cancers typically have extremely long telomeres, we believe SLX4 may be involved in telomere maintenance in these cells. Thus, Fanconi patients with defects in SLX4/FANCP may be less likely to develop ALT-type cancers. However, the first FANCP patients have only been recently identified, and there is not much literature regarding the telomeric maintenance pathways in FANCP-related cancers.

###[Q2] - What kinds of cancers do SLX4 knockout mice develop? Is there any information about the telomeric maintenance pathways in these mice?

###[Q3] - Do SLX4

@kenthorvath
kenthorvath / thief_q.txt
Last active December 10, 2015 20:48
Question for Nathan re: Thief of Baghdad
How many unique permutations are there for a sequence of size n with n_i number of elements of type e_i?
E.g.
The sequence [a a b b] has 4 elements with n_1 = 2; n_2 = 2; and elements e_1 = a and e_2 = b.
The unique permutations of this sequence are:
1: a a b b
2: a b a b
@kenthorvath
kenthorvath / thief.py
Created January 8, 2013 22:04
Nathan's thief of Baghdad problem
#--------------------------------------------------------------------------
# Nathan's thief of Baghdad problem.
#
# Expected time to reach exit = 4.03 +/- 0.02 days ; based on 1e5 trials
#--------------------------------------------------------------------------
import numpy as np
from scipy.stats.mstats import sem
def solve(time_sum):