This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# code taken from https://raw.githubusercontent.com/pmelsted/dbg/master/dbg.py | |
# import multiprocessing as mp | |
import collections, sys | |
from Bio import Seq, SeqIO, SeqRecord | |
# Create reverse complement | |
def twin(km): | |
return Seq.reverse_complement(km) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# New Xubuntu 16.04.3 LTS | |
# Software Setup Install | |
{ | |
# Create user | |
useradd -m -U -s /bin/bash -p '' student | |
# Copy Folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module to receive USART letters from the PC and toggle | |
// 4 leds. | |
// Rafael Arce Nazario 2017 | |
// Israel O. Dilan Pantojas | |
// Jose A. Reyes Zayas | |
// 22-Marzo-2017 | |
// Expirento 4 Parte B | |
module top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# l = Full list or string to be reversed. | |
# start = Index where the sub-string to be reversed starts | |
# end = Index where the sub-string to be reversed ends | |
def rev_sub(l, start, end): | |
return l[0:start]+l[start:end+1][::-1]+l[end+1:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# n parameter: | |
# represents the ammount of nodes desired in the graph. | |
from random import * | |
def rand_graph(n=2): | |
randgraph = {} | |
Nodes = [x for x in range(n)] | |
shuffle(Nodes) | |
Edges = [(x,randint(0,n)) for x in Nodes] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Must run as sudo | |
# Example: $ sudo bash pap-in.sh | |
# Search for Papilio Loader and compiles it from source | |
# Places the binary in the /usr/local/bin folder | |
# Install Dependencies | |
apt-get install git autogen automake g++ libftdi-dev |