Skip to content

Instantly share code, notes, and snippets.

import java.io.*;
public class PagedFile{
public static final int pageSize = 512;
private RandomAccessFile f;
public void PagedFile(String fileName){
f = new RandomAccessFile(fileName);
}
-- average male hand size, in meters
-- taken from http://www.theaveragebody.com/average_hand_size.php
handSize :: Double
handSize = 0.189
planckLength :: Double
planckLength = 1.61619926e-35
-- assuming the 'child' hands are 1/5 the original size
-- find the number of iterations to reach the planck length
decodeAnswer = function(idx){
var toDecode = answers[idx].split(/\//)[0];
var res = ""
for(var i=0;i<toDecode.length;i++){
var found = false;
for(var k in asta){
if(asta[k]==toDecode[i]){
res += k;
found = true;
########
# #
# #### #
# # # #
# # # #
# #### #
# #
########
################
{-# LANGUAGE OverloadedStrings, FlexibleInstances #-}
import Network.HTTP (urlEncode)
import Network.HTTP.Conduit
import Network.HTTP.Client (defaultManagerSettings)
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.Text as T
import qualified Data.Vector as V
import Data.Aeson
import Control.Monad
module Fasta where
import Control.Applicative
import qualified Data.Text as T
import qualified Data.Attoparsec.Text as A
import qualified Data.Attoparsec.Combinator as AC
import Data.Char
import Data.Either
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
static Scanner sc;
static ArrayList<Integer> c1;
#include <hidef.h> /* common defines and macros */
#include "derivative.h" /* derivative-specific definitions */
unsigned char mask;
unsigned char next_bit;
unsigned char data1, data2;
// we need to be able to update the leds with new scrambled data
// every 5 seconds and pause/resume the code via the push button
unsigned char counter; // for keeping the frequency of 0.2Hz
* Writing the explanation/help -> Ozge
* Title page -> Sarah
* Main Visualization Part
- Histone Markers/Genes -> Arda/Akin
- Pathways -> Sarah/Defne
* Discuss the pathways visualization/iterate on it -> Group
* Filtering the data to be more operable -> Ulduz
- Choosing the histone markers -> Acelya
- Processing bigwig file? -> Ulduz/Arda
* Paper(s) -> Everyone needs to write for themselves
@kuzux
kuzux / lastlab.c
Last active August 29, 2015 14:11
#include <hidef.h>
#include "derivative.h"
typedef enum {
WAIT_FOR_RISING,
WAIT_FOR_FALLING,
RING_BUZZER
} State;
State currState;