Skip to content

Instantly share code, notes, and snippets.

View timeu's full-sized avatar

Ümit Seren timeu

View GitHub Profile
@timeu
timeu / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/slide-from-right.html">
<link rel="import" href="../core-selector/core-selector.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
@timeu
timeu / designer.html
Created October 17, 2014 08:26
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
h5 = h5py.File('my_file','r')
snps = h5['snps']
start = 0
end = END_OF_CHROMOSOME
# how many SNPs you want
chunk_size = 1000
for i in xrange(start,end,chunk_size):
stop_ix = min(i+chunk_size,end)
# this will return an array of 1000 snps
chunked_snps = snps[i:stop_ix]
@timeu
timeu / test.txt
Created August 30, 2016 08:05
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:07
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:09
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:11
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:13
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:14
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:15
test123
This is just a test