This file contains hidden or 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #include <bits/stdc++.h> | |
| using namespace std; | |
| #define debug(x) cout<<#x<<" is "<<endl | |
| using ll = long long; | |
| #define x first | |
| #define y second |
This file contains hidden or 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
| # Import pandas library | |
| import pandas as pd | |
| # initialize list of lists | |
| data = [['tom', 10], ['nick', 15], ['juli', 14]] | |
| # Create the pandas DataFrame | |
| df = pd.DataFrame(data, columns = ['Name', 'Age']) | |
| df.to_csv('filename.tsv', sep = '\t', encoding='utf-8', index=False) |
This file contains hidden or 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
| from random import random, seed | |
| from datetime import datetime | |
| seed(datetime.utcnow().microsecond) | |
| def main(): | |
| X = list(range(0, 25)) | |
| Y = [*map(lambda x: 2.0 * x + 3, X)] |
This file contains hidden or 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
| FROM ubuntu:latest | |
| WORKDIR /app | |
| COPY main.sh . |
This file contains hidden or 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
| import argparse | |
| from Bio import SeqIO | |
| from Bio.SeqRecord import SeqRecord | |
| if __name__ == '__main__': | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--id_file', required=True, | |
| help='file path of ids in text format') | |
| parser.add_argument('--input', required=True, |
This file contains hidden or 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
| void insertion_sort(vector<int> &v) { | |
| int n = v.size(); | |
| for(int i = 1; i < n; i++) { | |
| for(int j = i; j > 0; j--) { | |
| if(v[j] < v[j-1]) { | |
| swap(v[j], v[j-1]); | |
| } else { | |
| break; | |
| } | |
| } |
This file contains hidden or 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
| from collections import defaultdict | |
| def get_frequency(char_count, start, end): | |
| total = sum(x for _, x in char_count.items()) | |
| for value in range(start, end): | |
| letter = chr(value) | |
| try: | |
| print(f'{letter}\t{char_count[letter]}') | |
| except: |
This file contains hidden or 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
| $ docker pull mariadb | |
| $ VOLUME=DB | |
| $ docker volume create ${VOLUME} | |
| $ docker run --detach \ | |
| -p 3306:3306 \ | |
| -v ${VOLUME}:/var/lib/mysql \ | |
| --name MariaDB \ |
OlderNewer