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
set nocompatible " be iMproved, required | |
filetype off " required | |
" Plugings " | |
call plug#begin() | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'ThePrimeagen/harpoon' |
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
alias notebook='jupyter notebook' | |
alias gpt='sgpt' | |
alias py='python3' | |
alias cpwd='pwd | pbcopy' | |
alias please='sudo' | |
alias batch='py ~/Code/batch.py' | |
clear |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
set showcmd | |
set encoding=utf-8 | |
set number | |
set autoindent | |
set smartindent | |
set softtabstop=4 |
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 os | |
import xml.etree.ElementTree as ET | |
import cv2 | |
from pathlib import Path | |
import numpy as np | |
from tqdm import tqdm | |
from PIL import Image | |
import time | |
#xml_dir = Path('/Users/work/Data/damage') |
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 numpy as np | |
import math | |
import fractions | |
from sympy import * | |
np.set_printoptions(formatter={'all':lambda x: str(fractions.Fraction(x).limit_denominator())}) | |
#np.set_printoptions(precision= 100) | |
#Projects a set of vectors V onto u |
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 numpy as np | |
import sympy as sp | |
import fractions | |
np.set_printoptions(formatter={'all':lambda x: str( fractions.Fraction(x).limit_denominator() ) } , nanstr = True) | |
from tabulate import tabulate | |
matrix = np.array(list()) | |
A = [ |
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 sympy import sieve | |
from secrets import SystemRandom, choice | |
from random import randint | |
from math import lcm | |
class RSA: | |
sieve.extend_to_no(10000) | |
def generate_key(self, bits): |
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 java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Scanner; | |
public class Hangman { | |
//Score constants | |
private static final int wordFailCost = 2; private static final int attemps = 7; private static final int RemaingGeussBonus = 30; private static final int wordBonus = 100; |
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 java.util.Scanner; | |
import java.math.BigInteger; | |
public class Primes { | |
public static void main(String[] args) { | |
System.out.println("What is the upper limmit you want checked for primes?"); | |
//BigInteger bigNumbers = new BigInteger(Byte); | |
Scanner input = new Scanner(System.in); | |
// How big our index of primes will be |
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 java.util.Scanner; | |
public class BattleShip { | |
static int patroleHealth = 2;static int subHealth = 3;static int frigetHeath = 4; static int BattleHeath = 5; | |
static boolean hot = false; | |
static boolean temp = true; | |
public static void main(String[] args) { | |
System.out.print("a"); | |
Scanner input = new Scanner(System.in); | |
int attackBoard [][] = new int[10][10]; | |
int defenceBoard[][] = new int[10][10]; |
NewerOlder